Template:Internal names: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 14: Line 14:
{{!}}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}}|}}}
{{!}}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/>
}}{{#ifexpr:{{#var:m|1}}>1|{{#vardefine:m|{{#expr:{{#var:m}}-1}}}}|<nowiki/>
{{!}}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}}|-}}}
{{!}}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}}|-}}}
}}}}
}}}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>{{/doc}}</noinclude>
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 the "Internal names" section of an article. If accompanied by {{tem|foreign names}}, then "Internal names" and "Names in other languages" should be made subsections of an "Additional names" section. The syntax is as follows:
 
<pre>
{{internal names
|game1=''[[Game Name]]''
|file1=<tt>filename</tt>
|name1=Name
|meaning1=Meaning
}}
</pre>
 
This works for any amount of numbered <code>game</code>/<code>file</code>/<code>name</code>/<code>meaning</code> parameters. The '''Game''', '''File''', and/or '''Meaning''' columns can be optionally removed by omitting the corresponding parameter(s).
 
=== Notes ===
* Omit the <code>meaning</code> 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 <code>^</code>.
* When possible, the <code>file</code> parameter should include the file path as well, starting from the game's root directory (e.g. <tt>vol</tt> in the case of Wii U games).
* File paths and names (used in the <code>file</code> parameters) should be encapsulated by <code><nowiki><tt></tt></nowiki></code> tags.
 
[[Category:Structural 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.