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

Материал из Ligapedia
Перейти к навигации Перейти к поиску
[досмотренная версия][досмотренная версия]
м
 
Строка 1: Строка 1:
<div class="userbox" style="float:right; clear:right; border:solid {{{1|{{{border-c|{{{id-c|#999999}}}}}}}}} 1px; margin:1px;">
+
<div style="{{#if: {{{float|}}}
{| cellspacing="0" style="width:238px; background:{{{2|{{{info-c|#eeeeee}}}}}};"
+
| float: {{{float|}}}; clear: {{{float|}}};
| style="width:45px; height:45px; background:{{{1|{{{id-c|#dddddd}}}}}}; text-align:center; font-size:{{{5|{{{id-s|14}}}}}}pt; font-weight:bold; color:{{{id-fc|#000000}}}; {{{id-style|}}}" | {{{3|{{{id|id}}}}}}
+
| float: right; clear: right;
| style="font-size:{{{info-s|8}}}pt; padding:4pt; line-height:1.25em; color:{{{info-fc|#000000}}}; {{{info-style|}}}" | {{{4|{{{info|''info''}}}}}}
+
}} border: solid {{{1|{{{border-c|{{{id1-c|{{{id-c|{{{id2-c|{{{2|{{{info-c|#999999}}}}}}}}}}}}}}}}}}}}} {{{border-s|1}}}px; margin: 1px; {{#if: {{NAMESPACE}} | width: {{#expr: 240 - 2 * {{{border-s|1}}}}}px; }}">
|}</div><noinclude>http://ru.wikipedia.org/wiki/Шаблон:Userbox
+
{| cellspacing="0" style="width: 100%;"
 +
<!-- cap -->
 +
{{#if: {{{cap|}}} | {{!}} colspan="3" style="padding: 2pt 4pt; line-height: 1.25em; text-align: {{{cap-a|center}}}; background: {{{cap-c|#00ff40}}}; color: {{{cap-fc|#00000}}}; font-size: {{{cap-s|8}}}pt; {{{cap-style|}}}" {{!}} {{{cap|}}} }}
 +
|- style="height: 45px;"
 +
<!-- id-left -->
 +
{{#if: {{{id|}}}{{{id1|}}}{{{3|}}} | {{!}} style="width: 18.75%; text-align: {{{id1-a|{{{id-a|center}}}}}}; background: {{{1|{{{id1-c|{{{id-c|#dddddd}}}}}}}}}; color: {{{id1-fc|{{{id-fc|#000000}}}}}}; font-size: {{{id1-s|{{{id-s|14}}}}}}pt; font-weight: bold; {{{id1-style|{{{id-style|}}}}}}" {{!}} {{{3|{{{id1|{{{id|}}}}}}}}} }}
 +
<!-- info -->
 +
| style="padding: 2pt 4pt; line-height: 1.25em; text-align: {{{info-a|left}}}; background: {{{2|{{{info-c|#eeeeee}}}}}}; color: {{{info-fc|#000000}}}; font-size: {{{info-s|8}}}pt; {{{info-style|}}}" | {{{4|{{{info|''info''}}}}}}
 +
<!-- id-right -->
 +
{{#if: {{{id2|}}}{{{5|}}} | {{!}} style="width: 18.75%; text-align: {{{id2-a|{{{id-a|center}}}}}}; background: {{{id2-c|{{{id-c|#dddddd}}}}}}; color: {{{id2-fc|{{{id-fc|#000000}}}}}}; font-size: {{{id2-s|{{{id-s|14}}}}}}pt; font-weight: bold; {{{id2-style|}}}" {{!}} {{{5|{{{id2|}}}}}} }}
 +
|}</div>{{#if: {{{nocat|}}} |
 +
| {{#ifexpr: abs ( {{NAMESPACENUMBER}} - 2.5 ) < 1
 +
    | {{#if: {{{cat|}}}{{{cat1|}}} | [[Категория:{{{cat|{{{cat1|}}}}}}]] }}<!--
 +
  -->{{#if: {{{cat2|}}} | [[Категория:{{{cat2|}}}]] }}<!--
 +
  -->{{#if: {{{cat3|}}} | [[Категория:{{{cat3|}}}]] }}<!--
 +
-->}}
 +
}}
 +
<noinclude>http://ru.wikipedia.org/wiki/Шаблон:Userbox
 
[[Категория:Шаблоны]]</noinclude>
 
[[Категория:Шаблоны]]</noinclude>

Текущая версия на 21:45, 25 мая 2017