Template:Headergreen/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
sims>Nikel23 No edit summary |
SimDestroyer (talk | contribs) m (4 revisions imported: Import from https://sims.wikia.com) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 7: | Line 7: | ||
*'''iconsize''' · ''Optional'' - Requires <code>icon</code>. 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 the <code>iconsize</code> value with a preceding "x". Example: ''x25px''. |
*'''iconsize''' · ''Optional'' - Requires <code>icon</code>. 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 the <code>iconsize</code> value with a preceding "x". Example: ''x25px''. |
||
*'''iconlink''' · ''Optional'' - Requires <code>icon</code>. The icon link. Default not set. |
*'''iconlink''' · ''Optional'' - Requires <code>icon</code>. The icon link. Default not set. |
||
*'''iconpos''' · ''Optional'' - Requires <code>icon</code>. If the value is ''right'', the icon will appear on the right; left otherwise. |
|||
;Examples |
;Examples |
||
Line 26: | Line 27: | ||
{{----}} |
{{----}} |
||
<pre> |
<pre> |
||
{{Headergreen|icon=Backstory Render LL.png|text=Text here|iconsize=x50px|iconlink=Lunar Lakes}} |
{{Headergreen|icon=Backstory Render LL.png|text=Text here|iconsize=x50px|iconlink=Lunar Lakes|iconpos=right}} |
||
</pre> |
</pre> |
||
... will produce: |
... will produce: |
||
{{Headergreen|icon=Backstory Render LL.png|text=Lunar Lakes|iconsize=x50px|iconlink=Lunar Lakes}} |
{{Headergreen|icon=Backstory Render LL.png|text=Lunar Lakes|iconsize=x50px|iconlink=Lunar Lakes|iconpos=right}} |
||
<includeonly>[[Category:Header templates]]</ |
<includeonly>[[Category:Header templates]]</includeonly> |
||
<noinclude>[[Category:Template documentation]]</noinclude> |
<noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 21:07, 28 February 2019
- Usage
This template is a simplified version of the green header from <div class="greenbar">
.
- 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:
{{Headergreen|text=Text here}}
... will produce:
{{Headergreen|icon=W newspaper.png|text=Text here}}
... will produce:
{{Headergreen|icon=Backstory Render LL.png|text=Text here|iconsize=x50px|iconlink=Lunar Lakes|iconpos=right}}
... will produce: