Object
From KIproBatt Wiki
(Updated with content from Extension:OpenSemanticLab version 0.0.3) |
(Updated with content from Extension:OpenSemanticLab version 0.0.3) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#subobject: {{ | + | <includeonly><!-- print out the identifier for inline declaration -->{{{name|{{{id|}}}}}};<!-- |
− | |@category=LabProcessObject | + | create object, identified by name (if specified) or id => e.g. #ObjectName or #220504-sist-0010-mi |
− | + | -->{{#subobject: {{{name|{{{id|}}}}}} | |
− | |HasName= | + | |@category=LabProcess/Object;LabProcessObject<!-- |
− | + | -->{{#if: {{{global|}}} |<!-- | |
− | -->{{#if:{ | + | -->;LabProcessOutput;LabProcess/GlobalObject<!-- |
− | | | + | -->|}}|+sep=; |
− | + | |HasName={{{name|}}} | |
− | |HasWikiId={{FULLPAGENAME}}#{{ | + | |HasDisplayName={{{label|}}} |
− | | | + | |Display title of=<!-- |
− | + | -->{{#ifeq:{{NAMESPACE}}|LabObject<!-- | |
− | + | -->|{{#if: {{{global|}}} | {{{id}}} | {{{label|{{{name|}}}}}} }}<!-- use id for global object | |
− | {{#ask: [[{{FULLPAGENAME}}]] |?HasOutputType= |mainlabel=- |link=none |format=plain}}}} | + | -->|{{{label|{{{name|}}}}}}<!-- always use label/name in process templates |
− | }}{{#set: | + | -->}} |
− | + | |HasId={{{id|}}} | |
+ | |HasWikiId={{FULLPAGENAME}}#{{{name|{{{id|}}}}}} | ||
+ | <!-- |IsInstanceOf=Term:Process/Object/Global;--> | ||
+ | |{{#ifeq:{{NAMESPACE}}|LabObject|IsInstanceOf|IsA}}=<!--process type->abstract object, process instance->object instance | ||
+ | -->{{#if: {{{global|}}} | <!-- | ||
+ | -->{{#if:{{{type|}}} | {{{type}}} | {{#ask: [[{{FULLPAGENAME}}]] |?HasOutputType= |mainlabel=- |link=none |format=plain}} }} <!-- | ||
+ | -->|}}|+sep=; | ||
+ | }}<!-- | ||
+ | -->{{#set: HasObject={{FULLPAGENAME}}#{{{name|{{{id|}}}}}} }}<!-- | ||
+ | --><!-- {{#ifeq:{{NAMESPACE}}|LabObject| --><!-- only for process instances, not types | ||
+ | -->{{#if: {{{global|}}}|<!-- | ||
+ | -->{{#set: HasOutput={{FULLPAGENAME}}#{{{name|{{{id|}}}}}} }}<!-- | ||
+ | -->}}<!-- | ||
+ | --><!-- }} --></includeonly> |