Template:Content section: Difference between revisions
no edit summary
imported>BravelyPeculiar No edit summary |
imported>BravelyPeculiar No edit summary |
||
Line 1: | Line 1: | ||
{{#tag: h{{{heading_level|3}}} |{{ | {{#tag: h{{{heading_level|3}}} | {{#if:{{{isfile|}}}|<i class="fas fa-file></i>|<i class="fas fa-folder"></i>}} {{{prefix|}}}{{#if: {{{islink|}}}}}|[[{{{target}}}|{{{text|{{{target}}}}}}]]|{{{text}}}}} | ||
{{#ifexist: {{{target}}} |{{:{{{target}}}}}|}}<div style="clear: both;"></div><noinclude> | {{#ifexist: {{{target}}} |{{:{{{target}}}}}|}}<div style="clear: both;"></div><noinclude> | ||
<noinclude> | <noinclude> | ||
Line 5: | Line 5: | ||
{ | { | ||
"params": { | "params": { | ||
"islink": { | |||
"label": "Is link?", | |||
"description": "If true, link and transclude the linked page", | |||
"type": "wiki-page-name" | |||
}, | |||
"target": { | "target": { | ||
"label": "Page to link to", | "label": "Page to link to", | ||
"type": "wiki-page-name", | "type": "wiki-page-name", | ||
"required": true | "required": true | ||
}, | }, | ||
"text": { | "text": { | ||
Line 19: | 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": { | "heading_level": { | ||
Line 27: | Line 32: | ||
"isfile": { | "isfile": { | ||
"label": "Is file?", | "label": "Is file?", | ||
"description": " | "description": "If true, use file icon instead of folder icon", | ||
"type": "boolean" | "type": "boolean" | ||
} | } |