Template:Altnames: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added ability to use misc text)
m (Changed hover 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> }}. {{#if:{{{misc|}}} | {{{misc}}}}}</div></includeonly><noinclude>
<includeonly><div title="Alternate classnames" 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.



Revision as of 11:22, 20 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.