Difference between revisions of "Template:Gna bug url"

From relax wiki
Jump to navigation Jump to search
(Removal of the https:// part of the URL, and fix for the example.)
m (Switch from the imported {{informative template}} to the relax {{template info}} template)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
https://web.archive.org/web/gna.org/bugs/?{{{1|0}}}<noinclude>
+
https://web.archive.org/web/gna.org/bugs/?{{{1|0}}}<!--
 +
-->{{#if: {{{comment|}}}
 +
    |&#35;comment{{{comment}}}
 +
  }}<noinclude>
  
{{Informative template|1=
+
{{template info|1=
== The Gna! bug link template ==
+
== The Gna! bug URL template ==
  
 
=== Goal ===
 
=== Goal ===
  
Create links to the web archive of the Gna! bugs.
+
Create URLs to the web archive of the Gna! bugs.
  
 
=== Usage ===
 
=== Usage ===
  
  {{obr}}gna bug{{!}}''number''{{cbr}}
+
  {{obr}}gna bug url
 +
{{!}} number
 +
{{!}} ''comment'' =
 +
{{cbr}}
 +
 
 +
; {{param|number}}: The bug number.
 +
 
 +
; {{param|comment}}: The optional comment number to anchor to.
  
 
=== Examples ===
 
=== Examples ===
Line 16: Line 26:
 
==== Simple URL ====
 
==== Simple URL ====
  
  {{obr}}gna bug{{!}}25044{{cbr}}
+
  {{obr}}gna bug url{{!}}25044{{cbr}}
 +
 
 +
{{gna bug url|25044}}
 +
 
 +
==== Comment anchor ====
 +
 
 +
{{obr}}gna bug url{{!}}25044{{!}}comment=1{{cbr}}
  
{{gna bug|25044}}
+
{{gna bug url|25044|comment=1}}
  
 
}}
 
}}
  
 
[[Category:Link templates]]</noinclude>
 
[[Category:Link templates]]</noinclude>

Latest revision as of 13:49, 23 October 2020

https://web.archive.org/web/gna.org/bugs/?0

Template documentation

The Gna! bug URL template

Goal

Create URLs to the web archive of the Gna! bugs.

Usage

{{gna bug url
| number
| comment = 
}}
number
The bug number.
comment
The optional comment number to anchor to.

Examples

Simple URL

{{gna bug url|25044}}

https://web.archive.org/web/gna.org/bugs/?25044

Comment anchor

{{gna bug url|25044|comment=1}}

https://web.archive.org/web/gna.org/bugs/?25044#comment1