Template:Content section: Difference between revisions
no edit summary
imported>Leoetlino No edit summary |
imported>BravelyPeculiar No edit summary |
||
(28 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#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}}}}}<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" | |||
} | |||
} | } | ||
} | } | ||
</templatedata> | </templatedata> | ||
[[Category: ZeldaMods templates]] | |||
</noinclude> | </noinclude> |