Template:Internal names: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary
mNo edit summary
 
(29 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{| id="internal-names" class="wikitable" style="{{#if:{{{float|}}}|float:left}}"
<templatestyles src="Internal names/styles.css"/><includeonly>
{| id="internal-names" class="wikitable {{#if:{{#forargs:game|key|value|{{#var:value}}}}||no-games}} {{#if:{{#forargs:file|key|value|{{#var:value}}}}||no-files}} {{#if:{{#forargs:meaning|key|value|{{#var:value}}}}||no-meanings}}"
! Game
! File
! Name
! Name
! Meaning
! Meaning
{{#forargs:name|key|value|<nowiki/>
{{#forargs:name|key|value|<nowiki/>
{{!}}-
{{!}}-
{{!}} {{{name{{#var:key}}}}} {{!}}{{!}} {{{meaning{{#var:key}}}}}
{{#ifexpr:{{#var:g|1}}>1|{{#vardefine:g|{{#expr:{{#var:g}}-1}}}}|<nowiki/>
}}
{{!}}rowspan{{=}}"{{#vardefine:g|1}}{{#while:|{{#if:{{{game{{#expr:{{#var:key|1}}+{{#var:g}}}}|}}}|{{#ifeq:{{{game{{#expr:{{#var:key|1}}+{{#var:g}}}}|}}}|^|true|{{#ifeq:{{{game{{#expr:{{#var:key|1}}+{{#var:g}}}}|}}}|{{#replace:{{#replace:{{{game{{#var:key}}|}}}|[}}|]}}|true}}}}}}|{{#vardefine:g|{{#expr:{{#var:g}}+1}}}}}}{{#var:g}}"{{!}} {{{game{{#var:key}}|}}}
|}</includeonly><noinclude>
}}{{#ifexpr:{{#var:f|1}}>1|{{#vardefine:f|{{#expr:{{#var:f}}-1}}}}|<nowiki/>
This template allows putting information about the internal names of article subjects and their respective meanings into an article.
{{!}}rowspan{{=}}"{{#vardefine:f|1}}{{#while:|{{#if:{{{file{{#expr:{{#var:key|1}}+{{#var:f}}}}|}}}|{{#ifeq:{{{file{{#expr:{{#var:key|1}}+{{#var:f}}}}|}}}|^|true|{{#ifeq:{{{file{{#expr:{{#var:key|1}}+{{#var:f}}}}|}}}|{{{file{{#var:key}}|}}}|true}}}}}}|{{#vardefine:f|{{#expr:{{#var:f}}+1}}}}}}{{#var:f}}"{{!}} {{{file{{#var:key}}|}}}
 
}}{{#ifexpr:{{#var:n|1}}>1|{{#vardefine:n|{{#expr:{{#var:n}}-1}}}}|<nowiki/>
This template should be placed in the "Internal names" section of an article. If accompanied by {{tem|foreign names}}, then "Internal names" and "Names in other languages" should be made sub-sections of an "Additional names" section. The syntax is as follows:
{{!}}rowspan{{=}}"{{#vardefine:n|1}}{{#while:|{{#if:{{{name{{#expr:{{#var:key|1}}+{{#var:n}}}}|}}}|{{#ifeq:{{{name{{#expr:{{#var:key|1}}+{{#var:n}}}}|}}}|^|true|{{#ifeq:{{{name{{#expr:{{#var:key|1}}+{{#var:n}}}}|}}}|{{{name{{#var:key}}|}}}|true}}}}}}|{{#vardefine:n|{{#expr:{{#var:n}}+1}}}}}}{{#var:n}}"{{!}} {{{name{{#var:key}}|}}}
 
}}{{#ifexpr:{{#var:m|1}}>1|{{#vardefine:m|{{#expr:{{#var:m}}-1}}}}|<nowiki/>
<pre>
{{!}}rowspan{{=}}"{{#vardefine:m|1}}{{#while:|{{#if:{{{meaning{{#expr:{{#var:key|1}}+{{#var:m}}}}|}}}|{{#ifeq:{{{meaning{{#expr:{{#var:key|1}}+{{#var:m}}}}|-}}}|^|true|{{#ifeq:{{{meaning{{#expr:{{#var:key|1}}+{{#var:m}}}}|-}}}|{{{meaning{{#var:key}}|-}}}|true}}}}}}|{{#vardefine:m|{{#expr:{{#var:m}}+1}}}}}}{{#var:m}}"{{!}} {{{meaning{{#var:key}}|-}}}
{{internal names
}}}}
|name1=
|}</includeonly><noinclude>{{/doc}}</noinclude>
|meaning1=
}}
</pre>
 
This works for any amount of numbered <code>name</code> and <code>meaning</code> parameters.
 
[[Category:Formatting templates]]</noinclude>

Latest revision as of 12:38, March 31, 2025

This template organizes information about the internal names of article subjects and their respective meanings into a table.

Usage

This template should be placed in an "Internal names" subsection of an article's "Naming" section. If there is no other naming information present besides internal names, then "Internal names" should be a top-level section instead. The syntax is as follows:

{{internal names
|game1=''[[Game Name]]''
|file1=<tt>filename</tt>
|name1=Name
|meaning1=Meaning
}}

This works for any amount of numbered game/file/name/meaning parameters. The Game, File, and/or Meaning columns can be optionally removed by omitting the corresponding parameter(s).

Notes

  • Omit the meaning parameter to display a dash if the meaning is self-explanatory. Omitting all meanings will remove the column.
  • Do not use line breaks within an entry; use a new set of parameters for each line. Rowspans are applied to duplicate values or if a subsequent parameter is set to ^.
  • When possible, the file parameter should include the file path as well, starting from the game's root directory (e.g. vol in the case of Wii U games).
  • File paths and names (used in the file parameters) should be encapsulated by <tt></tt> tags.