7 Days to Die Wiki
(Updated documentation to reflect new keyword functionality and for readability.)
Line 1: Line 1:
 
{{doc/start}}
 
{{doc/start}}
  +
 
This template places a simple warning box at the top of a page.
 
This template places a simple warning box at the top of a page.
   
== Usage ==
+
==Usage==
   
 
Pretty simple:
 
Pretty simple:
   
<nowiki>{{Warning_Box|message=Your Message}}</nowiki>
+
<code><nowiki>{{Warning_Box|message=Your Message}}</nowiki></code>
   
 
If the message is blank, the box won't be visible.
 
If the message is blank, the box won't be visible.
   
=== Example ===
+
===Example===
<pre>{{Warning_Box|message=7DTD can be extremely addictive. Play at your own risk.</pre>
+
<code><nowiki>{{Warning_Box|message=7DTD can be extremely addictive. Play at your own risk.}}</nowiki></code>
  +
 
Produces:
   
;Produces:
 
 
{| cellspacing="0" cellpadding="2px" style="background: rgba( 255, 255, 255, .30); overflow: hidden; border: 2px solid rgba(0, 0, 0, 0.2); border-radius: 10px; border-radius: 10px; padding: 7px; margin: auto; width: auto;"
 
{| cellspacing="0" cellpadding="2px" style="background: rgba( 255, 255, 255, .30); overflow: hidden; border: 2px solid rgba(0, 0, 0, 0.2); border-radius: 10px; border-radius: 10px; padding: 7px; margin: auto; width: auto;"
 
|<span style="font-family: 'Fontawesome-webfont';"> <font size="14">&#xf071;</font> </span>
 
|<span style="font-family: 'Fontawesome-webfont';"> <font size="14">&#xf071;</font> </span>
Line 19: Line 21:
 
| 7DTD can be extremely addictive. Play at your own risk.
 
| 7DTD can be extremely addictive. Play at your own risk.
 
|}
 
|}
  +
  +
==Pre-formatted Messages==
  +
  +
Below are pre-formatted messages that allow for additional standardization in the way the warning box is worded as well as a quick way to add the template to pages:
  +
  +
Simply use the keyword (case sensitive) as your message and the warning box will use the pre-formatted response below:
  +
  +
{| class="wikitable"
  +
! Keyword
  +
! Pre-formatted response
  +
|-
  +
| template
  +
| Changes to this template will affect several other pages. <br>Please be careful when modifying this template. <BR>Remember that you can conduct experiments, and should test all improvements, <br>in either the this template's sandbox (if it has one) or your user space before changing anything here.
  +
|-
  +
| testcases-template
  +
| This is the template test cases page for the sandbox of <nowiki>{{PAGENAME}}</nowiki>. <p>You can also use <nowiki>[[Special:ExpandTemplates]]</nowiki> to examine the results of template uses.</p><p>Use the purge link to update the examples.</p>
  +
|-
  +
| deprecated-template
  +
| This template has been deprecated and should no longer be placed on new pages.
  +
|}
  +
 
{{doc/end}}
 
{{doc/end}}

Revision as of 05:54, 26 February 2016

Template-info.png Documentation


This template places a simple warning box at the top of a page.

Usage[]

Pretty simple:

{{Warning_Box|message=Your Message}}

If the message is blank, the box won't be visible.

Example[]

{{Warning_Box|message=7DTD can be extremely addictive. Play at your own risk.}}

Produces:

  7DTD can be extremely addictive. Play at your own risk.

Pre-formatted Messages[]

Below are pre-formatted messages that allow for additional standardization in the way the warning box is worded as well as a quick way to add the template to pages:

Simply use the keyword (case sensitive) as your message and the warning box will use the pre-formatted response below:

Keyword Pre-formatted response
template Changes to this template will affect several other pages.
Please be careful when modifying this template.
Remember that you can conduct experiments, and should test all improvements,
in either the this template's sandbox (if it has one) or your user space before changing anything here.
testcases-template This is the template test cases page for the sandbox of {{PAGENAME}}.

You can also use [[Special:ExpandTemplates]] to examine the results of template uses.

Use the purge link to update the examples.

deprecated-template This template has been deprecated and should no longer be placed on new pages.

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.