Predefinição:SkyrimBox/Start
A UESPWiki – Sua fonte de The Elder Scrolls desde 1995
Summary
This template is used to display a box in Skyrim style.
Parameters
SkyrimBox | ||
---|---|---|
Parâmetero | Escopo | Descrição |
1 or text |
required for simple form |
The content to hide. For more complex content such as tables, use {{SkyrimBox/Start}} and {{SkyrimBox/End}} around the text you wish to display and do not include this parameter. Will display Lorem Ipsum... if left blank. |
2 or width |
optional | The width of the box. Enter in pixels (e.g., 400 ). |
3 or text-color |
optional | The text's color. Defaults to white. |
main-color |
optional | The main color of the image. Defaults to #0D0904 (brownish-black). |
background-color |
optional | Use if table is displaying oddly on a colored background. |
Limitations
{{SkyrimBox}} can not handle wiki-formatting (such as ==Headers==
) on the very first line of text, nor can it handle wikitables. To do either of those, just use {{SkyrimBox/Start}} and {{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 <center> tags and HTML tables.
Examples
Fixed Width, Custom Font Color
{{SkyrimBox|This is a test.|400|lightgreen}}
This is a test.
|
Image
{{SkyrimBox|[[File:SR-icon-logo.jpg]]}}
Wikitable
SkyrimBox is very picky when it comes to wikitables. For them, you have to use {{SkyrimBox/Start}} and {{SkyrimBox/End}}. Additionally, if the table has a weird space surrounding it you have to add style="margin:0px;"
to the wikitable, as shown below:
{{SkyrimBox/Start}} {| class=wikitable style="margin:0px;" ! A Header !! Another Header |- |colspan=2| A double-wide cell |} {{SkyrimBox/End}}
|
Custom Main Color
{{SkyrimBox|main-color=#FBEFD5|text-color=black|text=This is a test}}
This is a test
|
Custom Main Color on a Colored Background
{{SkyrimBox|main-color=SeaGreen|text-color=black|background-color=blue|text=Lorem Ipsum yadda yadda yadda...}}
Lorem Ipsum yadda yadda yadda...
|