Template:Altnames: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Improved template)
(Added ability to use misc text)
Line 1: Line 1:
<includeonly><div title="Information" style="margin:0.4em 1em 0.5em;">[[File:AltNames.png|link=|alt=]] This entity is also tied to {{#if:{{{name1|}}} | <code>{{{name1}}}</code> }}{{#if:{{{name2|}}} | , <code>{{{name2}}}</code> }}{{#if:{{{name3|}}} | , <code>{{{name3}}}</code> }}.</div></includeonly><noinclude>
<includeonly><div title="Information" style="margin:0.4em 1em 0.5em;">[[File:AltNames.png|link=|alt=]] This entity is also tied to {{#if:{{{name1|}}} | <code>{{{name1}}}</code> }}{{#if:{{{name2|}}} | , <code>{{{name2}}}</code> }}{{#if:{{{name3|}}} | , <code>{{{name3}}}</code> }}. {{#if:{{{misc|}}} | {{{misc}}}}}</div></includeonly><noinclude>
This template is intended to be used when an entity is tied to multiple classnames, especially those that do not appear to serve any purpose other than deprecation.
This template is intended to be used when an entity is tied to multiple classnames, especially those that do not appear to serve any purpose other than deprecation.


List all alternate classnames with <code>name1</code>, <code>name2</code>, and so on. <nowiki>{{altnames|name1=x|name2=y|name3=z}}</nowiki> would return as:
List all alternate classnames with <code>name1</code>, <code>name2</code>, and so on. <nowiki>{{altnames|name1=x|name2=y|name3=z}}</nowiki> would return as:
{{altnames|name1=x|name2=y|name3=z}}
{{altnames|name1=x|name2=y|name3=z}}
Use <code>misc</code> to display additional text in the same note.
[[Category:Notice templates|{{PAGENAME}}]]</noinclude>
[[Category:Notice templates|{{PAGENAME}}]]</noinclude>

Revision as of 16:17, 19 September 2019

This template is intended to be used when an entity is tied to multiple classnames, especially those that do not appear to serve any purpose other than deprecation.

List all alternate classnames with name1, name2, and so on. {{altnames|name1=x|name2=y|name3=z}} would return as:

This entity is also tied to x, y, z.

Use misc to display additional text in the same note.