Difference between revisions of "Template:Infobox"

From Culture.si
Line 1: Line 1:
{{#ifeq:{{#this:depth}}|1|
+
<noinclude>
<div class="infobox">{{#ifexist:image:{{{Image|{{FULLPAGENAME}}.jpg}}}|[[image:{{{Image|{{FULLPAGENAME}}.jpg}}}|260px]]}}
+
*[[Template:Infobox]]
{{dataRow|Image|Image:{{{Image|{{FULLPAGENAME}}.jpg}}} }}
+
*[[Template:InfoboxRow]]
<div>{{Contact|Name={{{Name|{{FULLPAGENAME}}}}}|Street={{{Street|}}}|Town={{{Town|}}}|Website={{{Website|}}}|Email={{{Email|}}}|Telephone={{{Telephone|}}}|Fax={{{Fax|}}}
+
*[[Template:Contact]]
}}{{infoboxRow|Proprietor|{{{Proprietor|}}}|
+
</noinclude>{{#ifeq:{{#this:depth}}|1|
}}{{infoboxRow|Founder|{{{Founder|}}}|
+
<table class="infobox">
}}{{infoboxRow|Manager|{{{Manager|}}}|
+
{{infoboxRow2
}}{{infoboxRow|Open|{{{Opening hours|}}}|
+
| label  =
}}{{infoboxRow|Location|{{{Location|}}}|
+
| name    = image  
}}{{infoboxRow|Contact|{{{Contact|}}}|
+
| value  = {{{Image|{{FULLPAGENAME}}.jpg}}}
}}{{{Contacts|}}}{{infoboxRow|Type|{{{Type|}}}|
+
| type    = image
 
}}
 
}}
</div></div>
+
{{Contact2
 +
| Name      = {{{Name|{{FULLPAGENAME}}}}}
 +
| Street    = {{{Street|}}}
 +
| Town      = {{{Town|}}}
 +
| Website  = {{{Website|}}}
 +
| Email    = {{{Email|}}}
 +
| Telephone = {{{Telephone|}}}
 +
| Fax      = {{{Fax|}}}
 +
| save      = TRUE
 +
}}
 +
{{#if:{{{Town|}}}
 +
| {{infoboxRow2
 +
  | label =
 +
  | name  = Region
 +
  | value = {{#sub:{{{Town}}}|0|4}}
 +
  | display =
 +
  | type  = text
 +
  }}
 +
}}
 +
{{infoboxRow2
 +
| label = Proprietor
 +
| name  = Proprietor
 +
| value = {{{Proprietor|}}}
 +
| type  = link
 +
}}
 +
{{infoboxRow2
 +
| label = Founder
 +
| name  = Founder
 +
| value = {{{Founder|}}}
 +
| type  = link
 +
}}
 +
{{infoboxRow2
 +
| label = Manager
 +
| name  = Manager
 +
| value = {{{Manager|}}}
 +
| type  = link
 +
}}
 +
{{infoboxRow2
 +
| label = Organizer
 +
| name  = Organizer
 +
| value = {{{Organizer|}}}
 +
| type  = link
 +
}}
 +
{{infoboxRow2
 +
| label = Open
 +
| name  =
 +
| value = {{{Opening hours|}}}
 +
| type  = text
 +
}}
 +
{{infoboxRow2
 +
| label = Location
 +
| name  = Location
 +
| value = {{{Location|}}}
 +
| type  = text
 +
}}
 +
{{{Contacts|}}}
 +
</table>
 
}}
 
}}

Revision as of 20:22, 6 October 2009