Difference between revisions of "Template:Photobox"

From Culture.si
 
(77 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<noinclude><pre>
+
{{#ifeq:{{#this:depth}}|1|{{#eval:wrap|Photobox/{{{type}}}}}{{#default_form:Photobox}}}}
{{Photobox
 
|description=
 
|subject=
 
|subject2=
 
|artist =
 
|artist2 =
 
|title=
 
|foto=
 
|date=
 
|location=
 
|related article=
 
|identifier=
 
|source=
 
|coverage=
 
|alternative=
 
}}
 
{{CC-by-nd-2.5}}
 
[[Category:Images]]
 
[[Category:Artifacts]]
 
</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  = Subject2
 
  | name    = subject2
 
  | value  = {{{subject2}}}
 
  | type    = link
 
  }}
 
}}
 
{{#if:{{{artist|}}}
 
  |{{photoboxRow
 
  | label  = Artist
 
  | name    = artist
 
  | value  = {{{artist}}}
 
  | type    = link
 
  }}
 
}}
 
{{#if:{{{artist2|}}}
 
  |{{photoboxRow
 
  | label  = Artist2
 
  | name    = artist2
 
  | 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:{{{related article|}}}
 
  |{{photoboxRow
 
  | label  = Related article
 
  | name    = related article
 
  | value  = {{{related article}}}
 
  | type    = link
 
  }}
 
}}
 
{{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 06:51, 21 March 2024