Difference between revisions of "Template:Feature/row translation"
(added Status) |
(removed Status column for now) |
||
Line 4: | Line 4: | ||
<td>{{#if:{{{Publishers|}}}|{{#arraymap:,{{{Publishers|}}}|,Company:|€€€€€|[[Company:€€€€€|€€€€€]]|,\s}}}}</td> | <td>{{#if:{{{Publishers|}}}|{{#arraymap:,{{{Publishers|}}}|,Company:|€€€€€|[[Company:€€€€€|€€€€€]]|,\s}}}}</td> | ||
<td data-sort-value="{{{Released|}}}">{{#arraymap:{{{Released|}}}|;|€€€€€|{{#if:{{#var:date}}||{{Date|€€€€€|mdy}}{{#vardefine:date|true}}}}}}{{#vardefine:date|}}</td> | <td data-sort-value="{{{Released|}}}">{{#arraymap:{{{Released|}}}|;|€€€€€|{{#if:{{#var:date}}||{{Date|€€€€€|mdy}}{{#vardefine:date|true}}}}}}{{#vardefine:date|}}</td> | ||
− | |||
<td data-sort-value="{{{Interface|}}}">{{#switch:{{{Interface|}}}|true = <div title="Official support" class="svg-icon svg-25 tickcross-true"></div>|false = <div title="No official support" class="svg-icon svg-25 tickcross-false"></div>|hackable = <div title="Fan translation available" class="svg-icon svg-25 tickcross-hackable"></div>|unknown = <div title="Unknown" class="svg-icon svg-25 tickcross-unknown"></div>|#default = <div title="Not applicable" class="svg-icon svg-25 tickcross tickcross-not-applicable"></div>}}</td> | <td data-sort-value="{{{Interface|}}}">{{#switch:{{{Interface|}}}|true = <div title="Official support" class="svg-icon svg-25 tickcross-true"></div>|false = <div title="No official support" class="svg-icon svg-25 tickcross-false"></div>|hackable = <div title="Fan translation available" class="svg-icon svg-25 tickcross-hackable"></div>|unknown = <div title="Unknown" class="svg-icon svg-25 tickcross-unknown"></div>|#default = <div title="Not applicable" class="svg-icon svg-25 tickcross tickcross-not-applicable"></div>}}</td> | ||
<td data-sort-value="{{{Audio|}}}">{{#switch:{{{Audio|}}}|true = <div title="Official support" class="svg-icon svg-25 tickcross-true"></div>|false = <div title="No official support" class="svg-icon svg-25 tickcross-false"></div>|hackable = <div title="Fan translation available" class="svg-icon svg-25 tickcross-hackable"></div>|unknown = <div title="Unknown" class="svg-icon svg-25 tickcross-unknown"></div>|#default = <div title="Not applicable" class="svg-icon svg-25 tickcross tickcross-not-applicable"></div>}}</td> | <td data-sort-value="{{{Audio|}}}">{{#switch:{{{Audio|}}}|true = <div title="Official support" class="svg-icon svg-25 tickcross-true"></div>|false = <div title="No official support" class="svg-icon svg-25 tickcross-false"></div>|hackable = <div title="Fan translation available" class="svg-icon svg-25 tickcross-hackable"></div>|unknown = <div title="Unknown" class="svg-icon svg-25 tickcross-unknown"></div>|#default = <div title="Not applicable" class="svg-icon svg-25 tickcross tickcross-not-applicable"></div>}}</td> |
Latest revision as of 07:02, 7 October 2021
- Description
This is a template used to allow a dynamically updated list of fan translated games. See List of Russian fan translations for an example. It uses a custom value separator ("€€€€") to allow for custom linebreaks when needed (most obviously in the Notes column where <br><br>
is used. It also assigns icons to show based on the {{{2}}}Template:Category handler status
value(s). If only one value "fan" exists, then the template goes by the other values directly. If however the {{{2}}}Template:Category handler status
includes two values, it first tries to determine which one is the first one (fan or official) and then assumes icons follow the same pattern accordingly.
The template is used in inline searches (see the fan translations category).
- Related templates
- Template:Feature/intro translation - Custom intro that sets up all the necessary header columns.
- Issues
- Notes column includes both notes for multi-valued scenarios, where both a
{{l10n/switch}}
section is used for fan=yes and fan=<blank>. This field also doesn't seemingly follow the same expected pattern of following the order of{{{2}}}Template:Category handler status
, so right now both notes are shown.
- Todo
- **DONE** Handle n/a cases (BETTER! probably interferes with dual value cases atm!)
- **DONE** Handle dual value cases
- **DONE** Add newlines for the Notes column
- **DONE** Migrated over to use custom separator (€€€€) to allow for more control over the styling (adds supports for commas in Notes field without creating newlines)
- **DONE** Changed div abbrivations on the icons to match the intro template