Template:Main/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
ArrowHead294 (talk | contribs)
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{dochead}}
{{dochead}}{{wikipedia}}{{lua|Labelled list hatnote}}
The '''main''' template is used within a section about some topic to link an article entirely dedicated to the same topic.
 
=== Usage ===
=== Usage ===
{{Wikipedia|Template:Main}}
Use unnamed arguments for the page you want to link to. Use named arguments for the displayed text.
Use unnamed arguments for the page you want to link to. Use named arguments for the displayed text.


For example, if you type
For example, if you type


:<code>{{((}}main{{pipe}}Special:Random{{pipe}}Frequently asked questions{{pipe}}12 equal{{pipe}}l1=Some page{{pipe}}l2=FAQ{{pipe}}l3=12edo{{))}}</code>
<pre>{{main|Special:Random|Frequently asked questions|12 equal|l1=Some page|l2=FAQ|l3=12edo}}</pre>


you will get
you will get


{{main|Special:Random|Frequently asked questions|12edo|l1=Some page|l2=FAQ|l3=12 equal}}
{{{{ROOTPAGENAME}}|Special:Random|Frequently asked questions|12edo|l1=Some page|l2=FAQ|l3=12 equal}}


See [[wikipedia:Template:Main|Wikipedia's version of this template]] for more details.
See Wikipedia's version of this template for more details.


=== Related templates ===
=== Related templates ===
* [[Template:See also]]
* [[Template:See also]]
* [[Template:Distinguish]]
* [[Template:Distinguish]]
=== See also ===
* {{modlink|Labelled list hatnote}}

Latest revision as of 20:40, 9 February 2025

English Wikipedia has an article on:

The main template is used within a section about some topic to link an article entirely dedicated to the same topic.

Usage

Use unnamed arguments for the page you want to link to. Use named arguments for the displayed text.

For example, if you type

{{main|Special:Random|Frequently asked questions|12 equal|l1=Some page|l2=FAQ|l3=12edo}}

you will get

See Wikipedia's version of this template for more details.

Related templates