Difference between revisions of "Template:Userbox"

2,135 bytes removed ,  15:01, 3 February 2009
m
1 revision
m (1 revision)
 
m (1 revision)
 
Line 1: Line 1:
<noinclude>{{Template sandbox notice}}
<div style="float:{{{float|left}}}; border:{{{border-width|{{{border-s|1}}}}}}px solid {{{border-color|{{{1|{{{border-c|{{{id-c|#999}}}}}}}}}}}}; margin:1px;" class="wikipediauserbox">
</noinclude>{{mbox
{| cellspacing="0" style="width:238px; background:{{{info-background|{{{2|{{{info-c|#EEE}}}}}}}}};"
| demospace = {{{demospace|}}}
| style="width:{{{logo-width|{{{id-w|45}}}}}}px; height:{{{logo-height|{{{id-h|45}}}}}}px; background:{{{logo-background|{{{1|{{{id-c|#DDD}}}}}}}}}; text-align:center; font-size:{{{logo-size|{{{5|{{{id-s|14}}}}}}}}}pt; color:{{{logo-color|{{{id-fc|black}}}}}}; padding:{{{logo-padding|{{{id-p|1px}}}}}}; line-height:{{{logo-line-height|{{{id-lh|1.25em}}}}}}; {{{logo-other-param|{{{id-op|}}}}}}; vertical-align: middle;" |'''{{{logo|{{{3|{{{id|id}}}}}}}}}'''
| type = content
| style="text-align:left; font-size:{{{info-size|{{{info-s|8}}}}}}pt; padding:{{{info-padding|{{{info-p|4px}}}}}}; line-height:{{{info-line-height|{{{info-lh|1.25em}}}}}}; color:{{{info-color|{{{info-fc|black}}}}}}; {{{info-other-param|{{{info-op|}}}}}}; vertical-align: middle;" | {{{info|{{{4|{{{info|''info''}}}}}}}}}
| image = {{#if:{{{image|}}}| [[Image:{{{image|}}}|40px|Warning]] }}
|}</div><noinclude>
| textstyle = text-align: center;
{{pp-template|small=yes}}
| text = {{{1}}}
{{clear}}
}}<noinclude>
{{template doc}}
 
 
== Testing ==
 
Testing this box here. You might need to {{purge|purge this page}} to see any changes you have done.
 
<pre>
{{warning|Include text here.}}
</pre>
 
Main (article) space:
 
{{warning/sandbox|demospace=main|Include text here.}}
 
Talk space:
 
{{warning/sandbox|demospace=talk|Include text here.}}
 
Image space:
 
{{warning/sandbox|demospace=image|Include text here.}}
 
Category space:
 
{{warning/sandbox|demospace=category|Include text here.}}
 
Other space:
 
{{warning/sandbox|Include text here.}}
 
Feeding "image = Ambox warning pn.svg":
 
{{warning/sandbox|image = Ambox warning pn.svg|Include text here.}}
 
Testing to substitute this box here:
 
<!-- {{subst:warning/sandbox|Include text here.}} -->
{{main talk other
| demospace =
| 1 =  <!--Articles (main space)-->
  {{ambox | type=serious
  | image = [[Image:Stop hand nuvola.svg|40px|Warning]]
  | text = Include text here.
  }}
| 2 =  <!--Talk pages-->
  <table class="messagebox standard-talk" style="border:1px solid #CC9999; background-color:#FFCCCC;">
  <tr><td>[[Image:Stop hand nuvola.svg|40px|Warning]]
  <td align="left" width="100%">Include text here.
  </table>
| 3 =  <!--Other pages-->
  <table class="messagebox" style="border:1px solid #CC9999; background-color:#FFCCCC;">
  <tr><td>[[Image:Stop hand nuvola.svg|40px|Warning]]
  <td align="left" width="100%">Include text here.
  </table>
}}
 
Testing to substitute this box here:
 
<!-- {{subst:warning/sandbox|Include text here.}} -->
{{#ifeq:{{NAMESPACE}}|{{ns:0}}
| {{ambox | type=serious
  | image = [[Image:Stop hand nuvola.svg|40px|Warning]]
  | text = Include text here.
  }}
| <table class="messagebox" style="border:1px solid #CC9999; background-color:#FFCCCC;">
  <tr><td>[[Image:Stop hand nuvola.svg|40px|Warning]]
  <td align="left" width="100%">Include text here.
  </table>
}}
 
Testing to substitute this box here:
 
<!-- {{subst:warning/sandbox|Include text here.}} -->
{{mbox
| demospace =
| type = content
| image = [[Image:Stop hand nuvola.svg|40px|Warning]]
| textstyle = text-align: center;
| text = Include text here.
}}
 
Testing to substitute this box here:
 
<!-- {{subst:warning/sandbox|Include text here.}} -->
{{mbox
| demospace =
| type = content
| image = [[Image:Ambox warning orange.svg|40px|Warning]]
| textstyle = text-align: center;
| text = Include text here.  
}}
 
Testing to substitute this box here:
 
<!-- {{subst:warning/sandbox|Include text here.}} -->
{{mbox
| demospace =
| type = content
| textstyle = text-align: center;
| text = Include text here.
}}
 
Testing to substitute this box here:
 
<!-- {{subst:warning/sandbox|Include text here.}} -->
{{mbox
| demospace =
| type = content
| image = {{#if:| [[Image:{{{image}}}|40px|Warning]] }}
| textstyle = text-align: center;
| text = Include text here.
}}
 
Testing to substitute this box here:
 
<!-- {{subst:warning/sandbox|Include text here.}} -->
{{mbox
| demospace =  
| type = content
| image = {{#if:| [[Image:|40px|Warning]] }}
| textstyle = text-align: center;
| text = Include text here.
}}
 
</noinclude>
</noinclude>
Budlight
Bots, Bureaucrats, Administrators
529

edits