Template:Collapse top: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Plastikspork
(Simplify per discussion on talk page, should not impact any transclusions, but simplify the code a bit)
meta>FT2
(add "indent" option using margin-left)
Line 1: Line 1:
{| <!-- Template:Collapse top --> class="navbox collapsible {{{{{|safesubst:}}}#if:{{{expand|}}}||collapsed}}" style="background: transparent; text-align: left; border: {{{border|1px}}} solid {{{b-color|silver}}}; margin-top: 0.2em; {{{{{|safesubst:}}}#if:{{{width|}}}|width:{{{width}}};}}"
{| <!-- Template:Collapse top --> class="navbox collapsible {{{{{|safesubst:}}}#if:{{{expand|}}}||collapsed}}" style="background: transparent; text-align: left; border: {{{border|1px}}} solid {{{b-color|silver}}}; margin-top: 0.2em; margin-left:{{{indent|0px}}}; {{{{{|safesubst:}}}#if:{{{width|}}}|width:{{{width}}};}}"
|-
|-
! style="background-color: {{{bg|#CFC}}}; font-size:112%;" | {{{1|{{{title|{{{reason|{{{header|Extended content}}} }}} }}} }}}     
! style="background-color: {{{bg|#CFC}}}; font-size:112%;" | {{{1|{{{title|{{{reason|{{{header|Extended content}}} }}} }}} }}}     

Revision as of 11:25, 17 May 2011

  • Adding a standard warning line – {{collapse top|This is the title text|warning=true}}
  • Adding a custom warning line – {{collapse top|This is the title text|This is a custom warning line}}
  • Aligning box title along left margin – {{collapse top|left=true}}
  • Changing background color – {{collapse top|bg=#F0F2F5}}
  • Adding extra padding – {{collapse top|padding=5em}}
  • Archiving a section: the markup below:
{{collapse top}}
==Section header==
Sample contents text
{{collapse bottom}}

must be rewritten as:

{{collapse top|Section header}}
Sample contents text
{{collapse bottom}}

The end result:

TemplateData

Redirects

To Collapse top:

To Collapse bottom:

See also