Difference between revisions of "Template:Concept Table grouped by Collection 2"
From TDWG Terms Wiki
m (+documentation) |
m (+{{Warning of heavily used semantic template}}) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
+ | {{Warning of heavily used semantic template}} | ||
+ | |||
This template outputs a single table row (<tr>) that contains generic information about ''one term'' (any wrapping <table> must be provided by an external template): | This template outputs a single table row (<tr>) that contains generic information about ''one term'' (any wrapping <table> must be provided by an external template): | ||
<tr> ──────────────── | <tr> ──────────────── |
Revision as of 15:14, 27 January 2020
This template is heavily used in pages with semantic data content. If you alter this template you probably have to update anew all the data pages in this Wiki (see Help:Manage updating concept pages etc. in Semantic MediaWiki) |
This template outputs a single table row (<tr>) that contains generic information about one term (any wrapping <table> must be provided by an external template):
<tr> ──────────────── │ concept term name ┼───────────────┬─── │ Normative URI │ … ┼───────────────┼─── │ Label │ … ┼───────────────┼─── │ Definition │ … ┼───────────────┼─── │ Defined By │ … ┼───────────────┼─── │ │ Required: No/Yes — Repeatable: Yes/No ┼───────────────┼─── │ Notes: │ … ┼───────────────┼─── </tr>
The template parameters (as created by ask in Template:Concept_Table_grouped_by_Collection_1) are:
Values from Template:Concept Table grouped by Collection 1 |
Corresponding parameters here (Template:Concept Table grouped by Collection 2) |
---|---|
= ? #- = ?terms-internal:enLabel #- = ?terms-internal:enDefinition #- = ?terms-internal:enExample #- = ?terms-internal:enNote #- = ?rdfs:isDefinedBy #- = ?dcterms:identifier #- |
|1= |2= |3= |4= |5= |6= |7= |
Technical Documentation
It uses variables
-
constraintOfConcept
(repeatable, required is saved in property: cardinality but is contained in subobject constraint of concept, which will ask for{{#ask [[constraint of concept::concept-page-name i.e. {{{1}}}]]}}
)
Dependencies
- template: Concept
- property: terms-internal:summary (as table rows) of concept term (contains content created by template Concept Table grouped by Collection 2)
- Extension:SemanticMediaWiki
-
#ask
-
- Extension:Variables
-
template: Concept to imported URI
TODO
- ✓ reduce template calls, e.g.
{{Concept to imported URI}}
--Andreas Plank (talk) 17:07, 23 January 2020 (CET)- ✓ check further optimisation, e.g. saving rendered table row on the concept level to an internal property (property: terms-internal:summary (as table rows) of concept term) --Andreas Plank (talk) 14:14, 27 January 2020 (CET)