A Wiki in the Desert
Log in

Difference between revisions of "Template:Link"

From A Wiki in the Desert
(Created template)
 
m (Pluralizing the "Template" category. Categories should be plural)
Line 25: Line 25:
 
</noinclude><includeonly>[[{{{1}}}{{#ifeq:{{{2|}}}.|.||/{{{2}}}}}|{{#ifeq:{{{3|}}}.|.|{{#ifeq:{{{2|}}}.|.|{{{1}}}|{{{2}}}}}|{{{3}}}}}]]
 
</noinclude><includeonly>[[{{{1}}}{{#ifeq:{{{2|}}}.|.||/{{{2}}}}}|{{#ifeq:{{{3|}}}.|.|{{#ifeq:{{{2|}}}.|.|{{{1}}}|{{{2}}}}}|{{{3}}}}}]]
 
</includeonly><noinclude>
 
</includeonly><noinclude>
[[Category: Template]] {{DEFAULTSORT:{{SUBPAGENAME}}}}
+
[[Category:Templates]] {{DEFAULTSORT:{{SUBPAGENAME}}}}
 
</noinclude>
 
</noinclude>

Revision as of 09:30, 7 August 2018

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:
Research
The page linked to is Research, the label is Research
  • {{link | Research | Region}} produces:
Region
The page linked to is Research/Region, the label is just Region
  • {{link | Research | Region | LinkDescription}} produces:
LinkDescription
The page linked to is Research/Region, the link label name is LinkDescription
  • {{link | Research || LinkDescription}} produces:
LinkDescription
The page linked to is Research, the link label name is LinkDescription