Template:Section: Difference between revisions
From Elwiki
mNo edit summary |
mNo edit summary |
||
Line 8: | Line 8: | ||
| value | | value | ||
| {{#ifexpr:{{#if:{{#var:value|}}|1|0}} and {{Isnumeric|{{#var:key|}}}}|<td id="{{#var:key}}" style="padding: 0.5em;{{{Style|}}};{{{Style{{#var:key|}}|}}}">{{{Content{{#var:key|}}|}}}</td>}}}}</tr> | | {{#ifexpr:{{#if:{{#var:value|}}|1|0}} and {{Isnumeric|{{#var:key|}}}}|<td id="{{#var:key}}" style="padding: 0.5em;{{{Style|}}};{{{Style{{#var:key|}}|}}}">{{{Content{{#var:key|}}|}}}</td>}}}}</tr> | ||
</table></includeonly><noinclude>{{DISPLAYTITLE:Section}} | </table></includeonly><noinclude>__TOC__{{DISPLAYTITLE:Section}} | ||
{{Section | {{Section | ||
| Color0=lightgreen | | Color0=lightgreen | ||
Line 47: | Line 47: | ||
# The lines under each header are stated in '''''TitleSty''''' or '''''TitleSty###''''' rather than '''''TitleStys'''''. | # The lines under each header are stated in '''''TitleSty''''' or '''''TitleSty###''''' rather than '''''TitleStys'''''. | ||
# Default padding in headlines and contents is 0.5em. | # Default padding in headlines and contents is 0.5em. | ||
# Link anchor can link to ''Section'' headers. (e.g. <nowiki>[[7-4#Mobs:|'''Mobs''']]</nowiki> can link to 7-4's Mobs section.) | |||
# You need __<nowiki/>TOC__ to show TOC of the Sections. | |||
</span> | </span> | ||
}} | }} |
Revision as of 14:07, 24 September 2014
Section Template |
---|
Section is an UI template developed by boxsnake, in order to enhance the UI design. Also, this is an example of Section. |
Parameters |
---|
|
Other Samples | ||
---|---|---|
{{Section | SectionSty=border: 2px #ccc solid; border-radius: 5px; | Color0=lightblue | Title0=Sample 1 | Content0=Sample 1 }} |