Template:Main: Difference between revisions

From Campaigns
Jump to navigation Jump to search
m 1 revision imported
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<languages/>
<onlyinclude>{{hatnote|extraclasses=relarticle mainarticle|1={{#ifeq:{{SUBJECTSPACE}}|Category
<onlyinclude>{{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>
   |The main pages for this [[Help:Categories|category]] are
   |<translate><!--T:18--> The main page for this [[<tvar name=cats-help>Special:MyLanguage/Help:Categories</tvar>|category]] is</translate>
   |The main page for this [[Help:Categories|category]] is
   }}
   }}
|{{#if:{{{2|}}}
|{{#if:{{{2|}}}
   |<translate><!--T:13--> Main pages:</translate>
   |Main pages:
   |<translate><!--T:19--> Main page:</translate>
   |Main page:
   }}
   }}
}} {{Separated entries
}} {{Separated entries
|1={{ll/s|{{{1|{{PAGENAME:{{translatable}}}}}}}|{{{l1|}}}}}
|1={{ll|{{{1|{{PAGENAME}}}}}|{{{l1|}}}}}
|2={{#if:{{{2|}}}|{{ll/s|{{{2}}}|{{{l2|}}}}}}}
|2={{#if:{{{2|}}}|{{ll|{{{2}}}|{{{l2|}}}}}}}
|3={{#if:{{{3|}}}|{{ll/s|{{{3}}}|{{{l3|}}}}}}}
|3={{#if:{{{3|}}}|{{ll|{{{3}}}|{{{l3|}}}}}}}
|4={{#if:{{{4|}}}|{{ll/s|{{{4}}}|{{{l4|}}}}}}}
|4={{#if:{{{4|}}}|{{ll|{{{4}}}|{{{l4|}}}}}}}
|5={{#if:{{{5|}}}|{{ll/s|{{{5}}}|{{{l5|}}}}}}}
|5={{#if:{{{5|}}}|{{ll|{{{5}}}|{{{l5|}}}}}}}
|6={{#if:{{{6|}}}|{{ll/s|{{{6}}}|{{{l6|}}}}}}}
|6={{#if:{{{6|}}}|{{ll|{{{6}}}|{{{l6|}}}}}}}
|7={{#if:{{{7|}}}|{{ll/s|{{{7}}}|{{{l7|}}}}}}}
|7={{#if:{{{7|}}}|{{ll|{{{7}}}|{{{l7|}}}}}}}
|8={{#if:{{{8|}}}|{{ll/s|{{{8}}}|{{{l8|}}}}}}}
|8={{#if:{{{8|}}}|{{ll|{{{8}}}|{{{l8|}}}}}}}
|9={{#if:{{{9|}}}|{{ll/s|{{{9}}}|{{{l9|}}}}}}}
|9={{#if:{{{9|}}}|{{ll|{{{9}}}|{{{l9|}}}}}}}
|10={{#if:{{{10|}}}|{{ll/s|{{{10}}}|{{{l10|}}}}}}}
|10={{#if:{{{10|}}}|{{ll|{{{10}}}|{{{l10|}}}}}}}
|separator=<nowiki/>{{int|comma-separator}}<nowiki/>
|separator=<nowiki/>{{int|comma-separator}}<nowiki/>
|conjunction=<nowiki/>{{int|and}}{{int|word-separator}}<nowiki/>
|conjunction=<nowiki/>{{int|and}}{{int|word-separator}}<nowiki/>
}}{{#if:{{{11|}}}|&#32; <translate><!--T:14--> (too many parameters in <tvar name=code1>&#123;&#123;</tvar>[[<tvar name=link>Template:main</tvar>|main]]<tvar name=code2>&#125;&#125;</tvar>)</translate>}}}}</onlyinclude>
}}{{#if:{{{11|}}}|&#32; (too many parameters in &#123;&#123;[[Template:main|main]]&#125;&#125;)}}}}</onlyinclude>
{{Documentation|content=
{{Documentation|content=


<translate>
== Examples ==
== Examples == <!--T:16-->
</translate>
<pre>
<pre>
{{Main}}
{{Main}}
Line 41: Line 38:
{{Main|Article 1|Article 2|Article Something#3}}
{{Main|Article 1|Article 2|Article Something#3}}


<translate>
==Template data==
==Template data== <!--T:17-->
</translate>
{{Template:Main/doc}}
{{Template:Main/doc}}


}}
}}

Latest revision as of 12:06, 10 December 2021

Main page: Main
Template documentation

Examples

{{Main}}
Main page: Main
{{Main|Article 1}}
Main page: Article 1
{{Main|Article 1|Article 2|Article Something#3}}

Template data

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.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page 11

Page name of related article.

Page namerequired
Label 1l1

Custom label for the link to Page 1.

Default
Defaults to the name of Page 1.
Stringoptional
Page 22

no description

Page nameoptional
Label 2l2

no description

Default
Defaults to the name of Page 2.
Stringoptional
Page 33

no description

Page nameoptional
Label 3l3

no description

Default
Defaults to the name of Page 3.
Stringoptional

[[Category:Templates{{#translation:}}]]