Changes

Jump to navigation Jump to search

Template:Event

1,486 bytes added, 06:50, 9 June 2015
New template for event messages.
<includeonly>{{#switch: {{{1}}}
| block = <span style="
border: 1px solid #000;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
-moz-box-shadow: 1px 2px 2px #000;
-webkit-box-shadow: 1px 2px 2px #000;
box-shadow: 1px 2px 2px #ddd;
background-color: #1c1712;
font-family: Sans-Serif;
font-size: 0.85em;
color: #fff;
padding: 1px 5px 1px 5px;
display: block;
width: 70%;">{{{2}}}</span>
| inline = <span style="
border: 1px solid #000;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
-moz-box-shadow: 1px 2px 2px #000;
-webkit-box-shadow: 1px 2px 2px #000;
box-shadow: 1px 2px 2px #ddd;
background-color: #1c1712;
font-family: Sans-Serif;
font-size: 0.85em;
color: #fff;
padding: 1px 5px 1px 5px;
display: inline-block;">{{{2}}}</span>
| Select block or inline.
}}</includeonly><noinclude>
[[Main page]] / [[:Category:templates|Templates]] / {{PAGENAME}}

Displays a box similar to the in-game event window.

'''Usage''':

<span style="background:#E6FFE6;"><nowiki>{{event|inline|event text}}</nowiki></span> produces an {{event|inline|inline event message}} or

<span style="background:#E6FFE6;"><nowiki>{{event|block|event text}}</nowiki></span> produces a

{{event|block|70% width block event message on a new line. Useful for multiple lines of text or aligning many instances on a page.<br>Use <nowiki><br></nowiki>to break to a new line within the template, but keep the text flowing in one line.}}
[[Category:Template]]
</noinclude>
UserManager, editor
1,721

edits

Navigation menu