Difference between revisions of "Template:Photobox"

From Culture.si
 
(60 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<noinclude><pre>
+
{{#ifeq:{{#this:depth}}|1|{{#eval:wrap|Photobox/{{{type}}}}}{{#default_form:Photobox}}}}
{{Photobox
 
|description=
 
|subject=
 
|subject2=
 
|subject3=
 
|artist =
 
|artist2 =
 
|title=
 
|foto=
 
|date=
 
|location=
 
|performance info=
 
|related article=
 
|related article2=
 
|identifier=
 
|source=
 
|coverage=
 
|alternative=
 
}}
 
{{CC-by-nd-2.5}}
 
[[Category:Images]]
 
 
 
</pre>
 
<dl>
 
<dt>[[Property:description|description]] (text)<dd>Short description / caption - max 150 chars / podnaslov
 
<dt>[[Property:subject|subject]] (page)<dd>What is on a photo? (person, organization, publication...)
 
<dt>[[Property:artist|artist]] (page)<dd>Author or artist, band (for artifacts/artworks)
 
<dt>[[Property:title|title]] (text)<dd>Title (for artifacts/artworks)
 
<dt>[[Property:foto|foto]] (page)<dd>Photographer
 
<dt>[[Property:date|date]] (date)<dd>Date (when was this photo taken?)
 
<dt>[[Property:location|location]] (page)<dd>Location (where was this photo taken?)
 
<dt>[[Property:related article|related article]]
 
<dt>[[Property:identifier|identifier]] (text)<dd>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>Source of file (URL)
 
<dt>[[Property:coverage|coverage]] (text)<dd>Spatial or temporal coverage (when and where)
 
<dt>[[Property:alternative|alternative]] (file)<dd>Alternative representation (eg. PDF for logos)
 
</dl>
 
</noinclude>{{#ifeq:{{#this:depth}}|1|
 
<table class="photobox">
 
 
 
{{photoboxRow
 
| label  = Description
 
| name    = description
 
| value  = {{{description}}}
 
| type    = text
 
}}
 
{{#if:{{{subject|}}}
 
  |{{photoboxRow
 
  | label  = Subject
 
  | name    = subject
 
  | value  = {{{subject}}}
 
  | type   = link
 
  }}
 
}}
 
{{#if:{{{subject2|}}}
 
  |{{photoboxRow
 
  | label  = Subject 2
 
  | name    = subject 2
 
  | value  = {{{subject2}}}
 
  | type    = link
 
  }}
 
}}
 
{{#if:{{{subject3|}}}
 
  |{{photoboxRow
 
  | label  = Subject 3
 
  | name    = subject 3
 
  | value  = {{{subject3}}}
 
  | type    = link
 
  }}
 
}}
 
{{#if:{{{artist|}}}
 
  |{{photoboxRow
 
  | label  = Artist
 
  | name    = artist
 
  | value  = {{{artist}}}
 
  | type    = link
 
  }}
 
}}
 
{{#if:{{{artist2|}}}
 
  |{{photoboxRow
 
  | label  = Artist 2
 
  | name    = artist 2
 
  | value  = {{{artist2}}}
 
  | type    = link
 
  }}
 
}}
 
{{#if:{{{foto|}}}
 
  |{{photoboxRow
 
  | label  = Photo by
 
  | name    = foto
 
  | value  = {{{foto}}}
 
  | type    = link
 
  }}
 
}}
 
{{#if:{{{date|}}}
 
  |{{photoboxRow
 
  | label  = Date
 
  | name    = date
 
  | value  = {{{date}}}
 
  | type    = text
 
  }}
 
}}
 
{{#if:{{{location|}}}
 
  |{{photoboxRow
 
  | label  = Location
 
  | name    = location
 
  | value  = {{{location}}}
 
  | type    = link
 
  }}
 
}}
 
{{#if:{{{performance info|}}}
 
  |{{photoboxRow
 
  | label  = Performance info
 
  | name    = performance info
 
  | value  = {{{performance info}}}
 
  | type    = text
 
  }}
 
}}
 
{{#if:{{{related article|}}}
 
  |{{photoboxRow
 
  | label  = Related article
 
  | name    = related article
 
  | value  = {{{related article}}}
 
  | type    = link
 
  }}
 
}}
 
{{#if:{{{related article2|}}}
 
  |{{photoboxRow
 
  | label  = Related article 2
 
  | name    = related article 2
 
  | value  = {{{related article2}}}
 
  | type    = link
 
  }}
 
}}
 
{{#if:{{{source|}}}
 
|{{photoboxRow
 
| label  = Source
 
| name    = source
 
| value  = {{{source}}}
 
| type    = link
 
}}
 
}}
 
{{#if:{{{alternative|}}}
 
|{{photoboxRow
 
| label  = Alternative
 
| name    = alternative
 
| value  = {{{alternative}}}
 
| type    = alternative
 
}}
 
}}
 
</table>
 
}}
 

Latest revision as of 07:51, 21 March 2024