Template:About: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 1: Line 1:
:<span style="font-style:italic">This {{#if:{{{section|}}}|section|{{#switch:{{NAMESPACE}}|Template=template|Category=category|Gallery=gallery|=article|page}}}} is {{#switch:{{NAMESPACE}}|Template|Category=for|Gallery=of|about}} {{{1}}}{{#rmatch:{{{1}}}|[.!?][\]']*$||.}} {{#fornumargs:key|value|{{#ifexpr:{{#var:key}} mod 2||For {{#var:value}}, see {{{{{#expr:{{#var:key}}+1}}|}}}{{#rmatch:{{{{{#expr:{{#var:key}}+1}}|}}}|[.!?][\]']*$||.}} <nowiki/>}}}}</span><includeonly>{{#if:{{NAMESPACE}}||{{#if:{{{8|}}}|[[Category:Articles with too many About links]]}}}}</includeonly><noinclude>
:<span style="font-style:italic">This {{#if:{{{section|}}}|section|{{#switch:{{NAMESPACE}}|Template=template|Category=category|Gallery=gallery|=article|page}}}} is {{#switch:{{NAMESPACE}}|Template|Category=for|Gallery=of|about}} {{{1}}}{{#rmatch:{{{1}}}|[.!?][\]']*$||.}} {{#fornumargs:key|value|{{#ifexpr:{{#var:key}} mod 2||For {{#var:value}}, see {{{{{#expr:{{#var:key}}+1}}|}}}{{#rmatch:{{{{{#expr:{{#var:key}}+1}}|}}}|[.!?][\]']*$||.}} <nowiki/>}}}}</span><includeonly>{{#if:{{NAMESPACE}}||{{#if:{{{8|}}}|[[Category:Articles with too many About links]]}}}}</includeonly><noinclude>
== Usage ==
==Usage==
=== Linking ===
===Format===
<pre>
{{about|Description of current page|Description of linked page|[[Title of linked page]]}}
</pre>
 
===Linking===
For the link parameters, always show the full name of the article, e.g. <code><nowiki>[[Mario Kart (series)]]</nowiki></code>.
For the link parameters, always show the full name of the article, e.g. <code><nowiki>[[Mario Kart (series)]]</nowiki></code>.


Line 8: Line 13:
Linking to at least four additional pages will tag the article in [[:Category:Articles with too many About links]], since at that point a disambiguation page should be used to keep the links to a maximum of three.
Linking to at least four additional pages will tag the article in [[:Category:Articles with too many About links]], since at that point a disambiguation page should be used to keep the links to a maximum of three.


=== Sections ===
===Sections===
A <code>section=yes</code> parameter can be added to the template for use at the top of a section.
A <code>section=yes</code> parameter can be added to the template for use at the top of a section.


[[Category:Notice templates]]</noinclude>
[[Category:Notice templates]]</noinclude>