Template:Strings subpage/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 2: Line 2:
<!-- Please place categories where indicated at the bottom of this page.) -->
<!-- Please place categories where indicated at the bottom of this page.) -->


A panel indicating that the page it is on contains strings that are used in lieu of complicated {{tl2|autolang}}s on the base page. Strings subpages must be set up in this manner:
A panel indicating that the page it is on contains strings that are used in lieu of complicated {{tl2|autolang}}s on the base page.  
<nowiki><noinclude>{{Strings subpage
|number = ##
|en = ##
<!-- insert other languages here -->
}}</noinclude>
<includeonly><onlyinclude>{{#switch:{{{1|}}}
| <string name 1> = {{autolang|Lorem ipsum dolor...}}
}}</onlyinclude></includeonly>
</nowiki>
== Parameters and Examples ==
== Parameters and Examples ==
{| class="standard-table" width="100%"
{| class="standard-table" width="100%"

Revision as of 11:28, 12 December 2023

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.

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