Template:Altnames/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(oops, accidentally moved english doc page to /en. Forgot that {{tl|doc}} doesn't do that.)
 
m (clean up, replaced: {{ModernNote| → {{note|, Category:Notice templates → Category:Inline note templates)
Line 8: Line 8:
* {{param|name1}} ''to'' {{param|name8}} - The alternate classnames.
* {{param|name1}} ''to'' {{param|name8}} - The alternate classnames.
* {{param|misc}} - ''Optional:'' Use to display additional text in the same note.
* {{param|misc}} - ''Optional:'' Use to display additional text in the same note.
* {{param|suf}} - ''Optional:'' This is a suffix that will be added to all elements of the template to display the content in the desired language (if it is translated into it). {{ModernNote|There should be a colon before the language code, for example ":es".}}
* {{param|suf}} - ''Optional:'' This is a suffix that will be added to all elements of the template to display the content in the desired language (if it is translated into it). {{note|There should be a colon before the language code, for example ":es".}}
=== Example ===
=== Example ===
<code style=padding:0><nowiki>{{altnames|name1=x|name2=y|name3=z}}</nowiki></code> would return as:
<code style=padding:0><nowiki>{{altnames|name1=x|name2=y|name3=z}}</nowiki></code> would return as:
Line 21: Line 21:
<!-- Categories below this line, please -->
<!-- Categories below this line, please -->
[[Category:Inline note templates]]
[[Category:Inline note templates]]
[[Category:Notice templates]]
[[Category:Inline note templates]]
}}
}}

Revision as of 11:53, 6 January 2024

Edit-copy.png
This is a documentation subpage for Template:Altnames.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
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}}} - Optional: Use to display additional text in the same note.
  • {{{suf}}} - Optional: This is a suffix that will be added to all elements of the template to display the content in the desired language (if it is translated into it).
    Note.pngNote:There should be a colon before the language code, for example ":es".

Example

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

AltNames.pngAltNames: This entity is also tied to xy and z.

{{altnames|name1=x|game={{game link|portal}}}} would return as:

AltNames.pngAltNames: In Portal Portal , this entity is also tied to x.