Template:Headerblue: Difference between revisions
Jump to navigation
Jump to search
sims>Nikel23 No edit summary |
(←Created page with "<div class=bluebar style="margin-top: {{#if:{{{icon|}}}|20px|5px}};">{{#if:{{{icon|}}}|<div style="margin-top: -15px; {{#ifeq:{{{iconpos|left}}}|right|margin-le...") |
||
(No difference)
|
Revision as of 11:46, 28 February 2019
- Usage
This template is a simplified version of the blue header from <div class="bluebar">
.
- Parameters
- text · Optional - The text for the header.
- icon · Optional - The icon for the header. The value should omit the File: namespace, e.g. Example.png.
- iconsize · Optional - Requires
icon
. The width of the icon. The default value is 50px. May be necessary for small icons like icons from The Sims 2. Remember that different icons with the same width (e.g. 50px) may have different height! To set the height of the icon with variable width, set theiconsize
value with a preceding "x". Example: x25px. - iconlink · Optional - Requires
icon
. The icon link. Default not set. - iconpos · Optional - Requires
icon
. If the value is right, the icon will appear on the right; left otherwise.
- Examples
The following code:
{{Headerblue|text=Text here}}
... will produce:
{{Headerblue|icon=W newspaper.png|text=Text here}}
... will produce:
{{Headerblue|icon=Backstory Render LL.png|text=Text here|iconsize=x50px|iconlink=Lunar Lakes|iconpos=right}}
... will produce:
Visit Template:Headerblue/doc to edit this text! (How does this work?) (Refresh this text - why?)