Difference between revisions of "Template:Gna task link"

From relax wiki
Jump to navigation Jump to search
(New template for creating links to the old Gna! tasks via the web archive.)
 
(Comment anchor support.)
Line 1: Line 1:
[{{gna task url|{{{1|0}}}}} <!--
+
[{{gna task url|{{{1|0}}}|comment={{{comment|}}}}} <!--
 
-->{{#if: {{{text|}}}
 
-->{{#if: {{{text|}}}
 
         | {{{text}}}
 
         | {{{text}}}
 
         | task #{{{1|0}}}
 
         | task #{{{1|0}}}
}}]<noinclude>
+
  }}<!--
 +
-->{{#if: {{{comment|}}}
 +
    |, comment {{{comment}}}
 +
  }}]<noinclude>
  
 
{{Informative template|1=
 
{{Informative template|1=
Line 16: Line 19:
 
  {{obr}}gna tasks url
 
  {{obr}}gna tasks url
 
  {{!}}''number''
 
  {{!}}''number''
  {{!}}''text'' =  
+
  {{!}}''text''    =
 +
{{!}}''comment'' =  
 
  {{cbr}}
 
  {{cbr}}
 +
 +
; {{param|number}}: The task number.
 +
 +
; {{param|text}}: The optional link text.
 +
 +
; {{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}}
  
 
{{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}}
 +
 +
==== Comment anchor ====
 +
 +
{{obr}}gna task link{{!}}7415{{!}}comment=6{{cbr}}
 +
 +
{{gna task link|7415|comment=6}}
  
 
}}
 
}}
  
 
[[Category:Link templates]]</noinclude>
 
[[Category:Link templates]]</noinclude>

Revision as of 11:10, 16 October 2020