7 Days to Die Wiki
m (Add section)
mNo edit summary
Ā 
(12 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
<includeonly>{{clear}}{{#ifeq: {{{small|}}} | yes
{{clear}}
 
 
| {{#vardefine:tablestyle | cellspacing="0" cellpadding="0" style="background: rgba( 255, 255, 255, .30); overflow: hidden; border: 1px solid {{{color|black}}}; padding: 0; margin: 1px; width: auto;" }}
āˆ’
<includeonly>
 
{{#ifeq: {{{small|}}} | yes
 
| {{#vardefine:tablestyle | cellspacing="0" cellpadding="0" style="background: rgba( 255, 255, 255, .30); overflow: hidden; border: 1px solid rgba(0, 0, 0, 255); padding: 0; margin: 1px; width: auto;" }}
 
 
| {{#vardefine:tablestyle | 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;"}}
 
| {{#vardefine:tablestyle | 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;"}}
 
}}
 
}}
   
 
{| {{#var:tablestyle}} {{#if: {{{message|}}} | | style="display: none;" }}
 
{| {{#var:tablestyle}} {{#if: {{{message|}}} | | style="display: none;" }}
āˆ’
| {{#ifeq: {{{small|}}} | yes | style="background-color: black; border-spacing: 0; padding: 0; border-color: black;"}} | {{#ifeq: {{{small|}}} | yes | &nbsp; &nbsp; }}
+
| {{#ifeq: {{{small|}}} | yes | style="background-color: {{{color|black}}}; border-spacing: 0; padding: 0; border-color: {{{color|black}}};"}} | {{#ifeq: {{{small|}}} | yes | &nbsp; &nbsp; }} {{#if: {{{image|}}} | <div style="margin: 0 4px 0 3px;">[[File:{{{image}}}|50px|text-top]]</div> }}
āˆ’
| {{#ifeq: {{{small|}}} | yes | style="font-size:80%; padding: 2px;"}} | {{#switch: {{{message|}}}
+
| {{#ifeq: {{{small|}}} | yes | style="font-size:80%; padding: 2px;"}} | {{#if: {{{title|}}} | '''{{{title}}}'''}} {{#switch: {{{message|}}}
 
| Underlinked = This article needs more links to other articles to help integrate it into the wiki. <BR>Please help improve this article by adding links that are relevant to the context within the existing text.
 
| Underlinked = This article needs more links to other articles to help integrate it into the wiki. <BR>Please help improve this article by adding links that are relevant to the context within the existing text.
 
| =
 
| =
āˆ’
| {{{message}}}
+
| {{#if: {{{title|}}} | <div>{{{message}}}</div> | {{{message}}} }}
 
}}
 
}}
 
{{#if:{{{date|}}}| <p><small>'' Proposed since {{{date|}}}.''</small></p>}}
 
{{#if:{{{date|}}}| <p><small>'' Proposed since {{{date|}}}.''</small></p>}}
Line 18: Line 16:
   
 
<noinclude>
 
<noinclude>
 
{{doc}}
āˆ’
Used to standardize format of message boxes. Proper documentation to follow soon.
 
 
[[Category:Notice_templates]]
āˆ’  
  +
[[es:Plantilla:Mbox]]
āˆ’
==Basic Usage==
 
āˆ’  
āˆ’
<code><nowiki>{{mbox|message=This page requires expansion.}}</nowiki></code> If message parameter isn't defined, no mbox will appear.
 
āˆ’  
āˆ’
{| 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;"
 
āˆ’
| This page requires expansion.
 
āˆ’
|}
 
āˆ’  
āˆ’
<code><nowiki>{{mbox|small=yes|message=This section requires expansion.}}</nowiki></code>
 
āˆ’  
āˆ’
{| cellspacing="0" cellpadding="0" style="background: rgba( 255, 255, 255, .30); overflow: hidden; border: 1px solid rgba(0, 0, 0, 255); padding: 0; margin: 1px; width: auto;"
 
āˆ’
| style="background-color: black; border-spacing: 0; padding: 0; border-color: black;" | &nbsp; &nbsp;
 
āˆ’
| style="font-size:80%; padding: 2px;" | This section requires expansion.
 
āˆ’
|}
 
āˆ’  
āˆ’
<code><nowiki>{{mbox|small=yes|date=February 9, 2016|message=This section requires expansion.}}</nowiki></code>
 
āˆ’  
āˆ’
{| cellspacing="0" cellpadding="0" style="background: rgba( 255, 255, 255, .30); overflow: hidden; border: 1px solid rgba(0, 0, 0, 255); padding: 0; margin: 1px; width: auto;"
 
āˆ’
| style="background-color: black; border-spacing: 0; padding: 0; border-color: black;" | &nbsp; &nbsp;
 
āˆ’
| style="font-size:80%; padding: 2px;" | This section requires expansion.
 
āˆ’
<p><small>'' Proposed since February 9, 2016.''</small></p>
 
āˆ’
|}
 
āˆ’  
 
</noinclude>
 
</noinclude>
[[Category:Notice_templates]]
 

Latest revision as of 02:27, 14 February 2020


Template-info Documentation


Description[]

This template is used to standardize the format of message boxes used by editors and administrators to indicate some action is required.

The template provides for two different formats of message box; a small format and a large format. The large format is the default and is meant to be placed at the top of the page and will automatically size and center itself.

The small format must be declared via a parameter and is meant to be placed at the beginning of a section that needs attention. This permits editors and administrators to mark individual sections rather than the entire page. This may be less intrusive for the reader but more importantly, it provides other editors more information as to exactly what part of a page needs attention.

Basic Usage[]

Note: If message parameter isn't defined, no mbox will appear.

{{mbox|message=This page requires expansion.}}

This page requires expansion.

{{mbox|small=yes|message=This section requires expansion.}}

    This section requires expansion.

{{mbox|small=yes|date=February 9, 2016|message=This section requires expansion.}}

    This section requires expansion.

Proposed since February 9, 2016.

Colorizing Small Mboxes[]

One caveat: Editors are asked to be subtle with their colorization of mboxes. Given the theme of the wiki, a red message box may be overbearing and distracting to readers.

The small version of the mbox can be colorized using hexadecimal color codes such as #FF0000. If no color is specified, the template defaults to black, as in the examples above. Below is an example of a colorized mbox:

{{mbox|color=#ff6600|small=yes|date=February 9, 2016|message=This section requires expansion.}}

    This section requires expansion.

Proposed since February 9, 2016.

All Parameters[]

All parameters are case-sensitive.

Parameter Description Required/Optional
message This is the actual content of the mbox. Should be concise and useful. Required
date Applies the date to the window so editors and admins can see how long the page has been tagged. Optional (but strongly encouraged)
color Applies the specified hexadecimal color to the small mbox. Optional