Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Difference between revisions of "Template:Feature/row translation/Documentation"

From PCGamingWiki, the wiki about fixing PC games
(reworded and updated to match new usage and new template names)
 
Line 1: Line 1:
 
; Description
 
; Description
This is a template used to allow a dynamically updated list of fan translated games. See [[List of Russian fan translations#Auto-populated list|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 {{code|<nowiki><br><br></nowiki>}} is used. It also assigns icons to show based on the <code>Property:{{lang}} status</code> value(s). If only one value "fan" exists, then the template goes by the other properties directly. If however the <code>Property:{{lang}} status</code> property 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.
+
This is a template used to allow a dynamically updated list of fan translated games. See [[List of Russian fan translations#Auto-populated list|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 {{code|<nowiki><br><br></nowiki>}} is used. It also assigns icons to show based on the <code>{{lang}} status</code> value(s). If only one value "fan" exists, then the template goes by the other values directly. If however the <code>{{lang}} status</code> 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 Semantic Searches like this one:
+
The template is used in inline searches (see the [[:Category:Lists of fan translations|fan translations category]]).
<pre><nowiki>
 
{{#ask: [[Category:Games]] [[Russian status::fan]]
 
|?Developed by
 
|?Published by
 
|?Release date|+limit=1
 
|?Russian status=Localization
 
|?Russian interface=UI
 
|?Russian audio=Audio
 
|?Russian subtitles=Sub
 
|?Russian notes=Notes
 
|limit=500
 
|headers=plain
 
|mainlabel=Game
 
|link=all
 
|searchlabel=... further results
 
|format=template
 
|class=sortable wikitable smwtable
 
|template=Feature/rowFanTranslation
 
|introtemplate=Feature/introFanTranslation
 
|outrotemplate=Feature/outro
 
|valuesep=€€€€
 
}}
 
</nowiki></pre>
 
  
 
; Related templates:
 
; Related templates:
* [[Template:Feature/introFanTranslation]] - Custom intro that sets up all the necessary header columns.
+
* [[Template:Feature/intro translation]] - Custom intro that sets up all the necessary header columns.
* [[Template:Feature/outro]] - Shared outro for templates based on the Feature base.
 
  
 
; Issues
 
; Issues
* Notes column includes both notes for multi-valued scenarios, where both a <code><nowiki>{{l10n/switch}}</nowiki></code> 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 <code>Property:{{lang}} status</code>, so right now both notes are shown.
+
* Notes column includes both notes for multi-valued scenarios, where both a <code><nowiki>{{l10n/switch}}</nowiki></code> 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 <code>{{lang}} status</code>, so right now both notes are shown.
  
 
; Todo:
 
; Todo:

Latest revision as of 10:06, 16 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
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
  1. **DONE** Handle n/a cases (BETTER! probably interferes with dual value cases atm!)
  2. **DONE** Handle dual value cases
  3. **DONE** Add newlines for the Notes column
  4. **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)
  5. **DONE** Changed div abbrivations on the icons to match the intro template