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

Содержимое удалено Содержимое добавлено
наверное, лучше всё-таки написать "Объекты культурного наследия"
новый вариант шаблона, оптимизированный под мобильную версию
Строка 1:
<!-- begin citybar --><includeonly>{{ #if:{{{map|}}}|[[Категория:Временная категория для двойных координат]]|}}
<div class="sidebar" {{#if:{{{imagewidth|}}}|style="width:{{{imagewidth|}}}"|}}>
<div style="float: right; margin: 0 0 1em 1em">
<table style="border-collapse: collapse"><!--
{| cellpadding="2" cellspacing="0" style="border: 2px solid #008a60" width="{{#if:{{{imagewidth|}}}|{{{imagewidth|}}}|240px}}"
 
| colspan="2" style="text-align: center; border-bottom: 1px solid #008a60; border-top: 0px solid #008a60; background-color: #d6f7e8 " | <big>'''{{{city}}}'''</big>
## Название города ##
|-
--><tr><td colspan="2" class="sidebar-line" style="background-color:#d6f7e8; border-top:2px solid #008a60"><big>'''{{{city}}}'''</big></td></tr><!--
{{ #if: {{{arm|}}} | {{fullbar/image|image=[[File:{{{arm|}}}|noframe|{{{armwidth|100px}}}]]}}|{{ #if: {{#property:p94}} |{{fullbar/image|image=[[File:{{#property:p94}}|noframe|{{{armwidth|100px}}}]]}}}} }}
 
|-
## Герб ##
| colspan="2" {{ #if:{{{citylocal|}}} | style="text-align: center; border-bottom: 1px solid #008a60; border-top: 1px solid #008a60; background-color: #d6f7e8" | style="border-bottom: {{#if:{{{monumentlist|}}}|0px|1px}} solid #008a60" }} | {{ #if:{{{citylocal|}}} |'''<small>{{{citylocal|}}}</small>'''|}}
-->{{ #if: {{{arm|}}} |<tr><td colspan="2" class="sidebar-line"><!--
|-
---->[[File:{{{arm|}}}|noframe|{{{armwidth|80px}}}]]</td></tr><!--
| {{ #if:{{{website|}}}|colspan="2" style="text-align: center; border-bottom: 1px solid #008a60; border-top: 1px solid #008a60; background-color: #d6f7e8"| colspan="2" style="border-top: {{ #if:{{{monumentlist|}}}|0px|2px}} solid #008a60" }} | {{#if:{{{website|}}}|<small>'''[{{{website|}}} Официальный сайт]'''</small>|}}
-->|{{ #if: {{#property:p94}} |<tr><td colspan="2" class="sidebar-line"><!--
|-
---->[[File:{{#property:p94}}|noframe|{{{armwidth|80px}}}]]</td></tr>|}}}}<!--
| {{ #if:{{{website2|}}}|colspan="2" style="text-align: center; border-bottom: 1px solid #008a60; border-top: 1px solid #008a60; background-color: #d6f7e8"| colspan="2" style="border-top: {{ #if:{{{monumentlist|}}}|0px|2px}} solid #008a60" }} | {{#if:{{{website2|}}}|<small>'''[{{{website2|}}} Официальный сайт]'''</small>|}}
 
|-
## Название на других языках ##
{{ #if: {{{image|}}} | {{fullbar/image|image=[[File:{{{image|}}}|frameless|{{#if:{{{imagewidth|}}}|{{{imagewidth|}}}|240px}}]]}} }}
-->{{ #if:{{{citylocal|}}} |<tr><td colspan="2" class="sidebar-line" style="background-color:#d6f7e8"><span style="font-size:85%">'''{{{citylocal|}}}'''</span></td></tr>|}}<!--
|-
 
| colspan="2" style="text-align: center; border-bottom: 0px solid #008a60; border-top: 0px solid #008a60; background-color: #ffffff" | {{#if:{{{caption|}}}|<small>''{{{caption|}}}''</small>|}}
## Веб-сайт ##
|-
-->{{ #if:{{{website|}}} |<tr><td colspan="2" class="sidebar-line" style="background-color: #d6f7e8"><span style="font-size:85%">'''[{{{website|}}} Официальный сайт]'''</span></td></tr>|}}<!--
| colspan="2" style="text-align: center; border-bottom: 1px solid #008a60; border-top: 1px solid #008a60; background-color: #d6f7e8" | '''Полезная информация'''
-->{{ #if:{{{website2|}}}|<tr><td colspan="2" class="sidebar-line" style="background-color: #d6f7e8"><span style="font-size:85%">'''[{{{website2|}}} Официальный сайт]'''</span></td></tr>|}}<!--
{{ #if: {{{population|}}} | {{fullbar/item|heading=Население|value={{{population|}}}}} | <!--
 
-->{{#if: {{#property:p1082}}|{{fullbar item|heading=Население|value={{#invoke:String|sub|s={{#property:p1082}}|1|{{#invoke:String|len|{{#invoke:String|match|s={{#property:p1082}}|^[%d%s]*|ignore_errors=true}}}}}}&nbsp;чел.<!--
## Жирная линия ##
-->}}|{{fullbar/empty}} }}}}
--><tr><td colspan="2" class="sidebar-line" style="border-top: 2px solid #008a60; border-bottom:0px"></td></tr><!--
{{ #if: {{{callingcode|}}} | {{fullbar/item|heading=Телефонный код|value={{{callingcode|}}}}} | {{fullbar/empty}} }}
 
{{#if: {{fullbar/timezone|}} | {{fullbar/item|heading=Часовой пояс|value={{fullbar/timezone}}}} | {{#if:{{{timezone|}}} | {{fullbar/item|heading=Часовой пояс|value={{{timezone}}} }} |}}}}
## Фотография ##
|-
-->{{ #if: {{{image|}}} |<tr><td colspan="2" class="sidebar-line" style="border-top:0px; border-bottom:0px; padding:5px; padding-bottom:2px"><!--
| {{ #if:{{#property:p17}} | {{#if: {{{monumentlist|}}} | colspan="2" style="text-align: center; border-bottom: 1px solid #008a60; border-top:{{#if:{{{website|}}}|0px|1px}} solid #008a60; background-color: #ffffff" | }}| {{ #if:{{{website|}}} | | colspan="2" style="border-top: 2px solid #008a60" }} }} | {{ #if:{{#property:p17}} | {{#if: {{{monumentlist|}}} | <small>[[File:Distinctive emblem for cultural property.svg|11px|angle=90]]&nbsp;&nbsp;'''[[{{fullbar/monument|{{#property:p17}}}}{{{monumentlist}}}|Объекты культурного наследия]]''' </small> |}}|}}
{{ #if: {{{image|}}} | {{fullbar/image|image=---->[[File:{{{image|}}}|frameless|{{#if:{{{imagewidth|}}}|{{{imagewidth|}}}|240px260px}}]]</td></tr>|}} }}<!--
|-
 
| {{ #if:{{#property:p17}} | {{#if: {{{naturelist|}}} | colspan="2" style="text-align: center; border-bottom: 1px solid #008a60; border-top:0px; solid #008a60; background-color: #ffffff" | }} |}} | {{ #if:{{#property:p17}} | {{#if: {{{naturelist|}}} | <small>[[File:WLE Austria Logo (no text).svg|15px]]&nbsp;&nbsp;'''[[{{fullbar/nature|{{#property:p17}}}}{{{naturelist}}}|Природные памятники]]''' </small> |}}|}}
## Подпись ##
|-
-->{{#if:{{{caption|}}} |<tr><td colspan="2" class="sidebar-line" style="border-top:0px; border-bottom:0px; padding-bottom:5px"><span style="font-size:85%">''{{{caption|}}}''</span></td></tr>|}}<!--
{{fullbar/image|image=[[File:Wikiguide barbanner.png|noframe|200px]]}}
 
|}
## Полезная информация ##
|--><tr><td colspan="2" styleclass="textsidebar-align: center; border-bottom: 1px solid #008a60; border-top: 1px solid #008a60;line" style="background-color: #d6f7e8" | >'''Полезная информация'''</td></tr><!--
 
## Население ##
-->{{ #if: {{{population|}}} |<tr class="sidebar-item"><td style="padding-left:10px; padding-top:5px">'''Население'''</td><!--
----><td style="padding-top:5px; padding-left:10px">{{{population|}}}</td></tr><!--
-->|{{#if: {{#property:p1082}}|<tr class="sidebar-item"><td style="padding-left:10px; padding-top:5px">'''Население'''</td><!--
---->{{#if<td style="padding-top:5px; {{#propertypadding-left:p1082}}|{{fullbar item|heading=Население|value=10px">{{#invoke:String|sub|s={{#property:p1082}}|1|{{#invoke:String|len|{{#invoke:String|match|s={{#property:p1082}}|^[%d%s]*|ignore_errors=true}}}}}}&nbsp;чел.</td></tr>|}}}}<!--
 
## Телефонный код ##
-->{{ #if: {{{callingcode|}}} |<tr class="sidebar-item"><td style="padding-left:10px; padding-top:5px">'''Телефонный код'''</td><!--
----><td style="padding-top:5px; padding-left:10px">{{{callingcode|}}}</td></tr>|}}<!--
 
## Часовой пояс ##
-->{{ #if: {{fullbar/timezone|}} |<tr class="sidebar-item"><td style="padding-left:10px">'''Часовой пояс'''</td><!--
----><td style="padding-left:10px">{{fullbar/timezone}}</td><tr><!--
-->| {{#if: {{{timezone|}}} |<tr class="sidebar-item"><td style="padding-left:10px">'''Часовой пояс'''</td><!--
----><td style="padding-left:10px">{{{timezone|}}}</td></tr>|}}}}<!--
 
## Список объектов культурного наследия ##
| -->{{ #if:{{#property:p17}} | {{#if: {{{monumentlist|}}} |<tr><td colspan="2" styleclass="textsidebar-align: center; border-bottom: 1px solid #008a60; border-top:{{#if:{{{website|}}}|0px|1px}} solid #008a60; background-color: #ffffff" | }}| {{ #if:{{{website|}}} | | colspan="2line"><span style="borderfont-topsize: 2px solid #008a6085%" }} }} | {{ #if:{{#property:p17}} | {{#if: {{{monumentlist|}}} | <small>[[File:Distinctive emblem for cultural property.svg|11px|angle=90]]&nbsp;&nbsp;'''[[{{fullbar/monument|{{#property:p17}}}}{{{monumentlist}}}|Объекты культурного наследия]]''' </smallspan></td></tr> |}}|}}<!--
 
## Список природных объектов ##
| -->{{ #if:{{#property:p17}} | {{#if: {{{naturelist|}}} | <tr><td colspan="2" styleclass="textsidebar-align:line" center; borderstyle="font-bottomsize: 1px solid #008a6085%; borderpadding-top:0px3px; solid #008a60; backgroundpadding-colorbottom: #ffffff3px" | }} |}} | {{ #if:{{#property:p17}} | {{#if: {{{naturelist|}}} | <small>[[File:WLE Austria Logo (no text).svg|15px]]&nbsp;&nbsp;'''[[{{fullbar/nature|{{#property:p17}}}}{{{naturelist}}}|Природные памятники]]''' </smalltd></tr> |}}|}}<!--
 
## Логотип ##
--><tr><td colspan="2" class="sidebar-line" style="border-top:0px; border-bottom:2px solid #008a60; padding-top:5px">[[File:Wikiguide barbanner.png|noframe|200px]]</td></tr>
</table>
</div>
<!-- end citybar --></includeonly><noinclude>
'''Описание:''' <font color=red>Это тестовая версия шаблона Citybar для тестирования Templatestyles. Удалите ее по окончанию тестирования!</font>
'''Описание:''' шаблон для оформления базовой информации о городе или любом другом населённом пункте (статьи низшего уровня географической иерархии).
 
<nowiki>