Difference between revisions of "Template:TOC right"
Jump to navigation
Jump to search
m (+width) |
m (+font size) |
||
Line 1: | Line 1: | ||
− | <noinclude>This template places table of contents at the right side. The width | + | <noinclude>This template places table of contents at the right side. The table width and font size can be passed as a parameters. |
'''To copy:''' | '''To copy:''' | ||
<pre>{{TOC right}}</pre> | <pre>{{TOC right}}</pre> | ||
or | or | ||
− | <pre>{{TOC right|300px}}</pre> | + | <pre>{{TOC right|300px|80%}}</pre> |
+ | |||
+ | '''where''' | ||
+ | * '''300px''' -- table width | ||
+ | * '''80%''' -- font size | ||
[[Category:Design_templates]] | [[Category:Design_templates]] | ||
[[t-ru-lib:Шаблон:Содержание справа]] | [[t-ru-lib:Шаблон:Содержание справа]] | ||
</noinclude> | </noinclude> | ||
− | {| style="float:right; {{#if: {{{1|}}}| width: {{{1}}};|}}" | + | {| style="float:right; {{#if: {{{1|}}}| width: {{{1}}};|}} {{#if: {{{2|}}}| font-size: {{{2}}};|}}" |
|- | |- | ||
| __TOC__ | | __TOC__ | ||
|} | |} |
Latest revision as of 01:09, 9 December 2021
This template places table of contents at the right side. The table width and font size can be passed as a parameters.
To copy:
{{TOC right}}
or
{{TOC right|300px|80%}}
where
- 300px -- table width
- 80% -- font size