Template:Strings subpage/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added a preview and all of lang that are used in the template)
Line 66: Line 66:
<!-- Categories below this line, please -->
<!-- Categories below this line, please -->
[[Category:Templates]]
[[Category:Templates]]
}}
== Preview ==
List of all languages that are used in this template:
{{strings subpage
| number = 4
| en = 1
| ar = 2
| en-GB = 3
| ca = 4
| cs = 1
| de = 2
| es = 3
| eo = 4
| et = 1
| fi = 2
| fr = 3
| hr = 4
| hu = 1
| el = 2
| it = 3
| ko = 4
| ka = 1
| he = 2
| nl = 3
| no = 4
| pl = 1
| pt = 2
| pt-br = 3
| ru = 4
| uk = 1
| sv = 2
| tr = 3
| ja = 4
| vi = 1
| zh = 2
| zh-tw = 3
}}
}}

Revision as of 10:04, 3 May 2024

Edit-copy.png
This is a documentation subpage for Template:Strings subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.


A panel indicating that the page it is on contains strings that are used in lieu of complicated {{autolang}}s on the base page.

Looking for creating a Strings subpage?

If you are looking for creating a strings subpage, just create a "/strings" subpage, then paste the following code:

See the code
{{Strings subpage |number = 1 | en = 1 | de = 1 | eo = 1 | es = 1 | fi = 1 | fr = 1 | ru = 1 | vi = 1 | zh = 1 }} * {{{{PAGENAME}}|Example}} <includeonly><onlyinclude>{{#switch:{{{1}}}<!-- Remember to keep this clean by sorting A-Z, and copy paste the tab space instead of pressing "SPACE" repeatedly. --> | Example = {{Autolang | Example | de = Beispiel | eo = Ekzemplo | es = Ejemplo | fi = Esimerkki | fr = Exemple | ru = Пример | vi = Ví dụ | zh = 示例 }} }}</onlyinclude></includeonly>
Note.pngNote:(Not required), but when you add a new language, it is recommended to sort the language codes from A to Z.

Parameters and Examples

Parameter Description Example
No Parameters Places the template.
{{Strings subpage}}
{{{number}}} Number of strings.
| number = 6
{{{<language code>}}} Number of translated strings into the specified language.
| en = 6
| eo = 3
| he = 2

When creating a new strings subpage, click on the three dots in the top right of the documentation box and click "Strings". This will create a new strings subpage with the proper formatting already applied. Of course, this is not required and you can just create a new one from scratch if you so wish.


Preview

List of all languages that are used in this template:

Number of strings:4
Approximate status of translation:English (en) 25% British English (en-GB) 75% العربية (ar) 50% Català (ca) 100% Čeština (cs) 25% Deutsch (de) 50% Ελληνικά (el) 50% Español (es) 75% Esperanto (eo) 100% Eesti (et) 25% Suomi (fi) 50% Français (fr) 75% עברית (he) 50% Hrvatski (hr) 100% Magyar (hu) 25% Italiano (it) 75% 日本語 (ja) 100% 한국어 (ko) 100% Ქართული (ka) 25% Nederlands (nl) 75% Norsk (no) 100% Polski (pl) 25% Português (pt) 50% Português do Brasil (pt-br) 75% Русский (ru) 100% Svenska (sv) 50% Türkçe (tr) 75% Українська (uk) 25% Tiếng Việt (vi) 25% 中文 (zh) 50% 中文(臺灣) (zh-tw) 75%