Template:Main: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m 1 revision imported |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{hatnote|extraclasses=relarticle mainarticle|1={{#ifeq:{{SUBJECTSPACE}}|Category | <noinclude> | ||
<languages/> | |||
</noinclude><includeonly>{{hatnote|extraclasses=relarticle mainarticle|1={{#ifeq:{{SUBJECTSPACE}}|Category | |||
|{{#if:{{{2|}}} | |{{#if:{{{2|}}} | ||
|<translate><!--T:12--> The main pages for this [[<tvar name=cats-help>Special:MyLanguage/Help:Categories</tvar>|category]] are</translate> | |<translate><!--T:12--> The main pages for this [[<tvar name=cats-help>Special:MyLanguage/Help:Categories</tvar>|category]] are</translate> | ||
Line 17: | Line 19: | ||
|{{#if:{{{9|}}}|<nowiki/>{{int|comma-separator}}{{int|word-separator}}<nowiki/>|<nowiki/>{{int|and}}{{int|word-separator}}<nowiki/>}}{{ll|{{{8}}}|{{{l8|{{{8}}}}}}}}}}{{#if:{{{9|}}} | |{{#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|}}} | |{{#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> | |<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> |
Latest revision as of 18:06, 3 February 2025
Examples
{{Main}}
<translate> Main page:</translate> Main
{{Main|Article 1}}
<translate> Main page:</translate> Article 1
{{Main|Article 1|Article 2|Article Something#3}}
TemplateData
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 |