Template:Content section: Difference between revisions

From ZeldaMods (Breath of the Wild)
Jump to navigation Jump to search
imported>Leoetlino
(fall back to target if label is not provided (for more convenience))
imported>BravelyPeculiar
No edit summary
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<h3>[[{{{target}}}|<i class="fas fa-link"></i> {{{text|{{{target}}}}}}]]</h3>
{{#tag: h{{{heading_level|3}}} | {{#if:{{{isfile|}}}|<i class="fas fa-file></i>|<i class="fas fa-folder"></i>}} {{{prefix|}}}{{#if: {{{nolink|}}}|{{{text}}}|[[{{{target}}}|{{{text|{{{target}}}}}}]]}}}}
{{:{{{target}}}}}<div style="clear: both;"></div><noinclude>
{{#ifexist: {{{target}}} |{{:{{{target}}}}}|}}<div style="clear: both;"></div><noinclude>
<noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
        "nolink": {
"label": "Is not a link?",
            "description": "If true, don't link or transclude the linked page",
"type": "wiki-page-name"
        },
"target": {
"target": {
"label": "Page to link to",
"label": "Page to link to",
Line 13: Line 19:
"type": "string",
"type": "string",
"required": true
"required": true
}
},
        "prefix": {
"label": "Non-link prefix",
            "description": "Non-link text in front of the link in the heading.",
"type": "string"
},
        "heading_level": {
"label": "Heading level",
"type": "string",
            "aliases": ["level"]
        },
"isfile": {
"label": "Is file?",
            "description": "If true, use file icon instead of folder icon",
"type": "boolean"
        }
}
}
}
}

Latest revision as of 15:20, 4 April 2019

[[{{{target}}}|{{{target}}}]]

No description.

Template parameters

ParameterDescriptionTypeStatus
Is not a link?nolink

If true, don't link or transclude the linked page

Page nameoptional
Page to link totarget

no description

Page namerequired
Section name / link labeltext

no description

Stringrequired
Non-link prefixprefix

Non-link text in front of the link in the heading.

Stringoptional
Heading levelheading_level level

no description

Stringoptional
Is file?isfile

If true, use file icon instead of folder icon

Booleanoptional