Template:Main: Difference between revisions

From CinderCivs Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<onlyinclude>
<onlyinclude>
<div style="font-size: 12px; font-style: italic; color: grey; padding: 5px; margin: 10px 0; background-color: #f0f0f0;">
:''{{{2|Main article}}} [[{{{1}}}]]''
    '''Main article:''' [[{{{1}}}]]
</div>
</onlyinclude>
</onlyinclude>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
{
{
     "description": "Template to reference the main article for a section.",
     "description": "Template to reference a related article.",
     "params": {
     "params": {
         "1": {
         "1": {
             "label": "Page name",
             "label": "Page name",
             "description": "Name of the main article to link to.",
             "description": "Name of the article to link to.",
             "example": "Canine behavior",
             "example": "Canine behavior",
             "type": "string",
             "type": "string",
             "required": true
             "required": true
        },
        "2": {
            "label": "Type",
            "description": "Type of related article (e.g., Main article, Further information, See also). Defaults to Main article if not specified.",
            "type": "string",
            "required": false
         }
         }
     }
     }
Line 22: Line 26:


example
example
{{main|Aranna}}
{{main|Admin Shack|Further information:}}

Revision as of 04:16, 27 June 2024

Main article [[{{{1}}}]]


Template to reference a related article.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Page name1

Name of the article to link to.

Example
Canine behavior
Stringrequired
Type2

Type of related article (e.g., Main article, Further information, See also). Defaults to Main article if not specified.

Stringoptional


example

Further information: Admin Shack