Template:Main: Difference between revisions
Jump to navigation
Jump to search
Abra Saghast (talk | contribs) Rollling back to functional Template——Undo revision 72149 by Jawal Severnain (talk) Tag: Undo |
|||
| Line 1: | Line 1: | ||
{{ | <noinclude> | ||
|{{#if:{{{3|}}}| | <languages/> | ||
|{{#if:{{{4|}}}| | </noinclude><includeonly>{{hatnote|extraclasses=relarticle mainarticle|1={{#ifeq:{{SUBJECTSPACE}}|Category | ||
|{{#if:{{{5|}}}| | |{{#if:{{{2|}}} | ||
|{{#if:{{{6|}}}| | |<translate><!--T:12--> The main pages for this [[<tvar name=cats-help>Special:MyLanguage/Help:Categories</tvar>|category]] are</translate> | ||
|{{#if:{{{7|}}}| | |<translate><!--T:18--> The main page for this [[<tvar name=cats-help>Special:MyLanguage/Help:Categories</tvar>|category]] is</translate> | ||
|{{#if:{{{8|}}}| | }} | ||
|{{#if:{{{9|}}}| | |{{#if:{{{2|}}} | ||
|{{#if:{{{10|}}}| | |<translate><!--T:13--> Main pages:</translate> | ||
| | |<translate><!--T:19--> Main page:</translate> | ||
}} | |||
}} {{ll|{{{1|{{PAGENAME:{{translatable}}}}}}}|{{{l1|{{{1|{{PAGENAME:{{translatable}}}}}}}}}}}}{{#if:{{{2| }}} | |||
|{{#if:{{{3|}}}|<nowiki/>{{int|comma-separator}}{{int|word-separator}}<nowiki/>|<nowiki/>{{int|and}}{{int|word-separator}}<nowiki/>}}{{ll|{{{2}}}|{{{l2|{{{2}}}}}}}}}}{{#if:{{{3|}}} | |||
|{{#if:{{{4|}}}|<nowiki/>{{int|comma-separator}}{{int|word-separator}}<nowiki/>|<nowiki/>{{int|and}}{{int|word-separator}}<nowiki/>}}{{ll|{{{3}}}|{{{l3|{{{3}}}}}}}}}}{{#if:{{{4|}}} | |||
|{{#if:{{{5|}}}|<nowiki/>{{int|comma-separator}}{{int|word-separator}}<nowiki/>|<nowiki/>{{int|and}}{{int|word-separator}}<nowiki/>}}{{ll|{{{4}}}|{{{l4|{{{4}}}}}}}}}}{{#if:{{{5|}}} | |||
|{{#if:{{{6|}}}|<nowiki/>{{int|comma-separator}}{{int|word-separator}}<nowiki/>|<nowiki/>{{int|and}}{{int|word-separator}}<nowiki/>}}{{ll|{{{5}}}|{{{l5|{{{5}}}}}}}}}}{{#if:{{{6|}}} | |||
|{{#if:{{{7|}}}|<nowiki/>{{int|comma-separator}}{{int|word-separator}}<nowiki/>|<nowiki/>{{int|and}}{{int|word-separator}}<nowiki/>}}{{ll|{{{6}}}|{{{l6|{{{6}}}}}}}}}}{{#if:{{{7|}}} | |||
|{{#if:{{{8|}}}|<nowiki/>{{int|comma-separator}}{{int|word-separator}}<nowiki/>|<nowiki/>{{int|and}}{{int|word-separator}}<nowiki/>}}{{ll|{{{7}}}|{{{l7|{{{7}}}}}}}}}}{{#if:{{{8|}}} | |||
|{{#if:{{{9|}}}|<nowiki/>{{int|comma-separator}}{{int|word-separator}}<nowiki/>|<nowiki/>{{int|and}}{{int|word-separator}}<nowiki/>}}{{ll|{{{8}}}|{{{l8|{{{8}}}}}}}}}}{{#if:{{{9|}}} | |||
|{{#if:{{{10|}}}|<nowiki/>{{int|comma-separator}}{{int|word-separator}}<nowiki/>|<nowiki/>{{int|and}}{{int|word-separator}}<nowiki/>}}{{ll|{{{9}}}|{{{l9|{{{9}}}}}}}}}}{{#if:{{{10|}}} | |||
|<nowiki/>{{int|and}}{{int|word-separator}}{{ll|{{{10}}}|{{{l10|{{{10}}}}}}}}}}{{#if:{{{11| }}}|  <translate><!--T:14--> (too many parameters in <tvar name=1>{{((}}{{ll|Template:main}}{{))}}</tvar>)</translate>}}}}</includeonly><!-- | |||
--><noinclude> | |||
{{documentation|content= | |||
<translate> | |||
== Examples == <!--T:16--> | |||
</translate> | |||
<pre> | |||
{{Main}} | |||
</pre> | |||
{{Main}} | |||
<pre> | |||
{{Main|Article 1}} | |||
</pre> | |||
{{Main|Article 1}} | |||
<pre> | |||
{{Main|Article 1|Article 2|Article Something#3}} | |||
</pre> | |||
{{Main|Article 1|Article 2|Article Something#3}} | |||
<translate> | |||
== TemplateData == <!--T:17--> | |||
</translate> | |||
{{Template:Main/doc}} | |||
}} | |||
[[Category:Templates{{#translation:}}]] | |||
</noinclude> | |||
Revision as of 17:16, 15 March 2024
<languages/>
| Template documentation follows |
|---|
| Note: the template above may sometimes be partially or fully invisible. |
| View • Edit • History |
- The following documentation is transcluded from Template:Main/doc:
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Main in articles based on its TemplateData.
TemplateData for Main
This template is used to display a note directing users to the main article about a subject. This should be used at the top of a section, usually directly below a section heading.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Page 1 | 1 | Page name of related article. It includes Special:MyLanguage prefix. | Page name | required |
| Label 1 | l1 | Custom label for the link to Page 1.
| String | optional |
| Page 2 | 2 | no description | Page name | optional |
| Label 2 | l2 | no description
| String | optional |
| Page 3 | 3 | no description | Page name | optional |
| Label 3 | l3 | no description
| String | optional |
[[Category:Templates{{#translation:}}]] [[Category:Templates{{#translation:}}]]