Template:Userbox Container: Difference between revisions

Want an adless experience? Log in or Create an account.
mNo edit summary
(no title should be displayed if no title is given)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{lc:{{{1|start}}}}}
<onlyinclude><includeonly>{{Box|{{{float|right}}}|style={{{style|clear:{{{float|right}}};}}}|width=258px|title={{{title|}}}|
|start=
  {{Scroll|height={{{height|{{#expr: 48 * {{{num|5}}} - 1}}px}}}|
{{(!}} class="infobox" cellpadding="4" style="float: {{{float|right}}}; margin: 0 0 1em 1em; width: 22em; border-collapse: collapse; width: 100px;"
    {{{1|This user has a Userbox Container with no Userboxes in it...?}}}
{{!-}}{{#if:{{{name|}}}|
  }}
!class="title"{{!}}{{{name|}}}}}
}}</includeonly></onlyinclude>
{{!-}}
 
{{!}}<div style="overflow: auto; width: {{{w|265}}}px; height: {{{h|145}}px;">
|end=
</div>
{{!)}}}}</includeonly><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=|h=|float=}}
<pre>{{Userbox Container|float=right|title=About Me|num=5}}
  Userbox Templates
  Userbox Templates
{{Userbox Container|End}}
}}
</pre>
</pre>
{{Usage/Param|name|name of the container|Optional}}
{{Usage/Param|float|set where to float the container|optional|right}}
{{Usage/Param|h|height of the scroll bar in the container in pixels|Optional|145}}
{{Usage/Param|title|name of the container|optional|About [your username]}}
{{Usage/Param|float|set where to float the container|Optional|right}}
{{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)