Difference between revisions of "Template:Gna task link"

From relax wiki
Jump to navigation Jump to search
(Bug fix for the default comment text.)
(Allow the text argument to also be a positional argument.)
Line 1: Line 1:
 
[{{gna task url|{{{1|0}}}|comment={{{comment|}}}}} <!--
 
[{{gna task url|{{{1|0}}}|comment={{{comment|}}}}} <!--
-->{{#if: {{{text|}}}
+
-->{{#if: {{{text|{{{2|}}}}}}
         | {{{text}}}
+
         | {{{text|{{{2}}}}}}
 
         | Task #{{{1|0}}}<!--
 
         | Task #{{{1|0}}}<!--
 
       -->{{#if: {{{comment|}}}
 
       -->{{#if: {{{comment|}}}
Line 42: Line 42:
  
 
{{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 ====
 
==== Comment anchor ====
Line 51: Line 57:
 
==== Comment anchor with replacement text ====
 
==== Comment anchor with replacement text ====
  
  {{obr}}gna task link{{!}}7712{{!}}comment=3{{!}}text={{cbr}}
+
  {{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}}
 
{{gna task link|7712|comment=3|text=Comment 3 of task #7712}}

Revision as of 15:30, 16 October 2020