Template:DisplayName: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>[[{{{1}}}|{{Default|{{#show:{{{1}}}|?Display Name#-=}}|{{{1}}}}}]]</includeonly><noinclude> | <includeonly>{{#if:{{{no_link|}}}|{{Default|{{#show:{{{1}}}|?Display Name#-=}}|{{{1}}}}}|[[{{{1}}}|{{Default|{{#show:{{{1}}}|?Display Name#-=}}|{{{1}}}}}]]}}</includeonly><noinclude> | ||
== Examples == | == Examples == | ||
Line 9: | Line 9: | ||
{{DisplayName|FAITOW-chan}} | {{DisplayName|FAITOW-chan}} | ||
<code><nowiki>{{DisplayName|Joseph Anderson|no_link=1}}</nowiki></code> | |||
{{DisplayName|Joseph Anderson|no_link=1}} | |||
== Template Data == | == Template Data == | ||
Line 18: | Line 22: | ||
"type": "wiki-page-name", | "type": "wiki-page-name", | ||
"required": true | "required": true | ||
}, | |||
"no_link": { | |||
"label": "No Link", | |||
"description": "If set to 1, don't link to the page.", | |||
"type": "boolean", | |||
"default": "0" | |||
} | } | ||
}, | }, |