Шаблон:TOCright — различия между версиями

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
м (переименовал Шаблон:TOC right в Шаблон:TOCright)
 
 
Строка 1: Строка 1:
{| cellspacing="0" cellpadding="0" style="clear: {{{clear|right}}}; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none; width: {{{width|{{{1|auto}}}}}};"
+
{| class="noexcerpt metadata {{{class|}}}" style="float: right; clear: right; margin-bottom: 0.5em; padding: 0.5em 0 0.8em 1.4em; border-spacing: 0;"
 
| __TOC__
 
| __TOC__
|}
+
|}<noinclude>
{{#if:{{{fix|}}}|
 
{{{!}} style="display:inline-block; width:100%; max-width:1000px;"
 
{{!}}
 
{{!}}}
 
}}<noinclude>
 
 
 
 
This template shows a right-aligned ''table of contents''.
 
This template shows a right-aligned ''table of contents''.
  
Строка 15: Строка 9:
 
</pre>
 
</pre>
  
==Parameters (optional)==
+
== Parameters (optional) ==
;clear
+
;class
:Sets the CSS clear property, which forces this float underneath the side specified with this attribute. So, clear=right (which is the default) will place the element after all the right floating elements before it. Options are left, right, both, or none.
+
:Set an HTML class, such as "toc2".
;width
 
:Set the CSS width.
 
;fix=y
 
:Created a fixed width invisible table, used to solve vertical spacing issues when using this template on pages that contain tables.
 
  
 
[[Category:Formatting templates|TOCright]]
 
[[Category:Formatting templates|TOCright]]
 
</noinclude>
 
</noinclude>

Текущая версия на 19:08, 13 мая 2021

This template shows a right-aligned table of contents.

Usage[править]

{{TOCright}}

Parameters (optional)[править]

class
Set an HTML class, such as "toc2".