Template:Strings subpage/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
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. Strings subpages must be set up in this manner: | ||
<nowiki><noinclude>{{Strings subpage | |||
|number = ## | |number = ## | ||
|en = ## | |en = ## | ||
<!-- insert other languages here --> | <!-- insert other languages here --> | ||
}}</noinclude> | }}</noinclude> | ||
<includeonly><onlyinclude>{{#switch:{{{1|}}} | <includeonly><onlyinclude>{{#switch:{{{1|}}} | ||
| <string name 1> = {{autolang|Lorem ipsum dolor...}} | | <string name 1> = {{autolang|Lorem ipsum dolor...}} | ||
}}</onlyinclude></includeonly> | }}</onlyinclude></includeonly> | ||
</nowiki> | </nowiki> | ||
== Parameters and Examples == | == Parameters and Examples == | ||
{| class="standard-table" width="100%" | {| class="standard-table" width="100%" |
Revision as of 11:27, 12 December 2023

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.
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. Strings subpages must be set up in this manner:
<noinclude>{{Strings subpage |number = ## |en = ## <!-- insert other languages here --> }}</noinclude> <includeonly><onlyinclude>{{#switch:{{{1|}}} | <string name 1> = {{autolang|Lorem ipsum dolor...}} }}</onlyinclude></includeonly>
Parameters and Examples
Parameter | Description | Example |
---|---|---|
No Parameters | Places the template. | |
{{{number}}} | Number of strings. | |
{{{<language code>}}} | Number of translated strings into the specified language. |