Template:PTOC

From Discovery Wiki
Jump to navigationJump to search

If you want to set the CSS styles of the Table of contents or colours, get a wiki Admin to change the Monobook.css. Most infoboxes' styles are controlled from there. This allows freedom for skins, while not changing the content of the infobox. (Say for example if you don't like this current one modelled off Freelancer User Interface, and want a default Wiki skin.)

  • I got tired of making a separate <div> for TOC's that need it. This makes the formatting of them automatic when applied, but not applied to all. I tested and found "all" to not work on a number of pages. The name stands for Padded Table of Contents. ~Chovynz~ (BlabsEgo) 00:51, 24 August 2009 (MDT)

Usage

  • This template floats left
  • padding-right 1 em
{{PTOC}}

Result

Donec commodo, sapien ac auctor pretium, ante diam pharetra turpis, sed cursus elit dui vitae libero. Duis eu auctor massa. Duis ac mauris non augue scelerisque ullamcorper nec sed leo. Duis sit amet diam quam. Nullam odio nisi, aliquet a suscipit vitae, ultrices et purus. Maecenas egestas euismod malesuada. Integer quam nunc, dignissim vel ullamcorper ultrices, feugiat vitae odio. Morbi ultricies scelerisque tellus, a commodo massa interdum vitae. Morbi aliquet leo eget quam eleifend ornare. Cras ac est sem.