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 [[
=== 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 [[
<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 [[
<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 [[
<pre>
Line 140:
:<code><nowiki>{{template sandbox notice|category=}}</nowiki></code>
If you want to demonstrate the template on say [[
:<code><nowiki>{{template sandbox notice|subpage-name=Template namespace|category=}}</nowiki></code>
=== See also ===
* {{tl|Testcases notice}} – To put on top of /testcases pages.
* [[
<includeonly>{{Sandbox other||
| |||