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

From Valve Developer Community
Jump to navigation Jump to search
m (Kr0tchet moved page User:Kr0tchet/Sandbox/lang2/doc to Template:Lang2/doc: Moving this to the template page, looks and works decent enough. But still largely WIP. Feel free to contribute.)
No edit summary
Line 1: Line 1:
{{Doc/subpage}}
{{Doc/subpage}}
{{Wip||This template is not recommended to be used in any pages yet, as it's need to be tested.}}
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 ==
== Differences ==

Revision as of 09:00, 4 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.
Under construction.png
This Template page is actively undergoing a major edit.
As a courtesy, please do not edit this Template while this message is displayed.
If this page has not been edited for at least several hours to a few days, please remove this template. This message is intended to help reduce edit conflicts; please remove it between editing sessions to allow others to edit the page.

The person who added this notice will be listed in its edit history should you wish to contact them.
Additional Notes: This template is not recommended to be used in any pages yet, as it's need to be tested.

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 (base page)
Other languages: Page_name{{:}}Lang
English: None (base page)
Other languages: Page_name/Lang
All, including English are located in Page_name/Lang.
The base page itself just contains {{MultiPage}}.
Rely on {{Strings}} or {{Autolang}}, meant that all other languages are hidden in the base page.
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
Category translation support Yes, has separate translated category page which only list translated pages. Unknown Yes, but translated pages are not added to the translated category page, unlike {{Lang}}. Unknown
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.