Difference between revisions of "Template:Event"
Jump to navigation
Jump to search
m (+Links) |
m (fixed broken links) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#switch: {{{1}}} | <includeonly>{{#switch: {{{1}}} | ||
| block = <span style=" | | block = <span style=" | ||
− | + | color: #fff; | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
font-family: Sans-Serif; | font-family: Sans-Serif; | ||
font-size: 0.85em; | font-size: 0.85em; | ||
− | + | border: 1px rgb(0, 0, 0) solid; | |
− | + | 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=" | ||
− | + | color: #fff; | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
font-family: Sans-Serif; | font-family: Sans-Serif; | ||
font-size: 0.85em; | font-size: 0.85em; | ||
− | + | border: 1px rgb(0, 0, 0) solid; | |
− | + | 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 12:12, 3 November 2016
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..