Template:Content section: Difference between revisions
Jump to navigation
Jump to search
imported>Leoetlino (add link icon to links to make it more obvious that headings can be clicked) |
imported>BravelyPeculiar No edit summary |
||
(22 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}}}}}<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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Is not a link? | nolink | If true, don't link or transclude the linked page | Page name | optional |
Page to link to | target | no description | Page name | required |
Section name / link label | text | no description | String | required |
Non-link prefix | prefix | Non-link text in front of the link in the heading. | String | optional |
Heading level | heading_level level | no description | String | optional |
Is file? | isfile | If true, use file icon instead of folder icon | Boolean | optional |