Sandbox: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
(Replacing page with '<noinclude><!-- DO NOT EDIT THIS LINE! -->{{Sandboxwarning}}__NOTOC__Category:Wiki Resources<!-- DO NOT EDIT THIS LINE! --></noinclude> 2 Cola')
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>
[[2 Cola]]
<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|
&#123;&#123;UserTemplate&#124;<br />
align&#61;''alignment''&#124; (left, center or right)<br />
margintopbottom&#61;''size''&#124;<br />
marginleftright&#61;''size''&#124;<br />
borderwidth&#61;''size''&#124;<br />
borderstyle&#61;''style''&#124;<br />
bordercolor&#61;''color''&#124;<br />
width&#61;''size''&#124;<br />
padding&#61;''size''&#124;<br />
background&#61;''color''&#124;<br />
fontsize&#61;''size''&#124;<br />
imagepadding&#61;''size''&#124;<br />
image&#61;''name''&#124;<br />
imagewidth&#61;''size''&#124;<br />
headerbackground&#61;''color''&#124;<br />
headercolor&#61;''color''&#124;<br />
headerfontsize&#61;''size''&#124;<br />
headerlineheight&#61;''size''&#124;<br />
headeralign&#61;''alignment''&#124;<br />
headerheight&#61;''size''&#124;<br />
headertext&#61;''text''&#124;<br />
mainfontsize&#61;''size''&#124;<br />
mainalign&#61;''alignment''&#124;<br />
mainlineheight&#61;''size''&#124;<br />
mainbackground&#61;''color''&#124;<br />
maincolor&#61;''color''&#124;<br />
mainpadding&#61;''size''&#124;<br />
maintext&#61;''text''&#125;&#125;
}}
 
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|&#123;&#123;UserTemplate&#124;headertext&#61;&#39;&#39;&#39;My First Template&#39;&#39;&#39;&#124;maintext&#61;This is my first template!&#124;image&#61;Dead.gif&#125;&#125;}}
 
[[Category:Utility Templates|{{PAGENAME}}]]
</noinclude>

Revision as of 02:04, 7 August 2009

The Sandbox
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

Dead.gif My First Template
This is my first template!

just type

{{UserTemplate|headertext='''My First Template'''|maintext=This is my first template!|image=Dead.gif}}