Changes

Jump to: navigation, search

Template:Main

1,164 bytes removed, 4 years ago
m
Protected "Template:Main": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
<noinclude>{{TagSyncPageHatnote|Main {{{type|article}}}</noinclude><includeonly><span class="box headnote">''Main article{{#if:{{{2|}}}|s}}&#58; {{#if:{{{1plural|s}}}|}}: {{#if:{{{l11<includeonly>|</includeonly>}}} |[[{{{1}}}autolink|{{{l11<noinclude>|{{{1SITENAME}}</noinclude>}}}}]]|[[{{{1}}}]]}} |'''Error: [[Template:Main|Template must be given at least one article name]]''' }}{{#if:{{{2|}}} |{{#if:{{{3|}}}|,&#32;|&#32nbsp;and&#32;}}{{#if:{{{l2|}}}|[[{{{2}}}|{{{l2autolink|{{{2}}}}}}]]|[[{{{2}}}]]}}}}{{#if:{{{3|}}} |, {{#if:{{{4|}}}|,&#32;|,&#32;and&#32;}}{{#if:{{{l3autolink|}}}|[[{{{3}}}|{{{l3|{{{3}}}}}}]]|[[{{{3}}}]]}}}}{{#if:{{{4|}}} |, {{#if:{{{5|}}}|,&#32;|,&#32;and&#32;}}{{#if:{{{l4|}}}autolink|[[{{{4}}}|{{{l4|{{{4}}}}}}]]|[[{{{4}}}]]}}}}{{#if:{{{5|}}} |, {{#if:{{{6|}}}|,&#32;|,&#32;and&#32;}}{{#if:{{{l5autolink|}}}|[[{{{5}}}|{{{l5|{{{5}}}}}}]]|[[{{{5}}}]]}}}}{{#if:{{{6|}}} |, {{#if:{{{7|}}}|,&#32;|,&#32;and&#32;}}{{#if:{{{l6|}}}autolink|[[{{{6}}}|{{{l6|{{{6}}}}}}]]|[[{{{6}}}]]}}}}{{#if:{{{7|}}} |, {{#if:{{{8|}}}|,&#32;|,&#32;and&#32;}}{{#if:autolink|{{{l7|7}}}}}}|[[}{{ #if: {{{78|}}}|, {{#if: {l7|{{{79|}}}|| and }}}]]{{autolink|[[{{{78}}}]]}}}}{{#if:{{{89|}}} |, {{#if:{{{910|}}}|,&#32;|,&#32;and&#32;}}{{#if:autolink|{{{l8|9}}}}}}}|[[{{ #if: {{{810|}}}|, {{#if: {l8|{{{811|}}}|| and }}}]]{{autolink|[[{{{810}}}]]}}}}{{#if:{{{911|}}} |, {{#if:{{{1012|}}}|,&#32;|,&#32;and&#32;}}{{#if:autolink|{{{l9|11}}}}}}|[[}{{ #if: {{{912|}}}|, {{#if: {l9|{{{913|}}}|| and }}}]]{{autolink|[[{{{912}}}]]}}}}{{#if:{{{1013|}}} |, and {{#if:{{{l1014|}}}|[[{{{10| and }}}|{{{l10autolink|{{{1013}}}}}}}]]|[[{{ #if: {{{1014|}}}]]}}}}''| , {{#if:{{{1115| }}}|&#32; (too many parameters in &#123;&#123;[[Template:main|main]]&#125;&#125;)and }}</span></includeonly><noinclude>{{Tlxautolink|Main{{{14}}}}} is used below section titles to explain where the main article on the subject is. ==Usage== }}{{Tlx|Main|Article 1|3=l1=Article 1 Displaytitle|4=...|5=''Article 10''}} * Up to 10 parameters are permitted: only the first is mandatory.* Parameters in the form l# may be used to change the displayed text of a article link.* The list is dynamically generated so that the word "and" is always placed between the final two entries.* If more than 10 entries are supplied, a message will be displayed pointing out the problem.; NB if: no newlines are permitted else the article links will be broken. ==Example=={| class="box table bordered innerbordered colored type-basic cell-align-top"!| Code!| Result|- ||{{Tlx15|Main}}}||, and {{Main}}autolink|- ||{{Tlx|Main|Article}}||{{Main|Article}15}|- ||{{Tlx|Main|Article|Article}}||{{Main|Article|Article}}|- ||{{Tlx|Main|Article|Article|Article}}||{{Main|Article|Article|Article}}|- ||#if: {{{Tlx|Main|Article|Article16|4=l2=Alternate title}}||{{Main|Article|Article|l2=Alternate title}}|}— '''And so on up to <br />Error: [[Template:See also|Too many links specified (maximum is 15 parameters.)]]''' {{TagSync|include: *}}}}<noinclude>[[Category:Templates/reader flow|{{PAGENAMEDocumentation}}]]</noinclude>

Navigation menu