Template:Alias: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 14: | Line 14: | ||
* ALIASES: all the aliases as a <nowiki><br></nowiki>-separated list | * ALIASES: all the aliases as a <nowiki><br></nowiki>-separated list | ||
* STAFF: renders the name yellow. For [[Tennis Staff]], who are historically always yellow on forums, discord, etc. If true, set to 1. | * STAFF: renders the name yellow. For [[Tennis Staff]], who are historically always yellow on forums, discord, etc. If true, set to 1. | ||
* | * U: ONLY WHEN IN PAGES. Disable recoloring/tooltips, for special rendering situations like matchboxes. If true, set to 1. | ||
=Usage= | =Usage= | ||
In ''almost'' all cases, just call the template the name without any parameters, so for example <nowiki>{{Johnny}}</nowiki> will render as John1000. | In ''almost'' all cases, just call the template the name without any parameters, so for example <nowiki>{{Johnny}}</nowiki> will render as John1000. | ||
''However'', if being used in a [[Template:MatchboxV2|matchbox]], a list, or anything that uses dynamic category rendering, you need to use the alternate method that only shows the preferred name: <nowiki>{{Johnny| | ''However'', if being used in a [[Template:MatchboxV2|matchbox]], a list, or anything that uses dynamic category rendering, you need to use the alternate method that only shows the preferred name: <nowiki>{{Johnny|U=1}}</nowiki> | ||
</noinclude> | </noinclude> | ||
{{#ifeq:{{{U}}}|1|{{{NAME}}}|{{#ifeq:{{{STAFF}}}|1|<span style="color:gold;">{{#tip-text:{{{NAME}}}|Also known as:<br>{{{ALIASES}}}}}</span>|{{#tip-text:{{{NAME}}}|Also known as:<br>{{{ALIASES}}}}}<nowiki/>}}<nowiki/>}} | {{#ifeq:{{{U}}}|1|{{{NAME}}}|{{#ifeq:{{{STAFF}}}|1|<span style="color:gold;">{{#tip-text:{{{NAME}}}|Also known as:<br>{{{ALIASES}}}}}</span>|{{#tip-text:{{{NAME}}}|Also known as:<br>{{{ALIASES}}}}}<nowiki/>}}<nowiki/>}} | ||