Template:Userbox Container: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
no title should be displayed if no title is given
mNo edit summary
(no title should be displayed if no title is given)
 
(3 intermediate revisions by the same user 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|144}}}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}}

Navigation menu