Template:Main: Difference between revisions

From Irony Wiki
Jump to navigation Jump to search
RT (talk | contribs)
Copy from MediaWiki
 
RT (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
</noinclude><includeonly>{{hatnote|extraclasses=relarticle mainarticle|1={{#ifeq:{{SUBJECTSPACE}}|Category
</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>
   | The main pages for this [[<tvar name=cats-help>Special:MyLanguage/Help:Categories</tvar>|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 [[<tvar name=cats-help>Special:MyLanguage/Help:Categories</tvar>|category]] is
   }}
   }}
|{{#if:{{{2|}}}
|{{#if:{{{2|}}}
   |<translate><!--T:13--> Main pages:</translate>
   | Main pages:
   |<translate><!--T:19--> Main page:</translate>
   | Main page:
   }}
   }}
}} [[Special:MyLanguage/{{{1|{{PAGENAME:{{translatable}}}}}}}|{{{l1|{{{1|{{PAGENAME:{{translatable}}}}}}}}}}]]{{#if:{{{2| }}}
}} [[Special:MyLanguage/{{{1|{{PAGENAME:{{translatable}}}}}}}|{{{l1|{{{1|{{PAGENAME:{{translatable}}}}}}}}}}]]{{#if:{{{2| }}}
Line 23: Line 23:
{{documentation|content=
{{documentation|content=


<translate>
== Examples == <!--T:16-->
</translate>
<pre>
<pre>
{{Main}}
{{Main}}
Line 45: Line 42:


}}
}}
[[Category:Templates{{#translation:}}]]
</noinclude>
</noinclude>

Latest revision as of 15:19, 2 July 2023


Documentation

Script error: No such module "Template translation". Template:TemplateData header

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. It includes Special:MyLanguage prefix.

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

Template:Sandbox other