Template:DisplayName: Difference between revisions
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
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" | |||
} | } | ||
}, | }, | ||
"description": "Show the display name for the given character or person, given their page, defaults to the given name if a page doesn't exist.", | "description": "Show the display name for the given character or person, given their page, as a link to that page (defaults to the given name if a page doesn't exist).", | ||
"format": "inline" | "format": "inline" | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |