Template:Strings subpage/preload: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>This is a preload page for strings subpages. You can copy-paste this code, or it can be created from the {{tl2|doc}} template link in the dropdown menu</noinclude>
This is a preload page for strings subpages. You can copy-paste this code, or it can be created from the {{tl2|doc}} template link in the dropdown menu
{{Capsule|preset=2|<onlyinclude>{{Strings subpage
<!-- ACTUAL PRELOAD CONTENT:
<!-- insert # of english strings there are -->
 
Why is there a noinclude in the includeonly s and the onlyinclude s?
 
What this does is it prevents mediawiki from treating those tags as the actual beginning and endings of the preload content, instead of just text like how I want it. This allows the text to be included in the preload.
 
I hate mediawiki :)
 
-Equalizer5118
-->
<includeonly>
 
<onlyinclude>{{Strings subpage
| number =
| en =  
| en =  
<!-- insert any other translated languages below here -->
}}
 
<!-- You can optionally include previews here.
 
The format is:
 
* <string name>: {{{{PAGENAME}}|<string name>}}</span>
 
Keep the {{PAGENAME}} thing
 
-->
 
<<noinclude />onlyinclude>{{#switch:{{{1|}}}


}}
<nowiki><includeonly></nowiki>{{#switch:{{{1|}}}
<!-- insert strings below here -->
<!-- insert strings below here -->
| string 1 = {{autolang|1= }}
 
}}<nowiki></includeonly></nowiki>
| string 1 = {{#switch: {{language}}
</onlyinclude>}}
| #default = ...
| fr = ...
}}
 
| string x = {{#switch: {{language}}
| #default = ...
| de = ...
}}
 
}}<<noinclude />/onlyinclude>
</onlyinclude>
 
</includeonly>

Latest revision as of 17:56, 3 August 2024

This is a preload page for strings subpages. You can copy-paste this code, or it can be created from the {{doc}} template link in the dropdown menu