Template:Altnames: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added to "Inline note templates" category)
Line 1: Line 1:
<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>
{{lang|Template:Altnames}}
<onlyinclude><includeonly>{{inline note|[[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: {{{name4|}}} | , <code>{{{name4}}}</code> }}<!--
-->{{#if: {{{name5|}}} | , <code>{{{name5}}}</code> }}<!--
-->{{#if: {{{name6|}}} | , <code>{{{name6}}}</code> }}<!--
-->{{#if: {{{name7|}}} | , <code>{{{name7}}}</code> }}<!--
-->{{#if: {{{name8|}}} | , <code>{{{name8}}}</code> }}<!--
-->. {{{misc|}}} }}</includeonly></onlyinclude>
 
{{documentation|content=
{{inline note templates}}
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:
== Usage ==
=== Parameters ===
* {{param|name1}} ''to'' {{param|name8}} - The alternate classnames.
* {{param|misc}} - Use to display additional text in the same note.
=== Example ===
<code><nowiki>{{altnames|name1=x|name2=y|name3=z}}</nowiki></code> 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:Inline note templates|{{PAGENAME}}]]</noinclude>
}}
 
[[Category:Inline note templates]]
[[Category:Notice templates]]

Revision as of 19:39, 14 December 2021

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
Inline note templates
Template Pages using it
28 August 2024
{{note}} 6,436
{{warning}} 1,253
{{bug}} 1,192
{{tip}} 1,516
{{todo}} 1,628
{{inline note}} 2,188
{{confirm}} 672
{{question}} 11
{{fix}} 170
{{important}} 459
{{clarify}} 169
{{elaborate}} 18
{{main}} 143
{{distinguish}} 85
{{workaround}} 122
{{seealso}} 145
{{when}} 1
{{where}} 0
{{which}} 2
{{why}} 38
{{idea}} 21
{{placementTip}} 13
{{codenote}} 21
{{altnames}} 35
{{deprecated}} 109
{{how}} 23
{{example}} 16
{{confusion}} 53
{{thanks}} 7
{{code Fix}} 9 + 7 (16)
{{vote}} 4

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.

Usage

Parameters

  • {{{name1}}} to {{{name8}}} - The alternate classnames.
  • {{{misc}}} - Use to display additional text in the same note.

Example

{{altnames|name1=x|name2=y|name3=z}} would return as:

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