Abrir menu principal

UESPWiki β

Alterações

Predefinição:SkyrimBox/Doc

2 725 bytes adicionados, 23h42min de 1 de novembro de 2013
m
Custom Main Color: Whoops, just noticed this
== Summary ==
This template is used to display a box in Skyrim style.
__NOTOC__
== Parameters ==
{{Parameters
|1 ''or'' text|required for<br>simple form|The content to hide. For more complex content such as tables, use {{tl|SkyrimBox/Start}} and {{tl|SkyrimBox/End}} around the text you wish to display and do not include this parameter.<br>Will display Lorem Ipsum... if left blank.
|2 ''or'' width|optional|The width of the box. Enter in pixels (e.g., <code>400</code>).
|3 ''or'' text-color|optional|The text's color. Defaults to white.
|main-color|optional|The main color of the image. Defaults to <code>#0D0904</code> (brownish-black).
|background-color|optional|Use if table is displaying oddly on a colored background.}}

==Limitations==
{{tl|SkyrimBox}} can not handle wiki-formatting (such as <code>==Headers==</code>) on the very first line of text, nor can it handle wikitables. To do either of those, just use {{tl|SkyrimBox/Start}} and {{tl|SkyrimBox/End}}. The parameters for those are listed above.

You can display formatted text and images. All HTML tags that work elsewhere on the wiki work, including &lt;center> tags and HTML tables.

==Examples==
===Fixed Width, Custom Font Color===
<pre>{{SkyrimBox|This is a test.|400|lightgreen}}</pre>
{{SkyrimBox|This is a test.|400|lightgreen}}

===Image===
<pre>{{SkyrimBox|[[File:SR-icon-logo.jpg]]}}</pre>
{{SkyrimBox|[[File:SR-icon-logo.jpg]]}}

===Wikitable===
SkyrimBox is very picky when it comes to wikitables. For them, you have to use {{tl|SkyrimBox/Start}} and {{tl|SkyrimBox/End}}. Additionally, if the table has a weird space surrounding it you have to add <code>style="margin:0px;"</code> to the wikitable, as shown below:
<pre>{{SkyrimBox/Start}}
{| class=wikitable style="margin:0px;"
! A Header !! Another Header
|-
|colspan=2| A double-wide cell
|}
{{SkyrimBox/End}}</pre>
{{SkyrimBox/Start}}
{| class=wikitable style="margin:0px;"
! A Header !! Another Header
|-
|colspan=2| A double-wide cell
|}
{{SkyrimBox/End}}
===Custom Main Color===
<pre>{{SkyrimBox|main-color=#FBEFD5|text-color=black|text=This is a test}}</pre>
{{SkyrimBox|main-color=#FBEFD5|text-color=black|text=This is a test}}

===Custom Main Color on a Colored Background===
<pre>{{SkyrimBox|main-color=SeaGreen|text-color=black|background-color=blue|text=Lorem Ipsum yadda yadda yadda...}}</pre>
<div style="position:relative; width:400px; height:400px; background:blue;">
<div style="position:absolute; top:20px; left:20px;">
{{SkyrimBox|main-color=SeaGreen|text-color=black|background-color=blue|text=Lorem Ipsum yadda yadda yadda...}}
</div>
</div>

<includeonly>[[Category:Markup Templates]]</includeonly><noinclude>[[Category:Template Documentation|{{PAGENAME}}]]</noinclude>
abuseeditor, Patrulhadores
8 070
edições