This wiki is closed in favour of the new wiki. Information shown is likely to be very out of date. |
Difference between revisions of "Template:PTOC"
(→Result) |
|||
Line 1: | Line 1: | ||
− | <noinclude>If you want to set the CSS styles of | + | <noinclude>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 <nowiki><div></nowiki> 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. [[User:Chovynz| ~Chovynz~ ]] <sup>([[User_talk:Chovynz|Blabs]] • [[Special:Contributions/Chovynz|Ego]]) </sup> 00:51, 24 August 2009 (MDT) | ||
+ | <!--</noinclude> | ||
<div style="float:left;padding-right:1em;">__TOC__</div> | <div style="float:left;padding-right:1em;">__TOC__</div> | ||
<noinclude> | <noinclude> | ||
--> | --> | ||
==Usage== | ==Usage== | ||
+ | *This template floats left | ||
+ | *padding-right 1 em | ||
<pre>{{PTOC}}</pre> | <pre>{{PTOC}}</pre> | ||
==Result== | ==Result== |
Latest revision as of 06:51, 24 August 2009
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~ (Blabs • Ego) 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.