Template:Userbox Container: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
mNo edit summary
(utilized Box and Scroll templates to simplify coding)
Line 1: Line 1:
<includeonly>{{#switch:{{lc:{{{1|start}}}}}
<onlyinclude><includeonly>{{Box|{{{float|right}}}|style={{{style|clear:{{{float|right}}};}}}|width=258px|title={{{title|About {{PAGENAME}}}}}|
|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}}

Revision as of 21:35, February 21, 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)