Jump to content

Template:DisplayName: Difference between revisions

From Joepedia
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>

Latest revision as of 22:38, 6 March 2025

Examples

{{DisplayName|Epheoko}}

epheoko

{{DisplayName|FAITOW-chan}}

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).

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Person/Character Page1

The page for the person or character in the context.

Page namerequired
No Linkno_link

If set to 1, don't link to the page.

Default
0
Booleanoptional