Sandbox: Difference between revisions
(Replacing page with '<noinclude><!-- DO NOT EDIT THIS LINE! -->{{Sandboxwarning}}__NOTOC__Category:Wiki Resources<!-- DO NOT EDIT THIS LINE! --></noinclude> 2 Cola') |
Lariat2301 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<noinclude><!-- DO NOT EDIT THIS LINE! -->{{Sandboxwarning}}__NOTOC__[[Category:Wiki Resources]]<!-- DO NOT EDIT THIS LINE! --></noinclude> | <noinclude><!-- DO NOT EDIT THIS LINE! -->{{Sandboxwarning}}__NOTOC__[[Category:Wiki Resources]]<!-- DO NOT EDIT THIS LINE! --></noinclude> | ||
[[ | <includeonly>{| align="center" style="margin: {{{margintopbottom|auto}}} {{{marginleftright|inherit}}}; border: {{{borderwidth|2px}}} {{{borderstyle|solid}}} {{{bordercolor|black}}}; width: {{{width|250px}}}; padding: {{{padding|auto}}}; background: {{{background|auto}}}; font-size: {{{fontsize|auto}}}" | ||
|rowspan="2" style="padding: {{{imagepadding|auto}}}" |[[Image:{{{image}}}|{{{imagewidth|60px}}}]]||style="background: {{{headerbackground|black}}}; color: {{{headercolor|white}}}; font-size: {{{headerfontsize|85%}}}; line-height: {{{headerlineheight|16px}}}; text-align: {{{headeralign|center}}}; width: 100%; height: {{{headerheight|auto}}}"|{{{headertext}}} | |||
|- | |||
|style="font-size: {{{mainfontsize|xx-small}}}; text-align: {{{mainalign|center}}}; line-height: {{{mainlineheight|auto}}}; background: {{{mainbackground|auto}}}; color: {{{maincolor|auto}}}; padding: {{{mainpadding|auto}}}"|{{{maintext}}} | |||
|}</includeonly><noinclude> | |||
==Usage== | |||
{{Code| | |||
{{UserTemplate|<br /> | |||
align=''alignment''| (left, center or right)<br /> | |||
margintopbottom=''size''|<br /> | |||
marginleftright=''size''|<br /> | |||
borderwidth=''size''|<br /> | |||
borderstyle=''style''|<br /> | |||
bordercolor=''color''|<br /> | |||
width=''size''|<br /> | |||
padding=''size''|<br /> | |||
background=''color''|<br /> | |||
fontsize=''size''|<br /> | |||
imagepadding=''size''|<br /> | |||
image=''name''|<br /> | |||
imagewidth=''size''|<br /> | |||
headerbackground=''color''|<br /> | |||
headercolor=''color''|<br /> | |||
headerfontsize=''size''|<br /> | |||
headerlineheight=''size''|<br /> | |||
headeralign=''alignment''|<br /> | |||
headerheight=''size''|<br /> | |||
headertext=''text''|<br /> | |||
mainfontsize=''size''|<br /> | |||
mainalign=''alignment''|<br /> | |||
mainlineheight=''size''|<br /> | |||
mainbackground=''color''|<br /> | |||
maincolor=''color''|<br /> | |||
mainpadding=''size''|<br /> | |||
maintext=''text''}} | |||
}} | |||
This template is the mother of all user box templates. Most of its attributes can be left out, and will assume default values: | |||
*''align:'' left | |||
*''margintopbottom:'' auto | |||
*''marginleftright:'' inherit | |||
*''borderwidth:'' 2px | |||
*''borderstyle:'' solid | |||
*''bordercolor:'' black | |||
*''width:'' 250px | |||
*''padding:'' auto | |||
*''background:'' auto | |||
*''fontsize:'' auto | |||
*''imagepadding:'' auto | |||
*''imagewidth:'' 60px | |||
*''headerbackground:'' black | |||
*''headercolor:'' white | |||
*''headerfontsize:'' 85% | |||
*''headerlineheight:'' 16px | |||
*''headeralign:'' center | |||
*''headerheight:'' auto | |||
*''mainfontsize:'' xx-small | |||
*''mainalign:'' center | |||
*''mainlineheight:'' auto | |||
*''mainbackground:'' auto | |||
*''maincolor:'' auto | |||
*''mainpadding:'' auto | |||
This allows new users to easily create templates, and advanced users to exercise fine control over what the templates they create look like. | |||
==Examples== | |||
To create | |||
{{:Sandbox|headertext='''My First Template'''|maintext=This is my first template!|image=Dead.gif}} | |||
just type | |||
{{Code|{{UserTemplate|headertext='''My First Template'''|maintext=This is my first template!|image=Dead.gif}}}} | |||
[[Category:Utility Templates|{{PAGENAME}}]] | |||
</noinclude> |
Revision as of 02:04, 7 August 2009
| |
This page is for practice editing, so that you can learn how to format pages without breaking anyone else's work. Feel free to edit or delete anything below this box. |
Usage
{{UserTemplate|
align=alignment| (left, center or right)
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 user box templates. Most of its attributes can be left out, and will assume default values:
- align: left
- margintopbottom: auto
- marginleftright: inherit
- borderwidth: 2px
- borderstyle: solid
- bordercolor: black
- width: 250px
- padding: auto
- background: auto
- fontsize: auto
- imagepadding: auto
- imagewidth: 60px
- headerbackground: black
- headercolor: white
- headerfontsize: 85%
- headerlineheight: 16px
- headeralign: center
- headerheight: auto
- mainfontsize: xx-small
- mainalign: center
- mainlineheight: auto
- mainbackground: auto
- maincolor: auto
- mainpadding: auto
This allows new users to easily create templates, and advanced users to exercise fine control over what the templates they create look like.
Examples
To create
My First Template | |
This is my first template! |
just type