Difference between revisions of "Template:Warning Box/doc"

From 7 Days to Die Wiki
Jump to: navigation, search
(DPL function in "template" keyword breaks things.)
(change from font awesome to existing gui icon)
Line 17: Line 17:
   
 
{| 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;"
  +
|[[File:quest_icon.png]]
|<span style="font-family: 'Fontawesome-webfont';"> <font size="14">&#xf071;</font> </span>
 
 
|&nbsp;
 
|&nbsp;
 
| 7DTD can be extremely addictive. Play at your own risk.
 
| 7DTD can be extremely addictive. Play at your own risk.

Revision as of 00:15, 17 May 2016

Template-info.png Documentation


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

Usage[edit source]

Pretty simple:

{{Warning_Box|message=Your Message}}

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

Example[edit source]

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

Produces:

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

Pre-formatted Messages[edit source]

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
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.