Difference between revisions of "Template:Main/doc"

From RimWorld Wiki
Jump to navigation Jump to search
m (1 revision: Full import of Wikia (that might sting a bit))
 
(Added note on multiple parameters)
Line 1: Line 1:
 
;Description
 
;Description
:This template is used at the start of a section to link to the main article on that subject.  
+
:This template is used at the start of a section to link to the main article on that subject. It accepts up to 15 parameters.
 
;Syntax
 
;Syntax
:Type <code>{{t|main|page name}}</code>
+
:Type <code>{{t|main|page name|page name|..|..}}</code>
 
;Sample output
 
;Sample output
 
:<code><nowiki>{{main|Help:Contents}}</nowiki></code> gives...
 
:<code><nowiki>{{main|Help:Contents}}</nowiki></code> gives...
:{{main|Help:Contents}}
+
:{{main|Help:Contents}}<br/>
 +
:<code><nowiki>{{main|Help:Contents|Main Page|Special:RecentChanges}}</nowiki></code> gives...
 +
:{{main|Help:Contents|Main Page|Special:RecentChanges}}
  
 
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
 
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Revision as of 17:53, 12 July 2015

Description
This template is used at the start of a section to link to the main article on that subject. It accepts up to 15 parameters.
Syntax
Type {{main|<page name>|<page name>|<..>|<..>}}
Sample output
{{main|Help:Contents}} gives...

{{main|Help:Contents|Main Page|Special:RecentChanges}} gives...