සැකිල්ල:TOCnestright/doc

විකිපීඩියා වෙතින්

Usage[සංස්කරණය]

Parent links: Template:TOCnestright (edit discuss links history)
This TOCnestright/doc template is used beside tall right located graphics structures like infoboxes and is similar in purpose and use to {{TOCright}}.
  • It does take a number of optional formating arguments:
Structure control:    {{ before=| ... and appendinside=... closing ... after=| or 2=|
Format (div style=):     "left=| margin=| otherstyle=| maxwidth=|"
count control:           limit=| or 1=|
                      }} <!-- specify only 1 or limit, not both -->
Actual code...
{{{1|}}}<!-- specify only 1 or limit, not both -->{{{before|}}}<div style="float:{{#if:{{{left|}}}|left;|right;}}<!--
--> margin: {{{margin|1em 0 1em 1.5em}}}; <!--
-->{{{otherstyle|}}};{{#if:{{{maxwidth|}}}|max-width:{{{maxwidth}}};}}"<!--
-->{{#if:{{{1|}}}{{{limit|}}}|class="toclimit-{{{1|{{{limit|}}}}}}"}}> <!--

-->{{#if:{{{prependinside|}}}|{{{prependinside|}}}<br/><br/>}}  <!--
-->__TOC__ <!--
-->{{#if:{{{appendinside|}}}|<br/>{{{appendinside|}}}}}
</div><!--
-->{{{after|}}}{{{2|}}}<!--
-->
Tips
  • |left= is only used inside a table element, to place the TOC, under a page's first image. It looks a little better used that way.
  • The most useful format parameter is maxwidth. Setting between 180-220px usually does a nice job of wrapping long section titles within the displayed TOC for the most likely viewing zoom-in/zoom-out settings used by a typical viewer.
  • prependinside= allows another structure to float part-right ABOVE the TOC as well, such as a small image.
  • appendinside= allows another structure to float part-right below the TOC as well, such as a small image.
Tech note...
  • HTML renders in differing order on different browsers, so it is advisable to use the template {{FixHTML}} in conjuction with this template around any right floating elements. This tablizes such and the behavior has been tested satisfactorily against most modern browsers from MacIntosh computers to Unix, and no less than three generations of the troublesome Internet Explorers (IE5, IE6, and IE7), all work satisfactory when the two templates are used together in mutual support.

See also
template:TOCright/doc


"https://si.wikipedia.org/w/index.php?title=සැකිල්ල:TOCnestright/doc&oldid=15435" වෙතින් සම්ප්‍රවේශනය කෙරිණි