Difference between revisions of "Template:Audubon Core TermNoComments2"

From Species-ID
Jump to: navigation, search
(better support if fields may sometimes be missing)
 
(234 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!-- {{#ifeq: {{#var: nameIndex}} | 1 | <nowiki> | [[#</nowiki>{{{Item Name}}}<nowiki> | </nowiki>{{{Item Name}}} <nowiki>]]|</nowiki><br/> | -->
+
<!-- {{#ifeq: {{#var: nameIndex}} | 1 | <nowiki> | [[#</nowiki>{{{ItemName|}}}<nowiki> | </nowiki>{{{ItemName|}}} <nowiki>]]|</nowiki><br/> | --><!-- draft alternative to generate html literal markup  
 
+
--><!-- comment out #ifeq gcode for now:
 
+
--><!--
<!-- draft alternative to generate wiki markup -->
+
{{#ifeq: {{#var: gcode }} | yes |  
 
+
--!><!-- 1. WHEN CALLER SETS renderAs = RDF, THIS CODE SHOULD EXECUTE, ELSE code starting at BEGIN standard wiki html generation:
||Term: {{{Item Name}}}
+
-->{{#switch:{{#var:renderAs}}
||Normative URI: || {{{Item URI}}} ||
+
|RDF=<br/><br/><{{{ItemURI|}}}> a rdf:Property ;{{
||Label: || Label ||
+
#ifeq:{{{ItemName|}}}|hasServiceAccessPoint|
 
+
:: rdfs:range {{ACClassesPrefix}}:{{ACServiceAccessPointClass}} ;|
<!--  
+
}}
{{#ifeq: {{#var: labelIndex}} | 1 | <nowiki> | [[#</nowiki>{{{Label}}}<nowiki> | </nowiki>{{{Label}}} <nowiki>]]|</nowiki><br/> |  
+
:: rdfs:label "{{{Label|}}}" ;
<tr id="{{{Label}}}">
+
:: ac:layer "{{{Layer|}}}" ;
<td id="{{{Item Name}}}"  
+
:: skos:definition "{{RDFquote|{{{Definition|}}}}}" ;
colspan = "2" style="vertical-align:bottom;background:#EEE;border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;padding-top:1.1em;font-size:100%;font-weight:bold;">Term: {{{Item Name}}}</td>
+
:: skos:note " {{RDFquote|{{{Details|}}}}}" ;
 +
:: rdfs:isDefinedBy <{{{ItemURI|}}}>.{{
 +
#ifeq: {{{Required|}}} | Yes |  
 +
:: <nowiki>###</nowiki> Restriction: Required ###{{ACCardinality|{{{ItemURI|}}}|min|1}} }}{{
 +
#ifeq: {{{Repeatable|}}} | No |
 +
:: <nowiki>###</nowiki> Restriction: Not Repeatable ###{{ACCardinality|{{{ItemURI|}}}|max|1}} }}<!--
 +
END OF CASE renderAs = RDF
 +
BEGIN standard wiki html generation:
 +
-->|#default={{#ifeq: {{#var: labelIndex}} | 1 | <nowiki> | [[#</nowiki>{{{Label|}}}<nowiki> | </nowiki>{{{Label|}}} <nowiki>]]|</nowiki><br/> |  
 +
<tr id="{{{Label|}}}">
 +
<td id="{{{ItemName|}}}"  
 +
colspan = "2" style="vertical-align:bottom;background:#EEE;border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;padding-top:1.1em;font-size:100%;font-weight:bold;">Term Name: {{{ItemName|}}}</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
 
<td style="text-align:right;vertical-align:top;background:#EEE;border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em; font-family:Verdana,Arial,sans-serif;">Normative URI:</td>
 
<td style="text-align:right;vertical-align:top;background:#EEE;border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em; font-family:Verdana,Arial,sans-serif;">Normative URI:</td>
<td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">{{{Item URI}}}</td></tr>
+
<td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">{{{ItemURI|}}}</td></tr>
<tr>
+
<tr><td style="text-align:right;vertical-align:top;background:#EEE;border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em; font-family:Verdana,Arial,sans-serif;">Label</td>
<td style="text-align:right;vertical-align:top;background:#EEE;border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em; font-family:Verdana,Arial,sans-serif;">Label</td>
+
<td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">{{#if: {{{Label|}}} | {{{Label|}}} | }}</td></tr>
<td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">{{#if: {{{Label}}} | {{{Label}}} | }}</td></tr>
+
 
<tr><td style="text-align:right;vertical-align:top;background:#EEE;border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em; font-family:Verdana,Arial,sans-serif;">&nbsp;</td>
 
<tr><td style="text-align:right;vertical-align:top;background:#EEE;border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em; font-family:Verdana,Arial,sans-serif;">&nbsp;</td>
<td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">'''Layer:''' {{{Layer}}} — '''Required: '''  {{#if: {{{Required}}} | {{{Required}}} | No }} — '''Repeatable: ''' {{#if: {{{Repeatable|}}} | {{{Repeatable}}} | default No }}</td>
+
<td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">'''Layer:''' {{{Layer|}}} — '''Required: '''  {{#if: {{{Required|}}} | {{{Required|}}} | No }} — '''Repeatable: ''' {{#if: {{{Repeatable|}}} | {{{Repeatable|}}} | default No }}</td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
 
<td style="text-align:right;vertical-align:top;background:#EEE;border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em; font-family:Verdana,Arial,sans-serif;">Definition:</td>
 
<td style="text-align:right;vertical-align:top;background:#EEE;border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em; font-family:Verdana,Arial,sans-serif;">Definition:</td>
<td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">{{{Definition}}}</td>
+
<td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">{{{Definition|}}}</td>
 
</tr>
 
</tr>
 
 
 
<tr>
 
<tr>
 
<td style="text-align:right;vertical-align:top;background:#EEE;border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em; font-family:Verdana,Arial,sans-serif;">Details</td>
 
<td style="text-align:right;vertical-align:top;background:#EEE;border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em; font-family:Verdana,Arial,sans-serif;">Details</td>
<td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">{{#if: {{{Details}}} | {{{Details}}} | }}</td></tr>
+
<td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">{{#if: {{{Details|}}} | {{{Details|}}} | }}</td></tr>
<tr>
+
<tr>{{
{{
+
 
#if: {{{Comments|}}}
 
#if: {{{Comments|}}}
|<tr><td style="text-align:right;vertical-align:top;background:#EEE;border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em; font-family:Verdana,Arial,sans-serif;">Comments:</td><td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">{{{Comments}}}</td></tr>  
+
|<tr><td style="text-align:right;vertical-align:top;background:#EEE;border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em; font-family:Verdana,Arial,sans-serif;">Comments:</td><td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">{{{Comments|}}}</td></tr>  
 
}}
 
}}
<tr>
+
}}<!-- END ifeq: {{#var: labelIndex
<td style="text-align:right;vertical-align:top;background:#EEE;border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em; font-family:Verdana,Arial,sans-serif;">Crosswalk:</td><td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">{{#if:  {{{Crosswalk|}}} | {{{Crosswalk|}}} — |
+
-->}}<noinclude>
}}  '''[http://dublincore.org/documents/dcmi-terms/ DublinCore:]''' {{#if: {{{DublinCore|}}} | {{{DublinCore}}}  |
+
}} — '''[http://www.adobe.com/devnet/xmp/ XMP:]''' {{#if: {{{XMP|}}} | {{{XMP}}} |
+
}}{{#if: {{{IPCT|}}} | — '''[http://www.iptc.org IPTC for XMP:]''' {{{IPTC}}} |
+
}} — '''[http://rs.tdwg.org/dwc/terms/index.htm DarwinCore:]''' {{#if: {{{DarwinCore|}}} | {{{DarwinCore}}} |
+
}} — '''[http://www.tdwg.org/activities/ncd/ NCD:]''' {{#if: {{{NCD|}}} | {{{NCD}}}  |
+
}} — '''[http://www.morphbank.net/Help/Documents/ Morphbank:]''' {{#if: {{{Morphbank|}}} | {{{Morphbank}}}  |
+
}} — '''[http://life.nbii.gov/ LIFE:]''' {{#if: {{{NBII|}}} | {{{NBII}}}  |
+
}} — '''[http://www.keytonature.eu/wiki/Resource_Metadata_Exchange_Agreement K2N:]''' {{#if: {{{K2N|}}} | {{{K2N}}} |
+
}} — '''[http://www.loc.gov/standards/mix/mix20/mix20.xsd MIX2.0:]''' {{#if: {{{mix2|}}} | {{{mix2}}}  |
+
}}</td>
+
</tr>
+
 
+
}} end #if indexing -->
+
<!--
+
<tr>
+
<td style="text-align:right;vertical-align:top;background:#EEE;border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em; font-family:Verdana,Arial,sans-serif;">PublicComments:</td>
+
<td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">{{
+
#if: {{{PublicComments|}}}  | {{{PublicComments}}}  |  }}</td>
+
</tr>
+
-->
+
 
+
<!--
+
{{
+
#if: {{{ReviewComments|}}}
+
|<tr><td style="text-align:right;vertical-align:top;background:yellow;border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;  font-family:Verdana,Arial,sans-serif;">ReviewComments:</td><td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; background:yellow; padding:0.5em;">{{{ReviewComments}}}</td></tr>
+
}}
+
{{
+
#if: {{{Response|}}}
+
|<tr><td style="text-align:right;vertical-align:top;background:lime; border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;  font-family:Verdana,Arial,sans-serif;">Response:</td><td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;background:lime;">{{{Response}}}</td></tr>
+
}}
+
-->
+
 
+
 
+
  
  
<noinclude>
 
  
[[Category:MRTG]]
+
[[Category:Audubon Core]]
 
</noinclude>
 
</noinclude>

Latest revision as of 17:43, 2 October 2012

<tr id=""> <td id="" colspan = "2" style="vertical-align:bottom;background:#EEE;border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;padding-top:1.1em;font-size:100%;font-weight:bold;">Term Name: </td> </tr> <tr> <td style="text-align:right;vertical-align:top;background:#EEE;border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em; font-family:Verdana,Arial,sans-serif;">Normative URI:</td> <td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;"></td></tr> <tr><td style="text-align:right;vertical-align:top;background:#EEE;border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em; font-family:Verdana,Arial,sans-serif;">Label</td> <td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;"></td></tr> <tr><td style="text-align:right;vertical-align:top;background:#EEE;border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em; font-family:Verdana,Arial,sans-serif;"> </td> <td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">Layer:Required: No — Repeatable: default No</td> </tr> <tr> <td style="text-align:right;vertical-align:top;background:#EEE;border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em; font-family:Verdana,Arial,sans-serif;">Definition:</td> <td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;"></td> </tr> <tr> <td style="text-align:right;vertical-align:top;background:#EEE;border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em; font-family:Verdana,Arial,sans-serif;">Details</td> <td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;"></td></tr> <tr>