Template:Iconbox
From LOS Warmachine University
Revision as of 00:31, 10 June 2016 by Juckto (talk) (Created page with "{|cellpadding=5 width={{{width|75%}}} |- |style="border-right: 2px solid {{{fgcolor|#f80}}}" width="50pt" valign=top align=right| {{{leftbox|file:No image available.svg|x60p...")
x60px |
Heading |
juckto's Iconbox template
The code for this template is:
{|cellpadding=5 width={{{width|75%}}} |- |style="border-right: 2px solid {{{fgcolor|#f80}}}" width="50pt" valign=top align=right| {{{leftbox|[[file:No image available.svg|x60px]]}}} |style="background: #EBEBF0;border-bottom-right-radius: 12px;border-top-right-radius: 12px" valign=top| '''<span style="color:{{{fgcolor|#f80}}}">{{{heading|Heading}}}</span>''' <br> {{{content|Content}}} |}
Usage
This is a 'master' template that is used to create multiple "slave" templates that share a similar style. It requires 5 inputs:
- width (default is 75%)
- fgcolor (default is #f80, orange)
- leftbox is normally an image file, such as an exclamation mark (default is "no image available.svg")
- Heading = Heading
- Content = Content (normally left as an input, for "slave" template to use)
Examples
Creating a "Slave template" with the code:{{User:Juckto/Template:Iconbox |fgcolor=#f00 |leftbox=[[File:Ambox warning pn.svg|40px]] |heading=Warning! |content={{{1}}} }}
would produce: User:Juckto/Template:Iconbox Where {{{1}}} is the content which is left as "free" for the end user to edit.