Template:ImageMeta: Difference between revisions
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 |
||
| Line 5: | Line 5: | ||
<!-- 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:{{{HasCaption|}}}|[[HasCaption::{{{HasCaption}}}]]}} | {{#if:{{{HasCaption|}}}|[[HasCaption::{{{HasCaption}}}]]}} | ||
{{#if:{{{DepictsPerson|}}}|[[DepictsPerson::{{{DepictsPerson}}}]]}} | {{#if:{{{DepictsPerson|}}}|[[DepictsPerson::{{{DepictsPerson}}}]]}} | ||
| Line 21: | Line 22: | ||
{{#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> | ||
| Line 31: | Line 33: | ||
{{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 ... | ||
Revision as of 15:25, 13 November 2025
Use this on File: 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/...
}}