Template:DisplayName: Difference between revisions
Appearance
Created page with "<includeonly>[[{{{1}}}|{{Default|{{#show:{{{1}}}|?Display Name#-=}}|{{{1}}}}}]]</includeonly><noinclude> == Examples == <code><nowiki>{{DisplayName|Joseph Anderson}}</nowiki></code> <code><nowiki>{{DisplayName|FAITOW-chan}}</nowiki></code> == Template Data == <templatedata>{ "params": { "1": { "label": "Person/Character Page", "description": "The page for the person or character in the context.", "type": "wiki-page-name", "required": true } }, "desc..." |
No edit summary |
||
(2 intermediate revisions 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 == | ||
<code><nowiki>{{DisplayName| | <code><nowiki>{{DisplayName|Epheoko}}</nowiki></code> | ||
{{DisplayName|Epheoko}} | |||
<code><nowiki>{{DisplayName|FAITOW-chan}}</nowiki></code> | <code><nowiki>{{DisplayName|FAITOW-chan}}</nowiki></code> | ||
{{DisplayName|FAITOW-chan}} | |||
<code><nowiki>{{DisplayName|Joseph Anderson|no_link=1}}</nowiki></code> | |||
{{DisplayName|Joseph Anderson|no_link=1}} | |||
== Template Data == | == Template Data == | ||
Line 14: | 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.", | "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> |
Latest revision as of 22:38, 6 March 2025
Examples
{{DisplayName|Epheoko}}
{{DisplayName|FAITOW-chan}}
{{DisplayName|Joseph Anderson|no_link=1}}
Joseph Anderson
Template Data
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).
Parameter | Description | Type | Status | |
---|---|---|---|---|
Person/Character Page | 1 | The page for the person or character in the context. | Page name | required |
No Link | no_link | If set to 1, don't link to the page.
| Boolean | optional |