Difference between revisions of "Template:Infobox"

From Culture.si
Line 59: Line 59:
 
   | fax        =  
 
   | fax        =  
 
   }}
 
   }}
 +
| accounts =
 +
 +
http://www.facebook.com/fbid
 +
...
 +
 
}}
 
}}
 
</pre></noinclude>{{#ifeq:{{#this:depth}}|1|
 
</pre></noinclude>{{#ifeq:{{#this:depth}}|1|
Line 239: Line 244:
 
   | value = File:{{FULLPAGENAME}} (website).png
 
   | value = File:{{FULLPAGENAME}} (website).png
 
   | type  = image
 
   | type  = image
 +
}}{{#if:{{{accounts|}}}|
 +
{{#arr:dataloop
 +
|{{#arr:match|{{{accounts}}}
 +
|https?:\/\/(.*\.)?(.*?)\..*?\/(.*)}}
 +
|each = {{infoboxRow
 +
  |label = {{{2}}}
 +
  |name= {{{2}}} account
 +
  |value = {{{0}}}
 +
  |type = text
 +
}}}}
 
}}</table>
 
}}</table>
 
{{{extra|}}}
 
{{{extra|}}}

Revision as of 22:50, 26 March 2014

Prekopiraj spodnjo strukturo v izvorno kodo članka. Pri Image vpiši samo ime slike.

{{Infobox
| name               =
| local name         =
| logo               = 
| image              = 
| street             = 
| town               = 
| region             = ''if not in Slovenia'' 
| country            = ''if not in Slovenia''
| website            = 
| email              = 
| telephone          = 
| fax                = 
| founded by         =
| founded by 2       =
| founded by 3       =
| founded by 4       =
| organised by       =
| organised by 2     =
| organised by 3     =
| managed by         = 
| managed by 2       = 
| managed by 3       = 
| published by       =
| published by 2     = 
| published by 3     =
| opening hours      =
| official hours     =
| frequency          =
| dates and duration = 
| duration weeks     = for festivals
| contacts     = {{Contact
  | name        = 
  | role        =
  | street      = 
  | town        = 
  | website     = 
  | email       = 
  | telephone   = 
  | fax         = 
  }}{{Contact
  | name        = 
  | role        =
  | street      = 
  | town        = 
  | website     = 
  | email       = 
  | telephone   = 
  | fax         = 
  }}{{Contact
  | name        = 
  | role        =
  | street      = 
  | town        = 
  | website     = 
  | email       = 
  | telephone   = 
  | fax         = 
  }}
| accounts = 

http://www.facebook.com/fbid
...

}}