Difference between revisions of "Template:Mapping"

From TDWG Terms Wiki
Jump to: navigation, search
m
 
(14 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
{{Mapping | relation =
 
{{Mapping | relation =
 
ONE OF:
 
ONE OF:
 +
part of
 +
is a
 
skos:exactMatch skos:closeMatch  skos:broadMatch skos:narrowMatch
 
skos:exactMatch skos:closeMatch  skos:broadMatch skos:narrowMatch
 
skos:relatedMatch
 
skos:relatedMatch
 
skos:broader
 
skos:broader
 
skos:narrower
 
skos:narrower
| Full URI =
+
| full URI =
| Short URI = }}
+
| internal page = }}
  --><includeonly>
+
  --><includeonly><!--  -->{{#if:{{#varexists: hasMappings}}||'''Relations of term “{{#if: {{#varexists: label}} | {{#var: label}} | {{PAGENAME}} }}”:'''}}<!--
{|
+
--><table><!--
|+ Mapping of term “{{PAGENAME}}”:
+
-->{{#switch: {{lc:{{{relation|}}}}}<!--  
|-
+
    //////////////////////////
| '''URI'''  
+
    // SKOS mappings
| {{#if: {{{Full URI|}}} | [{{{Full URI}}} {{{Short URI|}}}] | <!-- no Full URI --> {{#if: {{{Short URI|}}} | {{{Short URI}}} | “URI” is missing }} }}  
+
    //////////////////////////
|-
+
-->| has exact match
| style="vertical-align:top"| '''Relations'''  
+
    | has close match
| style="vertical-align:top"| {{#tag: pre |{{Trim|{{{Relations|}}}}} }} <!-- in pre better? -->
+
    | has related match
|}
+
    | has broader match
</includeonly><noinclude>
+
    | has narrower match = <!--
 +
    --><tr><!--
 +
      --><td colspan="2">{{#if: {{#varexists: label}} | {{#var: label}} | {{PAGENAME}} }} ''{{{relation|}}}'' to {{#if: {{{full URI|}}}<!--
 +
      then-->| {{abbr|URI}} {{{full URI}}}<!--
 +
      else-->| <!-- no full URI --> {{#if: {{{internal page|}}}<!--
 +
        then-->| [[{{{internal page}}}]]<!--
 +
        else-->| Relation ''{{{relation|}}}'' to what? Provide a value for either “internal page” or “full URI”.}}<!--
 +
        -->}}<!--
 +
      --></td><!--
 +
    --></tr><!--
 +
       
 +
    //////////////////////////
 +
    // case part of
 +
    //////////////////////////
 +
-->|part of=<!--
 +
    --><tr><!--
 +
      --><td style="text-align:right;vertical-align:top;">'''Part&nbsp;of:&nbsp;'''</td><!--
 +
      --><td><!--
 +
 
 +
    -->{{#if: {{#varexists: label}} | {{#var: label}} | {{PAGENAME}} }} is ''part of'' {{{full URI|[[{{{internal page|}}}]]}}}<!--
 +
      set semantic property
 +
    -->[[OBO REL:part of::{{{full URI|{{{internal page}}}}}}| ]]<!-- part of
 +
 
 +
    -->{{Hidden| header= | toggle text = Show representation as UML diagram / Hide representation as UML diagram | content =<!--  
 +
      -->{{#if: {{{full URI|{{{internal page|}}} }}}<!--
 +
            then-->|<!--
 +
         
 +
          arraymap redundant but left here
 +
         
 +
          -->{{#arraymap:{{{full URI|[[{{{internal page|}}}]]}}}<!--
 +
            -->|;<!-- list input separator
 +
            -->|§<!-- assign temporary variable
 +
              output:
 +
            -->|<nowiki></nowiki>
 +
  §
 +
  &#x25CA;
 +
  │ (''§'' has {{numeral composition |a|an|{{#if: {{#varexists: label}} | ''{{#var: label}}'' | ''{{PAGENAME}}'' }} }} or
 +
  │  {{#if: {{#varexists: label}} | ''{{#var: label}}'' | ''{{PAGENAME}}'' }} is part of ''§'')
 +
  {{#if: {{#varexists: label}} | {{#var: label}} | {{PAGENAME}} }}
 +
<!--
 +
        -->|<br/><!-- list output separator
 +
        -->}}<!-- part of
 +
      --><br/><!--
 +
    -->}}<!--
 +
  -->}}<!-- Hidden
 +
    --></td><!--
 +
  --></tr><!--
 +
 
 +
    //////////////////////////
 +
    // case is a
 +
    //////////////////////////
 +
-->|is a =<!--
 +
    --><tr><!--
 +
      --><td style="text-align:right;vertical-align:top;">'''Is&nbsp;a:&nbsp;'''</td><!--
 +
      --><td>{{{full URI|[[{{{internal page|}}}]]}}} (=&nbsp;present term is a subclass of term given here)<!--
 +
      -->{{Hidden|header= | toggle text = Show representation as UML diagram / Hide representation as UML diagram | content =<!--
 +
        -->{{#if: {{{full URI|{{{internal page|}}} }}}<!--
 +
          then-->|<!--
 +
    --><nowiki></nowiki>
 +
  {{{full URI|{{{internal page|}}}}}}
 +
  &#x25B3;
 +
  │ ({{#if: {{#varexists: label}} | ''{{#var: label}}'' | ''{{PAGENAME}}'' }} is {{numeral composition |a|an|''{{{full URI|{{{internal page|}}}}}}'' }})
 +
  │
 +
  {{#if: {{#varexists: label}} | {{#var: label}} | {{PAGENAME}} }}
 +
<!--  
 +
      --><br/><!--
 +
 
 +
    -->}}<!--
 +
  -->}}<!-- Hidden
 +
    --></td><!--
 +
  --></tr>
 +
    }}<!-- switch relation
 +
   
 +
-->{{#vardefine: hasMappings|1}}<!--
 +
 
 +
--></table><!--
 +
 
 +
--></includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 15:44, 12 October 2011

[create] Template-info.svg Template documentation