Template:Main: Difference between revisions

From CinderCivs Wiki
Jump to navigation Jump to search
(Created page with "<onlyinclude> <div style="font-size: 12px; font-style: italic; color: grey; padding: 5px; margin: 10px 0;"> <span style="background-color: #f0f0f0; padding: 2px;"> '''Main article:''' [[{{{1}}}]] </span> </div> </onlyinclude> <noinclude> <templatedata> { "description": "Template to reference the main article for a section.", "params": { "1": { "label": "Page name", "description": "Name of the main article to link to...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude>
<onlyinclude>
<div style="font-size: 12px; font-style: italic; color: grey; padding: 5px; margin: 10px 0;">
:''{{{2|Main article:}}} [[{{{1}}}]]''
    <span style="background-color: #f0f0f0; padding: 2px;">
        '''Main article:''' [[{{{1}}}]]
    </span>
</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",
             "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 24: Line 25:


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

Latest revision as of 07: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.

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