Template:Template sandbox notice/doc: Difference between revisions

Content deleted Content added
High-use template
 
Adapt local policies, template notices and guidance for independent Elite Dangerous Wiki; preserve index layout
 
Line 12:
It can be placed on template /sandbox pages. It also detects when it is not on a /sandbox page and then shows nothing, thus it can be left in the code when copied and pasted to the main template. (Although most users remove the sandbox notice when they copy the code from the /sandbox to the main template. But beware, if the '''notice-not-sandbox''' parameter has been used then the sandbox notice must be copied with the rest of the template code. See more below.)
 
To learn more about how to use template /sandbox and /testcases subpages see [[WikipediaProject:Template documentation|Template sandbox and test cases]].
 
=== Simple example ===
Line 57:
 
=== Protection template example ===
The '''notice-not-sandbox''' parameter can for instance be used so a protection template can be placed already in the /sandbox version of the code. (See also [[WikipediaElite Dangerous Wiki:Protection policy|Protection policy]].) Like this:
 
<pre>
Line 67:
 
=== Documentation example ===
Some templates have their documentation on a separate /doc page, and then show that documentation in a green doc box below the template code by using the {{tl|documentation}} template. (See also [[WikipediaElite Dangerous Wiki:Template documentation|Template documentation]].) Then place the sandbox notice like this:
 
<pre>
Line 77:
 
=== Super deluxe example ===
This example handles both a protection template and a green doc box from a /doc page at the same time. (See also [[WikipediaElite Dangerous Wiki:Protection policy|Protection policy]] and [[WikipediaElite Dangerous Wiki:Template documentation|Template documentation]].) Like this:
 
<pre>
Line 140:
:<code><nowiki>{{template sandbox notice|category=}}</nowiki></code>
 
If you want to demonstrate the template on say [[WikipediaProject:Template index/Template namespace|Template index/Template namespace]] then you need to feed the '''subpage-name''' to make it show and feed an empty '''category''' parameter so it doesn't categorise the page. Like this:
:<code><nowiki>{{template sandbox notice|subpage-name=Template namespace|category=}}</nowiki></code>
 
=== See also ===
* {{tl|Testcases notice}} – To put on top of /testcases pages.
* [[WikipediaProject:Template index/Template namespace|Template index/Template namespace]] – Lists and shows most template related message boxes.
 
<includeonly>{{Sandbox other||