Difference between revisions of "Template:Infobox Localization"

From Oldunreal-Wiki
Jump to navigation Jump to search
Line 7: Line 7:
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|}}} | {{#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 61: Line 61:
|color=#444444
|color=#444444
}} | }}
}} | }}
{{Infobox/Footer}}{{#switch:{{{doc|}}}|1=|<!--
{{Infobox/Footer}}<!--
=================
===========================
Game 1 categories
Category beginning - Game 1
The only category that accepts "None" as a valid value.
===========================
=================
-->{{#if:{{{game|}}} | {{#if:{{{game}}} = None | [[Category:Localizations without a game]] [[Category:{{{language}}} localizations without a game]] | [[Category:{{{game}}} Localization]] [[Category:{{{game}}} {{{language}}} Localization]] {{#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]]}}}} | }}<!--
-->{{#switch:{{{game}}} | None = [[Category:Localizations without a game]][[Category:{{{language}}} localizations without a game]] | [[Category:{{{game}}} Localization]][[Category:{{{game}}} {{{language}}} Localization]]{{#ifexpr: ({{{lines_done}}} > 0) and ({{{lines_total}}} > 0) and ({{{lines_done}}} >= {{{lines_total}}}) |<!--
===========================
=================
Category beginning - Game 2
If Game 1 contains lines_done and lines_total, and the amount of lines done surpasses the total, it's considered complete.
===========================
=================
-->{{#if:{{{game2|}}} | [[Category:{{{game2}}} Localization]] [[Category:{{{game2}}} {{{language}}} Localization]] {{#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:{{{game}}} Completed Localization Files]][[Category:{{{game}}} Completed {{{language}}} Localization Files]][[Category:Completed {{{language}}} Localization Files]]|<!--
===========================
=================
Category beginning - Game 3
Otherwise, we consider them incomplete.
===========================
=================
-->{{#if:{{{game3|}}} | [[Category:{{{game3}}} Localization]] [[Category:{{{game3}}} {{{language}}} Localization]] {{#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]]}} }}<!--
-->[[Category:{{{game}}} Incomplete Localization Files]][[Category:{{{game}}} Incomplete {{{language}}} Localization Files]][[Category:Incomplete {{{language}}} Localization Files]]}}<!--
===========================
=================
End categories
Game 2 categories
===========================
This doesn't accept "None" as a valid game value.
--></includeonly><noinclude>{{Documentation}}{{AddCategories|type=Infobox}}</noinclude>
=================
-->{{#switch:{{{game2}}} | <span style="font-weight:bold;color:#ff0000">Wrong value</span>[[Category:FIX THIS PAGE ASAP!]] | [[Category:{{{game2}}} Localization]][[Category:{{{game2}}} {{{language}}} Localization]]{{#ifexpr: ({{{lines_done2}}} > 0) and ({{{lines_total2}}} > 0) and ({{{lines_done2}}} >= {{{lines_total2}}}) |<!--
=================
If Game 2 contains lines_done and lines_total, and the amount of lines done surpasses the total, it's considered complete.
=================
-->[[Category:{{{game2}}} Completed Localization Files]][[Category:{{{game2}}} Completed {{{language}}} Localization Files]][[Category:Completed {{{language}}} Localization Files]]|<!--
=================
Otherwise, we consider them incomplete.
=================
-->[[Category:{{{game2}}} Incomplete Localization Files]][[Category:{{{game2}}} Incomplete {{{language}}} Localization Files]][[Category:Incomplete {{{language}}} Localization Files]]}}}}<!--
=================
Game 3 categories
Also doesn't accept "None"
=================
-->{{#switch:{{{game3}}} | <span style="font-weight:bold;color:#ff0000">Wrong value</span>[[Category:FIX THIS PAGE ASAP!]] | [[Category:{{{game3}}} Localization]][[Category:{{{game3}}} {{{language}}} Localization]]{{#ifexpr: ({{{lines_done3}}} > 0) and ({{{lines_total3}}} > 0) and ({{{lines_done3}}} >= {{{lines_total3}}}) |<!--
=================
If Game 3 contains lines_done and lines_total, and the amount of lines done surpasses the total, it's considered complete.
=================
-->[[Category:{{{game3}}} Completed Localization Files]][[Category:{{{game3}}} Completed {{{language}}} Localization Files]][[Category:Completed {{{language}}} Localization Files]]|<!--
=================
Otherwise, we consider them incomplete.
=================
-->[[Category:{{{game3}}} Incomplete Localization Files]][[Category:{{{game3}}} Incomplete {{{language}}} Localization Files]][[Category:Incomplete {{{language}}} Localization Files]]}}}}}}<!--
=================
Other categories
=================
--> }}</includeonly><noinclude>{{Documentation}}{{AddCategories|type=Infobox}}</noinclude>

Revision as of 01:55, 9 March 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=
}}