Template:ImageMeta: Difference between revisions

From elijah
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
<includeonly>
<includeonly>
<!-- __NOFACTBOX__ -->
<!-- __NOFACTBOX__ -->
__SHOWFACTBOX__HIDDEN__


<!-- 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:{{{HasFile|}}}|[[HasFile::{{{HasFile}}}]]}}
  {{#if:{{{HasFile|}}}|[[HasFile::{{{HasFile}}}]]}}
{{#if:{{{HasCaption|}}}|[[HasCaption::{{{HasCaption}}}]]}}
  {{#if:{{{HasCaption|}}}|[[HasCaption::{{{HasCaption}}}]]}}
{{#if:{{{DepictsPerson|}}}|[[DepictsPerson::{{{DepictsPerson}}}]]}}
  {{#if:{{{DepictsPerson|}}}|[[DepictsPerson::{{{DepictsPerson}}}]]}}
{{#if:{{{DepictsPlace|}}}|[[DepictsPlace::{{{DepictsPlace}}}]]}}
  {{#if:{{{DepictsPlace|}}}|[[DepictsPlace::{{{DepictsPlace}}}]]}}
{{#if:{{{HasLicense|}}}|[[HasLicense::{{{HasLicense}}}]]}}
  {{#if:{{{HasLicense|}}}|[[HasLicense::{{{HasLicense}}}]]}}
{{#if:{{{Rights|}}}|[[Rights::{{{Rights}}}]]}}
  {{#if:{{{HasRights|}}}|[[HasRights::{{{HasRights}}}]]}}
{{#if:{{{SourceURL|}}}|[[SourceURL::{{{SourceURL}}}]]}}
  {{#if:{{{HasOnlineSource|}}}|[[HasOnlineSource::{{{HasOnlineSource}}}]]}}
</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 -->
   <!-- Float the image to the right -->
Line 35: Line 39:
   {{#if:{{{DepictsPlace|}}}|'''Depicts (Place):''' {{{DepictsPlace}}}<br/>}}
   {{#if:{{{DepictsPlace|}}}|'''Depicts (Place):''' {{{DepictsPlace}}}<br/>}}
   {{#if:{{{HasLicense|}}}|'''License:''' {{{HasLicense}}}<br/>}}
   {{#if:{{{HasLicense|}}}|'''License:''' {{{HasLicense}}}<br/>}}
   {{#if:{{{Rights|}}}|'''Rights:''' {{{Rights}}}<br/>}}
   {{#if:{{{HasRights|}}}|'''Copyrights:''' {{{HasRights}}}<br/>}}
   {{#if:{{{SourceURL|}}}|'''Source:''' [{{{SourceURL}}} link]<br/>}}
   {{#if:{{{HasOnlineSource|}}}|'''Source URL:''' [{{{HasOnlineSource}}} link]<br/>}}
   <!-- [[File:{{#show:{{PAGENAME}}|?HasFile}}|thumb|center|300px]] -->
   <!-- [[File:{{#show:{{PAGENAME}}|?HasFile}}|thumb|center|300px]] -->
</div>
</div>
Line 53: Line 57:
  |DepictsPlace=Community:Lviv
  |DepictsPlace=Community:Lviv
  |HasLicense=CC BY-SA 4.0
  |HasLicense=CC BY-SA 4.0
  |Rights=© 2025 XYZ Museum
  |HasRights=© 2025 XYZ Museum
  |SourceURL=https://example.org/...
  |HasOnlineSource=https://example.org/...
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Latest revision as of 13:45, 5 March 2026



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
 |HasRights=© 2025 XYZ Museum
 |HasOnlineSource=https://example.org/...
}}