Difference between revisions of "Template:Gna task url"

From relax wiki
Jump to navigation Jump to search
(New template for creating URLs to the old Gna! tasks via the web archive.)
 
m (Switch from the imported {{informative template}} to the relax {{template info}} template)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
https://web.archive.org/web/gna.org/tasks/?{{{1|0}}}<noinclude>
+
https://web.archive.org/web/gna.org/task/?{{{1|0}}}<!--
 +
-->{{#if: {{{comment|}}}
 +
    |&#35;comment{{{comment}}}
 +
  }}<noinclude>
  
{{Informative template|1=
+
{{template info|1=
 
== The Gna! task URL template ==
 
== The Gna! task URL template ==
  
Line 10: Line 13:
 
=== Usage ===
 
=== Usage ===
  
  {{obr}}gna task url{{!}}''number''{{cbr}}
+
  {{obr}}gna task url
 +
{{!}} number
 +
{{!}} ''comment'' =
 +
{{cbr}}
 +
 
 +
; {{param|number}}: The task number.
 +
 
 +
; {{param|comment}}: The optional comment number to anchor to.
  
 
=== Examples ===
 
=== Examples ===
Line 19: Line 29:
  
 
{{gna task url|7826}}
 
{{gna task url|7826}}
 +
 +
==== Comment anchor ====
 +
 +
{{obr}}gna task url{{!}}7415{{!}}comment=6{{cbr}}
 +
 +
{{gna task url|7415|comment=6}}
  
 
}}
 
}}
  
 
[[Category:Link templates]]</noinclude>
 
[[Category:Link templates]]</noinclude>

Latest revision as of 13:47, 23 October 2020

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

Template documentation

The Gna! task URL template

Goal

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

Usage

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

Examples

Simple URL

{{gna task url|7826}}

https://web.archive.org/web/gna.org/task/?7826

Comment anchor

{{gna task url|7415|comment=6}}

https://web.archive.org/web/gna.org/task/?7415#comment6