Template:Language/archives/Lang2/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{Doc/subpage}}
{{Doc/subpage}}
A translation template. Successor to both {{T|Lang}} (itself was forked to create {{T|Lang2}}) and {{T|MultiPage}}, while solving most of the limitations in both templates. Currently the template is largely incomplete and cannot be used in any pages until bugs or issues is fixed. Also this template only support very few languages as it was being rewritten to only support languages that are most popular, and to cleaning up code before adding new languages.
A translation template. Successor to both {{T|Lang}} (itself was forked to create {{T|Lang2}}) and {{T|MultiPage}}, while solving most of the limitations in both templates. Currently the template is largely incomplete and cannot be used in any pages until bugs or issues is fixed. Also this template only support very few languages as it was being rewritten to only support languages that are most popular, and to cleaning up code before adding new languages.
== Differences ==
{| class="sortable" style="overflow: hidden; border-radius:.4em; border:2px solid #525252"
|- style="white-space:nowrap; background-color:#4e4e4e; color:#FFF"
! style="min-width:25em" | Features !! style="min-width:5em" | {{T|Lang}} !! style="min-width:5em" | {{T|Lang2}} (this template) !! style="min-width:5em" | {{T|MultiPage}} !! style="min-width:5em" | {{T|Page}}
|- bgcolor="#3A3A3A"
| Language subpage location || English: None<br>Other languages: {{Code|Page_name{{:}}Lang}} || English: None<br>Other languages: {{Code|Page_name/Lang}} || All, including English are located in {{Code|Page_name/Lang}}. || Rely on {{T|Strings}} or Autolang
|- bgcolor="#3A3A3A"
| Requires purge? || {{Yes|Base page only, in order to display the language<br>icons if the translated page (except English) is edited or created. {{Confirm}}}} || {{Yes|Same as {{T|Lang}}{{confirm}}.}} || {{Yes|Required}} || {{No}}
|- bgcolor="#3A3A3A"
| Preview languages || {{Yes}} || {{Yes}} || {{Yes}} || {{No|English only}}
|}
== Usage ==
== Usage ==
{{Todo|Documentations. English page should be on base page, while others are located in subpage, with {{code|/language-ids}} suffix at the end of the page name (Example: {{Code|Half-Life 2/vi}}, {{Code|Half-Life 2/zh}}, etc... just like {{T|MultiPage}}). Pages begin with prefix Lang-ID is not supported at the moment as it's requires alot of testing and this template may or may not work with them.}}
{{Todo|Documentations. English page should be on base page, while others are located in subpage, with {{code|/language-ids}} suffix at the end of the page name (Example: {{Code|Half-Life 2/vi}}, {{Code|Half-Life 2/zh}}, etc... just like {{T|MultiPage}}). Pages begin with prefix Lang-ID is not supported at the moment as it's requires alot of testing and this template may or may not work with them.}}

Revision as of 08:43, 3 July 2024

Edit-copy.png
This is a documentation subpage for Template:Language.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

A translation template. Successor to both {{Lang}} (itself was forked to create {{Lang2}}) and {{MultiPage}}, while solving most of the limitations in both templates. Currently the template is largely incomplete and cannot be used in any pages until bugs or issues is fixed. Also this template only support very few languages as it was being rewritten to only support languages that are most popular, and to cleaning up code before adding new languages.

Differences

Features {{Lang}} {{Lang2}} (this template) {{MultiPage}} {{Page}}
Language subpage location English: None
Other languages: Page_name{{:}}Lang
English: None
Other languages: Page_name/Lang
All, including English are located in Page_name/Lang. Rely on {{Strings}} or Autolang
Requires purge? Base page only, in order to display the language
icons if the translated page (except English) is edited or created. [confirm]
Same as {{Lang}}[confirm]. Required No
Preview languages Yes Yes Yes English only

Usage

Todo: Documentations. English page should be on base page, while others are located in subpage, with /language-ids suffix at the end of the page name (Example: Half-Life 2/vi, Half-Life 2/zh, etc... just like {{MultiPage}}). Pages begin with prefix Lang-ID is not supported at the moment as it's requires alot of testing and this template may or may not work with them.