Difference between revisions of "Template:InfoboxSlo"

From Culture.si
Line 1: Line 1:
 
<div class="contact-info">
 
<div class="contact-info">
 
<div class="contact-info-title">Kontaktni podatki</div><table class="infobox">
 
<div class="contact-info-title">Kontaktni podatki</div><table class="infobox">
[[Image:{{{image|}}}]]
+
[[Image:{{{TeaserImg|}}}]]
[[Image:{{{logo|{{{localname|{{SUBPAGENAME}}}}} (logo).svg}}}]]
+
[[Image:{{{Logo|{{{localname|{{SUBPAGENAME}}}}} (logo).svg}}}]]
 
{{infoboxContactPrint
 
{{infoboxContactPrint
| name      = {{#if:{{{localname|{{{local name|{{{name}}}}}}}}}|{{{localname|{{{local name|{{{name}}}}}}}}}|{{{name|{{SUBPAGENAME}}}}}}}
+
| name      = {{{Localname}}}
| street    = {{{street|{{{street address|}}}}}}
+
| street    = {{{Street}}}
| town      = {{{town|}}}
+
| town      = {{{Town|}}}
| website  = {{{website|}}}
+
| website  = {{{Website|}}}
 
| email    = {{{email|}}}
 
| email    = {{{email|}}}
| telephone = {{{telephone|}}}
+
| telephone = {{{Telephone|}}}
| fax      = {{{fax|}}}
+
| fax      = {{{Fax|}}}
 
| save      = TRUE
 
| save      = TRUE
}}{{#set:localname={{#if:{{{localname|{{{local name|{{{name}}}}}}}}}|{{{localname|{{{local name|{{{name}}}}}}}}}|{{{name|{{SUBPAGENAME}}}}}}}}}{{#if:{{{town|}}}
+
}}{{#set:localname={{{Localname}}}}}
| {{{
+
{{infoboxRowPrint
   townName = {{#str:replace|{{{town}}}|^[A-Z][A-Z]-\S+ |}}
+
   | label = Region
| zip = {{#str:replace|{{{town}}}|^([A-Z][A-Z]-\S+) .*$|$1}}
+
  | name  = Region
  }}}
+
  | value = {{{Region}}}
  {{#ifeq:{{{town}}}|{{{townName}}}||
+
  | type  = text
    {{#ifeq:{{#str:substr|{{{zip}}}|0|2}}|SI|
 
      {{infoboxRowPrint
 
      | label = Region
 
      | name  = Region
 
      | value = {{{region|{{#str:substr|{{{town|}}}|0|4}}}}}
 
      | type  = text
 
      }}
 
    }}
 
    {{infoboxRowPrint
 
    | hidden = TRUE
 
    | label = Zip
 
    | name  = Zip
 
    | value = {{{zip}}}
 
    | type  = hidden
 
    }}{{infoboxRowPrint
 
    | hidden = TRUE
 
    | label = TownName
 
    | name  = TownName
 
    | value = {{{townName}}}
 
    | type  = hidden
 
    }}
 
 
   }}
 
   }}
 
}}
 
}}
 +
 
{{infoboxRowPrint
 
{{infoboxRowPrint
| label = Post
 
| hidden = TRUE
 
| name  = Post
 
| value = {{{town|}}}
 
| type  = text
 
}}{{infoboxRowPrint
 
| label = Country
 
| hidden = {{#if:{{{country|}}}||HIDDEN}}
 
| name  = Country
 
| value = {{uc:{{{country|si}}}}}
 
| type  = text
 
}}{{infoboxRowPrint
 
 
| label = Proprietor
 
| label = Proprietor
 
| name  = Proprietor
 
| name  = Proprietor

Revision as of 01:38, 27 March 2014

Kontaktni podatki

[[Image:]] File:InfoboxSlo (logo).svg

}}



{{{Localname}}}
{{{Street}}},
Region{{{Region}}}