Difference between revisions of "Template:~Link"

From Maths
Jump to: navigation, search
m
(Adding replace1 named parameter, which will use the first parameter for the link, but replace it for the place where the first parameter goes in the display of the link)
Line 10: Line 10:
  
  
-->|<!--PUT IF replace1 here-->{{{1|No name supplied!}}}{{#if:{{{4|}}}|{{{4|}}}|{{{3|}}}}}]]</includeonly><noinclude>
+
-->|{{#if:{{{replace1|}}}|{{{replace1|}}}|<!--no replace1 given-->{{{1|No name supplied!}}}<!--close if-->}}<!--end of main name-->{{#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.

Revision as of 19:16, 31 December 2017


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.
  • As of 7th of September 2017 you can use interwiki links, using the w or wiki parameter