Difference between revisions of "Template:Main"

From Zelda Dungeon Wiki
Jump to navigation Jump to search
(Added documentation.)
Line 1: Line 1:
:<i>Main article: {{#ifeq:{{{2|}}}|{{Void}}|[[{{{1}}}]]|[[{{{1}}}{{!}}{{{2}}}]]}}</i><noinclude>
+
<onlyinclude>{{Hatnote|Main article: {{#ifeq:{{{2|}}}|{{Void}}|[[{{{1}}}]]|[[{{{1}}}{{!}}{{{2}}}]]}}}}</onlyinclude>
  
 
==Purpose==
 
==Purpose==
Line 5: Line 5:
  
 
==Usage==
 
==Usage==
To use this template, type: {{Desc|Optional|Page|Alternate Title}}
+
To use this template, type: {{Usage|Page|Alternate Title}}
 +
{{Usage/Param|Page|The page you wish to link to.}}
 +
{{Usage/Param|Alternate Title|The text you want to display as the name of the page if it is different than the page title. If left blank it defaults to what is given as the page name.|optional}}
  
*'''''Page''''' — The page you wish to link to.
+
 
*'''''Alternate Title''''' — The text you want to display as the name of the page if it is different than the page title. If left blank it defaults to what is given as the page name.
+
{{Cat|Formatting Templates}}
{{Cat|Formatting Templates}}</noinclude>
 

Revision as of 17:03, February 28, 2013

Main article: [[{{{1}}}]]

Purpose

This template is used to create a formatted link to the main article of a certain topic.

Usage

To use this template, type: {{Main| Page | Alternate Title }}

  • Page — The page you wish to link to.
  • Alternate Title — The text you want to display as the name of the page if it is different than the page title. If left blank it defaults to what is given as the page name. (Optional.)