Difference between revisions of "Template:Main"

From Zelda Dungeon Wiki
Jump to navigation Jump to search
(Created page with ":<i>Main article: {{#ifeq:{{{2|}}}|{{Void}}|[[{{{1}}}]]|[[{{{1}}}{{!}}{{{2}}}]]}}</i>")
 
(Added documentation.)
Line 1: Line 1:
:<i>Main article: {{#ifeq:{{{2|}}}|{{Void}}|[[{{{1}}}]]|[[{{{1}}}{{!}}{{{2}}}]]}}</i>
+
:<i>Main article: {{#ifeq:{{{2|}}}|{{Void}}|[[{{{1}}}]]|[[{{{1}}}{{!}}{{{2}}}]]}}</i><noinclude>
 +
 
 +
==Purpose==
 +
This template is used to create a formatted link to the main article of a certain topic.
 +
 
 +
==Usage==
 +
To use this template, type: {{Desc|Optional|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.
 +
{{Cat|Formatting Templates}}</noinclude>

Revision as of 05:03, October 23, 2011

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 (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.