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

Материал из ВикиПротопии
Перейти к: навигация, поиск
 
(не показано 15 промежуточных версий 2 участников)
Строка 1: Строка 1:
<includeonly>{{#default_form:Место}}</includeonly>{{#arraydefine:themes| {{{themes|}}} }}{{#arraydefine:communities| {{{communities|}}} }}{{#arraydefine:type| {{{type|}}} }}[[Место Название::{{PAGENAME}}|]]{{#set:Адрес текст={{{address|}}}}}{{Infobox
+
<includeonly>[[Категория:Место]]{{#default_form:Место}}{{#arraydefine:themes| {{{themes|}}} }}{{#arraydefine:communities| {{{communities|}}} }}{{#arraydefine:partners| {{{partners|}}} }}{{#arraydefine:type| {{{type|}}} }}[[Место Название::{{PAGENAME}}|]]{{#set:Адрес текст={{{address|}}}}}{{Infobox
 
  |name        = Место
 
  |name        = Место
 
  |bodystyle    = padding:3px;background:#f7f7f7;border:1px solid #ccc;vertical-align:top;width:300px;float:right;font-size:small
 
  |bodystyle    = padding:3px;background:#f7f7f7;border:1px solid #ccc;vertical-align:top;width:300px;float:right;font-size:small
Строка 18: Строка 18:
 
  |imagestyle  =text-align:center;border-top-style:none;padding:5px;
 
  |imagestyle  =text-align:center;border-top-style:none;padding:5px;
 
  |captionstyle =  
 
  |captionstyle =  
  |  image      = [[File:{{{image}}}|300px]]
+
  |  image      = {{#ifexist:File:{{{image|}}}|[[File:{{{image}}}|300px]]|}}
 
  |caption      =  
 
  |caption      =  
  
Строка 24: Строка 24:
 
  | data1 = {{#arrayprint:type  |,&#32;|@@@@ |[[Место Тип::@@@@|@@@@]] }}
 
  | data1 = {{#arrayprint:type  |,&#32;|@@@@ |[[Место Тип::@@@@|@@@@]] }}
 
  |label2 = Адрес:
 
  |label2 = Адрес:
  |  data2 = [[Адрес::{{#geocode:{{{address|}}}}}|{{{address|}}}|service=google]]  
+
  |  data2 = [[Адрес::{{#geocode:{{{address|}}}}}|{{{address|}}}|service=google]] {{AddressLinks|{{{address|}}}}}
 
  |label3 = Тематика:
 
  |label3 = Тематика:
 
  |  data3 = {{#arrayprint:themes  |,&#32;|@@@@ |[[Тематика::@@@@|@@@@]] }}
 
  |  data3 = {{#arrayprint:themes  |,&#32;|@@@@ |[[Тематика::@@@@|@@@@]] }}
  |label4 = '''Группа Вк:'''
+
  |label4 = Дата начала:
  |  data4 =  {{{vk|}}}
+
|  data4 = {{{datestart|}}}
  |label5 = '''Число в группе Вк:'''
+
|label5 = Дата закрытия:
  |  data5 =  {{#if: {{{vk_id|}}} | {{Шаблон:Пользователей_в_группе|{{{vk_id|}}} }} | }}
+
|  data5 = {{{dateend|}}}
 +
|label6 = Участники:
 +
|  data6 = {{#ask:
 +
[[Участник::{{PAGENAME}}]]
 +
|format=list}}
 +
|label7 = '''Группа Вк:'''
 +
  |  data7 =  {{{vk|}}}
 +
  |label8 = '''Число в группе Вк:'''
 +
  |  data8 =  {{#if: {{{vk_id|}}} | {{Шаблон:Пользователей_в_группе|{{{vk_id|}}} }} | }}
 +
|label9 = Партнеры:
 +
|data9 = {{#arrayprint:partners  |,&#32;|@@@@ |[[Партнер::@@@@|@@@@]] }} {{#ask:
 +
  [[Партнер::{{PAGENAME}}]]
 +
  |format=list
 +
  }}
 +
|label10 = Сообщества:
 +
|data10 = {{#arrayprint:communities  |,&#32;|@@@@ |[[Сообщество::@@@@|@@@@]] }} {{#ask:
 +
  [[Сообщество::{{PAGENAME}}]]
 +
  |format=list
 +
  }}
  
 
  |belowstyle =
 
  |belowstyle =
  |below      =  
+
  |below      = {{#ask:[[{{PAGENAME}}]]
 +
| ?Адрес=Координаты
 +
| ?Адрес текст#=Адрес
 +
| ?Тематика#=Тематика
 +
| format=map
 +
| zoom = 16
 +
| center = {{#geocode:{{{address|}}}}}|{{{address|}}}
 +
|height=300
 +
|width=300
 +
|limit=10000
 +
| enablefullscreen=yes
 
}}
 
}}
{{#set:Адрес_Город:{{GeoCity|coordinates={{#geocode:{{{address|}}}|format=float|directional=no}}}}
+
}}
 +
{{#set:Адрес_Город={{GeoCity|coordinates={{#geocode:{{{address|}}}|format=float|directional=no}}}}}}</includeonly>
 
<noinclude>
 
<noinclude>
 
{{documentation}}
 
{{documentation}}
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Текущая версия на 22:50, 17 декабря 2020


Template documentation[view] [edit] [history] [purge]
{{Место
|image =
|type=
|address = 
|datestart=
|dateend=
|communities=
|vk = 
|vk_id = 
}}