Template:Tp: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Some documentation) |
||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#expr: {{{3}}} }} [[Category:Tp-{{{1}}} {{# | <includeonly><onlyinclude>{{#expr: {{{3}}} }} [[Category:Tp-{{{1}}} {{#ifexpr: {{{3}}} >= {{{2}}} | full | {{#ifexpr: ({{{3}}}) <= 0 | zero | {{#ifexpr: (({{{3}}}) * 100 / ({{{2}}})) < 35 | low | {{#ifexpr: (({{{3}}}) * 100 / ({{{2}}})) < 65 | average | {{#ifexpr: (({{{3}}}) * 100 / ({{{2}}})) < 100 | high }} }} }} }} }}]]</onlyinclude></includeonly> | ||
Tp – Translation Progress. Is a helper template for the {{T|Page}} template. Mainly used to display the number of strings translated and categorize the page relative to the translation percentage: | |||
* {{Code|Category:Tp-<lang code> zero}} – If there are no translated strings for a given language | |||
* {{Code|Category:Tp-<lang code> low}} – If the translation percentage is less than 35% | |||
* {{Code|Category:Tp-<lang code> average}} – If the translation percentage is greater than or equal to 35% but less than 65% | |||
* {{Code|Category:Tp-<lang code> high}} – If the translation percentage is greater than or equal to 65% but less than 100% | |||
* {{Code|Category:Tp-<lang code> full}} – 100% translated strings | |||
Revision as of 23:02, 19 June 2024
Tp – Translation Progress. Is a helper template for the {{Page}} template. Mainly used to display the number of strings translated and categorize the page relative to the translation percentage:
Category:Tp-<lang code> zero– If there are no translated strings for a given languageCategory:Tp-<lang code> low– If the translation percentage is less than 35%Category:Tp-<lang code> average– If the translation percentage is greater than or equal to 35% but less than 65%Category:Tp-<lang code> high– If the translation percentage is greater than or equal to 65% but less than 100%Category:Tp-<lang code> full– 100% translated strings