Template:Image: Difference between revisions

From elijah
Jump to navigation Jump to search
WikiSync push v1.0
 
WikiSync push v1.1
Line 1: Line 1:
<!-- WikiSync | version=1.0 | updated=2026-04-27 -->
<!-- WikiSync | version=1.1 | updated=2026-04-27 -->
<includeonly>
<includeonly>
__NOFACTBOX__
__NOFACTBOX__
Line 74: Line 74:
   <div style="text-align:center; padding:1em 1em 0 1em; background:#f8f9fa;">
   <div style="text-align:center; padding:1em 1em 0 1em; background:#f8f9fa;">
     {{#if:{{{HasFile|}}}|
     {{#if:{{{HasFile|}}}|
       [[{{{HasFile|}}}|thumb|400px|center|{{{HasImageCaption|}}}]]
       <div style="max-width:100%; overflow:hidden;">
        [[{{{HasFile|}}}|frameless|center|300px]]
        {{#if:{{{HasImageCaption|}}}|
          <div style="font-size:0.85em; color:#555; font-style:italic; text-align:center; padding:0.4em 1em 0.5em; border-top:1px solid #e4e8ec; margin-top:0.4em;">
            {{{HasImageCaption|}}}
          </div>
        }}
      </div>
     |
     |
       <div style="
       <div style="
         width:400px;
         max-width:400px;
        width:100%;
         height:260px;
         height:260px;
         margin:0 auto;
         margin:0 auto;

Revision as of 10:58, 27 April 2026



Use this template on Image: pages to store image metadata.

Example:

{{Image
 |HasFile=File:Perl Joseph portrait.jpg
 |ImageID=IMG-001
 |HasImageCaption=Portrait of Joseph Perl
 |HasImageDescription=Black-and-white portrait photograph of Joseph Perl, Galician rabbi and author.
 |HasImageKind=Portrait
 |HasDate=1880-05-12
 |HasSourceDescription=JGaliciaBukovina archive, digitized 2010
 |HasOnlineSource=https://example.org/images/img-001
 |HasRights=Public domain
 |HasLicense=CC0 1.0
 |HasNILID=NIL-45821
 |DepictsPerson=Person:Q123456
 |DepictsPlace=Community:Lviv
 |BelongsToTopic=Religion, Rabbinate, Hasidism
 |HasTimePeriod=19th century; Pre-WWI
}}

Properties with type notes:

  • HasFile — page reference to File: namespace (e.g. File:image.jpg)
  • HasDate — SMW Date type (ISO format YYYY-MM-DD or YYYY); requires Property:HasDate declared as type Date in the wiki
  • DepictsPerson — list of page references to Person: namespace (semicolon-separated)
  • DepictsPlace — list of page references to Community: namespace (semicolon-separated)
  • BelongsToTopic — list of text values from controlled vocabulary (semicolon-separated)
  • HasTimePeriod — list of text values (semicolon-separated)
  • HasOnlineSource — url
  • All others — text