Template:Collapse top: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Harej
m Reverted edits by Harej (talk) to last version by MSGJ
meta>Harej
allowing customized padding, and getting rid of pointless message
Line 3: Line 3:
! style="background-color: {{{bg|#CFC}}};" {{!}} {{{1|Extended content}}}     
! style="background-color: {{{bg|#CFC}}};" {{!}} {{{1|Extended content}}}     
{{!}}-
{{!}}-
{{!}} style="text-align:center;" {{!}} ''The following content has been placed in a collapsed box for improved usability.''
{{!}} style="border: solid 1px silver; padding: {{{padding|8px}}}; background-color: white; " {{!}}<noinclude>
{{!}}-
{{!}} style="border: solid 1px silver; padding: 8px; background-color: white; " {{!}}<noinclude>
{{Collapse bottom}}
{{Collapse bottom}}
{{Documentation}}
{{Documentation}}
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
</noinclude>
</noinclude>

Revision as of 03:46, 9 July 2009

  • 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