Template:Main: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Fredg999 (talk | contribs)
+trim white spaces; -"name" parameter (I don't suppose it's used anywhere)
Line 1: Line 1:
:''Main article: [[{{{1|{{{name}}}}}}]]''<noinclude>
:''Main article: [[{{trim| {{{1|}}} }}]]''<noinclude>


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


== Usage ==
== Usage ==
Use an unnamed argument for the page you want to link to:


Use as follows:
<nowiki>{{Main|</nowiki> ''Some page'' }}


<nowiki>{{Main|</nowiki>''Some page''}}
to get
 
or
 
<nowiki>{{Main|name=</nowiki>''Some page''}}
 
as to get


:''Main article: [[Special:Random|Some page]]''
:''Main article: [[Special:Random|Some page]]''


== Related templates ==
== Related templates ==
* [[Template: See also]]
* [[Template: See also]]
* [[Template: Distinguish]]


[[Category:Templates]]
[[Category:Templates]]


</noinclude>
</noinclude>

Revision as of 08:56, 25 May 2023

Main article: [[]]

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

Usage

Use an unnamed argument for the page you want to link to:

{{Main| Some page }}

to get

Main article: Some page

Related templates