Predefinição:Article Information Box
Da Help Online
(Diferença entre edições)
m (1 revision) |
|||
Linha 11: | Linha 11: | ||
</td></tr></table></div> | </td></tr></table></div> | ||
| | | | ||
- | <div class="{{{class name|Article_Information_Box}}}" style="border-color:{{{box border color|#AAAAAA}}}; border-style:{{{box border style|solid}}}; border-width:{{{box border width|1px}}}; height: 20px; padding: {{{box border padding|1px 2px 1px 0}}}; vertical-align:middle; background: {{{box bgcolor|#DFDFDF}}};"> | + | <div class="{{{class name|Article_Information_Box}}}" style="border-color:{{{box border color|#AAAAAA}}}; border-style:{{{box border style|solid}}}; border-width:{{{box border width|1px}}}; height: 20px; padding: {{{box border padding|1px 2px 1px 0}}}; vertical-align:middle; background: {{{box bgcolor|#DFDFDF}}}; width: {{{box width|}}};"> |
- | <div style="min-width: 10px; float: left; padding: {{{left cell padding|0 5px 0 5px}}}; border-right-color:{{{cell separator color|#AAAAAA}}}; border-right-style: {{{cell separator style|solid}}}; border-right-width: {{{cell separator width|1px}}}; vertical-align:middle; background: {{{left cell bgcolor|none}}}; color:{{{left cell text color|}}}; font-size: {{{left cell font size|12px}}}; width: {{{left cell width|}}};">{{{left cell icon|[[File:Locked Screen.png]]}}} {{{left cell text|}}}</div> | + | <div class="left_cell" style="min-width: 10px; float: left; padding: {{{left cell padding|0 5px 0 5px}}}; border-right-color:{{{cell separator color|#AAAAAA}}}; border-right-style: {{{cell separator style|solid}}}; border-right-width: {{{cell separator width|1px}}}; vertical-align:middle; background: {{{left cell bgcolor|none}}}; color:{{{left cell text color|}}}; font-size: {{{left cell font size|12px}}}; width: {{{left cell width|}}};">{{{left cell icon|[[File:Locked Screen.png]]}}} {{{left cell text|}}}</div> |
- | <div style="min-width: 10px; float: right; padding: {{{right cell padding|0 5px 0 5px}}}; vertical-align:middle; background: {{{right cell bgcolor|#EFEFEF}}}; font-size: {{{left cell font size|12px}}}; width: {{{right cell width|100px}}}; color: {{{right cell text color|}}};">{{{right cell text|}}}</div> | + | <div class="right_cell" style="min-width: 10px; float: right; padding: {{{right cell padding|0 5px 0 5px}}}; vertical-align:middle; background: {{{right cell bgcolor|#EFEFEF}}}; font-size: {{{left cell font size|12px}}}; width: {{{right cell width|100px}}}; color: {{{right cell text color|}}};">{{{right cell text|}}}</div> |
</div> | </div> | ||
}}</onlyinclude> | }}</onlyinclude> |
Edição actual desde as 17h39min de 1 de Março de 2011
Template
Syntax
{{Article Information Box | table mode = (yes=table/empty=div) | class name = (Article_Information_Box) | table boarder = (1px solid #aaaaaa) | table text align = (middle) | left cell bgcolor = (#DFDFDF) | left cell font color = (black) | left cell font size = (12px) | left cell padding = (2px 1em 0 0.5em) | left cell width = ({{PageTitleTemplatesLeftAreaWidth}}) | left cell icon = ([[File:Locked Screen.png]]) | left cell text = | right cell bgcolor = (#EFEFEF) | right cell font color= (black) | right cell font size = (12px) | right cell padding = (1px 1em 0) | right cell text = ... }}
Note that class name
needs to be identical with the name of the template for the edit link to work correctly. Note also that padding: 20px 80px 10px 40px
means padding for the top is 20 pixels, the right is 80 pixels, the bottom is 10 pixels, and the left is 40 pixels.
Example
{{Article Information Box | class = hello | left cell text = Hello: | right cell text = Hello dear Visitor! }}