Difference between revisions of "Template:Link"
From A Wiki in the Desert
m (Pluralizing the "Template" category. Categories should be plural) |
m (Moving docs to /doc subpage) |
||
Line 1: | Line 1: | ||
− | + | <includeonly>[[{{{1}}}{{#ifeq:{{{2|}}}.|.||/{{{2}}}}}|{{#ifeq:{{{3|}}}.|.|{{#ifeq:{{{2|}}}.|.|{{{1}}}|{{{2}}}}}|{{{3}}}}}]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</includeonly><noinclude> | </includeonly><noinclude> | ||
− | [[Category: | + | {{Documentation}} |
+ | [[Category:Utility templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 15:59, 17 May 2021
Template documentation (for the above template, sometimes hidden or invisible)
Creates a Link
Usage:
- {{link| Page To Link To}}
- {{link| Sub Page | Main Page Name }}
- {{link| Sub Page | Main Page Name | Link Label }}
- {{link| Page To Link To || Link Label }} (note the double pipe || between the two sets of data)
Example:
- {{link | Research }} produces:
- The page linked to is Research, the label is Research
- {{link | Research | Region}} produces:
- The page linked to is Research/Region, the label is just Region
- {{link | Research | Region | LinkDescription}} produces:
- The page linked to is Research/Region, the link label name is LinkDescription
- {{link | Research || LinkDescription}} produces:
- The page linked to is Research, the link label name is LinkDescription
Visit Template:Link/doc to edit this text! (How does this work?)