Template:Main/doc: Difference between revisions

ArrowHead294 (talk | contribs)
htiw egap detaerC
 
ArrowHead294 (talk | contribs)
mNo edit summary
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><hr><small>Documentation transcluded from [[/doc]]</small></includeonly>
{{dochead}}{{wikipedia}}{{lua|Labelled list hatnote}}
== Usage ==
The '''main''' template is used within a section about some topic to link an article entirely dedicated to the same topic.
Use an unnamed argument for the page you want to link to:


:<nowiki>{{Main|</nowiki> ''Some page'' }}
=== Usage ===
Use unnamed arguments for the page you want to link to. Use named arguments for the displayed text.


to get
For example, if you type


:''Main article: [[Special:Random|Some page]]''
<pre>{{main|Special:Random|Frequently asked questions|12 equal|l1=Some page|l2=FAQ|l3=12edo}}</pre>


== Related templates ==
you will get
* [[Template: See also]]
 
* [[Template: Distinguish]]
{{{{ROOTPAGENAME}}|Special:Random|Frequently asked questions|12edo|l1=Some page|l2=FAQ|l3=12 equal}}
 
See Wikipedia's version of this template for more details.
 
=== Related templates ===
* [[Template:See also]]
* [[Template:Distinguish]]