Difference between revisions of "Template:Group"
Jump to navigation
Jump to search
(Created page with "<includeonly><!-- Проверка на присутствие имени — оно обязательно. -->{{#if: {{{name|}}} | |<div style="clear:both; overflow:hidd...") |
m (Protected "Template:Group" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
− | + | Check for name presence | |
− | -->{{#if: {{{name|}}} | |<div style="clear:both; overflow:hidden; text-align:left; margin: 1px auto;"><div style="position:relative; float: left; left: 50%;"><div style="position:relative; float:left; right:50%; color:#FF3A00; font:small-caps underline overline">'' | + | -->{{#if: {{{name|}}} | |<div style="clear:both; overflow:hidden; text-align:left; margin: 1px auto;"><div style="position:relative; float: left; left: 50%;"><div style="position:relative; float:left; right:50%; color:#FF3A00; font:small-caps underline overline">''Please set the parameter '''name'''.''</div></div></div>}}<!-- |
− | + | Template: | |
− | --><table style="clear:both; font-size:8pt; width:80%; border-spacing:0; margin: 1px auto 1px auto; {{{mainstyle|background:#F9F9F9}}};" data-collapsetext=" | + | --><table style="clear:both; font-size:8pt; width:80%; border-spacing:0; margin: 1px auto 1px auto; {{{mainstyle|background:#F9F9F9}}};" data-collapsetext="hide" data-expandtext="expand" class="toccolours mw-collapsible {{#ifeq: Template:{{{name|}}} | {{FULLPAGENAME}} || mw-collapsed}} {{{mainclass|}}}"> |
<!-- | <!-- | ||
− | + | Template header | |
--><tr style="{{{headerstyle|{{{mainstyle|color: #000000; background: lightgray;}}} }}}" class="{{{headerclass|{{{mainclass|}}}}}}"> | --><tr style="{{{headerstyle|{{{mainstyle|color: #000000; background: lightgray;}}} }}}" class="{{{headerclass|{{{mainclass|}}}}}}"> | ||
<!-- | <!-- | ||
− | + | Image cell | |
--><td style="vertical-align:middle; text-align:left; padding:0; {{#if: {{{image|}}} | width:{{{imagewidth|{{{imagesize|}}}}}}; | display:none; }}"><!-- | --><td style="vertical-align:middle; text-align:left; padding:0; {{#if: {{{image|}}} | width:{{{imagewidth|{{{imagesize|}}}}}}; | display:none; }}"><!-- | ||
− | + | Image | |
-->{{#if: {{{image|}}} | -->{{#if: {{{image|}}} | ||
|[[Файл:{{{image}}}{{!}}<!-- | |[[Файл:{{{image}}}{{!}}<!-- | ||
− | + | If the image width is set | |
-->{{#if: {{{imagewidth|{{{imagesize|}}}}}} | -->{{#if: {{{imagewidth|{{{imagesize|}}}}}} | ||
|{{{imagewidth|{{{imagesize|}}}}}}<!-- | |{{{imagewidth|{{{imagesize|}}}}}}<!-- | ||
− | + | If the image height is set | |
-->{{#if:{{{imageheight|}}} | -->{{#if:{{{imageheight|}}} | ||
|x{{{imageheight|}}}}}}}<!-- | |x{{{imageheight|}}}}}}}<!-- | ||
− | " | + | "Title" |
-->{{!}}{{{imagetitle|}}}]]}}<!-- | -->{{!}}{{{imagetitle|}}}]]}}<!-- | ||
− | + | Image end --></td> | |
<!-- | <!-- | ||
− | + | Title cell | |
− | |||
-->{{#switch: {{{editlink|left}}} | -->{{#switch: {{{editlink|left}}} | ||
| bottom=<!-- | | bottom=<!-- | ||
− | |||
− | + | ||
+ | Header text & text | ||
--><td style="width:100%; {{{titlestyle|font-weight:bold; vertical-align:middle; text-align:center;}}}">{{{title}}}</td> | --><td style="width:100%; {{{titlestyle|font-weight:bold; vertical-align:middle; text-align:center;}}}">{{{title}}}</td> | ||
<!-- | <!-- | ||
− | + | Control buttons | |
− | --><th style="vertical-align: top; width: 15%;"><div style="float:right; font-size:small; font-weight:normal;" class="plainlinks"><font size="3pt"><br clear="all"/></font>[[{{fullurl: | + | --><th style="vertical-align: top; width: 15%;"><div style="float:right; font-size:small; font-weight:normal;" class="plainlinks"><font size="3pt"><br clear="all"/></font>[[{{fullurl:Template:{{{name|Group}}}|action=edit}} <span title="Edit">edit</span>]]</div></th> |
| #default=<!-- | | #default=<!-- | ||
− | |||
− | + | Header text cell + control buttons | |
− | --><th style="width:100%; {{{titlestyle|font-weight:bold; vertical-align:middle; text-align:center;}}}"><div style="float:right; font-size:small; font-weight:normal;" class="plainlinks">[[{{fullurl: | + | --><th style="width:100%; {{{titlestyle|font-weight:bold; vertical-align:middle; text-align:center;}}}"><div style="float:right; font-size:small; font-weight:normal;" class="plainlinks">[[{{fullurl:Template:{{{name|Group}}}|action=edit}} <span title="Edit"> {{{editlink|+}}} </span>]]</div><!-- |
− | + | Header text | |
-->{{{title}}}</th>}}</tr> | -->{{{title}}}</th>}}</tr> | ||
<!-- | <!-- | ||
− | |||
− | + | List beginning | |
--><tr> | --><tr> | ||
<td colspan="{{#ifeq: {{{editlink|}}} |bottom|3|2}}" style="vertical-align:middle; text-align:center; padding:0;"> | <td colspan="{{#ifeq: {{{editlink|}}} |bottom|3|2}}" style="vertical-align:middle; text-align:center; padding:0;"> | ||
− | <!-- | + | <!-- List content is in this sheet |
--><table style="width:100%; {{{containerstyle|{{{mainstyle|background-color:transparent}}} }}}" class="{{{containerclass|{{{mainclass|}}} }}}"><!-- | --><table style="width:100%; {{{containerstyle|{{{mainstyle|background-color:transparent}}} }}}" class="{{{containerclass|{{{mainclass|}}} }}}"><!-- | ||
− | + | List, 20 groups | |
-->{{#if: {{{group01|}}} | <tr><td style="text-align:right; width:15%; padding:0 0.5em; font-weight:bold; {{#if: {{{ghcolor|}}} | color: {{{ghcolor}}}; }} {{#if: {{{ghbgcolor|}}} | background: {{{ghbgcolor}}}; | border-bottom: 1px dotted #AAAAAA; border-top: 1px dotted #AAAAAA;}} {{{gh1style|{{{ghoddstyle|{{{ghstyle|{{{g1style|{{{goddstyle|{{{gstyle|}}}}}}}}}}}}}}}}}}">{{{group01|}}}</td> | -->{{#if: {{{group01|}}} | <tr><td style="text-align:right; width:15%; padding:0 0.5em; font-weight:bold; {{#if: {{{ghcolor|}}} | color: {{{ghcolor}}}; }} {{#if: {{{ghbgcolor|}}} | background: {{{ghbgcolor}}}; | border-bottom: 1px dotted #AAAAAA; border-top: 1px dotted #AAAAAA;}} {{{gh1style|{{{ghoddstyle|{{{ghstyle|{{{g1style|{{{goddstyle|{{{gstyle|}}}}}}}}}}}}}}}}}}">{{{group01|}}}</td> | ||
Line 130: | Line 127: | ||
<td style="text-align:left; padding:0 0.5em; {{#if: {{{textcolor|}}} | color: {{{textcolor}}}; }} {{#if: {{{ghbgcolor|}}} | | border-bottom: 1px dotted #AAAAAA; }} {{{g20style|{{{gevenstyle|{{{gstyle|}}}}}}}}}">{{{text20|}}}</td></tr> }}<!-- | <td style="text-align:left; padding:0 0.5em; {{#if: {{{textcolor|}}} | color: {{{textcolor}}}; }} {{#if: {{{ghbgcolor|}}} | | border-bottom: 1px dotted #AAAAAA; }} {{{g20style|{{{gevenstyle|{{{gstyle|}}}}}}}}}">{{{text20|}}}</td></tr> }}<!-- | ||
− | + | End of list | |
− | |||
− | |||
--></table> | --></table> | ||
</td> | </td> | ||
Line 139: | Line 134: | ||
− | + | Categories | |
− | -->{{#ifeq: | + | -->{{#ifeq: Template:{{{name|}}} | {{FULLPAGENAME}} | [[Категория:INPRO_Wiki:Templates:Lists|{{PAGENAME}}]] }}<!-- |
-->{{#if: {{{category|}}} | -->{{#if: {{{category|}}} | ||
|{{#if: {{{altcategory|}}} | |{{#if: {{{altcategory|}}} | ||
|{{#switch: {{{altcategory|}}} | |{{#switch: {{{altcategory|}}} | ||
− | | * = [[ | + | | * = [[Category:{{{category}}}|*]] |
| nocat = | | nocat = | ||
− | | #default = [[ | + | | #default = [[Category:{{{altcategory}}}]] }} |
− | | {{#ifeq: | + | | {{#ifeq: Template:{{{name|}}} | {{FULLPAGENAME}} |
− | | [[ | + | | [[Category:{{{category}}}|*]] |
− | | {{#ifeq: | + | | {{#ifeq: Category:{{{category}}} | {{FULLPAGENAME}} |
− | || [[ | + | || [[Category:{{{category}}}]] }} }} }} }}</includeonly><noinclude>{{doc}}</noinclude> |