Template:Fieldset: Difference between revisions
From Step Mods | Change The Game
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><div style="display:table;"><div style="line-break:keep-all; display:inline-block; color:#E6E65C; background-color:#35383B; position:relative; top:10px; left:10px;">{{{1}}}</div><div style="display: table; border:1px solid #B1B1B1; border-radius:4px; padding:0 4px 2px;"><div style="padding-left:10px; line-height: 0.1px; visibility:hidden; line-break:keep-all;">{{{1}}}<br /></div>{{#if:{{{2|}}}|<div style="padding-top:4px;">{{{2|}}}</div>}}{{#if:{{{3|}}}|<ul style="padding-top:1px;">{{#arraymap:{{{3|}}}|;|@@@|<li>@@@</li>|}}</ul>}}</div></div></includeonly><noinclude>__NOTOC__ | <includeonly><div style="display:table;"><div style="line-break:keep-all; display:inline-block; color:{{{color|#E6E65C}}}; background-color:#35383B; position:relative; top:10px; left:10px;">{{{1}}}</div><div style="display: table; border:1px solid #B1B1B1; border-radius:4px; padding:0 4px 2px;"><div style="padding-left:10px; line-height: 0.1px; visibility:hidden; line-break:keep-all;">{{{1}}}<br /></div>{{#if:{{{2|}}}|<div style="padding-top:4px;">{{{2|}}}</div>}}{{#if:{{{3|}}}|<ul style="padding-top:1px;">{{#arraymap:{{{3|}}}|;|@@@|<li>@@@</li>|}}</ul>}}</div></div></includeonly><noinclude>__NOTOC__ | ||
==Purpose & Usage== | ==Purpose & Usage== | ||
Line 6: | Line 6: | ||
*''parameter 2'' is inside the box. | *''parameter 2'' is inside the box. | ||
*''parameter 3'' will be an unordered list (bullet points) with separate list items separated by semicolons <code>;</code> (commas were avoided, as sometimes it may be desired for it a bullet point to contain a comma, whereas likelihood of a semicolon is not much) | *''parameter 3'' will be an unordered list (bullet points) with separate list items separated by semicolons <code>;</code> (commas were avoided, as sometimes it may be desired for it a bullet point to contain a comma, whereas likelihood of a semicolon is not much) | ||
*''parameter color'' changes the default yellow color to your desired color. | |||
Line 22: | Line 23: | ||
'''Code:''' | '''Code:''' | ||
<pre>{{Fieldset|Page|{{Fieldset|Step||Option1; Option2; Option3; Option4}}}}</pre> | <pre>{{Fieldset|Page|{{Fieldset|Step||Option1; Option2; Option3; Option4}}|color=A6A6A6}}</pre> | ||
'''Result:''' | '''Result:''' | ||
{{Fieldset|Page|{{Fieldset|Step||Option1; Option2; Option3; Option4}}}} | {{Fieldset|Page|{{Fieldset|Step||Option1; Option2; Option3; Option4}}|color=A6A6A6}} | ||
== See Also == | == See Also == | ||
None | None | ||
</noinclude> | </noinclude> |
Revision as of 13:06, May 2, 2015
Purpose & Usage
This is a template implementation of the html fieldset-legend combo, with rounded corners.
- parameter 1 will be bold and aligned to the right. Only one value may be used.
- parameter 2 is inside the box.
- parameter 3 will be an unordered list (bullet points) with separate list items separated by semicolons
;
(commas were avoided, as sometimes it may be desired for it a bullet point to contain a comma, whereas likelihood of a semicolon is not much) - parameter color changes the default yellow color to your desired color.
Examples
Code:
{{Fieldset|Page|You should really love this text.}}
Result:
Page
You should really love this text.
Code:
{{Fieldset|Page||Option1; Option2; Option3; Option4}}
Result:
Page
- Option1
- Option2
- Option3
- Option4
Code:
{{Fieldset|Page|{{Fieldset|Step||Option1; Option2; Option3; Option4}}|color=A6A6A6}}
Result:
Page
Step
- Option1
- Option2
- Option3
- Option4
See Also
None