Template:ImageMeta: Difference between revisions

From elijah
Jump to navigation Jump to search
(Created page with "<includeonly> <!-- Categorize all described files (optional) --> Category:Images <!-- Only write triples when a value exists --> {{#if:{{{ImageID|}}}|[[ImageID::{{{ImageID}}}]]}} {{#if:{{{HasCaption|}}}|[[HasCaption::{{{HasCaption}}}]]}} {{#if:{{{DepictsPerson|}}}|[[DepictsPerson::{{{DepictsPerson}}}]]}} {{#if:{{{DepictsPlace|}}}|[[DepictsPlace::{{{DepictsPlace}}}]]}} {{#if:{{{HasLicense|}}}|[[HasLicense::{{{HasLicense}}}]]}} {{#if:{{{Rights|}}}|Rights::{{{Rights}...")
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- https://elijahwiki.info/index.php/Template:ImageMeta -->
<includeonly>
<includeonly>
<!-- __NOFACTBOX__ -->
<!-- Categorize all described files (optional) -->
<!-- Categorize all described files (optional) -->
[[Category:Images]]
[[Category:Images]]


<!-- Hidden semantic data -->
<div style="display:none;">
<!-- Only write triples when a value exists -->
<!-- Only write triples when a value exists -->
{{#if:{{{ImageID|}}}|[[ImageID::{{{ImageID}}}]]}}
  {{#if:{{{ImageID|}}}|[[ImageID::{{{ImageID}}}]]}}
{{#if:{{{HasCaption|}}}|[[HasCaption::{{{HasCaption}}}]]}}
  {{#if:{{{HasFile|}}}|[[HasFile::{{{HasFile}}}]]}}
{{#if:{{{DepictsPerson|}}}|[[DepictsPerson::{{{DepictsPerson}}}]]}}
  {{#if:{{{HasCaption|}}}|[[HasCaption::{{{HasCaption}}}]]}}
{{#if:{{{DepictsPlace|}}}|[[DepictsPlace::{{{DepictsPlace}}}]]}}
  {{#if:{{{DepictsPerson|}}}|[[DepictsPerson::{{{DepictsPerson}}}]]}}
{{#if:{{{HasLicense|}}}|[[HasLicense::{{{HasLicense}}}]]}}
  {{#if:{{{DepictsPlace|}}}|[[DepictsPlace::{{{DepictsPlace}}}]]}}
{{#if:{{{Rights|}}}|[[Rights::{{{Rights}}}]]}}
  {{#if:{{{HasLicense|}}}|[[HasLicense::{{{HasLicense}}}]]}}
{{#if:{{{SourceURL|}}}|[[SourceURL::{{{SourceURL}}}]]}}
  {{#if:{{{Rights|}}}|[[Rights::{{{Rights}}}]]}}
  {{#if:{{{SourceURL|}}}|[[SourceURL::{{{SourceURL}}}]]}}
</div>


<!-- Visible card -->
<!-- A compact display box (optional) -->
<!-- A compact display box (optional) -->
<div class="imagemeta" style="border:1px solid #ddd; padding:.6em; background:#fafafa; margin:.8em 0;">
<div class="imagemeta" style="border:1px solid #ddd; padding:.8em; background:#fafafa; margin:.8em 0; overflow:auto;">
<!-- <div class="imagemeta" style="border:1px solid #ddd; padding:.6em; background:#fafafa; margin:.8em 0;"> -->
 
  <!-- Float the image to the right -->
  {{#if:{{{HasFile|}}}|
    <div style="float:right; margin:0 0 .5em .8em;">
      <!-- [[{{{HasFile}}}|thumb|200px|{{{HasFile|}}}]] -->
      <!-- [[{{{HasFile}}}|thumb|200px|]] -->
      [[{{{HasFile}}}|200px|frameless|{{{HasCaption|}}}]]
    </div>
  }}
 
   {{#if:{{{HasCaption|}}}|'''Caption:''' {{{HasCaption}}}<br/>}}
   {{#if:{{{HasCaption|}}}|'''Caption:''' {{{HasCaption}}}<br/>}}
   {{#if:{{{ImageID|}}}|'''ID:''' {{{ImageID}}}<br/>}}
   {{#if:{{{ImageID|}}}|'''ID:''' {{{ImageID}}}<br/>}}
Line 21: Line 41:
   {{#if:{{{Rights|}}}|'''Rights:''' {{{Rights}}}<br/>}}
   {{#if:{{{Rights|}}}|'''Rights:''' {{{Rights}}}<br/>}}
   {{#if:{{{SourceURL|}}}|'''Source:''' [{{{SourceURL}}} link]<br/>}}
   {{#if:{{{SourceURL|}}}|'''Source:''' [{{{SourceURL}}} link]<br/>}}
  <!-- [[File:{{#show:{{PAGENAME}}|?HasFile}}|thumb|center|300px]] -->
</div>
</div>
</includeonly>
</includeonly>


<noinclude>
<noinclude>
Use this on File: pages to store image metadata.
Use this on Image: pages to store image metadata.


Example:
Example:
Line 31: Line 52:
{{ImageMeta
{{ImageMeta
  |ImageID=IMG-000123
  |ImageID=IMG-000123
|HasFile=File:Grain_market_Lviv_1760.jpg
  |HasCaption=Grain market in Lviv, c. 1760.
  |HasCaption=Grain market in Lviv, c. 1760.
  |DepictsPerson=Person:Jacob ben ...
  |DepictsPerson=Person:Jacob ben ...

Latest revision as of 17:20, 13 November 2025



Use this on Image: pages to store image metadata.

Example:

{{ImageMeta
 |ImageID=IMG-000123
 |HasFile=File:Grain_market_Lviv_1760.jpg
 |HasCaption=Grain market in Lviv, c. 1760.
 |DepictsPerson=Person:Jacob ben ...
 |DepictsPlace=Community:Lviv
 |HasLicense=CC BY-SA 4.0
 |Rights=© 2025 XYZ Museum
 |SourceURL=https://example.org/...
}}