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;"><span style="background-color:#35383B; line-height:10%; position:absolute; margin-left:2em; padding:0 0.2em 0 0.2em">{{{1|}}}</span><div style="display:table; border:1px solid #B1B1B1; border-radius:5px; padding:0 1em 1em 1em;"><span style="visibility: hidden; margin-left:2em;">{{{1|}}}</span><br />{{{ | <includeonly><div style="display:table;"><span style="background-color:#35383B; line-height:10%; position:absolute; margin-left:2em; padding:0 0.2em 0 0.2em">{{{1|}}}</span><div style="display:table; border:1px solid #B1B1B1; border-radius:5px; padding:0 1em 1em 1em;"><span style="visibility: hidden; margin-left:2em;">{{{1|}}}</span><br />{{{2|}}}{{#if:{{{3|}}}|<ul>{{#arraymap:{{{3|}}}|;|@@@|<li>@@@</li>|}}</ul>}}</div></div></includeonly><noinclude>__NOTOC__ | ||
==Purpose & Usage== | ==Purpose & Usage== | ||
This is a template implementation of the html fieldset-legend combo, with rounded corners. | 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 1'' will be bold and aligned to the right. Only one value may be used. | ||
*''parameter 2'' 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 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) | |||
==Examples== | ==Examples== | ||
'''Code:''' | '''Code:''' | ||
<pre>{{Fieldset|Page | <pre>{{Fieldset|Page|You should really love this text.}}</pre> | ||
'''Result:''' | '''Result:''' | ||
{{Fieldset|Page | {{Fieldset|Page|You should really love this text.}} | ||
'''Code:''' | '''Code:''' | ||
<pre>{{Fieldset|Page|Option1; Option2; Option3; Option4}}</pre> | <pre>{{Fieldset|Page||Option1; Option2; Option3; Option4}}</pre> | ||
'''Result:''' | '''Result:''' | ||
{{Fieldset|Page|Option1; Option2; Option3; Option4}} | {{Fieldset|Page||Option1; Option2; Option3; Option4}} | ||
'''Code:''' | '''Code:''' | ||
<pre>{{Fieldset|Page | <pre>{{Fieldset|Page|{{Fieldset|Page||Option1; Option2; Option3; Option4}}}}</pre> | ||
'''Result:''' | '''Result:''' | ||
{{Fieldset|Page | {{Fieldset|Page|{{Fieldset|Page||Option1; Option2; Option3; Option4}}}} | ||
== See Also == | == See Also == | ||
None | None | ||
</noinclude> | </noinclude> |
Revision as of 14:32, September 11, 2014
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)
Examples
Code:
{{Fieldset|Page|You should really love this text.}}
Result:
Page
You should really love this text.
You should really love this text.
Code:
{{Fieldset|Page||Option1; Option2; Option3; Option4}}
Result:
Page
- Option1
- Option2
- Option3
- Option4
Code:
{{Fieldset|Page|{{Fieldset|Page||Option1; Option2; Option3; Option4}}}}
Result:
Page
Page
- Option1
- Option2
- Option3
- Option4
See Also
None