Difference between revisions of "Form:Concept"

From TDWG Terms Wiki
Jump to: navigation, search
m (Layout)
m (Semicolon separated list for alternative labels also for translations)
 
(8 intermediate revisions by 2 users not shown)
Line 13: Line 13:
 
<table class="formtable"><!--
 
<table class="formtable"><!--
 
   --><tr><!--
 
   --><tr><!--
     --><td>'''Label:'''</td><td>{{{field|label|mandatory}}}</td><!--
+
     --><td>'''Label:'''</td><td>{{{field|label|mandatory|input type=text|size=89}}}</td><!--
 
   --></tr><tr><!--
 
   --></tr><tr><!--
     --><td>'''Alternative labels:'''</td><td>{{{field|alternative labels| placeholder=alternative labels as comma separated list| list| delimiter= ,|size=89}}} {{#info: Input data as comma separated list}}</td><!--
+
     --><td style="text-align:right">'''Alternative labels:'''<br />{{#info: Input data as semicolon separated list}}</td><td>{{{field|alternative labels| placeholder=alternative labels as semicolon separated list| list| delimiter= ,|input type=textarea|rows=2|autogrow}}} </td><!--
 
   --></tr><tr><!--
 
   --></tr><tr><!--
 
     --><td>'''Definition:'''</td><td>{{{field|definition|mandatory|input type=textarea|autogrow}}}</td><!--
 
     --><td>'''Definition:'''</td><td>{{{field|definition|mandatory|input type=textarea|autogrow}}}</td><!--
Line 27: Line 27:
 
     --><td colspan="2">'''URI''' (<abbr title="namespace">NS</abbr>-URI definition pages) {{#info: message=Normally the preferred namespace URI is set on a concept scheme page. (TODO add link to Help page)}}<br/> <!--
 
     --><td colspan="2">'''URI''' (<abbr title="namespace">NS</abbr>-URI definition pages) {{#info: message=Normally the preferred namespace URI is set on a concept scheme page. (TODO add link to Help page)}}<br/> <!--
 
     just show URI
 
     just show URI
     --><div style="margin-left:1em;">{{Validate and render identifier URI | namespace prefix = {{#explode:{{PAGENAME}}}}|:|0}} | concept page={{PAGENAME}}| return value=URI and page}}</div><!--
+
     --><div style="margin-left:1em;">{{Validate and render identifier URI | namespace prefix = {{#explode:{{PAGENAME}}|:|0}} | concept page={{PAGENAME}}| return value=URI and page}}</div><!--
 
   --></td><!--
 
   --></td><!--
 
   --></tr><tr><!--
 
   --></tr><tr><!--
Line 40: Line 40:
 
         -->{{{field|concept type|mandatory|input type=dropdown|values=class,property,annotation property,value,data type,undecided|default=property|show on select=class=>id_is_class;annotation property=>id_is_annotation_property;property=>id_is_property}}}<!--
 
         -->{{{field|concept type|mandatory|input type=dropdown|values=class,property,annotation property,value,data type,undecided|default=property|show on select=class=>id_is_class;annotation property=>id_is_annotation_property;property=>id_is_property}}}<!--
 
         -->{{#info: message=The semantic web distinguishes between different kinds of concepts (class, property, instance/value, etc.) You can create concepts and leave this decision open (select "undecided"). Another worker can then add the information at a later time.}}<!--
 
         -->{{#info: message=The semantic web distinguishes between different kinds of concepts (class, property, instance/value, etc.) You can create concepts and leave this decision open (select "undecided"). Another worker can then add the information at a later time.}}<!--
         -->&#32;<span id="id_class" style="display:none;">{{#formlink: form=Concept scheme class
+
         -->&#32;<span id="id_is_class" style="display:none;">{{#formlink: form=Concept scheme class
 
             |target=Class:{{PAGENAME}}
 
             |target=Class:{{PAGENAME}}
 
             |link type=link
 
             |link type=link
Line 49: Line 49:
 
           -->{{#ask: [[MediaWiki:Smw import {{#explode: {{PAGENAME}}|:|0}}]]|format=list|mainlabel=-|link=none|limit=1|intro=Concept scheme class[imported from]={{PAGENAME}}&|default=}}<!--
 
           -->{{#ask: [[MediaWiki:Smw import {{#explode: {{PAGENAME}}|:|0}}]]|format=list|mainlabel=-|link=none|limit=1|intro=Concept scheme class[imported from]={{PAGENAME}}&|default=}}<!--
 
         -->}}<!-- end formlink
 
         -->}}<!-- end formlink
         -->. Warning: You have selected “Class”, but a property page ([{{fullurl: Property:{{PAGENAME}} }} Property:{{PAGENAME}}]) already exists. “Concept type=property” might be correct.</span><!--
+
         -->. Warning: You have selected “Class”, but a property page ([{{fullurl: Property:{{PAGENAME}} }} Property:{{PAGENAME}}]) already exists. “Concept type=property” might be correct. Either of both only makes sense to exist, but not both Class ''and'' Property (you might wanna delete one of them).</span><!--
         --><span id="id_is_property" style="display:none;">&#32;[{{fullurl:Property:{{PAGENAME}} }} Property:{{PAGENAME}}]</span><!--
+
         --><span id="id_is_property" style="display:none;">&#32;see [{{fullurl:Property:{{PAGENAME}} }} Property:{{PAGENAME}}]</span><!--
         --><span id="id_is_annotation_property" style="display:none;">&#32;[{{fullurl:Property:{{PAGENAME}} }} Property:{{PAGENAME}}]</span><!--
+
         --><span id="id_is_annotation_property" style="display:none;">&#32;see [{{fullurl:Property:{{PAGENAME}} }} Property:{{PAGENAME}}]</span><!--
 
         -->}}<!--
 
         -->}}<!--
 
     ELSE no property
 
     ELSE no property
Line 57: Line 57:
 
       then only class exists-->|{{{field|concept type|mandatory|input type=dropdown|values=class,property,annotation property,value,data type,undecided|default=class|show on select=class=>id_is_class;annotation property=>id_is_annotation_property;property=>id_is_property}}}<!--
 
       then only class exists-->|{{{field|concept type|mandatory|input type=dropdown|values=class,property,annotation property,value,data type,undecided|default=class|show on select=class=>id_is_class;annotation property=>id_is_annotation_property;property=>id_is_property}}}<!--
 
         -->{{#info: message=The semantic web distinguishes between different kinds of concepts (class, property, instance/value, etc.) You can create concepts and leave this decision open (select "undecided"). Another worker can then add the information at a later time.}}<!--
 
         -->{{#info: message=The semantic web distinguishes between different kinds of concepts (class, property, instance/value, etc.) You can create concepts and leave this decision open (select "undecided"). Another worker can then add the information at a later time.}}<!--
         --><span id="id_is_class" style="display:none;">&#32;[{{fullurl: Category:{{PAGENAME}} }} Category:{{PAGENAME}}]</span><!--
+
         --><span id="id_is_class" style="display:none;">&#32;see [{{fullurl: Category:{{PAGENAME}} }} Category:{{PAGENAME}}]</span><!--
 
         --><span id="id_is_property" style="display:none;"><!--
 
         --><span id="id_is_property" style="display:none;"><!--
 
         -->{{#formlink: form=Property setting
 
         -->{{#formlink: form=Property setting
Line 178: Line 178:
 
<table class="formtable"><!--
 
<table class="formtable"><!--
 
   --><tr><!--
 
   --><tr><!--
     --><td>'''Language:'''</td><td>{{{field|language|mandatory|placeholder=ISO 639 code|size=4}}} (transl. released:&nbsp;{{{field|is released|input type=dropdown| values=yes, no}}})</td><!--
+
     --><td>'''Language:'''</td><td>{{{field|language|mandatory|placeholder=ISO 639 code|size=4|input type=text}}} (transl. released:&nbsp;{{{field|is released|input type=dropdown| values=yes, no}}})</td><!--
 
   --></tr><tr><!--
 
   --></tr><tr><!--
 
     --><td>'''Label:'''</td><td>{{{field|label|mandatory}}}</td><!--
 
     --><td>'''Label:'''</td><td>{{{field|label|mandatory}}}</td><!--
 
   --></tr><tr><!--
 
   --></tr><tr><!--
     --><td>'''Alternative<br/>labels:'''</td><td>{{{field|alternative labels| list| delimiter=,|input type=textarea|autogrow|rows=1}}}&nbsp;<!-- #info does not work at the moment --><span title="Comma separated list for alternative labels">{{#info: Alternative labels as comma separated list}}</span></td><!--
+
     --><td>'''Alternative<br/>labels:'''</td><td>{{{field|alternative labels| list| delimiter=,|input type=textarea|autogrow|rows=1}}}&nbsp;<!-- #info does not work at the moment --><span title="Semicolon separated list for alternative labels">{{#info: Alternative labels as semicolon separated list}}</span></td><!--
 
   --></tr><tr><!--
 
   --></tr><tr><!--
 
     --><td>'''Definition:'''</td><td>{{{field|definition|mandatory|input type=textarea|autogrow}}}</td><!--
 
     --><td>'''Definition:'''</td><td>{{{field|definition|mandatory|input type=textarea|autogrow}}}</td><!--
Line 189: Line 189:
 
   --></tr><tr><!--
 
   --></tr><tr><!--
 
     --><td>'''Notes:'''</td><td>{{{field|notes|input type=textarea|autogrow}}}</td><!--
 
     --><td>'''Notes:'''</td><td>{{{field|notes|input type=textarea|autogrow}}}</td><!--
 +
  --></tr><tr><!--
 +
    --><td colspan="2"><!--
 +
    -->{{Hidden
 +
| contentstyle = border-left:1px solid #ccc;border-bottom:1px solid #ccc;padding:5px;
 +
| toggle position = left
 +
| header = '''Details for external references: Issued, Modified, Uri, Status …'''
 +
| content = <!--
 +
  --><table><!--
 +
    --><tr><!--
 +
      --><td>External URI:</td><td>{{{field|uri|size=89}}}</td><!--
 +
    --></tr><tr><!--
 +
      --><td>Issued:</td><td>{{{field|issued|input type=date}}}</td><!--
 +
    --></tr><tr><!--
 +
      --><td>Modified:</td><td>{{{field|modified|input type=date}}}</td><!--
 +
    --></tr><tr><!--
 +
      --><td>Status:</td><td>{{{field|status|input type= dropdown| values= archaic, deprecated, in review, recommended, required, stable, testing, unstable}}} {{#info: The status of a vocabulary term, expressed as a short symbolic string; known values include e.g. 'deprecated' or 'stable'}}</td><!--
 +
    --></tr><!--
 +
  --></table><!--
 +
    -->}}<!--
 +
    --></td><!--
 
   --></tr></table>
 
   --></tr></table>
 
{{{end template}}}<!--
 
{{{end template}}}<!--

Latest revision as of 14:18, 24 January 2017

This is the "Concept" form. To create a page with this form, enter the page name below. If a page with that name already exists, this page will be opened in the form.