Template:Main: Difference between revisions

From Melvor Idle
m (Re-introduce newline in previous revision of this template)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><onlyinclude>- ''Main article: [[{{{Reference}}}{{#if:{{{Name|}}}|{{!}}{{{Name|}}}|}}]]''
{{#invoke:Hatnote|hatnote|Main article: [[{{{Reference}}}{{#if:{{{Name|}}}|{{!}}{{{Name|}}}|}}]]}}<noinclude>
</onlyinclude></includeonly>
 
<noinclude>
{{/doc}}</noinclude>
<templatedata>
{
"params": {
"Reference": {
"required": true,
"description": "Name of a page or section within a page",
"type": "string"
},
"Name": {
"description": "Name to display if not the same as Reference",
"type": "string"
}
},
"paramOrder": [
"Reference",
"Name"
],
"description": "References the main page for a shorter page or section of a page.",
"format": "inline"
}
</templatedata>
</noinclude>

Latest revision as of 12:44, 19 July 2024

References the main page for a shorter page or section of a page.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
ReferenceReference

Name of a page or section within a page

Stringrequired
NameName

Name to display if not the same as Reference

Stringoptional