Шаблон:FloatingBlock

Материал из CryWiki Russia

(Различия между версиями)
Перейти к: навигация, поиск
(Новая страница: «<!-- This template themes a 'floating' block. Use it to float data to one side. Usage: title=title of the block float=left,right,none - floats the block clear=left,...»)
 
(1 промежуточная версия не показана)
Строка 1: Строка 1:
-
<!-- This template themes a 'floating' block. Use it to float data to one side.  
+
<!-- This template themes a 'floating' block. Use it to float data to one side.
Usage:
Usage:
title=title of the block
title=title of the block
-
float=left,right,none - floats the block
+
float=left, right, none — floats the block
-
clear=left,right,both - clears any floating elements
+
clear=left, right, both — clears any floating elements
width=width of the block in px or percentage
width=width of the block in px or percentage
subheader=subheader optional
subheader=subheader optional
Строка 9: Строка 9:
-->
-->
<div class="template-floatingblock-wrapper">
<div class="template-floatingblock-wrapper">
-
<div class="floatingblock" style="float:{{#if:{{{float|}}}|{{{float}}}|none}};clear:{{#if:{{{clear|}}}|{{{clear}}}|none}};width:{{#if:{{{width|}}}|{{{width}}}|100%}}">
+
<div class="floatingblock" style="float:{{#if:{{{float|}}}|{{{float}}}|none}};clear:{{#if:{{{clear|}}}|{{{clear}}}|none}};width:{{#if:{{{width|}}}|{{{width}}}|100%}};{{#if:{{{style|}}}|{{{style}}}|}};">
{{#if:{{{title|}}}|<h2>{{{title}}}</h2>}}
{{#if:{{{title|}}}|<h2>{{{title}}}</h2>}}
<div class=subheader>{{#if:{{{subheader|}}}|{{{subheader}}}|}}</div>
<div class=subheader>{{#if:{{{subheader|}}}|{{{subheader}}}|}}</div>
Строка 16: Строка 16:
</div>
</div>
</div>
</div>
-
</div>
+
</div><noinclude>[[Категория:CryWiki Russia]]</noinclude>

Текущая версия на 22:00, 13 июня 2012

{{{content}}}