Jump to content

Template:Infobox location: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 1: Line 1:
<includeonly><table class="infobox vevent" style="width: 20em;display: inline-infobox;">
{{<includeonly>safesubst:</includeonly>#invoke:Unsubst-infobox||$params=name,image,caption,alt,border,type,address,country,years_active,tenants,former_names,current_names,website||$extra=border|$aliases=Name>name,Image>image,Caption>caption,Alt>alt,Border>border,Type>type,Address>address,Country>country,Years_Active>years_active,Years_active>years_active,Years Active>years_active,Years_active>years_active,years active>years_active,Tenants>tenants,Former_Names>former_names,Former_names>former_names,Former Names>former_names,Former names>former_names,former names>former_names,Current_Name>former_names,Current_name>former_names,Current Name>former_names,Current name>former_names,current name>former_names,Website>website|$flags=override|$B=<!--
  <tr>
 
    <th colspan="3" scope="col" class="summary" style="text-align: center; background: {{#ifeq:{{Template:Infobox Song/color|{{{Type|}}}}}|khaki|{{Template:Infobox Song/color}}|{{Template:Infobox Song/color|{{{Type|}}}}}}};">{{#if:{{{Name|}}}|'''{{{Name}}}'''|}}</th>
-->{{Infobox
  </tr>
| bodyclass  = vevent
{{#ifeq:{{{Cover size|}}}|0||
| abovestyle  = color: inherit; background-color: lightsteelblue;
  <tr>
| above      = {{#if:{{{name|}}}|'''{{{name}}}'''|<includeonly><span style="font-style: normal">Untitled</span></includeonly>}}
    <td colspan="3" style="text-align: center;">{{#if:{{{Cover|}}}|[[Image:{{{Cover}}}|{{min|200|{{{Cover size|}}}}}px|{{#ifeq:{{{Border|}}}|yes|border{{!}}}}{{{Name}}} cover]]
 
}}
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{#switch:{{{image|{{{image|}}}}}}|blank=|???=Nocover.png|#default={{{image|{{{image|}}}}}}}}|border={{{border|}}}|alt={{{alt|}}}|title={{{alt|}}}|size=220px}}
{{#if:{{{Caption|}}}|<div style="font-size: 0.8em; line-height: 1.4em;">{{{Caption}}}</div>
| caption    = <div style="line-height: 1.4em;">{{{caption|}}}</div>
}}
 
    </td>
| headerstyle = color: #202122;background-color: lightsteeleblue;
  </tr>
| headerclass = description
}}


{{#if:{{{Type|}}} |
| label2      = Type
  <tr>
| data2      = {{{type|}}}
    <th scope="row" style="width: 7em; text-align: left; font-size:0.9em;">Type</th>
| label3      = Address
    <td colspan="2" style="width: 14em; font-size:0.9em;">{{{Type}}}</td>
| data3      = {{{address|}}}
  </tr>
| label4      = Country
}}
| data4      = {{{country|}}}
{{#if:{{{Address|}}} |
| label5      = Years active
  <tr>
| data5      = {{{years_active|}}}
    <th scope="row" style="width: 7em; text-align: left; font-size:0.9em;">Address</th>
| label6      = Tenant(s)
    <td colspan="2" style="width: 14em; font-size:0.9em;">{{{Address}}}</td>
| data6      = {{{tenants|}}}
  </tr>
| label7      = Former name(s)
}}
| data7      = {{{former_names|}}}
{{#if:{{{Country|}}} |
| label8      = Current name
  <tr>
| data8      = {{{current_name|}}}
    <th scope="row" style="width: 7em; text-align: left; font-size:0.9em;">Country</th>
| label9      = Webiste
    <td colspan="2" style="width: 14em; font-size:0.9em;">{{{Country}}}</td>
| data9      = {{{website|}}}
  </tr>
}}
{{#if:{{{Years active|}}} |
  <tr>
    <th scope="row" style="width: 7em; text-align: left; font-size:0.9em;">Years active</th>
    <td colspan="2" style="width: 14em; font-size:0.9em;">{{{Years active}}}</td>
  </tr>
}}
{{#if:{{{Tenant(s)|}}} |
  <tr>
    <th scope="row" style="width: 7em; text-align: left; font-size:0.9em;">Tenant(s)</th>
    <td colspan="2" style="width: 14em; font-size:0.9em;">{{{Tenant(s)}}}</td>
  </tr>
}}
{{#if:{{{Former name(s)|}}} |
  <tr>
    <th scope="row" style="width: 7em; text-align: left; font-size:0.9em;">Former name(s)</th>
    <td colspan="2" style="width: 14em; font-size:0.9em;">{{{Former name(s)}}}</td>
  </tr>
}}
{{#if:{{{URL|}}}|
  <tr>
    <th scope="row" style="width: 7em; text-align: left; font-size:0.9em;">URL</th>
    <td colspan="2" style="width: 14em; font-size:0.9em;">{{{URL}}}</td>
  </tr>
}}
}}
{{{Misc|}}}
{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox location with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox location]] with unknown parameter "_VALUE_"|ignoreblank=y|name |image |caption |alt |border |type |address |country |years_active |tenants |former_names |current_name |website}}{{#if:{{#invoke:String|match|error_category=Infoboxes with Module:String errors|1={{{name|}}}{{{image|}}}{{{border|}}}{{{alt|}}}{{{caption|}}}{{{type|}}}{{{address|}}}{{{country|}}}{{{years_active|}}}{{{tenants|}}}{{{former_names|}}}{{{current_name|}}}{{{website|}}}x|2=</?t[drh][ >]|nomatch=}}|{{main other|[[Category:Infoboxes with malformed table placement]]}}}}}}<noinclude>
</table></includeonly>
{{Documentation}}
<noinclude>
<!-- Add categories to the /doc subpage, not here. -->
{{Documentation}}  
[[Category:Infoboxes]]
</noinclude>
</noinclude>