Difference between revisions of "Template:Concept Table grouped by Collection (AC2)"

From TDWG Terms Wiki
Jump to: navigation, search
m (fix constraintOfConcept)
(is of same table layout as Template:Concept Table grouped by Collection 2 (refactoring to minimise template calls))
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
+
#REDIRECT [[Template: Concept Table grouped by Collection 2]]
This template outputs a single term as a set of rows in a table (which must be opened and closed by an external template).
+
 
+
The template parameters (as created by ask in [[Template:Concept_Table_grouped_by_Collection_(AC1)]]) are:
+
{{{1|}}} = ? #-
+
{{{2|}}} = ?terms-internal:enLabel #-
+
{{{3|}}} = ?terms-internal:enDefinition #-
+
{{{4|}}} = ?terms-internal:enExample #-
+
{{{5|}}} = ?terms-internal:enNote #-
+
{{{6|}}} = ?rdfs:isDefinedBy #-
+
{{{7|}}} = ?constraint of concept #-
+
It uses variables
+
* constraintOfConcept
+
 
+
[[Category: SMW ask template]]
+
[[Category:Audubon Core]]
+
</noinclude><includeonly>
+
<tr id="{{{1|}}}">
+
<td id="{{anchorencode:{{{2|}}}}}" width="100px" style="text-align:right; vertical-align:bottom;background:#EEE; border-bottom: 1px solid #CCC; padding:1.1em 0.5em 0.5em 0.5em;">Concept Name:</td>
+
<td style="text-align:left; vertical-align:bottom;background:#EEE;border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:1.1em 0.5em 0.5em 0.5em;">'''[[{{{1|}}}]]'''</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;">Normative URI</td>
+
<td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">{{Concept to imported URI|{{{1|{{{URI|}}}}}}}}</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;">Label</td>
+
<td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">{{{2|}}}</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;">Definition</td>
+
<td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">{{{3|}}}</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;">Defined By</td>
+
<td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">{{{6|}}}</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;">&nbsp;</td>
+
<td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">'''Required: '''  {{#switch: {{#vardefineecho: constraintOfConcept| {{#ask: [[constraint of concept::{{{7|{{{1|}}}}}}]] |mainlabel=-|link=none|?cardinality=|limit=1|format=list}}}}<!-- cardinality
+
-->|0..1=No<!--
+
-->|0..n=No<!--
+
-->|1..1=Yes<!--
+
-->|1..n=Yes<!--
+
-->| #default = No<!--
+
-->}}<!-- end switch
+
--> — '''Repeatable: ''' {{#switch: {{#var:constraintOfConcept}}<!-- cardinality
+
-->|0..1=No<!--
+
-->|0..n=Yes<!--
+
-->|1..1=No<!--
+
-->|1..n=Yes<!--
+
-->| #default = No<!--
+
-->}}<!-- end switch
+
-->{{#vardefineecho: constraintOfConcept|}}<!-- reset constraintOfConcept --></td>
+
</tr>{{
+
#if: {{{4|}}}
+
|<!--examples--><tr>
+
<td style="text-align:right;vertical-align:top;background:#EEE;border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">Examples</td>
+
<td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">{{{4|}}}</td></tr>
+
}}{{
+
#if: {{{5|}}}
+
|<!--notes--><tr>
+
<td style="text-align:right;vertical-align:top;background:#EEE;border-right:1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">Notes:</td>
+
<td style="border-right: 1px solid #CCC; border-bottom: 1px solid #CCC; padding:0.5em;">{{{5|}}}</td></tr>
+
}}</includeonly>
+

Latest revision as of 15:11, 28 January 2020