Difference between revisions of "Template:Infobox Localization"

From Oldunreal-Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>{{#ifexpr: ({{{lines_done}}} > 0) and ({{{lines_total}}} > 0) and ({{{lines_done}}} < {{{lines_total}}}) | {{Untranslated | language={{{language}}} | game={{{game}}} }} | {{#ifexpr: ({{{lines_done2}}} > 0) and ({{{lines_total2}}} > 0) and ({{{lines_done2}}} < {{{lines_total2}}}) | {{Untranslated | language={{{language}}} | game={{{game2}}} }} | }} }}{{#if:{{{name|}}} | {{Infobox Localization/Other languages | name = {{{name}}} }} | }}{{Infobox/HeaderNoImage
<includeonly>{{Infobox/HeaderNoImage
|title={{#if:{{{name|}}} | <abbr title="DOESN'T include the language-specific extension.">{{{name}}}</abbr> | {{PAGENAME}} }}
|title={{#if:{{{name|}}} | <abbr title="DOESN'T include the language-specific extension.">{{{name}}}</abbr> | {{PAGENAME}} }}
|color_border=#888888
|color_border=#888888
Line 45: Line 45:
|color=#444444
|color=#444444
}} | }}
}} | }}
{{Infobox/Footer}}</includeonly><noinclude>{{Documentation}}{{AddCategories|type=Infobox}}</noinclude>
{{Infobox/Footer}}{{#if:{{{doc|}}} | | <!--
=================
Game 1 categories
=================
-->{{#switch:{{{game}}} | None = [[Category:Localizations without a game]] [[Category:{{{language}}} localizations without a game]] | <!--
=================
Only appliable if game exists
=================
--> [[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:{{{game}}} Incomplete Localization Files]][[Category:{{{game}}} Incomplete {{{language}}} Localization Files]] }} }}<!--
=================
Game 2 categories
=================
-->{{#if:{{{game2|}}} | <!--
=================
Only appliable if game2 exists
=================
-->[[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:{{{game2}}} Incomplete Localization Files]][[Category:{{{game2}}} Incomplete {{{language}}} Localization Files]] }} | <!--
=================
If not, return nothing
=================
--> }}<!--
=================
Other categories
=================
--> }}</includeonly><noinclude>{{Documentation}}{{AddCategories|type=Infobox}}</noinclude>

Revision as of 19:19, 12 October 2020

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=
}}