Difference between revisions of "Template:Infobox Localization"

From Oldunreal-Wiki
Jump to navigation Jump to search
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
===============
===============
Notice: Repo available at Github
Notice: Localization Project
===============
===============
-->{{Navbox|title=Repo available at Github|body=The localization project is available at [https://github.com/NeonKnightOA/unreal-localization the Github repository]. Completed and incomplete pages will be adapted there once complete.|color=green}}<!--
-->{{Navbox|title=Localization Project page|body=This page belongs to the [[OldUnreal Localization Project]]. We aim to localize the game to other languages as flawlessly as possible, with the least amount of errors possible (ideally 0).{{#switch:{{{language}}}|English=<br />This is a file for the English language, the game's default. This file should be used as a base for the rest of the languages.|<br />In order to achieve such objective, '''we need your help'''. Some of these lines contain computer-generated strings which need to be reviewed by actual native or fluent {{{language}}} speakers. Also '''these lines aren't final''', they're always subject to modification, and we're sure better strings can (and will be) eventually found.}}<br />The localization project is also available at [https://github.com/NeonKnightOA/unreal-localization the Github repository]. Completed and incomplete pages will be adapted there once complete.|color=green}}<!--
===============
===============
Notice: Untranslated lines
Notice: Untranslated lines
===============
===============
-->{{#if:{{{game|}}} | {{#switch:{{{game|}}} | None = | {{#ifexpr: ({{{lines_done}}} >= 0) and ({{{lines_total}}} > 0) and ({{{lines_done}}} < {{{lines_total}}}) | {{Untranslated | language={{{language}}} | game={{{game}}} }} | }} }} | }}{{#if:{{{game2|}}} | {{#ifexpr: ({{{lines_done2}}} >= 0) and ({{{lines_total2}}} > 0) and ({{{lines_done2}}} < {{{lines_total2}}}) | {{Untranslated | language={{{language}}} | game={{{game2}}} }} | }} | }}<!--
-->{{#if:{{{game|}}} | {{#if:{{{isModPage|}}} | {{#switch:{{{mod|}}} | None = | {{#ifexpr: ({{{lines_done}}} >= 0) and ({{{lines_total}}} > 0) and ({{{lines_done}}} < {{{lines_total}}}) | {{Untranslated | language={{{language}}} | game={{{mod}}} }} | }} }} | {{#switch:{{{game|}}} | None = | {{#ifexpr: ({{{lines_done}}} >= 0) and ({{{lines_total}}} > 0) and ({{{lines_done}}} < {{{lines_total}}}) | {{Untranslated | language={{{language}}} | game={{{game}}} }} | }} }} }} | }}{{#if:{{{game2|}}} | {{#ifexpr: ({{{lines_done2}}} >= 0) and ({{{lines_total2}}} > 0) and ({{{lines_done2}}} < {{{lines_total2}}}) | {{Untranslated | language={{{language}}} | game={{{game2}}} }} | }} | }}{{#if:{{{game3|}}} | {{#ifexpr: ({{{lines_done3}}} >= 0) and ({{{lines_total3}}} > 0) and ({{{lines_done3}}} < {{{lines_total3}}}) | {{Untranslated | language={{{language}}} | game={{{game3}}} }} | }} | }}<!--
===============
===============
This page in other languages
This page in other languages
Line 23: Line 23:
{{Infobox/Row
{{Infobox/Row
|label=Language
|label=Language
|value=[[Language Guidelines/{{{language}}}|{{{language}}}]]
|value=[[{{{language}}} .{{Language parser|type=extension|language={{{language}}}}}|{{{language}}}]]
|bgcolor_label=#cccccc
|bgcolor_label=#cccccc
|color_label=#000000
|color_label=#000000
Line 30: Line 30:
}}
}}
{{Infobox/Row
{{Infobox/Row
|label={{#if:{{{game2|}}} | Game 1 | Game}}
|label={{#if:{{{game2|}}} | Game 1 | {{#if:{{{isModPage|}}}|Mod|Game}}}}
|value={{#switch:{{{game}}} | None=None | [[{{{game}}}]] }}
|value={{#switch:{{{game}}} | None=None | {{#if:{{{isModPage|}}}|[[{{{mod}}}]]|[[{{{game}}}]]}} }}
|bgcolor_label=#cccccc
|bgcolor_label=#cccccc
|color_label=#000000
|color_label=#000000
Line 61: Line 61:
|color=#444444
|color=#444444
}} | }}
}} | }}
{{Infobox/Footer}}{{#if:{{{doc|}}} | | <!--
{{#if:{{{game3|}}} | {{Infobox/Row
=================
|label=Game 3
Game 1 categories
|value=[[{{{game3}}}]]
=================
|bgcolor_label=#cccccc
-->{{#switch:{{{game}}} | None = [[Category:Localizations without a game]] [[Category:{{{language}}} localizations without a game]] | <!--
|color_label=#000000
=================
|bgcolor=#ffffff
Only appliable if game exists
|color=#444444
=================
}} | }}
-->[[Category:{{{game}}} Localization]] [[Category:{{{game}}} {{{language}}} Localization]] {{#ifexpr: ({{{lines_done}}} > 0) and ({{{lines_total}}} > 0) and ({{{lines_done}}} >= {{{lines_total}}}) | {{#if:{{{doc|}}}||[[Category:{{{game}}} Completed Localization Files]][[Category:{{{game}}} Completed {{{language}}} Localization Files]][[Category:Completed {{{language}}} Localization Files]]}} | {{#if:{{{doc|}}}||[[Category:{{{game}}} Incomplete Localization Files]][[Category:{{{game}}} Incomplete {{{language}}} Localization Files]][[Category:Incomplete {{{language}}} Localization Files]]}} }} }}<!--
{{#if:{{{game3|}}} | {{Infobox/Row
=================
|label=<abbr title="Doesn't include empty lines, whited lines, URLs or numeric values.">Status</abbr>
Game 2 categories
|value={{{lines_done3}}}/{{{lines_total3}}}
=================
|bgcolor_label=#cccccc
-->{{#if:{{{game2|}}} | <!--
|color_label=#000000
=================
|bgcolor=#ffffff
Only appliable if game2 exists
|color=#444444
=================
}} | }}
--> [[Category:{{{game2}}} Localization]] [[Category:{{{game2}}} {{{language}}} Localization]] {{#ifexpr: ({{{lines_done2}}} > 0) and ({{{lines_total2}}} > 0) and ({{{lines_done2}}} >= {{{lines_total2}}}) | {{#if:{{{doc|}}}||[[Category:{{{game2}}} Completed Localization Files]][[Category:{{{game2}}} Completed {{{language}}} Localization Files]][[Category:Completed {{{language}}} Localization Files]]}} | {{#if:{{{doc|}}}||[[Category:{{{game2}}} Incomplete Localization Files]][[Category:{{{game2}}} Incomplete {{{language}}} Localization Files]][[Category:Incomplete {{{language}}} Localization Files]]}} }}<!--
{{Infobox/Footer}}<!--
=================
===========================
If not, return nothing
Category beginning - Game 1/Mod
=================
===========================
--> }}<!--
-->{{#if:{{{isModPage|}}} | [[Category:{{{mod}}} Localization]] [[Category:{{{mod}}} {{{language}}} Localization]]  {{#ifexpr: ({{{lines_done}}} > 0) and ({{{lines_total}}} > 0) and ({{{lines_done}}} >= {{{lines_total}}}) | [[Category:{{{mod}}} Completed Localization Files]] [[Category:{{{mod}}} Completed {{{language}}} Localization Files]] | [[Category:{{{mod}}} Incomplete Localization Files]] [[Category:{{{mod}}} Incomplete {{{language}}} Localization Files]]}} | {{#switch:{{{game}}} | None = [[Category:Localizations without a game]] [[Category:{{{language}}} localizations without a game]] | [[Category:{{{game}}} Localization]] [[Category:{{{game}}} {{{language}}} Localization]] {{#ifexpr:{{{lines_total}}} <= 10 | [[Category:Localization pages with less than 10 lines]]|}}{{#ifexpr: ({{{lines_done}}} > 0) and ({{{lines_total}}} > 0) and ({{{lines_done}}} >= {{{lines_total}}}) | [[Category:{{{game}}} Completed Localization Files]] [[Category:{{{game}}} Completed {{{language}}} Localization Files]] [[Category:Completed {{{language}}} Localization Files]] | [[Category:{{{game}}} Incomplete Localization Files]] [[Category:{{{game}}} Incomplete {{{language}}} Localization Files]] [[Category:Incomplete {{{language}}} Localization Files]]}}}} }}<!--
=================
===========================
Other categories
Category beginning - Game 2
=================
===========================
--> }}</includeonly><noinclude>{{Documentation}}{{AddCategories|type=Infobox}}</noinclude>
-->{{#if:{{{game2|}}} | [[Category:{{{game2}}} Localization]] [[Category:{{{game2}}} {{{language}}} Localization]] {{#ifexpr:{{{lines_total2}}} <= 10 | [[Category:Localization pages with less than 10 lines]]|}}{{#ifexpr: ({{{lines_done2}}} > 0) and ({{{lines_total2}}} > 0) and ({{{lines_done2}}} >= {{{lines_total2}}}) | [[Category:{{{game2}}} Completed Localization Files]] [[Category:{{{game2}}} Completed {{{language}}} Localization Files]] [[Category:Completed {{{language}}} Localization Files]] | [[Category:{{{game2}}} Incomplete Localization Files]] [[Category:{{{game2}}} Incomplete {{{language}}} Localization Files]] [[Category:Incomplete {{{language}}} Localization Files]]}} | }}<!--
===========================
Category beginning - Game 3
===========================
-->{{#if:{{{game3|}}} | [[Category:{{{game3}}} Localization]] [[Category:{{{game3}}} {{{language}}} Localization]] {{#ifexpr:{{{lines_total3}}} <= 10 | [[Category:Localization pages with less than 10 lines]]|}}{{#ifexpr: ({{{lines_done3}}} > 0) and ({{{lines_total3}}} > 0) and ({{{lines_done3}}} >= {{{lines_total3}}}) | [[Category:{{{game3}}} Completed Localization Files]] [[Category:{{{game3}}} Completed {{{language}}} Localization Files]] [[Category:Completed {{{language}}} Localization Files]] | [[Category:{{{game3}}} Incomplete Localization Files]] [[Category:{{{game3}}} Incomplete {{{language}}} Localization Files]] [[Category:Incomplete {{{language}}} Localization Files]]}} | }}<!--
===========================
End categories
===========================
--></includeonly><noinclude>{{Documentation}}{{AddCategories|type=Infobox}}</noinclude>

Latest revision as of 01:17, 24 May 2022

Template documentation follows
Visit Template:Infobox_Localization/doc to edit this documentation. (How does this work?)


Infobox templates
Infobox Localization
Class Infobox

An infobox for the Oldunreal Localization Project. It's used on the individual file pages. Supports up to 3 games. If a mod is used, it replaces the first game.

{{Infobox Localization
|name=
|language=
|isModPage=
|mod=
|game=
|lines_done=
|lines_total=
|game2=
|lines_done2=
|lines_total2=
|game3=
|lines_done3=
|lines_total3=
}}