Difference between revisions of "Template:Gna task link"
Jump to navigation
Jump to search
(New template for creating links to the old Gna! tasks via the web archive.) |
Bugman admin (talk | contribs) m (Switch from the imported {{informative template}} to the relax {{template info}} template) |
||
| (7 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | [{{gna task url|{{{1|0}}}}} <!-- | + | [{{gna task url|{{{1|0}}}|comment={{{comment|}}}}} <!-- |
| − | -->{{#if: {{{text|}}} | + | -->{{#if: {{{text|{{{2|}}}}}} |
| − | | {{{text}}} | + | | {{{text|{{{2}}}}}} |
| − | | | + | | Task #{{{1|0}}}<!-- |
| − | }}]<noinclude> | + | -->{{#if: {{{comment|}}} |
| + | |, comment #{{{comment}}} | ||
| + | }} | ||
| + | }}]<noinclude> | ||
| − | {{ | + | {{template info|1= |
== The Gna! task link template == | == The Gna! task link template == | ||
| Line 14: | Line 17: | ||
=== Usage === | === Usage === | ||
| − | {{obr}}gna | + | {{obr}}gna task url |
| − | {{!}}'' | + | {{!}} number |
| − | {{!}}'' | + | {{!}} ''text'' = |
| + | {{!}} ''comment'' = | ||
{{cbr}} | {{cbr}} | ||
| + | |||
| + | ; {{param|number}}: The task number. | ||
| + | |||
| + | ; {{param|text}}: The optional link text. This can also be supplied as parameter number 2. | ||
| + | |||
| + | ; {{param|comment}}: The optional comment number to anchor to. | ||
=== Examples === | === Examples === | ||
==== Default text ==== | ==== Default text ==== | ||
| + | |||
| + | {{obr}}gna task link{{!}}7826{{cbr}} | ||
| + | |||
| + | {{gna task link|7826}} | ||
| + | |||
| + | ==== Replacement text ==== | ||
{{obr}}gna task link{{!}}7826{{!}}text=Task #7826: Write an python class for the repeated analysis of dispersion data{{cbr}} | {{obr}}gna task link{{!}}7826{{!}}text=Task #7826: Write an python class for the repeated analysis of dispersion data{{cbr}} | ||
| Line 27: | Line 43: | ||
{{gna task link|7826|text=Task #7826: Write an python class for the repeated analysis of dispersion data}} | {{gna task link|7826|text=Task #7826: Write an python class for the repeated analysis of dispersion data}} | ||
| + | ==== Replacement text, positional argument ==== | ||
| + | |||
| + | {{obr}}gna task link{{!}}7826{{!}}Task #7826: Write an python class for the repeated analysis of dispersion data{{cbr}} | ||
| + | |||
| + | {{gna task link|7826|Task #7826: Write an python class for the repeated analysis of dispersion data}} | ||
| + | |||
| + | ==== Comment anchor ==== | ||
| + | |||
| + | {{obr}}gna task link{{!}}7415{{!}}comment=6{{cbr}} | ||
| + | |||
| + | {{gna task link|7415|comment=6}} | ||
| + | |||
| + | ==== Comment anchor with replacement text ==== | ||
| + | |||
| + | {{obr}}gna task link{{!}}7712{{!}}comment=3{{!}}text=Comment 3 of task #7712{{cbr}} | ||
| + | |||
| + | {{gna task link|7712|comment=3|text=Comment 3 of task #7712}} | ||
}} | }} | ||
[[Category:Link templates]]</noinclude> | [[Category:Link templates]]</noinclude> | ||
Latest revision as of 13:48, 23 October 2020
Template documentation
Contents
The Gna! task link template
Goal
Create URLs to the web archive of the Gna! tasks.
Usage
{{gna task url
| number
| text =
| comment =
}}
- number
- The task number.
- text
- The optional link text. This can also be supplied as parameter number 2.
- comment
- The optional comment number to anchor to.
Examples
Default text
{{gna task link|7826}}
Replacement text
{{gna task link|7826|text=Task #7826: Write an python class for the repeated analysis of dispersion data}}
Task #7826: Write an python class for the repeated analysis of dispersion data
Replacement text, positional argument
{{gna task link|7826|Task #7826: Write an python class for the repeated analysis of dispersion data}}
Task #7826: Write an python class for the repeated analysis of dispersion data
Comment anchor
{{gna task link|7415|comment=6}}
Comment anchor with replacement text
{{gna task link|7712|comment=3|text=Comment 3 of task #7712}}