Template:Page notice: Difference between revisions

m
Use class attribute and move style to MediaWiki:Common.css. Insert more clarification
m (Add a margin on title)
m (Use class attribute and move style to MediaWiki:Common.css. Insert more clarification)
 
Line 1: Line 1:
<includeonly><div><table style="width: 80%; margin: auto; border-radius: 10px; box-shadow: 0px -6px #0004 inset; padding: 0.4em 0.4em 0.6em; border: 2px solid {{{background|#808080}}}; {{#if: {{{foreground|}}} | background: {{{foreground|}}}; }}{{{style|}}}">
<includeonly><div><table class="notice" style="border-color: {{{background|#808080}}}; {{#if: {{{foreground|}}} | background: {{{foreground|}}}; }}{{{style|}}}">
<tr>
<tr>
<td style="vertical-align: middle">
<td style="vertical-align: middle">
Line 40: Line 40:
* '''description''': Notice contents.
* '''description''': Notice contents.
* '''image''': Image that supplements the notice. The image should be a size less than 128px. Optional.
* '''image''': Image that supplements the notice. The image should be a size less than 128px. Optional.
* '''foreground''': Color within the notice.
* '''foreground''': Valid CSS color within the notice.
* '''background''': Color for the border of the notice.
* '''background''': Valid CSS color for the border of the notice.
* '''titlestyle''': Specific styles for the title.
* '''titlestyle''': Specific CSS styles for the title.
* '''imagestyle''': Specific styles for the image box.
* '''imagestyle''': Specific CSS styles for the image box.
* '''descriptionstyle''': Specific styles for the description box.
* '''descriptionstyle''': Specific CSS styles for the description box.


[[Category:Notice templates| ]]
[[Category:Notice templates| ]]
[[Category:Templates| ]]
[[Category:Templates| ]]
</noinclude>
</noinclude>