Difference between revisions of "Template:Infobox Localization"

From Oldunreal-Wiki
Jump to navigation Jump to search
(Added Game3, cleaned up the categorization.)
Line 61: Line 61:
|color=#444444
|color=#444444
}} | }}
}} | }}
{{Infobox/Footer}}{{#if:{{{doc|}}} | | <!--
{{Infobox/Footer}}{{#if:{{{doc|}}}||<!--
=================
=================
Game 1 categories
Game 1 categories
The only category that accepts "None" as a valid value.
=================
=================
-->{{#switch:{{{game}}} | None = [[Category:Localizations without a game]] [[Category:{{{language}}} localizations without a game]] | <!--
-->{{#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}}}) |<!--
=================
=================
Only appliable if game exists
If Game 1 contains lines_done and lines_total, and the amount of lines done surpasses the total, it's considered complete.
=================
=================
-->[[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]]}} }} }}<!--
-->[[Category:{{{game}}} Completed Localization Files]][[Category:{{{game}}} Completed {{{language}}} Localization Files]][[Category:Completed {{{language}}} Localization Files]]|<!--
=================
Otherwise, we consider them incomplete.
=================
-->[[Category:{{{game}}} Incomplete Localization Files]][[Category:{{{game}}} Incomplete {{{language}}} Localization Files]][[Category:Incomplete {{{language}}} Localization Files]]}}<!--
=================
=================
Game 2 categories
Game 2 categories
This doesn't accept "None" as a valid game value.
=================
-->{{#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"
=================
=================
-->{{#if:{{{game2|}}} | <!--
-->{{#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}}}) |<!--
=================
=================
Only appliable if game2 exists
If Game 3 contains lines_done and lines_total, and the amount of lines done surpasses the total, it's considered complete.
=================
=================
--> [[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]]}} }}<!--
-->[[Category:{{{game3}}} Completed Localization Files]][[Category:{{{game3}}} Completed {{{language}}} Localization Files]][[Category:Completed {{{language}}} Localization Files]]|<!--
=================
=================
If not, return nothing
Otherwise, we consider them incomplete.
=================
=================
--> }}<!--
-->[[Category:{{{game3}}} Incomplete Localization Files]][[Category:{{{game3}}} Incomplete {{{language}}} Localization Files]][[Category:Incomplete {{{language}}} Localization Files]]}}}}}}<!--
=================
=================
Other categories
Other categories
=================
=================
--> }}</includeonly><noinclude>{{Documentation}}{{AddCategories|type=Infobox}}</noinclude>
--> }}</includeonly><noinclude>{{Documentation}}{{AddCategories|type=Infobox}}</noinclude>

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