Template:Userbox Container: Difference between revisions

Want an adless experience? Log in or Create an account.
(Created template)
 
(no title should be displayed if no title is given)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#vardefine:UBC1:
<onlyinclude><includeonly>{{Box|{{{float|right}}}|style={{{style|clear:{{{float|right}}};}}}|width=258px|title={{{title|}}}|
{{(!}} class="infobox" cellpadding="4" style="float: left; margin: 0 0 1em 1em; width: 22em; border-collapse: collapse; width: 100px; overflow: auto;"
  {{Scroll|height={{{height|{{#expr: 48 * {{{num|5}}} - 1}}px}}}|
{{!-}}{{#if:{{{2|}}}:
    {{{1|This user has a Userbox Container with no Userboxes in it...?}}}
!class="title"{{!}}{{{2}|}}}}}
  }}
{{!-}}
}}</includeonly></onlyinclude>
{{!}}
 
}}
{{#vardefine:UBC2|{{!)}}}}{{#switch:{{lc:{{{1|start}}}}}
|start={{#var:UBC1}}
|end={{#var:UBC2}}}}<noinclude>
==Purpose==
==Purpose==
This template creates a container in which to hold userboxes.
This template creates a container in which to hold {{Temlink|Userbox|Userboxes}}.


==Usage==
==Usage==
<pre>{{Userbox Container|Start|Name}}
<pre>{{Userbox Container|float=right|title=About Me|num=5}}
  Userboxe Templates
  Userbox Templates
{{Userbox Container|End}}
}}
</pre>
</pre>
{{Usage/Param|float|set where to float the container|optional|right}}
{{Usage/Param|title|name of the container|optional|About [your username]}}
{{Usage/Param|num|number of userboxes to show at once|optional|5}}
{{Cat|Formatting Templates}}
{{Cat|Formatting Templates}}
</noinclude>
{{Cat|Box Templates}}
{{Cat|Userbox Templates}}

Latest revision as of 23:45, March 2, 2013


Purpose

This template creates a container in which to hold {{Userboxes}}.

Usage

{{Userbox Container|float=right|title=About Me|num=5}}
  Userbox Templates
}}
  • float — set where to float the container (Optional. Default: right)
  • title — name of the container (Optional. Default: About [your username])
  • num — number of userboxes to show at once (Optional. Default: 5)