Template:Fieldset: Difference between revisions
From Step Mods | Change The Game
No edit summary |
No edit summary |
||
Line 28: | Line 28: | ||
'''Code:''' | '''Code:''' | ||
<pre>{{Fieldset|Page| | <pre>{{Fieldset|Page|checkmark=Option1; Option2; Option3; Option4}}</pre> | ||
'''Result:''' | '''Result:''' | ||
{{Fieldset|Page| | {{Fieldset|Page|checkmark=Option1; Option2; Option3; Option4}} | ||
'''Code:''' | '''Code:''' |
Revision as of 13:21, 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 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 checkmark 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) - 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|checkmark=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