Template:Box start: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
sims>ThomasWikia
No edit summary
m (6 revisions imported: Import from https://sims.wikia.com)
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
<onlyinclude>{| style="width: {{{masterboxwidth|100%}}};" cellpadding="0" cellspacing="0"
<onlyinclude>{| style="width: {{{masterboxwidth|100%}}};" cellpadding="0" cellspacing="0"
|- style="vertical-align: top;"
|- style="vertical-align: top;"
| style="width: {{{boxwidth|50%}}}; padding: 0.5em; border: 2px solid {{{bordercolor|{{#switch:{{{boxcolor|yellow}}}|blue=rgb(201,201,255)|green=rgb(201,255,201)|red=rgb(255,201,201)|yellow=rgb(243,243,201)|#default=rgb(201,201,201)}}}}}; color {{{textcolor|#000}}}; background-color: {{{bkgndcolor|{{#switch:{{{boxcolor|yellow}}}|blue=rgb(243,243,255)|green=rgb(243,255,243)|red=rgb(255,243,243)|yellow=rgb(255,255,243)|#default=rgb(243,243,243)}}}}};" |</onlyinclude>
| style="width: {{{boxwidth|50%}}}; padding: 0.5em; border: {{{borderpx|2px solid}}} {{{bordercolor|{{#switch:{{{boxcolor|yellow}}}|blue=rgb(201,201,255)|green=rgb(201,255,201)|red=rgb(255,201,201)|yellow=rgb(243,243,201)|#default=rgb(201,201,201)}}}}}; color: {{{textcolor|#000}}}; background-color: {{{bkgndcolor|{{#switch:{{{boxcolor|yellow}}}|blue=rgb(243,243,255)|green=rgb(243,255,243)|red=rgb(255,243,243)|yellow=rgb(255,255,243)|#default=rgb(243,243,243)}}}}};" |</onlyinclude>
'''This is a box'''
'''This is a box.'''
|}
|}
<noinclude>
<noinclude>
{{documentation}}
{{documentation}}
[[Category:Templates requesting comments|{{PAGENAME}}]]</noinclude>.
[[Category:Templates requesting comments|{{PAGENAME}}]]</noinclude>.
[[Category:Templates]]
[[Category:Miscellaneous templates]]
</noinclude>
</noinclude>

Latest revision as of 19:02, 28 February 2019

Request For Comment:
The developer(s) of this template has requested help and/or comments from the community. Please see the talk page on how you can assist in the continued development of this template. See more Templates requesting comments.

This is a box.

Template documentation (View · Edit · History · Purge)
Description
This template starts a yellow box, as the first part of a two column box by default.
Syntax
{{Box start|<borderpx=>|<boxcolor=>|<masterboxwidth=>|<boxwidth=>|<bkgndcolor=>|<bordercolor=>|<textcolor=>}}
Type {{Box start}}, then whatever you would like inside the first box, then {{Box more}} and whatever you want in the second box, ended by {{Boxes end}}.
Parameters
You can add more boxes, but you need to change the boxwidth= which defaults to 50%.
Sample output
{{Box start}}
First box text
{{Boxes end}}
gives...

First box text

{{Box start|boxcolor=red}}
First box text
{{Boxes end}}
gives...

First box text

{{Box start|boxcolor=green}}
First box text
{{Boxes end}}
gives...

First box text

{{Box start|boxcolor=blue}}
First box text
{{Boxes end}}
gives...

First box text

{{Box start|boxcolor=gray}}
First box text
{{Boxes end}}
gives...

First box text

{{Box start|bkgndcolor=#880|textcolor=#ffff00}}
First box light text dark background
{{Boxes end}}
gives...

First box light text dark background

{{Box start|bordercolor=black}}
First box with black border
{{Boxes end}}
gives...

First box with black border

{{Box start|masterboxwidth=50%}}
First box text only 50% wide
{{Boxes end}}
gives...

First box text only 50% wide

{{Box start}}
First box text
{{Box more}}
Second box text
{{Boxes end}}
gives...

First box text

Second box text

{{Box start|boxwidth=33%}}
First box text
{{Box more|boxwidth=33%}}
''Second box text''
{{Box more|boxwidth=33%}}
''Third box text''
{{Boxes end}}
gives...

First box text

Second box text

Third box text

See also

Visit Template:Box start/doc to edit this text! (How does this work?) (Refresh this text - why?)

.