|
|
(2 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| <includeonly>{{#vardefine:params|{{#expr: {{#if: {{{2|}}} | 2 | 0 }} + {{#if: {{{3|}}} | 1 | 0 }} + {{#if: {{{4|}}} | 1 | 0 }} + {{#if: {{{5|}}} | 1 | 0 }} + {{#if: {{{6|}}} | 1 | 0 }} + {{#if: {{{7|}}} | 1 | 0 }} + {{#if: {{{8|}}} | 1 | 0 }} + {{#if: {{{9|}}} | 1 | 0 }} + {{#if: {{{10|}}} | 1 | 0 }} + {{#if: {{{11|}}} | 1 | 0 }} + {{#if: {{{12|}}} | 1 | 0 }} }}
| | {{#invoke:main|main}}<noinclude>{{/doc}}</noinclude> |
| }}{{hatnote|Main {{#switch: {{NAMESPACE:{{{1}}}}}||{{ns:10000}}|{{ns:10002}}=article|page}}{{#ifexpr: {{#var:params}} > 1 | s }}: {{#if: {{{title1|}}} | [[{{{1}}}|{{{title1}}}]] | [[{{{1}}}|{{#replace: {{{1}}} | # | § }}]] }}{{
| |
| #if: {{{2|}}} | {{#ifexpr: {{#var:params}} > 2 | , |  and }} {{#if: {{{title2|}}} | [[{{{2}}}|{{{title2}}}]] | [[{{{2}}}|{{#replace: {{{2}}} | # | § }}]] }} }}{{
| |
| #if: {{{3|}}} | {{#ifexpr: {{#var:params}} > 3 | , |  and }} {{#if: {{{title3|}}} | [[{{{3}}}|{{{title3}}}]] | [[{{{3}}}|{{#replace: {{{3}}} | # | § }}]] }} }}{{
| |
| #if: {{{4|}}} | {{#ifexpr: {{#var:params}} > 4 | , |  and }} {{#if: {{{title4|}}} | [[{{{4}}}|{{{title4}}}]] | [[{{{4}}}|{{#replace: {{{4}}} | # | § }}]] }} }}{{
| |
| #if: {{{5|}}} | {{#ifexpr: {{#var:params}} > 5 | , |  and }} {{#if: {{{title5|}}} | [[{{{5}}}|{{{title5}}}]] | [[{{{5}}}|{{#replace: {{{5}}} | # | § }}]] }} }}{{
| |
| #if: {{{6|}}} | {{#ifexpr: {{#var:params}} > 6 | , |  and }} {{#if: {{{title6|}}} | [[{{{6}}}|{{{title6}}}]] | [[{{{6}}}|{{#replace: {{{6}}} | # | § }}]] }} }}{{
| |
| #if: {{{7|}}} | {{#ifexpr: {{#var:params}} > 7 | , |  and }} {{#if: {{{title7|}}} | [[{{{7}}}|{{{title7}}}]] | [[{{{7}}}|{{#replace: {{{7}}} | # | § }}]] }} }}{{
| |
| #if: {{{8|}}} | {{#ifexpr: {{#var:params}} > 8 | , |  and }} {{#if: {{{title8|}}} | [[{{{8}}}|{{{title8}}}]] | [[{{{8}}}|{{#replace: {{{8}}} | # | § }}]] }} }}{{
| |
| #if: {{{9|}}} | {{#ifexpr: {{#var:params}} > 9 | , |  and }} {{#if: {{{title9|}}} | [[{{{9}}}|{{{title9}}}]] | [[{{{9}}}|{{#replace: {{{9}}} | # | § }}]] }} }}{{
| |
| #if: {{{10|}}} | {{#ifexpr: {{#var:params}} > 10 | , |  and }} {{#if: {{{title10|}}} | [[{{{10}}}|{{{title10}}}]] | [[{{{10}}}|{{#replace: {{{10}}} | # | § }}]] }} }}{{
| |
| #if: {{{11|}}} | {{#ifexpr: {{#var:params}} > 11 | , |  and }} {{#if: {{{title11|}}} | [[{{{11}}}|{{{title11}}}]] | [[{{{11}}}|{{#replace: {{{11}}} | # | § }}]] }} }}{{
| |
| #if: {{{12|}}} |  and {{#if: {{{title12|}}} | [[{{{12}}}|{{{title12}}}]] | [[{{{12}}}|{{#replace: {{{12}}} | # | § }}]] }} }}}}</includeonly><noinclude>
| |
| {{Documentation}} | |
| <!-- Put categories/interwiki on the documentation page -->
| |
| </noinclude> | |
This template is used at the start of a section to link to the main article on that subject.
TemplateData
This template is used after the heading of a section, to link to a sub-article (or sub-articles) that is entirely about the topic of the section. The template will display, in italics, "Main article: Article 1, Article 2 and Article 3"
Template parameters[Edit template data]
This template has custom formatting.
Parameter | Description | Type | Status |
---|
Page 1 | 1 | The name of the first page that you want to link to. If this is not specified, the current page name (with no namespace prefix) is used instead.
| Page name | suggested |
---|
Page 2 | 2 | The name of the second page that you want to link to.
| Page name | optional |
---|
Page 3 | 3 | The name of the third page that you want to link to. More pages can be added using the parameters "4", "5", etc.
| Page name | optional |
---|
Label 1 | l1 label 1 | What the first linked page is to be displayed as.
| String | optional |
---|
Label 2 | l2 label 2 | What the second linked page is to be displayed as.
| String | optional |
---|
Label 3 | l3 label 3 | What the third linked page is to be displayed as. Other labels can be added by using increasing numbers (starting with "l4" for page 4) as parameter names.
| String | optional |
---|
Self reference | selfref | Set to "yes" if the template is a self-reference to Wikipedia that would not make sense on mirrors or forks of the Wikipedia site.
| Boolean | optional |
---|