Difference between revisions of "Template:Metadata"
m (Layout caption/Description) |
m (: colon for right column labels too) |
||
(13 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
--></includeonly><!-- | --></includeonly><!-- | ||
− | --><table class="infobox" style="float:none; font-size:90%; width:99%; background:#F0F8FF" width="99%"><!-- | + | --><table class="infobox" style="float:none; font-size:90%; width:99%; background:#F0F8FF;table-layout:fixed;" width="99%"><!-- |
=== HEADER: Start === --> | === HEADER: Start === --> | ||
<tr><th colspan="2" style="padding:4px;{{#switch:{{{Type}}}|Collection=background:#E5925B|Sound=background:#D76D9C | <tr><th colspan="2" style="padding:4px;{{#switch:{{{Type}}}|Collection=background:#E5925B|Sound=background:#D76D9C | ||
Line 17: | Line 17: | ||
#if:{{{Logo|}}} | #if:{{{Logo|}}} | ||
|<div style="float:left">{{{Logo<includeonly>|</includeonly>}}}</div> | |<div style="float:left">{{{Logo<includeonly>|</includeonly>}}}</div> | ||
− | |[[File:Gtk-dialog-info.svg | + | |<div style="float:left">[[File:Gtk-dialog-info.svg|x22px|link=http://www.species-id.net/openmedia/Template:Metadata|Documentation of this template]]</div> <div style="float:left;margin-left:1.5em;">[[File:Crystal Clear action find.png|x22px|link=http://species-id.net/openmedia/Special:RunQuery/Search_media_by_metadata|Search media by metadata]]</div> |
}}{{ | }}{{ | ||
#if:{{{Metadata Language|}}} | #if:{{{Metadata Language|}}} | ||
Line 92: | Line 92: | ||
--> | --> | ||
− | <table style="background-color:transparent"> | + | <table class="vertical-align-top" style="background-color:transparent;width:100%;table-layout:fixed;white-space:pre-wrap;word-wrap:break-word;"> |
<!-- NOTE: currently left column table has single column with field names and text directly concatenated. In the right column these are separated into columns, aligning the fields --><!-- | <!-- NOTE: currently left column table has single column with field names and text directly concatenated. In the right column these are separated into columns, aligning the fields --><!-- | ||
* Creators required, except for Type=Collection {{{Creators}}} can be empty | * Creators required, except for Type=Collection {{{Creators}}} can be empty | ||
-->{{#switch: {{{Type}}}<!-- | -->{{#switch: {{{Type}}}<!-- | ||
-->|Collection={{#if: {{{Creators|}}}<!-- | -->|Collection={{#if: {{{Creators|}}}<!-- | ||
− | -->|<tr class="note"><td><b>Creators:</b><!-- | + | -->|<tr class="note"><td><b>Creators:</b> <!-- |
− | -->{{ | + | -->{{Metadata/List to property|list={{{Creators|}}}|property=Creator|sep=; }}<!-- --></td></tr> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
}}<!-- Collection:Creator::true end --><!-- | }}<!-- Collection:Creator::true end --><!-- | ||
all other types: Creators should be given | all other types: Creators should be given | ||
-->| #default =<tr class="note"><td><b>Creators:</b> {{#if: {{{Creators|}}}<!-- | -->| #default =<tr class="note"><td><b>Creators:</b> {{#if: {{{Creators|}}}<!-- | ||
− | -->|<!-- | + | then-->|<!-- -->{{Metadata/List to property|list={{{Creators|}}}|property=Creator|sep=; }}<!-- |
− | + | else-->|<!-- --><span style="color:#646D7E">(Please consider adding this information)<!-- | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | -->|<!-- | + | |
+ Category | + Category | ||
-->[[Category:Missing - creator unknown]]</span> | -->[[Category:Missing - creator unknown]]</span> | ||
Line 182: | Line 113: | ||
-->{{ | -->{{ | ||
#if: {{{Contributors<includeonly>|</includeonly>}}} | #if: {{{Contributors<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><td><b>Contributors:</b>{{ | + | |<tr class="note"><td><b>Contributors:</b> {{Metadata/List to property|list={{{Contributors|}}}|property=Contributor|sep=; }}</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Attribution Statement<includeonly>|</includeonly>}}} | #if: {{{Attribution Statement<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><td><b>Attribution:</b> {{#arraymap:{{{Attribution Statement}}}|;|§|[[Attribution Statement::§]]| | + | |<tr class="note"><td><b>Attribution:</b> {{#arraymap:{{{Attribution Statement}}}|;|§|[[Attribution Statement::§]]|; }}<!-- {{BulletSep|1={{{Attribution Statement}}} }} --></td></tr> |
}}{{ | }}{{ | ||
#if: {{{Attribution Logo URL<includeonly>|</includeonly>}}} | #if: {{{Attribution Logo URL<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><td><b>Attribution Logo URL:</b> {{#arraymap:{{{Attribution Logo URL|}}}|;|§|[[Attribution Logo URL::§]]| | + | |<tr class="note"><td><b>Attribution Logo URL:</b> {{#arraymap:{{{Attribution Logo URL|}}}|;|§|[[Attribution Logo URL::§]]|; }}</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Attribution Link URL<includeonly>|</includeonly>}}} | #if: {{{Attribution Link URL<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><td><b>Attribution Link URL:</b> {{#arraymap:{{{Attribution Link URL|}}}|;|§|[[Attribution Link URL::§]]| | + | |<tr class="note"><td><b>Attribution Link URL:</b> {{#arraymap:{{{Attribution Link URL|}}}|;|§|[[Attribution Link URL::§]]|; }}</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Copyright Owner<includeonly>|</includeonly>}}} | #if: {{{Copyright Owner<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><td><b>Copyright Owner:</b> {{ | + | |<tr class="note"><td><b>Copyright Owner:</b> {{Metadata/List to property|list={{{Copyright Owner|}}}|property=Copyright Owner|sep=; }}</td></tr> |
}}{{#switch: {{{Type}}}<!-- Copyright, License, Country Code, World Region required, except for Type=Collection:--> | }}{{#switch: {{{Type}}}<!-- Copyright, License, Country Code, World Region required, except for Type=Collection:--> | ||
| Collection=<!-- Display only if present: -->{{ | | Collection=<!-- Display only if present: -->{{ | ||
#if: {{{Copyright Statement<includeonly>|</includeonly>}}} | #if: {{{Copyright Statement<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><td><b>Copyright Statement:</b>[[Copyright Statement::{{{Copyright Statement|}}}]]</td></tr> | + | |<tr class="note"><td><b>Copyright Statement:</b> [[Copyright Statement::{{{Copyright Statement|}}}]]</td></tr> |
}}{{ | }}{{ | ||
#if: {{{License Statement<includeonly>|</includeonly>}}} | #if: {{{License Statement<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><td><b>License Statement:</b>[[License Statement::{{{License Statement|Creative Commons: Author Attribution Required, Share-Alike (cc-by-sa 3.0)}}}]]</td></tr> | + | |<tr class="note"><td><b>License Statement:</b> [[License Statement::{{{License Statement|Creative Commons: Author Attribution Required, Share-Alike (cc-by-sa 3.0)}}}]]</td></tr> |
}}{{ | }}{{ | ||
#if: {{{License URL<includeonly>|</includeonly>}}} | #if: {{{License URL<includeonly>|</includeonly>}}} | ||
Line 215: | Line 146: | ||
}}{{ | }}{{ | ||
#if: {{{Country Names<includeonly>|</includeonly>}}} | #if: {{{Country Names<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><td><b>Country Names:</b> {{#arraymap:{{{Country Names|}}}|;|§|[[Country Name::§]]| | + | |<tr class="note"><td><b>Country Names:</b> {{#arraymap:{{{Country Names|}}}|;|§|[[Country Name::§]]|; }}</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Country Codes<includeonly>|</includeonly>}}} | #if: {{{Country Codes<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><td><b>[[ISO Country Codes|Country Codes]]:</b> {{#arraymap:{{{Country Codes|}}}|;|§|[[Country Code::§]]| | + | |<tr class="note"><td><b>[[ISO Country Codes|Country Codes]]:</b> {{#arraymap:{{{Country Codes|}}}|;|§|[[Country Code::§]]|; }}</td></tr><!-- |
-->}} | -->}} | ||
| #default =<!-- Display a notice if certain fields are missing: | | #default =<!-- Display a notice if certain fields are missing: | ||
Line 242: | Line 173: | ||
-->[[World Region::{{{World Region|}}}| ]]</td></tr> | -->[[World Region::{{{World Region|}}}| ]]</td></tr> | ||
{{#if: {{{Country Names<includeonly>|</includeonly>}}}<!-- | {{#if: {{{Country Names<includeonly>|</includeonly>}}}<!-- | ||
− | -->|<tr class="note"><td><b>Country Names:</b> {{#arraymap:{{{Country Names|}}}|;|§|[[Country Name::§]]| | + | -->|<tr class="note"><td><b>Country Names:</b> {{#arraymap:{{{Country Names|}}}|;|§|[[Country Name::§]]|; }}</td></tr> |
}}<!-- | }}<!-- | ||
− | --><tr class="note"><td><b>[[ISO Country Codes|Country Codes]]:</b><!-- | + | --><tr class="note"><td><b>[[ISO Country Codes|Country Codes]]:</b> <!-- |
-->{{BulletSep<!-- | -->{{BulletSep<!-- | ||
-->|1=<!-- | -->|1=<!-- | ||
Line 271: | Line 202: | ||
}} | }} | ||
<tr class="note"> | <tr class="note"> | ||
− | <td><b>[[Subject Category]]:</b> | + | <td><b>[[Subject Category]]:</b> {{#switch: {{{Type}}} |
− | {{#switch: {{{Type}}} | + | |
| Collection=<!-- For Type=Collection, display only if present: | | Collection=<!-- For Type=Collection, display only if present: | ||
-->{{#if: {{{Subject Category<includeonly>|</includeonly>}}} | -->{{#if: {{{Subject Category<includeonly>|</includeonly>}}} | ||
Line 279: | Line 209: | ||
-->|;<!-- | -->|;<!-- | ||
-->|§<!-- | -->|§<!-- | ||
− | -->|[[Subject Category::§]][[Category:§]]| | + | -->|[[Subject Category::§]][[Category:§]]|; <!-- |
-->}}</includeonly> | -->}}</includeonly> | ||
}} | }} | ||
Line 288: | Line 218: | ||
-->|;<!-- | -->|;<!-- | ||
-->|§<!-- | -->|§<!-- | ||
− | -->|[[Subject Category::§]][[Category:§]]| | + | -->|[[Subject Category::§]][[Category:§]]|; <!-- |
-->}}</includeonly><!-- | -->}}</includeonly><!-- | ||
-->| <span style="color:#646D7E">(Desirable information missing!)</span><!-- | -->| <span style="color:#646D7E">(Desirable information missing!)</span><!-- | ||
Line 296: | Line 226: | ||
{{#if: {{{General Keywords<includeonly>|</includeonly>}}} | {{#if: {{{General Keywords<includeonly>|</includeonly>}}} | ||
|<tr class="note"><td><b>General Keywords:</b> <nowiki> </nowiki><includeonly><!-- | |<tr class="note"><td><b>General Keywords:</b> <nowiki> </nowiki><includeonly><!-- | ||
− | -->{{ | + | -->{{Metadata/List to property|list={{#replace: {{{General Keywords|}}}|,|;}}|property=General Keywords|add category=yes|sep=; }}</includeonly></td></tr> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
}}{{ | }}{{ | ||
#if: {{{Setting<includeonly>|</includeonly>}}} | #if: {{{Setting<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><td><b>Setting:</b> {{{Setting}}}</td></tr> | + | |<tr class="note"><td><b>Setting:</b> {{{Setting|}}}</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Taxonomic Coverage<includeonly>|</includeonly>}}} | #if: {{{Taxonomic Coverage<includeonly>|</includeonly>}}} | ||
|<tr class="note"><td><b>Taxonomic Coverage:</b> [[Taxonomic Coverage::{{{Taxonomic Coverage|}}}]]</td></tr> | |<tr class="note"><td><b>Taxonomic Coverage:</b> [[Taxonomic Coverage::{{{Taxonomic Coverage|}}}]]</td></tr> | ||
}}{{ | }}{{ | ||
− | #if: <!-- deprecated | + | #if: <!-- deprecated --> {{{Lowest Common Taxon<includeonly>|</includeonly>}}} |
− | |<tr class="note"><td><b>Taxonomic Coverage:</b> <!-- deprecated | + | |<tr class="note"><td><b>Taxonomic Coverage:</b> <!-- deprecated -->{{{Lowest Common Taxon}}}<br/>(<span style="color:red">Use <code>“Taxonomic Coverage={{{Lowest Common Taxon|…}}}”</code> instead of deprecated parameter <code>Lowest Common Taxon</code>.</span>)</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Scientific Names<includeonly>|</includeonly>}}} | #if: {{{Scientific Names<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><td><b>Scientific Names:</b> {{ | + | |<tr class="note"><td><b>Scientific Names:</b> {{Metadata/List to property|list={{{Scientific Names|}}}|property=Scientific Name|add category=yes|strip formatting=yes|sep=; }}</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Scientific Names with Author<includeonly>|</includeonly>}}} | #if: {{{Scientific Names with Author<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><td><b>Scientific Names (w. Auth.):</b> {{ | + | |<tr class="note"><td><b>{{#switch: {{NAMESPACE}}|Template=Scientific Names with Author|#default=Scientific Names (w. Auth.)}}:</b> {{Metadata/List to property|list={{{Scientific Names with Author|}}}|property=Scientific Name with Author|strip formatting=yes|sep=; }}</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Scientific Name Synonyms<includeonly>|</includeonly>}}} | #if: {{{Scientific Name Synonyms<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><td><b>Scientific Name Synonyms:</b> {{ | + | |<tr class="note"><td><b>Scientific Name Synonyms:</b> {{Metadata/List to property|list={{{Scientific Name Synonyms|}}}|property=Scientific Name Synonym|strip formatting=yes|sep=; }}</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Identified By<includeonly>|</includeonly>}}} | #if: {{{Identified By<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><td><b>Identified By:</b> {{#arraymap:{{{Identified By|}}}|;|§|[[Identified By::§]]| | + | |<tr class="note"><td><b>Identified By:</b> {{#arraymap:{{{Identified By|}}}|;|§|[[Identified By::§]]|; }}</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Common Names<includeonly>|</includeonly>}}} | #if: {{{Common Names<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><td><b>Common Names:</b> {{ | + | |<tr class="note"><td><b>Common Names:</b> {{Metadata/List to property|list={{{Common Names|}}}|property=Common Name|sep=; }}</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Associated Specimen ID<includeonly>|</includeonly>}}} | #if: {{{Associated Specimen ID<includeonly>|</includeonly>}}} | ||
Line 351: | Line 277: | ||
=== Right Column: Start=== | === Right Column: Start=== | ||
− | --><table style="background-color:transparent"> | + | --><table class="vertical-align-top" style="background-color:transparent;width:100%;table-layout:fixed;white-space:pre-wrap;word-wrap:break-word;"> |
{{#switch: {{{Type}}} | {{#switch: {{{Type}}} | ||
| Collection= <!-- Nothing output here; resource collections display prefix in the colored title line! --> | | Collection= <!-- Nothing output here; resource collections display prefix in the colored title line! --> | ||
Line 370: | Line 296: | ||
| VernacularNameDataset | | VernacularNameDataset | ||
| InteractiveResource=<!--do not move before switch, e.g. collection should not display at all! | | InteractiveResource=<!--do not move before switch, e.g. collection should not display at all! | ||
− | --><tr class="note"><th style="text-align:right; padding-right:0.75em;"> [[Resource Type|Type]]</th><td>[[Type::{{{Type|}}}]]</td></tr> | + | --><tr class="note"><th style="text-align:right; padding-right:0.75em;"> [[Resource Type|Type]]:</th><td>[[Type::{{{Type|}}}]]</td></tr> |
− | | #default =<tr class="note"><th style="text-align:right; padding-right:0.75em;">[[Resource Type|Type]]</th><td><span style="color:red">“<tt>Type={{#if: {{{Type|}}}|{{{Type}}}|‹empty›}}</tt>” is no recognized value. <!-- | + | | #default =<tr class="note"><th style="text-align:right; padding-right:0.75em;">[[Resource Type|Type]]:</th><td><span style="color:red">“<tt>Type={{#if: {{{Type|}}}|{{{Type}}}|‹empty›}}</tt>” is no recognized value. <!-- |
* (Hints for common mistakes: is case sensitive) | * (Hints for common mistakes: is case sensitive) | ||
-->{{#switch: {{{Type}}} | -->{{#switch: {{{Type}}} | ||
Line 390: | Line 316: | ||
{{ | {{ | ||
#if: {{{Subtype<includeonly>|</includeonly>}}} | #if: {{{Subtype<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">[[Resource Subtype|Subtype]]</th><td>[[Subtype::{{{Subtype|}}}]]</td></tr> | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">[[Resource Subtype|Subtype]]:</th><td>[[Subtype::{{{Subtype|}}}]]</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Rating<includeonly>|</includeonly>}}} | #if: {{{Rating<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">[[Resource Rating|Rating]]</th><td>[[Rating::{{{Rating|}}}]]</td></tr> | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">[[Resource Rating|Rating]]:</th><td>[[Rating::{{{Rating|}}}]]</td></tr> |
}} | }} | ||
− | <tr class="note"><th style="text-align:right; padding-right:0.75em;">[[ISO Language Codes|Language]]</th><td> | + | <tr class="note"><th style="text-align:right; padding-right:0.75em;">[[ISO Language Codes|Language]]:</th><td><!-- |
− | <span title="CONTENT’s language of the resource (not metadata), entered as ISO language code, e.g. “en”)">{{ | + | --><span title="CONTENT’s language of the resource (not metadata), entered as ISO language code, e.g. “en”)">{{ |
#if: {{{Language|}}} | #if: {{{Language|}}} | ||
|{{<!-- give subtly some hints --> | |{{<!-- give subtly some hints --> | ||
Line 406: | Line 332: | ||
-->| no linguistic content| zxx | -->| no linguistic content| zxx | ||
|no linguistic content;| zxx; = no linguistic content (zxx)[[Language ISO::zxx| ]]<!-- | |no linguistic content;| zxx; = no linguistic content (zxx)[[Language ISO::zxx| ]]<!-- | ||
− | -->|#default = {{#arraymap: {{#replace: {{{Language}}}|,|;}}|;|§|[[Language::{{#language: §}}]][[Language ISO::§| ]]<!-- -->| | + | -->|#default = {{#arraymap: {{#replace: {{{Language}}}|,|;}}|;|§|[[Language::{{#language: §}}]][[Language ISO::§| ]]<!-- -->|; }} |
}}<!-- end switch --><!-- end CONTENT’s language --> | }}<!-- end switch --><!-- end CONTENT’s language --> | ||
| undetermined (und)[[Language ISO::und| ]] | | undetermined (und)[[Language ISO::und| ]] | ||
Line 412: | Line 338: | ||
{{ | {{ | ||
#if: {{{Original Creation Date<includeonly>|</includeonly>}}} | #if: {{{Original Creation Date<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Original Creation Date</th><td>[[Original Creation Date::{{{Original Creation Date|}}}]]</td></tr> | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Original Creation Date:</th><td>[[Original Creation Date::{{{Original Creation Date|}}}]]</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Accession Date<includeonly>|</includeonly>}}} | #if: {{{Accession Date<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Accession Date</th><td>[[Accession Date::{{{Accession Date|}}}]]</td></tr> | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Accession Date:</th><td>[[Accession Date::{{{Accession Date|}}}]]</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Digitization Date<includeonly>|</includeonly>}}} | #if: {{{Digitization Date<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Digitization Date</th><td>[[Digitization Date::{{{Digitization Date|}}}]]</td></tr> | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Digitization Date:</th><td>[[Digitization Date::{{{Digitization Date|}}}]]</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Modified<includeonly>|</includeonly>}}} | #if: {{{Modified<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Modified</th><td>[[Modified::{{{Modified|}}}]]</td></tr> | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Modified:</th><td>[[Modified::{{{Modified|}}}]]</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Resource ID<includeonly>|</includeonly>}}} | #if: {{{Resource ID<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Resource ID</th><td>[[Resource ID::{{{Resource ID|}}}]]</td></tr> | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Resource ID:</th><td>[[Resource ID::{{{Resource ID|}}}]]</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Metadata Creator<includeonly>|</includeonly>}}} | #if: {{{Metadata Creator<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Metadata Creator</th><td>[[Metadata Creator::{{{Metadata Creator|}}}]]</td></tr> | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Metadata Creator:</th><td>[[Metadata Creator::{{{Metadata Creator|}}}]]</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Metadata Manager<includeonly>|</includeonly>}}} | #if: {{{Metadata Manager<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Metadata Manager</th><td>[[Metadata Manager::{{{Metadata Manager|}}}]]</td></tr> | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Metadata Manager:</th><td>[[Metadata Manager::{{{Metadata Manager|}}}]]</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Metadata Copyright Owner<includeonly>|</includeonly>}}} | #if: {{{Metadata Copyright Owner<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Metadata Copyright Owner</th><td>[[Metadata Copyright Owner::{{{Metadata Copyright Owner|}}}]]</td></tr> | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Metadata Copyright Owner:</th><td>[[Metadata Copyright Owner::{{{Metadata Copyright Owner|}}}]]</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Metadata Modified<includeonly>|</includeonly>}}} | #if: {{{Metadata Modified<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Metadata Modified</th><td>{{{Metadata Modified}}}</td></tr> | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Metadata Modified:</th><td>{{{Metadata Modified|}}}</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Geocoordinates<includeonly>|</includeonly>}}} | #if: {{{Geocoordinates<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Geocoordinates</th><td>[[Geocoordinates::{{{Geocoordinates|}}}]]</td></tr> | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Geocoordinates:</th><td>[[Geocoordinates::{{{Geocoordinates|}}}]]</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Elevation<includeonly>|</includeonly>}}} | #if: {{{Elevation<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Elevation</th><td>[[Elevation::{{{Elevation|}}}]]</td></tr> | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Elevation:</th><td>[[Elevation::{{{Elevation|}}}]]</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Depth<includeonly>|</includeonly>}}} | #if: {{{Depth<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Depth</th><td>[[Depth::{{{Depth|}}}]]</td></tr> | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Depth:</th><td>[[Depth::{{{Depth|}}}]]</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Compass Heading<includeonly>|</includeonly>}}} | #if: {{{Compass Heading<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Compass Heading</th><td>[[Compass Heading::{{{Compass Heading|}}}]]</td></tr> | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Compass Heading:</th><td>[[Compass Heading::{{{Compass Heading|}}}]]</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Taxon Count<includeonly>|</includeonly>}}} | #if: {{{Taxon Count<includeonly>|</includeonly>}}} | ||
− | |<tr class="note" title="Counted taxa in a group"><th style="text-align:right; padding-right:0.75em;">Taxon Count</th><td style="text-align:right; padding-right:0.75em;">{{{Taxon Count}}}</td></tr> | + | |<tr class="note" title="Counted taxa in a group"><th style="text-align:right; padding-right:0.75em;">Taxon Count:</th><td style="text-align:right; padding-right:0.75em;">{{{Taxon Count|}}}</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Subject Part<includeonly>|</includeonly>}}} | #if: {{{Subject Part<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Subject Part</th><td>[[Subject Part::{{{Subject Part|}}}]]</td></tr> | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Subject Part:</th><td>[[Subject Part::{{{Subject Part|}}}]]</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Subject Sex<includeonly>|</includeonly>}}} | #if: {{{Subject Sex<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Subject Sex</th><td>{{#arraymap:{{{Subject Sex|}}}|;|§|[[Subject Sex::§]]| | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Subject Sex:</th><td>{{#arraymap:{{{Subject Sex|}}}|;|§|[[Subject Sex::§]]|; }}</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Subject Life Stage<includeonly>|</includeonly>}}} | #if: {{{Subject Life Stage<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Subject Life Stage</th><td>{{#arraymap: {{{Subject Life Stage|}}}|;|§|[[Subject Life Stage::§]]| | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Subject Life Stage:</th><td>{{#arraymap: {{{Subject Life Stage|}}}|;|§|[[Subject Life Stage::§]]|; }}</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Subject Orientation<includeonly>|</includeonly>}}} | #if: {{{Subject Orientation<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Subject Orientation</th><td>[[Subject Orientation::{{{Subject Orientation|}}}]]</td></tr> | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Subject Orientation:</th><td>[[Subject Orientation::{{{Subject Orientation|}}}]]</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Derived From<includeonly>|</includeonly>}}} | #if: {{{Derived From<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Derived From</th><td>{{#arraymap: {{{Derived From|}}}|;|§|{{ShowIconFromFile |1=§ | position = after}} [[Derived From::{{FILEPATH:{{extractFileName |1=§}}}}| ]]| | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Derived From:</th><td>{{#arraymap: {{{Derived From|}}}|;|§|{{ShowIconFromFile |1=§ | position = after}} [[Derived From::{{FILEPATH:{{extractFileName |1=§}}}}| ]]|; }}</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Other Versions<includeonly>|</includeonly>}}} | #if: {{{Other Versions<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Other Versions</th><td>{{#if: {{{Other Versions|}}}| {{See also files | files={{{Other Versions|}}} |show list only=yes}} }}</td></tr> | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Other Versions:</th><td>{{#if: {{{Other Versions|}}}| {{See also files | files={{{Other Versions|}}} |show list only=yes}} }}</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Format<includeonly>|</includeonly>}}} | #if: {{{Format<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Format</th><td>[[Format::{{{Format|}}}]]</td></tr> | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">Format:</th><td>[[Format::{{{Format|}}}]]</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Offline Use<includeonly>|</includeonly>}}} | #if: {{{Offline Use<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">[[Resource Offline Use|Offline Use]]</th><td>{{ | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">[[Resource Offline Use|Offline Use]]:</th><td>{{ |
#switch: {{lc:{{{Offline Use|n/a}}} }} | #switch: {{lc:{{{Offline Use|n/a}}} }} | ||
| n/a | | n/a | ||
| yes | | yes | ||
− | | no = {{{Offline Use}}} | + | | no ={{{Offline Use|}}} |
| #default=<span style="color:red">'{{{Offline Use}}}' is no recognized value; please use 'yes' or 'no'!</span>[[Offline Use::{{{Offline Use|}}}| ]] | | #default=<span style="color:red">'{{{Offline Use}}}' is no recognized value; please use 'yes' or 'no'!</span>[[Offline Use::{{{Offline Use|}}}| ]] | ||
}}</td></tr> | }}</td></tr> | ||
}}{{ | }}{{ | ||
#if: {{{Interactivity<includeonly>|</includeonly>}}} | #if: {{{Interactivity<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">[[Resource Interactivity|Interactivity]]</th><td>{{#switch: {{lc:{{{Interactivity|n/a}}} }} | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">[[Resource Interactivity|Interactivity]]:</th><td>{{#switch: {{lc:{{{Interactivity|n/a}}} }} |
| n/a | | n/a | ||
| static | | static | ||
| hyperlinked | | hyperlinked | ||
− | | dynamic = {{{Interactivity}}} | + | | dynamic ={{{Interactivity|}}} |
| #default=<span style="color:red">'{{{Interactivity}}}' is no recognized value for interactivity; please use ‘n/a’, ‘static’, ‘hyperlinked’ or ‘dynamic’.</span> | | #default=<span style="color:red">'{{{Interactivity}}}' is no recognized value for interactivity; please use ‘n/a’, ‘static’, ‘hyperlinked’ or ‘dynamic’.</span> | ||
[[Interactivity::{{{Interactivity|}}}| ]]}}</td></tr> | [[Interactivity::{{{Interactivity|}}}| ]]}}</td></tr> | ||
}}{{ | }}{{ | ||
#if: {{{Host Application<includeonly>|</includeonly>}}} | #if: {{{Host Application<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;"><span title="Host application required by the resource">[[Resource Host Application|Host App.]]</span></th><td>{{#arraymap:{{{Host Application|}}}|;|§|[[Host Application::§]]| | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;"><span title="Host application required by the resource">[[Resource Host Application|Host App.]]</span>:</th><td>{{#arraymap:{{{Host Application|}}}|;|§|[[Host Application::§]]|; }}</td></tr> |
}}{{ | }}{{ | ||
#if: {{{Target System<includeonly>|</includeonly>}}} | #if: {{{Target System<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">[[Resource Target System|Target System]]</th><td>{{#arraymap:{{{Target System|}}}|;|§|[[Target System::§]]| | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">[[Resource Target System|Target System]]:</th><td>{{#arraymap:{{{Target System|}}}|;|§|[[Target System::§]]|; }}</td></tr> |
}}{{ | }}{{ | ||
#if: {{{ID Tool Structure<includeonly>|</includeonly>}}} | #if: {{{ID Tool Structure<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">[[ID Tool Structure]]</th><td>{{#switch: {{lc:{{{ID Tool Structure|n/a}}} }} | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">[[ID Tool Structure]]:</th><td>{{#switch: {{lc:{{{ID Tool Structure|n/a}}} }} |
| n/a | | n/a | ||
| dichotomous | | dichotomous | ||
Line 519: | Line 445: | ||
| multi-entry; browsing | | multi-entry; browsing | ||
| multi-entry; dichotomous; browsing | | multi-entry; dichotomous; browsing | ||
− | | multi-entry; polytomous; browsing ={{BulletSep|1={{{ID Tool Structure}}} }} | + | | multi-entry; polytomous; browsing ={{BulletSep|1={{{ID Tool Structure|}}} }} |
| #default=<span style="color:red">'{{{ID Tool Structure}}}' is no recognized value for the structure of identification tools. Please specify something like ‘n/a’, ‘dichotomous’ or ‘multi-access’. For more values see [[Template:Metadata|documentation]].</span>{{#arraymap:{{{ID Tool Structure|}}}|;|§|[[ID Tool Structure::§| ]]|}} | | #default=<span style="color:red">'{{{ID Tool Structure}}}' is no recognized value for the structure of identification tools. Please specify something like ‘n/a’, ‘dichotomous’ or ‘multi-access’. For more values see [[Template:Metadata|documentation]].</span>{{#arraymap:{{{ID Tool Structure|}}}|;|§|[[ID Tool Structure::§| ]]|}} | ||
}}</td></tr> | }}</td></tr> | ||
}}{{ | }}{{ | ||
#if: {{{Exchange Formats<includeonly>|</includeonly>}}} | #if: {{{Exchange Formats<includeonly>|</includeonly>}}} | ||
− | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">[[Exchange Formats]]</th><td>{{#arraymap:{{{Exchange Formats|}}}|;|§|[[Exchange Formats::§]]| | + | |<tr class="note"><th style="text-align:right; padding-right:0.75em;">[[Exchange Formats]]:</th><td>{{#arraymap:{{{Exchange Formats|}}}|;|§|[[Exchange Formats::§]]|; }}</td></tr> |
}} | }} | ||
</table> | </table> |
Latest revision as of 14:21, 4 August 2017
{{{Title}}} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Content Modification: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Creation Technique: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
— Collection: [[{{{Collection Page}}}]] — Provided by: [[{{{Provider Page}}}]] |
[edit]
DocumentationThe metadata template[1] allows you to store metadata on external resources, especially identification tools or media resources, directly in a Wiki page. The template supports a number of metadata fields, some of which will only rarely be used. The set of metadata fields was decided upon in collaboration between Key to Nature, NBII, GBIF-MRTG, and Morphbank (see Resource Metadata Exchange Agreement on Key to Nature).
Resource collections are considered just another type of resources and can be described using the same template (using Type=Collection instead of Type=StillImage, IdentificationTool, etc.).
The importance of the metadata template is that it contains structured information that can be read by software agents. While it is possible to do some searches directly in the Wiki, software agents reading the information into a database can do more complex external queries. It is possible to design the system such that metadata editing is done directly in external databases, but we believe that the current solution has some advantages. For high value resources such as collections or identification tools, contributors are free to structure a special wiki page describing their resource in text and images, the structured metadata record being just a small part of that information. In other cases, where metadata are typically batch converted and submitted from another database, the Wiki-submission offers a simple low-tech and accessible method for batch submission, including some support for syntax checking on behalf of the submitter.
You can use this form to edit metadata:
See How to add resource metadata on the Wiki for further information.
- ↑ A template is a Wiki page that, using a syntax of "
{{pagename | parameter1=value1 | parameter2=value2 }}
", can be called with parameters and thus reused many times.
Contents
Test records
Ascochyta allii-cepae | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||
|
| ||||||||||||||||||||
This record was specified as below (raw edit view):
{{Metadata | Type=StillImage | Title=Ascochyta allii-cepae | Creators = Mr. Smith | Description = {{Metadata/Description|language code=en|content=This can be long text, describing the item in free-form text. This can be long text, describing the item in free-form text. This can be long text, describing the item in free-form text. This can be long text, describing the item in free-form text.}} | Metadata Language=en | Language=zxx | Resource ID=768479362 | Copyright Statement= (c) xyz xxx | License Statement=Creative commons cc-by-sa 3.0 | Scientific Names=Ascochyta allii-cepae; | Scientific Names with Author=Ascochyta allii-cepae Punith., Gladders & McKeown.; | Taxon Count= 20 | Taxon Count= 1 | Interactivity = hyperlinked | ID Tool Structure = Dichotomous | Best Quality URI=http://160.45.63.11/Storage/Fungi/Coelos/AscochytaPunith/edt/AscP88-006.png | Best Quality Availability=online (login) | Medium Quality URI=http://160.45.63.11/Storage/Fungi/Coelos/AscochytaPunith/low/AscP88-006.png | Medium Quality Availability=online (free) }}
Note that blanks before or after the "=", and new lines between metadata fields do not matter. Also, the sequence of parameters does not matter. If parameters are repeated, only the last occurrence of the parameter will define the value (compare Taxon Count in the example above).
As shown below this template tries to give apropriate information if something is missing:
Example for erroneous resource type and missing URI | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| ||||||||||||||
A minimum example can look like:
{{Metadata | Type = StillImage | Title = Bombus barbutellus color pattern (female) | Scientific Names = Bombus barbutellus; | Metadata Language = en | Language = zxx | Copyright Statement = © Paul Williams, NHM | Creators = Paul Williams - NHM | Subject Category = Insecta | General Keywords = Schematic drawings; Bumblebees; }}
Additional temporary or technical documentation
This metadata infobox is full width, non-floating. It has two columns of fields (i.e. 3-4 table column) in the middle, plus some fields column spanning as a Header (Title, Logo, Descriptions) and Footer (URIs). Not all fields are labeled; those that are not are labeled with a tooltip (pop-up if mouse hovers).
Used semantic properties
Additional properties are:
Further semantic properties are named after the template parameters, but note that most of them are mapped in the property name space to well defined ontology vocabulary concepts using the import mechanism by Semantic Media Wiki.
Dependencies
- Template:WikiSyntaxToHTMLEntities
- replace simple Wiki syntax to HTML
- Template:Metadata/Description
- for template parameter “description” a language specific description
- Template:Metadata/Caption
- for template parameter “caption” a language specific caption
- Template:Metadata/List to property
- for “Creators”, “Contributors” or “Copyright Owner” (remove Wiki syntax like [[User:…]])
- Form:Metadata
- form for metadata
- Template:Edit or create metadata
- form for creating metadata
- Form:Search media by metadata
- form for searching metadata
- Template:Search media by metadata
- template for searching metadata