Difference between revisions of "Template:Englishdoc"

From Stardew Valley Wiki
Jump to navigation Jump to search
(New template -- at least on english site -- for consistency with other languages)
 
m (nowiki+pre to fully isolate the include commands)
Line 3: Line 3:
 
For example, the following noinclude section can be used at the end of any template, and can be copied as-is to all other languages:
 
For example, the following noinclude section can be used at the end of any template, and can be copied as-is to all other languages:
  
<pre>
+
<pre><nowiki>
 
<noinclude>{{Englishdoc}}{{#ifexist:{{FULLPAGENAME}}/doc |<nowiki/>
 
<noinclude>{{Englishdoc}}{{#ifexist:{{FULLPAGENAME}}/doc |<nowiki/>
 
{{{{FULLPAGENAME}}/doc}} }}</noinclude>
 
{{{{FULLPAGENAME}}/doc}} }}</noinclude>
</pre>
+
</nowiki></pre>
  
 
On the english wiki, the only real purpose of this template is to add interlanguage links (replacing [[Template:Addlanglinks]]), but it does not display any text on other template pages.  
 
On the english wiki, the only real purpose of this template is to add interlanguage links (replacing [[Template:Addlanglinks]]), but it does not display any text on other template pages.  

Revision as of 23:17, 3 September 2020

This is a semi-placeholder template on the English wiki. Adding it to the end of other templates allows english-language templates to be as similar as possible to the versions ported to other languages.

For example, the following noinclude section can be used at the end of any template, and can be copied as-is to all other languages:

<noinclude>{{Englishdoc}}{{#ifexist:{{FULLPAGENAME}}/doc |<nowiki/>
{{{{FULLPAGENAME}}/doc}} }}</noinclude>

On the english wiki, the only real purpose of this template is to add interlanguage links (replacing Template:Addlanglinks), but it does not display any text on other template pages.