Jump to content

Template:Main: Difference between revisions

From The Perfect Tower II
Lmnt0 (talk | contribs)
Created page with ":''Main article: [[{{{1|{{PAGENAME}}}}}]]''<noinclude> <templatedata> { "params": { "1": { "label": "Page", "description": "Name of the page to link to", "type": "..."
 
No edit summary
 
Line 1: Line 1:
:''Main article: [[{{{1|{{PAGENAME}}}}}]]''<noinclude>
<includeonly><div role="note" class="hatnote navigation-not-searchable">Main {{#if:{{{2|}}}|articles|article}}: [[{{{1|{{PAGENAME}}}}}|{{{l1|{{{1|{{PAGENAME}}}}}}}}]]{{#if:{{{2|}}}|{{#if:{{{3|}}}|,&#32;|&#32;and&#32;}}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}}|&#32;and&#32;[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}</div></includeonly><noinclude>
Points from a section to the page that covers its topic in full. Put it right under the section heading.
 
{{Main|Factory/Recipes}}
 
<pre>{{Main|Factory/Recipes}}
{{Main|Artifacts|Achievements}}
{{Main|Modules#Infinity|l1=Infinity modules}}</pre>
 
<templatedata>
<templatedata>
{
{
"description": "A note under a section heading that links to the page covering the topic in full.",
"format": "inline",
"params": {
"params": {
"1": {
"1": {
"label": "Page",
"label": "Page",
"description": "Name of the page to link to",
"description": "The main page for this section",
"type": "wiki-page-name",
"type": "wiki-page-name",
"example": "Buildings",
"example": "Factory/Recipes",
"default": "Current page name, without namespace",
"default": "The current page",
"suggested": true
"suggested": true
},
"2": {
"label": "Second page",
"type": "wiki-page-name"
},
"3": {
"label": "Third page",
"type": "wiki-page-name"
},
"l1": {
"label": "Label for the first page",
"type": "string"
},
"l2": {
"label": "Label for the second page",
"type": "string"
},
"l3": {
"label": "Label for the third page",
"type": "string"
}
}
},
}
"description": "If a page section is a summary of an article on another page, this template refers the reader to the main article. Should be used directly underneath the section header.",
"format": "inline"
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 19:53, 6 October 2026

Points from a section to the page that covers its topic in full. Put it right under the section heading.

{{Main|Factory/Recipes}}
{{Main|Artifacts|Achievements}}
{{Main|Modules#Infinity|l1=Infinity modules}}

A note under a section heading that links to the page covering the topic in full.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page1

The main page for this section

Default
The current page
Example
Factory/Recipes
Page namesuggested
Second page2

no description

Page nameoptional
Third page3

no description

Page nameoptional
Label for the first pagel1

no description

Stringoptional
Label for the second pagel2

no description

Stringoptional
Label for the third pagel3

no description

Stringoptional