Template:Fieldset: Difference between revisions

From Step Mods | Change The Game
No edit summary
No edit summary
Line 2: Line 2:
<div style="display: table; border:1px solid #B1B1B1; border-radius:4px; padding:0 4px 2px;">
<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;">{{{1}}}<br /></div>
<div style="padding-left:10px; line-height: 0.1px; visibility:hidden;">{{{1}}}<br /></div>
{{#ifeq:{{{bullet|}}}|yes|{{#arraymap:{{{2}}}|;|@@@|<p><span style="background-color:#181818; padding:0px 3.5px 0px 3.5px; border:2.75px solid #fff; border-radius:10px; font-size:5px; color:white;"></span>&nbsp;@@@</p>|}}|<div style="padding-top:4px;">{{{2}}}</div>}}
{{#ifeq:{{{bullet|}}}|yes|{{#arraymap:{{{2}}}|;|@@@|<p><span style="background-color:#181818; padding:0px 3.5px 0px 3.5px; border:2.75px solid #fff; border-radius:10px; font-size:5px; color:white; vertical-align:middle;"></span>&nbsp;@@@</p>|}}|<div style="padding-top:4px;">{{{2}}}</div>}}
</div>
</div>
</div></includeonly><noinclude>__NOTOC__
</div></includeonly><noinclude>__NOTOC__
Line 11: Line 11:
*''parameter 2'' is inside the box.
*''parameter 2'' is inside the box.
*''parameter bullet'' to yes 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 bullet'' to yes 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 checkmark'' to yes will be an unordered list (with the bullet points replaced by checkmarks) 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 checkmark'' to yes will be an unordered list (with the bullet points replaced by checkmarks) 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.
*''parameter color'' changes the default yellow color to your desired color.



Revision as of 14:25, May 3, 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 bullet to yes 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
Page
You should really love this text.

Code:

{{Fieldset|Page|Option1; Option2; Option3; Option4|bullet=yes}}

Result:

Page
Page

 Option1

 Option2

 Option3

 Option4

Code:

{{Fieldset|Page|Option1; Option2; Option3; Option4|checkmark=yes}}

Result:

Page
Page
Option1; Option2; Option3; Option4

Code:

{{Fieldset|Page|{{Fieldset|Step||Option1; Option2; Option3; Option4|bullet=yes}}|color=A6A6A6}}

Result:

Page
Page
Step
Step

 Option1

 Option2

 Option3

 Option4

See Also

None