Difference between revisions of "Template:Photobox"

From Culture.si
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
+
{{#ifeq:{{#this:depth}}|1|{{#eval:wrap|Photobox/{{{type}}}}}{{#default_form:Photobox}}}}
__TOC__
 
==Usage==
 
<pre>
 
{{Photo
 
| status  = URL PHOTOBOX LOCALINFO CATEGORIES SIZE
 
}}
 
 
 
{{Photobox
 
|description          =
 
|subject              =
 
|subject 2            =
 
|subject 3            =
 
|title                =
 
|technique        =
 
|dimensions      =
 
|artist              =
 
|artist 2            =
 
|artist 3            =
 
|design              =
 
|publisher            =
 
|performance info    =
 
|foto                =
 
|date                =
 
|subject date        =
 
|location            =
 
|related article      =
 
|related article 2    =
 
|related article 3    =
 
|identifier          =
 
|source              =
 
}}
 
{{CC-BY-ND}}
 
[[Category:Images]]
 
</pre>
 
 
 
==Arguments==
 
<dl>
 
<dt>[[Property:description|description]] (text)<dd> Caption - around 150 chars - the description of what you see on the picture (the text is visible under the image in the Gallery), title of the event (book or artwork) in English title (official). Tag with internal links [[]] persons (when Slovenian) or related article
 
<dt>[[Property:subject|subject]] (page)<dd>The name of the article - identical with the Culture.si name! (the picture automatically appears in the Gallery of the article, and also as a Billboard text when the picture is categorised as BEST) LINK!
 
<dt>[[Property:subject 2|subject 2]] <dd> Who (name+surname) or what is on the picture - one LINK
 
<dt>[[Property:subject 3|subject 3]] <dd>in case of further subjects LINK
 
<dt>[[Property:title|title]] (text)<dd> The title of the artwork: book, performance, film, concert . Slovenian title! (for artifacts/artworks)
 
<dt>[[Property:technique|technique]] (text)<dd> The technique of the artwork (painting, sculpture, drawing, print, installation, etc)  Slovenian title! (for artifacts/artworks)
 
<dt>[[Property:dimensions|dimensions]] (text)<dd> The dimensiosn of the artwork (painting, sculpture, drawing, print, installation, etc)  Slovenian title! (for artifacts/artworks)
 
<dt>[[Property:artist|artist]] (page)<dd>The author of the / cover / performance director / book/ poster (Author or artist, band (for artifacts/artworks)
 
<dt>[[Property:artist 2|artist 2]] (page)<dd>The author  2 / cover / performance director / book/ poster  (Author or artist, band (for artifacts/artworks)
 
<dt>[[Property:artist 3|artist 3]] (page)<dd>The author 3 / cover / performance director / book/ poster  (Author or artist, band (for artifacts/artworks)
 
<dt>[[Property:performance info|performance info]]<dd> link na sigledal.si 
 
<dt>[[Property:foto|foto]] (page)<dd>Name and surname of the photographer)
 
<dt>[[Property:date|date]] (date)<dd> When was this photo taken (Date)
 
<dt>[[Property:subject date|subject date]] <dd> coverage temporal, date of artefact, date of origin
 
<dt>[[Property:location|location]] (page)<dd>Location (where was this photo taken?)
 
<dt>[[Property:related article|related article]] <dd>  the name of the related article (the image appears in the gallery of that article, too) - IF NOT UNDER SUBJECT
 
<dt>[[Property:related article 2|related article 2]] <dd>  the name of another related article (the image appears in the gallery of that article, too)
 
<dt>[[Property:related article 3|related article 3]] <dd>  the name of one more related article (the image appears in the gallery of that article, too)
 
<dt>[[Property:identifier|identifier]] (text)<dd>who has sent the picture: email xxx Unique identifier (for files that have one); Catalog number in the source; For example: user@domain.com:file1.jpg
 
<dt>[[Property:source|source]] (page)<dd> The institution (the main institution) who contributed the image (check the name - identical with the Culture.si name)
 
</dl>
 
 
 
==Subtemplates ==
 
{{Special:PrefixIndex/Template:Photobox/}}
 
</noinclude>{{#ifeq:{{#this:depth}}|1|
 
<table class="photobox">
 
 
 
{{photoboxRow
 
| label  = Description
 
| name    = description
 
| value  = {{{description}}}
 
| type    = text
 
}}
 
{{dataRow|DescriptionText|{{#eval:text|{{{description}}}}}}}
 
{{#if:{{{subject|}}}
 
  |{{photoboxRow
 
  | label  = Subject
 
  | name    = subject
 
  | value  = {{{subject}}}
 
  | type    = link
 
  }}
 
}}
 
{{#if:{{{subject 2|}}}
 
  |{{photoboxRow
 
  | label  = &nbsp;
 
  | name    = subject 2
 
  | value  = {{{subject 2}}}
 
  | type    = link
 
  }}
 
}}
 
{{#if:{{{subject 3|}}}
 
  |{{photoboxRow
 
  | label  = &nbsp;
 
  | name    = subject 3
 
  | value  = {{{subject 3}}}
 
  | type    = link
 
  }}
 
}}
 
{{#if:{{{title|}}}
 
  |{{photoboxRow
 
  | label  = Title
 
  | name    = title
 
  | value  = {{{title}}}
 
  | type    = text
 
  }}
 
}}
 
{{#if:{{{technique|}}}
 
  |{{photoboxRow
 
  | label  = Technique
 
  | name    = technique
 
  | value  = {{{technique}}}
 
  | type    = text
 
  }}
 
}}
 
{{#if:{{{dimensions|}}}
 
  |{{photoboxRow
 
  | label  = Dimensions
 
  | name    = dimensions
 
  | value  = {{{dimensions}}}
 
  | type    = text
 
  }}
 
}}
 
{{#if:{{{artist|}}}
 
  |{{photoboxRow
 
  | label  = Artist
 
  | name    = artist
 
  | value  = {{{artist}}}
 
  | type    = link
 
  }}
 
}}
 
{{#if:{{{artist 2|}}}
 
  |{{photoboxRow
 
  | label  = &nbsp;
 
  | name    = artist
 
  | value  = {{{artist 2}}}
 
  | type    = link
 
  }}
 
}}
 
{{#if:{{{artist 3|}}}
 
  |{{photoboxRow
 
  | label  = &nbsp;
 
  | name    = artist
 
  | value  = {{{artist 3}}}
 
  | type    = link
 
  }}
 
}}
 
{{#if:{{{design|}}}
 
  |{{photoboxRow
 
  | label  = Designed by
 
  | name    = design
 
  | value  = {{{design}}}
 
  | type    = link
 
  }}
 
}}
 
{{#if:{{{publisher|}}}
 
  |{{photoboxRow
 
  | label  = &nbsp;
 
  | name    = media publisher
 
  | value  = {{{publisher}}}
 
  | type    = link
 
  }}
 
}}
 
{{#if:{{{performance info|}}}
 
  |{{photoboxRow
 
  | label  = Performance info
 
  | name    = performance info
 
  | value  = {{{performance info}}}
 
  | type    = text
 
  }}
 
}}
 
{{#if:{{{foto|}}}
 
  |{{photoboxRow
 
  | label  = Photo by
 
  | name    = foto
 
  | value  = {{{foto}}}
 
  | type    = link
 
  }}
 
}}
 
{{#if:{{{date|}}}
 
  |{{photoboxRow
 
  | label  = Date
 
  | name    = date
 
  | value  = {{{date}}}
 
  | type    = text
 
  }}
 
}}
 
{{#if:{{{subject date|}}}
 
  |{{photoboxRow
 
  | label  = Subject date
 
  | name    = subject date
 
  | value  = {{{subject date}}}
 
  | type    = text
 
  }}
 
}}
 
{{#if:{{{location|}}}
 
  |{{photoboxRow
 
  | label  = Location
 
  | name    = location
 
  | value  = {{{location}}}
 
  | type    = text
 
  }}
 
}}
 
{{#if:{{{related article|}}}
 
  |{{photoboxRow
 
  | label  = Related article
 
  | name    = related article
 
  | value  = {{{related article}}}
 
  | type    = link
 
  }}
 
}}
 
{{#if:{{{related article 2|}}}
 
  |{{photoboxRow
 
  | label  = &nbsp;
 
  | name    = related article
 
  | value  = {{{related article 2}}}
 
  | type   = link
 
  }}
 
}}
 
{{#if:{{{related article 3|}}}
 
  |{{photoboxRow
 
  | label  = &nbsp;
 
  | name    = related article
 
  | value  = {{{related article 3}}}
 
  | type    = link
 
  }}
 
}}
 
{{#if:{{{source|}}}
 
|{{photoboxRow
 
| label  = Source
 
| name    = media source
 
| value  = {{{source}}}
 
| type    = text
 
}}
 
}}
 
{{#if:{{{alternative|}}}
 
|{{photoboxRow
 
| label  = Alternative
 
| name    = alternative
 
| value  = {{{alternative}}}
 
| type    = alternative
 
}}
 
}}
 
{{Photobox/Common}}
 
</table>}}
 

Latest revision as of 07:51, 21 March 2024