Difference between revisions of "Template:~Link"

From Maths
Jump to: navigation, search
m (ns must be specified by name, not as the 3rd argument.)
m (Added plural capabilities)
Line 4: Line 4:
  
 
-->{{#if:{{{2|{{{type|}}}}}}<!--
 
-->{{#if:{{{2|{{{type|}}}}}}<!--
     -->|{{{1|}}} ({{{2|{{{type|}}}}}})<!--
+
     -->|{{{1|}}}{{#if:{{{4|}}}|{{{3|}}}|}} ({{{2|{{{type|}}}}}})<!--
 
     -->|Why are you using this template?<!--
 
     -->|Why are you using this template?<!--
 
-->}}<!--
 
-->}}<!--
  
  
-->|{{{1|No name supplied!}}}]]</includeonly><noinclude>
+
-->|{{{1|No name supplied!}}}{{#if:{{{4|}}}|{{{4|}}}|{{{3|}}}}}]]</includeonly><noinclude>
  
 
Use: {{C|<nowiki>{{link|homomorphism|group|ns=optionalns}}</nowiki>}} to get a link {{C|homomorphism}} to the {{C|optionalns:homomorphism (group)}} page.
 
Use: {{C|<nowiki>{{link|homomorphism|group|ns=optionalns}}</nowiki>}} to get a link {{C|homomorphism}} to the {{C|optionalns:homomorphism (group)}} page.
 +
* As of 10<sup>th</sup> of September 2016, you can now use the [[Template:Plural]] syntax, eg:
 +
** {{C|<nowiki>{{link|variable symbol|FOL|s}}</nowiki>}} for a link as usual, but displayed as {{C|variable symbols}} and
 +
** {{C|<nowiki>{{link|pupp|example|y|ies}}</nowiki>}} for a link to the {{C|puppy (example)}} page, rendered as {{C|puppies}}.
 
</noinclude>
 
</noinclude>

Revision as of 07:05, 10 September 2016


Use: {{link|homomorphism|group|ns=optionalns}} to get a link homomorphism to the optionalns:homomorphism (group) page.

  • As of 10th of September 2016, you can now use the Template:Plural syntax, eg:
    • {{link|variable symbol|FOL|s}} for a link as usual, but displayed as variable symbols and
    • {{link|pupp|example|y|ies}} for a link to the puppy (example) page, rendered as puppies.