Difference between revisions of "Template:P Header Box"
Jump to navigation
Jump to search
(6 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
This template adds the 1px black border around an item. This is used as a stylistic unit used throughout the Paparazzi wiki. Optionally you can provide the <code>ico</code> parameter that adds a small icon in the front of the item. | This template adds the 1px black border around an item. This is used as a stylistic unit used throughout the Paparazzi wiki. Optionally you can provide the <code>ico</code> parameter that adds a small icon in the front of the item. | ||
This template accepts the following named parameters: | |||
* <code>ico</code> icon picture name including suffix | |||
* <code>color</code> text color inside the box | |||
* <code>size</code> text size inside the box | |||
Here is an example without an icon: | Here is an example without an icon: | ||
{{P_Header_Box|Hello}} | {{P_Header_Box|Hello}} | ||
{{P_Header_Box|ico=Gear.png|Hello}} | |||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
{|style="width: 100%;padding:4px;border:1px solid #000;" | {|style="width: 100%;padding:4px;border:1px solid #000;" | ||
|<h3 style="padding:0px;">{{{1}}}</h3> | |<h3 style="padding:0px;margin:0px;{{#if: {{{background-color|}}}|background-color:{{{background-color}}};}}{{#if: {{{color|}}}|color:{{{color}}};}}{{#if: {{{size|}}}|font-size:{{{size}}};}}">{{#if: {{{ico|}}}|[[Image:{{{ico}}}|32px]]}} {{{1}}}</h3> | ||
|} | |} | ||
</includeonly> | </includeonly> |
Latest revision as of 17:13, 9 January 2016
Note: This page is a template. It contains no Paparazzi related information but should be used as part of other articles. For more information, read Help:Templates.
Please do not experiment with this template, it could mess up all pages using this template.
This template adds the 1px black border around an item. This is used as a stylistic unit used throughout the Paparazzi wiki. Optionally you can provide the ico
parameter that adds a small icon in the front of the item.
This template accepts the following named parameters:
ico
icon picture name including suffixcolor
text color inside the boxsize
text size inside the box
Here is an example without an icon:
Hello |
Hello |