Template:Collapse top: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>AGK
(Alignment.)
meta>AGK
m (Reverted edits by AGK (talk) to last version by Rjanag)
Line 1: Line 1:
{<noinclude></noinclude>{{!}} <!-- Template:Collapse top --> class="navbox collapsible {{#if:{{{expand|}}}||collapsed}}" style="background: transparent; text-align: left; border: {{{border|1px}}} solid {{{b-color|silver}}}; margin-top: 0.2em; {{#if:{{{width|}}}|width:{{{width}}};}}" {{#if:{{{align|}}}||align="{{{align|center}}}"}}
{<noinclude></noinclude>{{!}} <!-- Template:Collapse top --> class="navbox collapsible {{#if:{{{expand|}}}||collapsed}}" style="background: transparent; text-align: left; border: {{{border|1px}}} solid {{{b-color|silver}}}; margin-top: 0.2em; {{#if:{{{width|}}}|width:{{{width}}};}}"
{{!}}-
{{!}}-
! style="background-color: {{{bg|#CFC}}};" {{!}} {{{1|{{{title|{{{reason|{{{header|Extended content}}} }}} }}} }}}     
! style="background-color: {{{bg|#CFC}}};" {{!}} {{{1|{{{title|{{{reason|{{{header|Extended content}}} }}} }}} }}}     

Revision as of 19:51, 12 December 2010

  • 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