Template:Terminology Infobox: Difference between revisions
it is 2025 lets arrayify this. only not sure about affiliation might need to cook smth |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 20: | Line 20: | ||
<data source="affiliation"> | <data source="affiliation"> | ||
<label>Affil­i­a­tion</label> | <label>Affil­i­a­tion</label> | ||
<format>{{ | <format>{{Array|{{{affiliation}}}|;|<!-- | ||
-->²{Exists¦²{#explode:{item}¦§¦0}²¦[[²{#explode:{item}¦§¦0}²]]¦²{#explode:{item}¦§¦0}²}²<!-- | |||
-->²{#if:²{#explode:{item}¦§¦1}²¦ (²{Trim¦²{#explode:{item}¦§¦1}²}²)}²<!-- | |||
-->|<br /><!-- | |||
-->|template=²<!-- | |||
-->}}<!-- | |||
--></format> | |||
</data> | </data> | ||
<data source=" | <data source="plane"> | ||
<label> | <label>Plane</label> | ||
<format> | <format>{{Array|{{{plane}}}|;|[[{item}]]|<br />}}</format> | ||
</data> | </data> | ||
<data source=" | <data source="continent"> | ||
<label> | <label>Continent</label> | ||
<format>{{Array|{{{ | <format>{{Array|{{{continent}}}|;|[[{item}]]|<br />}}</format> | ||
</data> | </data> | ||
<data source=" | <data source="town"> | ||
<label> | <label>Town</label> | ||
<format>{{Array|{{{ | <format>{{Array|{{{town}}}|;|[[{item}]]|<br />}}</format> | ||
</data> | </data> | ||
<data source="event"> | <data source="event"> | ||
| Line 92: | Line 75: | ||
{{Namespace|main=[[Category:Terminology]]<!-- | {{Namespace|main=[[Category:Terminology]]<!-- | ||
Set page display title if title is different from page name | Set page display title if title is different from page name | ||
-->{{#if:{{{title|}}}{{{displaytitle|}}}|{{#ifeq:{{PAGENAME}}|{{{title}}}||{{#ifeq:{{lc:{{{displaytitle|}}}}}|no||{{DISPLAYTITLE:{{{displaytitle|{{{title}}}}}}|noreplace}}}}}}}}<!-- | -->{{#if:{{{title|}}}{{{displaytitle|}}}|{{#ifeq:{{PAGENAME}}|{{{title}}}||{{#ifeq:{{lc:{{{displaytitle|}}}}}|no||{{DISPLAYTITLE:{{{displaytitle|{{{title}}}}}}|noreplace}}}}}}}}<!-- | ||
-->{{#if:{{{type|}}}|{{Array|{{{type}}}|;|<!-- -->[[Category:{item}]]}}}}<!-- | |||
-->{{#if:{{{type|}}}|{{Array|{{{type}}}|;| | -->{{#if:{{{group|}}}|{{Array|{{{group}}}|;|<!-- -->[[Category:{item}]]}}}}<!-- | ||
--> | -->{{#if:{{{affiliation|}}}|{{{affiliation|}}}|;|<!-- -->[[Category:²{Trim¦²{#explode:{item}¦§¦0}²}²|template=1}}]]}}<!-- | ||
-->{{#if:{{{ | -->{{#if:{{{plane|}}}|{{Array|{{{plane}}}|;|<!-- -->[[Category:{item} Terminology]]}}}}<!-- | ||
--> | -->{{#if:{{{continent|}}}|{{Array|{{{continent}}}|;|<!---->[[Category:{item} Terminology]]}}}}<!-- | ||
-->{{#if:{{{ | -->{{#if:{{{town|}}}|{{Array|{{{town}}}|;|<!-- -->[[Category:{item} Terminology]]}}}}<!-- | ||
-->{{#if:{{{event|}}}|{{Array|{{{event}}}|;|<!-- -->[[Category:{item} Terminology]]}}}}<!-- | |||
--> | -->{{#if:{{{recipe|}}}|<!-- -->[[Category:Terminology with {{{recipe_type|Recipe}}}]]}}<!-- | ||
-->{{#if:{{{pronunciation|}}}|<!-- -->[[Category:Pronunciation Included]]}}<!-- | |||
-->{{#if:{{{ | |||
--> | |||
-->{{#if:{{{ | |||
--> | |||
-->{{#if:{{{ | |||
--> | |||
-->{{#if:{{{ | |||
--> | |||
-->{{#if:{{{ | |||
--> | |||
-->{{#if:{{{pronunciation|}}}|[[Category:Pronunciation Included]]}}<!-- | |||
-->}}<!--line break required for styling purposes--> | -->}}<!--line break required for styling purposes--> | ||
</includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude> | </includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude> | ||
Latest revision as of 13:41, 22 October 2025
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
Infobox for game terminology.
Syntax
{{Terminology Infobox
|title =
|secondarytitle =
|image =
|caption =
|type =
|group =
|description =
|affiliation =
|plane =
|continent =
|town =
|event =
|pronunciation =
|related =
|recipe =
|recipe_type =
|source =
}}
Examples
{{Terminology Infobox|||}}
Template Data
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| title | title | no description | Unknown | optional |
| displaytitle | displaytitle | no description | Unknown | optional |
| secondary_title | secondary_title | no description | Unknown | optional |
| type | type | Type(s), written as an array
| String | suggested |
| group | group | Group(s), as an array | String | suggested |
| affiliation | affiliation | Affiliation(s), written as an array. Notes can be specified using §.
| String | optional |
| plane | plane | Plane(s), written as an array | String | optional |
| continent | continent | Continent(s), written as an array | String | optional |
| town | town | Town(s), written as an array | String | optional |
| event | event | Event(s), written as an array | String | optional |
| pronunciation | pronunciation | Pronunciation based on official English VO's | String | optional |
| related | related | Related term(s), written as an array | Unknown | optional |
| recipe | recipe | Recipe source | String | optional |
| recipe_type | recipe_type | no description | Unknown | optional |
| source | source | Source(s), written as an array | String | suggested |