Difference between revisions of "Template:Gna bug link"

From relax wiki
Jump to navigation Jump to search
(New template.)
 
(Expansion of the template to match {{gna task link}}.)
Line 1: Line 1:
[{{gna bug url|{{{1|0}}}}} <!--
+
[{{gna bug url|{{{1|0}}}|comment={{{comment|}}}}} <!--
-->{{#if: {{{text|}}}
+
-->{{#if: {{{text|{{{2|}}}}}}
         | {{{text}}}
+
         | {{{text|{{{2}}}}}}
         | bug #{{{1|0}}}
+
         | Bug #{{{1|0}}}<!--
}}]<noinclude>
+
      -->{{#if: {{{comment|}}}
 +
            |, comment #{{{comment}}}
 +
          }}
 +
  }}]<noinclude>
  
 
{{Informative template|1=
 
{{Informative template|1=
Line 15: Line 18:
  
 
  {{obr}}gna bug url
 
  {{obr}}gna bug url
  {{!}}''number''
+
{{!}} number
  {{!}}''text'' =  
+
  {{!}} ''text''   =
 +
  {{!}} ''comment'' =  
 
  {{cbr}}
 
  {{cbr}}
 +
 +
; {{param|number}}: The bug 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 ===
Line 27: Line 37:
 
{{gna bug link|25044}}
 
{{gna bug link|25044}}
  
 +
==== Replacement text ====
 +
 +
{{obr}}gna task link{{!}}25044{{!}}text=Bug #25044: Model Free Analysis problems when attempting to run on multi-processors and using the script to run{{cbr}}
 +
 +
{{gna task link|25044|text=Bug #25044: Model Free Analysis problems when attempting to run on multi-processors and using the script to run}}
 +
 +
==== Replacement text, positional argument ====
 +
 +
{{obr}}gna task link{{!}}25044{{!}}Bug #25044: Model Free Analysis problems when attempting to run on multi-processors and using the script to run{{cbr}}
 +
 +
{{gna task link|25044|Bug #25044: Model Free Analysis problems when attempting to run on multi-processors and using the script to run}}
 +
 +
==== Comment anchor ====
 +
 +
{{obr}}gna task link{{!}}21599{{!}}comment=1{{cbr}}
 +
 +
{{gna task link|21599|comment=1}}
 +
 +
==== Comment anchor with replacement text ====
 +
 +
{{obr}}gna task link{{!}}21599{{!}}comment=2{{!}}text=Bug #21599 has been postponed.{{cbr}}
 +
 +
{{gna task link|21599|comment=2|text=Bug #21599 has been postponed.}}
 
}}
 
}}
  
 
[[Category:Link templates]]</noinclude>
 
[[Category:Link templates]]</noinclude>

Revision as of 19:39, 16 October 2020