Template:Article Information Box: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Removed some spaces...) |
||
Line 12: | Line 12: | ||
== Syntax == | == Syntax == | ||
<nowiki> | <nowiki> | ||
{{Article Information Box | |||
| 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 = | |||
}}</nowiki> | |||
Note that <code>class name</code> needs to be identical with the name of the template for the edit link to work correctly. Note also that <code>padding: 20px 80px 10px 40px</code> means padding for the top is 20 pixels, the right is 80 pixels, the bottom is 10 pixels, and the left is 40 pixels. | Note that <code>class name</code> needs to be identical with the name of the template for the edit link to work correctly. Note also that <code>padding: 20px 80px 10px 40px</code> means padding for the top is 20 pixels, the right is 80 pixels, the bottom is 10 pixels, and the left is 40 pixels. | ||
Line 34: | Line 34: | ||
== Example == | == Example == | ||
<nowiki> | <nowiki> | ||
{{Article Information Box | |||
| class = hello | |||
| left cell text = Hello: | |||
| right cell text = Hello dear Visitor! | |||
}}</nowiki> | |||
{{Article Information Box | {{Article Information Box |
Revision as of 11:38, 18 August 2010
Template
Syntax
{{Article Information Box | 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! }}
Hello: |
Hello dear Visitor! | e |