Difference between revisions of "Template:Audubon Core TermNoComments2"

From Species-ID
Jump to: navigation, search
(better support if fields may sometimes be missing)
 
(69 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!-- {{#ifeq: {{#var: nameIndex}} | 1 | <nowiki> | [[#</nowiki>{{{ItemName}}}<nowiki> | </nowiki>{{{ItemName}}} <nowiki>]]|</nowiki><br/> |  
+
<!-- {{#ifeq: {{#var: nameIndex}} | 1 | <nowiki> | [[#</nowiki>{{{ItemName|}}}<nowiki> | </nowiki>{{{ItemName|}}} <nowiki>]]|</nowiki><br/> | --><!--  draft alternative to generate html literal markup  
--><!--  draft alternative to generate html literal markup  
+
--><!-- comment out #ifeq gcode for now:
--><!-- comment #ifeq for now
+
 
--><!--
 
--><!--
 
{{#ifeq: {{#var: gcode }} | yes |  
 
{{#ifeq: {{#var: gcode }} | yes |  
 
--!><!-- 1. WHEN CALLER SETS renderAs = RDF, THIS CODE SHOULD EXECUTE, ELSE code starting at BEGIN standard wiki html generation:
 
--!><!-- 1. WHEN CALLER SETS renderAs = RDF, THIS CODE SHOULD EXECUTE, ELSE code starting at BEGIN standard wiki html generation:
-->{{#switch:{{#var:renderAs}}|RDF=<{{{ItemURI}}}> a rdf:Property; <br/>
+
-->{{#switch:{{#var:renderAs}}
{{#ifeq: {{{ItemURI}}} | http://rs.tdwg.org/ac/terms/hasServiceAccessPoint | &nbsp;&nbsp;&nbsp;&nbsp; rdfs:range ac:ServiceAccessPoint ; <br/>|DEBUG: ItemURI = {{{ItemURI}}} Comparison to <nowiki>http://rs.tdwg.org/ac/terms/hasServiceAccessPoint</nowiki> failed  <br/> }}
+
|RDF=<br/><br/><{{{ItemURI|}}}> a rdf:Property ;{{
&nbsp;&nbsp;&nbsp;&nbsp; rdfs:label "{{{Label}}}" ; <br/>
+
#ifeq:{{{ItemName|}}}|hasServiceAccessPoint|
&nbsp;&nbsp;&nbsp;&nbsp; ac:layer {{{Layer}}} ; <br/>
+
:: rdfs:range {{ACClassesPrefix}}:{{ACServiceAccessPointClass}} ;|
{{#ifeq: {{{Required}}} | Yes |&nbsp;&nbsp;&nbsp;&nbsp; owl:minCardinality 1 ; <br/>}}
+
}}
{{#ifeq: {{{Repeatable}}} | No | &nbsp;&nbsp;&nbsp;&nbsp;  owl:maxCardinality 1 ; <br/> }} 
+
:: rdfs:label "{{{Label|}}}" ;
&nbsp;&nbsp;&nbsp;&nbsp; rdfs:comment "Definition: {{{Definition}}}" ; <br/>
+
:: ac:layer "{{{Layer|}}}" ;
&nbsp;&nbsp;&nbsp;&nbsp; rdfs:comment "Details: {{{Details}}}" ; <br/>
+
:: skos:definition "{{RDFquote|{{{Definition|}}}}}" ;
&nbsp;&nbsp;&nbsp;&nbsp; rdfs:isDefinedBy <{{{ItemURI}}}> . <br/><br/>
+
:: 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
 
END OF CASE renderAs = RDF
 
BEGIN standard wiki html generation:
 
BEGIN standard wiki html generation:
-->|#default={{#ifeq: {{#var: labelIndex}} | 1 | <nowiki> | [[#</nowiki>{{{Label}}}<nowiki> | </nowiki>{{{Label}}} <nowiki>]]|</nowiki><br/> |  
+
-->|#default={{#ifeq: {{#var: labelIndex}} | 1 | <nowiki> | [[#</nowiki>{{{Label|}}}<nowiki> | </nowiki>{{{Label|}}} <nowiki>]]|</nowiki><br/> |  
<tr id="{{{Label}}}">
+
<tr id="{{{Label|}}}">
<td id="{{{ItemName}}}"  
+
<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>
+
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;">{{{ItemURI}}}</td></tr>
+
<td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">{{{ItemURI|}}}</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>
 
<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;">{{#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>  
 
}}
 
}}
 
}}<!-- END ifeq: {{#var: labelIndex
 
}}<!-- END ifeq: {{#var: labelIndex
-->}}<!-- END #switch renderAs
+
-->}}<noinclude>
--><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>