Difference between revisions of "Template:P Header Box"

From PaparazziUAV
Jump to navigation Jump to search
 
(4 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:
Line 13: Line 18:
<includeonly>
<includeonly>
{|style="width: 100%;padding:4px;border:1px solid #000;"
{|style="width: 100%;padding:4px;border:1px solid #000;"
|{{#if: {{{ico|}}}|[[Image:{{{ico}}}|32px]]}}<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 18: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 suffix
  • color text color inside the box
  • size text size inside the box

Here is an example without an icon:


Hello



Gear.png Hello