Template:Fieldset: Difference between revisions

From Step Mods | Change The Game
No edit summary
mNo edit summary
 
(38 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div style="display:table"><div style="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:0 0 0 10px;line-height:0.1px;visibility:hidden">{{{1}}}<br /></div>{{#ifeq:{{{bullet}}}|yes|{{#arraymap:{{{2|}}}|;|%|<p style="margin:4 0">{{BulletMO}}&nbsp;%</p>|}}|<div style="padding-top:4px;">{{{2|}}}</div>}}</div></div></includeonly><noinclude>__NOTOC__
<includeonly><!-- ############ Title ############ --><div style="display:inline-block; background:#35383B; position:relative; top:9px; left:9px;">{{{1}}}</div><!-- ############ Rounded Box ############ --><div style="display:table; border:1px solid #B1B1B1; border-radius:4px; padding:0 4px 2px;"><!-- ############ Title invisibly reiterated inside box so that the title doesn't overflow ############ --><div style="padding-left:9px; line-height:0; visibility:hidden;">{{{1}}}<br></div><div style="padding:7px 0 0;"><!-- ##################### If bullet, then bullets.  ############ -->{{#ifeq:{{{bullet}}}|yes|{{#arraymap:{{{2|}}}|;|%|<!-- ############ Removes excess bottom margin while faking a list ############ --><p style="margin:0;"><!-- ############ This is the bullet point. ############ -->[[File:dotMO.png]]&nbsp;<!-- ############ The Percent Sign is the actual option ############ -->%</p>|}}|<!-- ##################### If not bullets, then maybe checkmarks?  ############ -->{{#ifeq:{{{checkmark}}}|yes|{{#arraymap:{{{2|}}}|;|%|<!-- ############ Removes excess bottom margin while faking a list ############ --><p style="margin:0;"><!-- ############ This is the checkmark. ############ -->[[File:checkmarkMO.png]]&nbsp;<!-- ############ The Percent Sign is the actual option ############ -->%</p>|}}|<!-- ##################### If not, the text just appears in the box ############ -->{{{2|}}} }} }}</div></div></includeonly><noinclude>__NOTOC__ __NOTITLE__ [[Category:Layout Templates]][[Category:Instruction Templates]][[Category:Deprecated Templates]]
 
{{Alert|type=warning|text=This is a [[:Category:Deprecated Templates|deprecated template]] that is no longer used. Use [[:Template:Fomod]] instead.}}


==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'' 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.
 


==Examples==
==Examples==

Latest revision as of 15:18, September 17, 2021


Warning-Logo.png

WARNING

This is a deprecated template that is no longer used. Use Template:Fomod instead.

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 checkmark to yes will be an unordered list (with the bullet points replaced by checkmarks) 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
Page
You should really love this text.

Code:

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

Result:

Page
Page

DotMO.png Option1

DotMO.png Option2

DotMO.png Option3

DotMO.png Option4

Code:

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

Result:

Page
Page

CheckmarkMO.png Option1

CheckmarkMO.png Option2

CheckmarkMO.png Option3

CheckmarkMO.png Option4

Code:

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

Result:

Page
Page
Step
Step

DotMO.png Option1

DotMO.png Option2

DotMO.png Option3

DotMO.png Option4

See Also

None