Template:Main: Difference between revisions

From MC Public Wiki
Jump to navigation Jump to search
(Created page with "{{Rellink|extraclasses=relarticle mainarticle|{{#ifeq:{{SUBJECTSPACE}}|Category|The main article for this category is|Main {{#ifeq:{{NAMESPACE:{{{1}}...")
 
m (1 revision: and again)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Rellink|extraclasses=relarticle mainarticle|{{#ifeq:{{SUBJECTSPACE}}|Category|The main article for this [[Wikipedia:Categorization|category]] is|Main {{#ifeq:{{NAMESPACE:{{{1}}}}}||article|page}}{{#if:{{{2|}}}|s}}:}} [[{{{1|{{PAGENAME}}}}}|{{{l1|{{{1|{{PAGENAME}}}}}}}}]]{{#if:{{{2| }}}
<includeonly>:''Main article: {{ #if:{{{2|}}} | [[{{{1}}}|{{{2}}}]] | [[{{{1}}}]] }}''</includeonly><noinclude>
|{{#if:{{{3|}}}|,&#32;|&#32;and&#32;}}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}}
{{/doc}}
|{{#if:{{{4|}}}|,&#32;|,&#32;and&#32;}}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}}
 
|{{#if:{{{5|}}}|,&#32;|,&#32;and&#32;}}[[{{{4}}}|{{{l4|{{{4}}}}}}]]}}{{#if:{{{5|}}}
[[Category:Templates|M]][[fr:Modèle:Article principal]]
|{{#if:{{{6|}}}|,&#32;|,&#32;and&#32;}}[[{{{5}}}|{{{l5|{{{5}}}}}}]]}}{{#if:{{{6|}}}
|{{#if:{{{7|}}}|,&#32;|,&#32;and&#32;}}[[{{{6}}}|{{{l6|{{{6}}}}}}]]}}{{#if:{{{7|}}}
|{{#if:{{{8|}}}|,&#32;|,&#32;and&#32;}}[[{{{7}}}|{{{l7|{{{7}}}}}}]]}}{{#if:{{{8|}}}
|{{#if:{{{9|}}}|,&#32;|,&#32;and&#32;}}[[{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}}
|{{#if:{{{10|}}}|,&#32;|,&#32;and&#32;}}[[{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}}
|, and [[{{{10}}}|{{{l10|{{{10}}}}}}]]}}{{#if:{{{11| }}}|&#32; (too many parameters in &#123;&#123;[[Template:main|main]]&#125;&#125;)}}}}<noinclude>
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 00:17, 6 March 2012

{{#vardefine: nodoc | {{{nodoc}}} }}{{#vardefine: baddoc | {{{baddoc}}} }}

Template-info.png Documentation

This template should be put under a heading which has an article.

The template is sometimes accompanied by a very brief summary of the article it is linking to.

Usage

{{main|link|optional title}}

Examples

== Storage Minecart ==
{{main|Storage Minecart}}
Storage Minecarts can be used to store items and easily transport them.
results in

Storage Minecart

Main article: Storage Minecart
Storage Minecarts can be used to store items and easily transport them.


== Water Ladder ==
{{main|Tutorials/Water Ladder|Water Ladder}}
results in

Water Ladder

Main article: Water Ladder

The above documentation is transcluded from Template:Main/doc. (edit | history)

fr:Modèle:Article principal