Difference between revisions of "Template:Gna bug link"

From relax wiki
Jump to navigation Jump to search
(New template.)
 
m (Switch from the imported {{informative template}} to the relax {{template info}} template)
 
(One intermediate revision by one other user not shown)
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=
+
{{template info|1=
 
== The Gna! bug link template ==
 
== The Gna! bug link template ==
  
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>

Latest revision as of 13:46, 23 October 2020

Bug #0

Template documentation

The Gna! bug link template

Goal

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

Usage

{{gna bug url
| number
| text    = 
| comment = 
}}
number
The bug 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 bug link|25044}}

Bug #25044

Replacement text

{{gna task link|25044|text=Bug #25044: Model Free Analysis problems when attempting to run on multi-processors and using the script to run}}

Bug #25044: Model Free Analysis problems when attempting to run on multi-processors and using the script to run

Replacement text, positional argument

{{gna task link|25044|Bug #25044: Model Free Analysis problems when attempting to run on multi-processors and using the script to run}}

Bug #25044: Model Free Analysis problems when attempting to run on multi-processors and using the script to run

Comment anchor

{{gna task link|21599|comment=1}}

Task #21599, comment #1

Comment anchor with replacement text

{{gna task link|21599|comment=2|text=Bug #21599 has been postponed.}}

Bug #21599 has been postponed.