ElEditors, Interface administrators, Administrators
85,550
edits
mNo edit summary |
mNo edit summary |
||
Line 39: | Line 39: | ||
*'''lang''' - is used for multi-language support. The following changes will apply if this is set. | *'''lang''' - is used for multi-language support. The following changes will apply if this is set. | ||
**Passive names are collected from translated pages' '''<nowiki>{{DISPLAYTITLE}}</nowiki>''' if exists. This acts like ''alias'' but can still be overwriten by ''alias''. | **Passive names are collected from translated pages' '''<nowiki>{{DISPLAYTITLE}}</nowiki>''' if exists. This acts like ''alias'' but can still be overwriten by ''alias''. | ||
**Translations will be fetched from '''Template:Damage/[lang]''' (i.e. '''Template:Damage/zh-hans''') and applied to table. | |||
***Text will not be translated if no any translation found. | |||
***To define your translation, you should add the following to '''Template:Damage/[lang]'''. <syntaxhighlight> | |||
{{#arraydefine:$t| | |||
original text 1=translated text 1, | |||
original text 2=translated text 2, | |||
..., | |||
}} | |||
</syntaxhighlight> | |||
****Some translations do not act entirely. They have certain patterns but some words / phrases would be replaced. In such cases, both pattern and static words / phrases should have translations. Use ''{n}'' starting from 1 in pattern to show where to replace words / phrases. | |||
*****'''Per Group''' and '''Per {count_name}''' → Need '''Per {1}''' and '''Group''' translations. | |||
=== Extra === | === Extra === |