Difference between revisions of "Template:Data template used"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (!wrong noinclude parsing;)
(*more specific categories; +extra note for empty pages;)
Line 1: Line 1:
{{Box|type=notice|2=This is a [[Project:Templates#Data_templates|data template]]. To add content which doesn't belong to this template <span class="plainlinks">[{{fullurl:{{KSPROOTPAGE}}|action=edit}} edit]</span> the English page (or one of it's translations).}}<noinclude>
+
{{Box|type=notice|2=This is a [[Project:Templates#Data_templates|data template]]. To add content which doesn't belong to this template <span class="plainlinks">[{{fullurl:{{KSPROOTPAGE}}|action=edit}} edit]</span> the English page (or one of it's translations).{{if||{{{1|}}}{{#ifeq: {{SUBPAGENAME}}|Param|1}}|
 +
 
 +
This page doesn't show any content, because it consists only of internal code. Please be extra careful when editing this page.}}}}<noinclude>
 
----
 
----
 
Adds this notice to a page using a data template. This notice needs to be enclosed in &lt;noinclude&gt; tags:
 
Adds this notice to a page using a data template. This notice needs to be enclosed in &lt;noinclude&gt; tags:
 
   <nowiki>&lt;noinclude&gt;{{Data template used}}&lt;/noinclude&gt;</nowiki>
 
   <nowiki>&lt;noinclude&gt;{{Data template used}}&lt;/noinclude&gt;</nowiki>
  
[[Category:Templates]]</noinclude>
+
On pages with the subpagename <tt>Param</tt> like [[Kerbin/Param]] or if the first parameter is not empty, it also shows a note that there is intentionally nothing shown.
 +
 
 +
[[Category:Box templates]]
 +
[[Category:Data template templates]]</noinclude>

Revision as of 14:58, 27 December 2013

This is a data template. To add content which doesn't belong to this template edit the English page (or one of it's translations).

Adds this notice to a page using a data template. This notice needs to be enclosed in <noinclude> tags:

 <noinclude>{{Data template used}}</noinclude>

On pages with the subpagename Param like Kerbin/Param or if the first parameter is not empty, it also shows a note that there is intentionally nothing shown.