Difference between revisions of "Form:MstConcept"

From Coastal Wiki
Jump to: navigation, search
(Created page with "<noinclude>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 for...")
 
 
(47 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<noinclude>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.
 
<noinclude>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.
 
+
To create a new marine species concept type "Traits:" followed by the name of the concept. When typing in the name of an existing concept the autocomplete will list existing pages. For instructions on using the form see [[Help:MstConcept|here]].
{{#forminput:form=Concept}}
+
{{#forminput:form=mstConcept}}
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
 
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
 
 
{{{for template|Concept}}}
 
{{{for template|Concept}}}
 
{| class="formtable"
 
{| class="formtable"
 
! label:
 
! label:
| {{{field|label}}}
+
| {{{field|label|input type=textarea}}}
 
|-
 
|-
 
! Definition:
 
! Definition:
| {{{field|definition}}}
+
| {{{field|definition|input type=textarea}}}
  
 
|}
 
|}
 +
{{{end template}}}
 +
{{{for template|Conceptshowvalues}}}
 +
{{{end template}}}
  
 +
{{{for template|freetext}}}
 +
{| class="formtable"
 +
! Free text (queryable):
 +
|-
 +
| {{{field|free text|input type=textarea|editor=wikieditor}}}
 +
|}
 +
{{{end template}}}
  
<table class="formtable"><!--
 
  --><tr><!--
 
    --><td>'''Concept type:'''</td><td>{{#ifexist: Property:{{PAGENAME}}<!--
 
    THEN property exists-->|{{#ifexist: Category:{{PAGENAME}}<!--
 
      then property + class exists-->|<!--
 
        -->{{{field|concept type|mandatory|input type=dropdown|values=class,property,annotation property,value,data type,undecided|default=undecided}}}<!--
 
        -->{{#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.|icon=warning}}<!--
 
        -->Warning: Both a [{{fullurl: Category:{{PAGENAME}} }} class-] and [{{fullurl: Property:{{PAGENAME}} }} property page] exist. A concept should normally only be one of Property, Class, or Value. Please delete the erroneous class or property page.<!--
 
  
      else only property (no class)-->|<!--
 
        -->{{{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.}}<!--
 
        -->&#32;<span id="id_is_class" style="display:none;">{{#formlink: form=Concept scheme class
 
            |target=Class:{{PAGENAME}}
 
            |link type=link
 
            |link text=Create “Class:{{PAGENAME}}”
 
            |query string=<!--
 
              Testing Imported from drictly with {{#ask: [[Imported from::wrong-name-space]]}} produces a <span>SMW-error, not a void return as expected
 
              generate query link e.g. "Concept scheme class[imported from]=rdfs:Class&"
 
          -->{{#ask: [[MediaWiki:Smw import {{#explode: {{PAGENAME}}|:|0}}]]|format=list|mainlabel=-|link=none|limit=1|intro=Concept scheme class[imported from]={{PAGENAME}}&|default=}}<!--
 
        -->}}<!-- end formlink
 
        -->. 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;see [{{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
 
    -->|{{#ifexist: Category:{{PAGENAME}}<!--
 
      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.}}<!--
 
        --><span id="id_is_class" style="display:none;">&#32;see [{{fullurl: Category:{{PAGENAME}} }} Category:{{PAGENAME}}]</span><!--
 
        --><span id="id_is_property" style="display:none;"><!--
 
        -->{{#formlink: form=Property setting
 
            |target=Property:{{PAGENAME}}
 
            |link type=link
 
            |link text=Create “Property:{{PAGENAME}}”
 
            |query string=Property setting[has type]=String{{
 
            #if: {{#pos: {{PAGENAME}}|:}}<!-- prefix:name in page name
 
            THEN-->|&Property setting[imported from]={{#explode: {{PAGENAME}} |:|0 }}<!--
 
            ELSE-->|<!-- additional no query string
 
          -->}} }}<!-- end if, end formlink
 
        --></span><!--
 
        --><span id="id_is_annotation_property" style="display:none;"><!--
 
        -->{{#formlink: form=Property setting
 
            |target=Property:{{PAGENAME}}
 
            |link type=link
 
            |link text=Create “Property:{{PAGENAME}}”
 
            |query string=Property setting[has type]=String{{
 
            #if: {{#pos: {{PAGENAME}}|:}}<!-- prefix:name in page name
 
            THEN-->|&Property setting[imported from]={{#explode: {{PAGENAME}} |:|0 }}<!--
 
            ELSE-->|<!-- additional no query string
 
          -->}} }}<!-- end if, end formlink
 
        --></span><!--
 
  
      else neither class nor property found -->|{{{field|concept type|mandatory|input type=dropdown|values=class,property,annotation property,value,data type,undecided|default=undecided|show on select=class=>id_is_class;annotation property=>id_is_annotation_property;property=>id_is_property}}}<!--
+
<div class="minimized-margin-padding">
        -->{{#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.}}<!--
+
{{{for template|reference|multiple|label=References of this concept|add button text=Add another reference}}}
        -->&#32;<span id="id_is_class" style="display:none;">{{#formlink: form=Concept scheme class
+
<div class="floating-form-parts">'''reference:''' {{{field|reference| input type=textarea}}}</div>
            |target=Class:{{PAGENAME}}
+
{{clear}}
            |link type=link
+
{{{end template}}}
            |link text=Create “Class:{{PAGENAME}}
+
</div>
            |query string=<!--
 
              Testing Imported from drictly with {{#ask: [[Imported from::wrong-name-space]]}} produces a <span>SMW-error, not a void return as expected
 
              generate query link e.g. "Concept scheme class[imported from]=rdfs:Class&"
 
          -->{{#ask: [[MediaWiki:Smw import {{#explode: {{PAGENAME}}|:|0}}]]|format=list|mainlabel=-|link=none|limit=1|intro=Concept scheme class[imported from]={{PAGENAME}}&|default=}}<!--
 
        -->}}</span><!--
 
        --><span id="id_is_property" style="display:none;">{{#formlink: form=Property setting
 
            |target=Property:{{PAGENAME}}
 
            |link type=link
 
            |link text=Create “Property:{{PAGENAME}}”
 
            |query string=Property setting[has type]=String&Property setting[imported from]={{
 
            #if: {{#pos: {{PAGENAME}}|:}}<!-- prefix:name, assume prefix refers to import page
 
            then-->|{{PAGENAME}}<!--
 
            else-->|check SMW import<!-- Page has no prefix:name
 
          -->}} }}<!-- end if, end formlink
 
        --></span><!--
 
        --><span id="id_is_annotation_property" style="display:none;">{{#formlink: form=Property setting
 
            |target=Property:{{PAGENAME}}
 
            |link type=link
 
            |link text=Create “Property:{{PAGENAME}}
 
            |query string=Property setting[has type]=String&Property setting[imported from]=<!--
 
        -->{{#if: {{#pos: {{PAGENAME}}|:}}<!-- prefix:name, assume prefix refers to import page
 
          -->|{{PAGENAME}}<!--
 
          ELSE Page has no prefix:name
 
          -->|check SMW import<!--
 
          -->}} }}<!-- end if, end formlink
 
        --></span><!--
 
    -->}}<!--
 
  -->}}<!-- end ifexist class/property-pages
 
    --></td><!--
 
  --></tr>
 
  
</table><!--
 
   
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
<table class="formtable"><!--
 
  --><tr><!--
 
    --><td>
 
  
 
<div class="minimized-margin-padding">
 
<div class="minimized-margin-padding">
Line 133: Line 39:
 
Note: for field relation "values from concept" is possible but a concept returns just page names that can be used further and a display "Property:…" is not the correct display text
 
Note: for field relation "values from concept" is possible but a concept returns just page names that can be used further and a display "Property:…" is not the correct display text
 
  -->
 
  -->
<div class="floating-form-parts">'''Relation:''' {{{field|relation | input type= dropdown | values=collection, is trait of, has value}}}&nbsp;set&nbsp;either&nbsp;</div>
+
<div class="floating-form-parts">'''Relation:''' {{{field|relation | input type= dropdown | values=collection, is trait of, has value}}}</div>
<div class="floating-form-parts">'''Internal&nbsp;page:''' {{{field|internal page | input type=text with autocomplete|values from namespace=main}}}</div>
+
<div class="floating-form-parts">'''Internal&nbsp;page:''' {{{field|internal page | input type=text with autocomplete|values from category=Marine species traits}}}</div>
 
{{clear}}
 
{{clear}}
 
{{{end template}}}
 
{{{end template}}}
Line 140: Line 46:
  
  
</td><!--
 
  --></tr></table>
 
  
  
 
+
{{{standard input|free text|editor=wikieditor}}}
'''Free text:'''
 
 
 
{{{standard input|free text|editor=wikieditor}}}  
 
  
  
 +
{{{for template|Missingproperty}}}
 +
{{{end template}}}
 
{{{end template}}}
 
{{{end template}}}
  
 
{{{standard input|summary}}}
 
{{{standard input|summary}}}
 +
{{{standard input|minor edit}}} {{{standard input|watch}}}
 +
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}}
 +
  
{{{standard input|minor edit}}} {{{standard input|watch}}}
 
  
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|changes}}} {{{standard input|cancel}}}
 
 
</includeonly>
 
</includeonly>

Latest revision as of 17:43, 1 June 2015

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. To create a new marine species concept type "Traits:" followed by the name of the concept. When typing in the name of an existing concept the autocomplete will list existing pages. For instructions on using the form see here.