Anonymous

Changes

From KIproBatt Wiki
Updated with content from Extension:OpenSemanticLab version 0.0.3
<noinclude>
{{OslTemplate:Helper/Docu/FormTemplate}}
</noinclude>
<includeonly>
{{DISPLAYTITLE: {{#replace:{{PAGENAME}}|Has|}}}}{{#set: |Has preferred property label={{{label|}}}|+sep=; |HasLabel={{{label|}}}|+sep=;}}
{{#if: {{{main_unit|}}}
| {{#default_form:Property/Quantity}}{{#formlink:form=Property/Quantity|target={{FULLPAGENAME}}|link type=post button|link text=Edit this quantity}} |
}}
{{#if: {{{subquantity_of|}}}
| {{#default_form:Property/Subquantity}}{{#formlink:form=Property/Subquantity|target={{FULLPAGENAME}}|link type=post button|link text=Edit this quantity}} |
}}
This is a property of type [[Has type::Quantity]] {{#if: {{{main_unit|}}}
|with main unit 1 {{{main_unit}}}{{#if:{{{alternative_names|}}}|,{{#arraymap:{{{alternative_names|}}}|;|x|x|,}}|}} and main display unit [[Display units::{{{main_unit}}}]]|}} {{#if:{{{subquantity_of|}}}
|with display units {{#arraymap:{{{display_units|}}}|;|x|x}}{{#set: |Display units={{{display_units|}}}|+sep=; }} and input units {{#arraymap:{{{input_units|}}}|;|x|x}}{{#set: |HasInputUnitSymbol={{{input_units|}}}|+sep=; }}, is a subquantity of [[Subproperty of::{{{subquantity_of}}}]]|}}{{#if:{{{base_quantity|}}}
|<nowiki> </nowiki> and has base quantity [[HasBaseQuantity::{{{base_quantity}}}]]|}}.
{{#if: {{{main_unit|}}} | {{#subobject:
|@category=UnitDefinition
|HasUnitSymbol={{{main_unit}}}
|HasAlternativeNames={{{alternative_names|}}}|+sep=;
|HasConversionFactor=1
|IsDisplayUnit=True
|IsInputUnit=True
|IsMainUnit=True
|HasOntologyUri={{{main_unit_ontology_uri|}}}|+sep=;
}}<!--
-->{{#set:
|Corresponds to=1 {{{main_unit}}}{{#if:{{{alternative_names|}}}|,{{#arraymap:{{{alternative_names|}}}|;|x|x|,}}|}}
|HasUnitDefinition=1 {{{main_unit}}}{{#if:{{{alternative_names|}}}|,{{#arraymap:{{{alternative_names|}}}|;|x|x|,}}|}}
|HasUnitSymbol={{{main_unit}}}
}}
|}}
<!-- {{#ask: [[{{{base_quantity}}}]] |?HasUnitDefinition |format=template |template=Quantity_property/Store_corresponds_to}} -->
{{#ask: [[{{FULLPAGENAME}}]] |?Corresponds to|format=table}}

{{{description|}}}

{{#arraymap:{{{ontology_iri|}}}|;|x|[[HasOntologyIri::x]]|\n}}
<!-- {{#forminput:form=Quantity_property/Subquantity_property|query string=namespace=Property&preload={{FULLPAGENAME}}&Quantity_property/Subquantity_property[main_unit]={{{main_unit}}}&Quantity_property/Subquantity_property[alternative_names]={{{alternative_names}}}&Quantity_property/Subquantity_property[base_quantity]={{{base_quantity}}}&Quantity_property/Subquantity_property[subquantity_of]={{FULLPAGENAME}}&Quantity_property/Subquantity_property[description]=Test|button text=Create subquantity|placeholder=Subquantity name, e. g. 'Has wavelength' for 'Has length'|size=50}} -->
<!-- {{#forminput:form=Property/Quantity|query string=namespace=Property&preload={{FULLPAGENAME}}&Property/Quantity[main_unit]={{{main_unit}}}&Property/Quantity[alternative_names]={{{alternative_names}}}&Property/Quantity[base_quantity]={{{base_quantity|{{FULLPAGENAME}}}}}&Property/Quantity[subquantity_of]={{FULLPAGENAME}}&Property/Quantity[description]={{{description|}}}|button text=Create subquantity|placeholder=Subquantity name, e. g. 'HasWavelength' for 'HasLength'|size=50}} -->
{{#forminput:form=Property/Subquantity|query string=namespace=Property&OslTemplate:Property/Quantity[base_quantity]={{{base_quantity|{{FULLPAGENAME}}}}}&OslTemplate:Property/Quantity[subquantity_of]={{FULLPAGENAME}}&OslTemplate:Property/Quantity[description]={{{description|}}}|button text=Create subquantity|placeholder=Subquantity name, e. g. 'HasWavelength' for 'HasLength'|size=50}}


{{{alternative_units|}}}
<!-- For Subquantities -->
{{#if: {{{base_quantity|}}} |
<!-- {{#arraymap: {{#ask: [[{{{base_quantity}}}]] |?Corresponds to |mainlabel=- |headers=hide |format=plainlist |link=none |valuesep=;}} |;|x| {{#set: |Corresponds to=x}} }} -->
{{#set: |Corresponds to={{#ask: [[{{{base_quantity}}}]] |?Corresponds to |mainlabel=- |headers=hide |format=plainlist |link=none |valuesep=;}} |+sep=;}}
|}}
{{OslTemplate:Property/Quantitative}}
[[Category:QuantityProperty]]
</includeonly>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.