Difference between revisions of "Template:Important"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Improved text padding)
(Updated whole styling, altered how the usage page is displayed)
Line 1: Line 1:
<div style="text-align: left; margin: 1em">
+
<includeonly><div style="background-color: hsla(39, 100%, 75%, 1); border-radius: 0em; color: #FFF; display: flex; border: solid 1px hsla(39, 100%, 75%, 1); align-items: center;">
{| style="width: 100%;text-align:left; background-color: #F8EABA; border: 1px solid #aaa; padding: 0.1em; margin: 0"
+
<div style="font-size: 28px; height: 100%; margin: -2px 8px;">⚠</div>
|-
+
<div style="background-color: #FFF; border-radius: 0em; color: #333; flex-grow: 1; height: 100%; margin: 3px; padding: 0.5em;">{{{1|-Text not defined-}}}</div>
| style="padding: 0 0.1em 0 0.1em; font: bold 3em Impact;color:#EE9900; width: 0.5em;" | !
+
</div></includeonly><noinclude>
| style="padding: 0.8em; font: bold;" | '''{{{1|-Text not defined-}}}'''
 
|}</div><noinclude>
 
 
== Usage ==
 
== Usage ==
 
{| style="background: transparent; border: none;"
 
{| style="background: transparent; border: none;"
 
|<pre> {{Important|user defined text}} </pre>
 
|<pre> {{Important|user defined text}} </pre>
 
|}
 
|}
 +
=== Output ===
 +
{{Important|user defined text}}
 +
 +
 +
{{Important|{{Lorem}}}}
 +
 +
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 14:33, 28 May 2018

Usage

 {{Important|user defined text}} 

Output

user defined text


Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laborisnisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.