You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
Template:UserTemplate: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{|style="margin:{{{margintopbottom|auto}}} {{{marginleftright|0}}};border:{{{borderwidth|2px}}} {{{borderstyle|solid}}} {{{bordercolor|black}}};width:{{{width|250px}}};padding:{{...") |
No edit summary |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 74: | Line 74: | ||
*''mainpadding:'' 0 | *''mainpadding:'' 0 | ||
== | ==Examples== | ||
{{speling}} | |||
To create | To create | ||
{{UserTemplate|headertext='''My First Template'''|maintext=This is my first template!|image=logo_mafiascum_medium.jpg}} | {{UserTemplate|headertext='''My First Template'''|maintext=This is my first template!|image=logo_mafiascum_medium.jpg}} | ||
just type | just type | ||
<nowiki>{{UserTemplate|headertext='''My First Template'''|maintext=This is my first template!|image=logo_mafiascum_medium.jpg}}</nowiki> | <nowiki>{{UserTemplate|headertext='''My First Template'''|maintext=This is my first template!|image=logo_mafiascum_medium.jpg}}</nowiki> | ||
[[Category:Userboxes]][[Category:Zoidberg templates]]</noinclude> | |||
[[Category:Userboxes]][[Category:Zoidberg |
Latest revision as of 16:49, 7 April 2015
{{{headertext}}} | |
{{{maintext}}} |
Usage
{{UserTemplate |margintopbottom=size |marginleftright=size |borderwidth=size |borderstyle=style |bordercolor=color |width=size |padding=size |background=color |fontsize=size |imagepadding=size |image=name |imagewidth=size |headerbackground=color |headercolor=color |headerfontsize=size |headerlineheight=size |headeralign=alignment |headerheight=size |headertext=text |mainfontsize=size |mainalign=alignment |mainlineheight=size |mainbackground=color |maincolor=color |mainpadding=size |maintext=text }}
This template is the mother of all box templates. You need only define a few variables to get it to function. But you can adjust others for fine tuning of the result. Feel free to adapt this to your own ends, but please don't edit without first consulting Zoidberg.
You must define:
- image: image filename
- headertext: text in the header
- maintext: text in the main body
You should probably define:
- bordercolor: color of the border
- headerbackground: color of the header
- headercolor: color of the header text
The defaults are:
- margintopbottom: auto
- marginleftright: 0
- borderwidth: 2px
- borderstyle: solid
- bordercolor: black
- width: 250px
- padding: 0
- background: white
- fontsize: medium
- imagepadding: 0
- imagewidth: 60px
- headerbackground: black
- headercolor: white
- headerfontsize: small
- headerlineheight: 1.5
- headeralign: center
- headerheight: auto
- mainfontsize: xx-small
- mainalign: center
- mainlineheight: 2
- mainbackground: transparent
- maincolor: black
- mainpadding: 0
Examples
SPELING LOL | |
Yuo fayl Englesh? That's unpossablle! |
To create
My First Template | |
This is my first template! |
just type
{{UserTemplate|headertext='''My First Template'''|maintext=This is my first template!|image=logo_mafiascum_medium.jpg}}