Difference between revisions of "Template:Event"

From Wurmpedia
Jump to navigation Jump to search
m (Attempting a lighter colour background.)
m (fixed broken links)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>{{#switch: {{{1}}}
 
<includeonly>{{#switch: {{{1}}}
 
| block = <span style="
 
| block = <span style="
border: 1px solid #000;
+
color: #fff;
-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: #4b3e30;
 
 
font-family: Sans-Serif;
 
font-family: Sans-Serif;
 
font-size: 0.85em;
 
font-size: 0.85em;
color: #fff;
+
border: 1px rgb(0, 0, 0) solid;
padding: 1px 5px 1px 5px;
+
background: rgb(75, 62, 48);
 +
line-height: 1.3em;
 +
-webkit-border-radius: 5px;
 +
-moz-border-radius: 5px;
 +
border-radius: 5px;
 +
-moz-box-shadow: 2px 2px 5px 1px rgb(101, 101, 101);
 +
-webkit-box-shadow:  2px 2px 5px 1px rgb(101, 101, 101);
 +
box-shadow:  2px 2px 5px 1px rgb(101, 101, 101);
 +
padding: 10px 10px 10px 10px;
 
display: block;
 
display: block;
 
width: 70%;">{{{2}}}</span>
 
width: 70%;">{{{2}}}</span>
 
| inline = <span style="
 
| inline = <span style="
border: 1px solid #000;
+
color: #fff;
-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: #4b3e30;
 
 
font-family: Sans-Serif;
 
font-family: Sans-Serif;
 
font-size: 0.85em;
 
font-size: 0.85em;
color: #fff;
+
border: 1px rgb(0, 0, 0) solid;
padding: 1px 5px 1px 5px;
+
background: rgb(75, 62, 48);
display: inline-block;">{{{2}}}</span>
+
line-height: 1.3em;
 +
-webkit-border-radius: 5px;
 +
-moz-border-radius: 5px;
 +
border-radius: 5px;
 +
-moz-box-shadow: 2px 2px 5px 1px rgb(101, 101, 101);
 +
-webkit-box-shadow:  2px 2px 5px 1px rgb(101, 101, 101);
 +
box-shadow:  2px 2px 5px 1px rgb(101, 101, 101);
 +
padding: 2px 10px 2px 10px;
 +
display: inline-block;"> {{{2}}} </span>
 
| Select block or inline.
 
| Select block or inline.
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
Line 41: Line 43:
 
<span style="background:#E6FFE6;"><nowiki>{{event|block|event text}}</nowiki></span> produces a
 
<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.}}
+
{{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]]
 
[[Category:Template]]
 
</noinclude>
 
</noinclude>

Latest revision as of 04:12, 3 November 2016

Main Page / Templates / Event

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

Usage:

{{event|inline|event text}} produces an inline event message or

{{event|block|event text}} produces a

70% width block event message on a new line. Useful for multiple lines of text or aligning many instances on a page.
Use <br>to break to a new line within the template, but keep the text flowing in one line..