ParamArray

From KIproBatt Wiki
(Updated with content from Extension:OpenSemanticLab version 0.0.3)
 
(Updated with content from Extension:OpenSemanticLab version 0.0.3)
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
type = Typkürzel der referenzierten IDs (Default: mi)
 
type = Typkürzel der referenzierten IDs (Default: mi)
 
start = Startwert für die referenzierten ID (Default: 01)
 
start = Startwert für die referenzierten ID (Default: 01)
 +
name_start = Startwert für die Bennenung (Default: start,1)
 
nominal_type = Soll-Materialtyp
 
nominal_type = Soll-Materialtyp
 
nominal_instance = Soll-Charge
 
nominal_instance = Soll-Charge
Line 13: Line 14:
 
<includeonly>{{#vardefine: i | {{{start|1}}} }}{{#while:
 
<includeonly>{{#vardefine: i | {{{start|1}}} }}{{#while:
 
  | {{#ifexpr: {{#var: i }} <= {{#expr:{{#var: {{{count_source_name|}}}_actual_number_of_objects|{{{count}}}}} + {{{start|1}}} - 1}} | true }}
 
  | {{#ifexpr: {{#var: i }} <= {{#expr:{{#var: {{{count_source_name|}}}_actual_number_of_objects|{{{count}}}}} + {{{start|1}}} - 1}} | true }}
  | [{{#var: i }}][id]={{#replace:{{#replace:{{PAGENAME}}|00-pi|}}|00-pt|}}{{#ifexpr: {{#var: i }} <= 9 |0|}}{{#var: i }}-{{{type|mi}}};[{{#var: i }}][name]={{{param_name|Object}}} {{#var: i }};[{{#var: i }}][nominal_type]={{{nominal_type|}}};[{{#var: i }}][nominal_instance]={{{nominal_instance|}}};[{{#var: i }}][actual_type]={{{actual_type|}}};[{{#var: i }}][actual_instance]={{{actual_instance|}}};{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}
+
  | <!-- Shared with other param arrays
 +
-->{{OslTemplate:LabProcess/Parameter/MultiObject/Config
 +
|index={{#expr: {{{index_start|0}}} + {{#var: i }} }}
 +
|id={{{id|}}}
 +
|param_type={{{param_type|}}}
 +
|param_name={{{param_name|Object}}}{{#expr:{{#var: i }}+{{{name_start|{{{start|1}}}}}}-{{{start|1}}}}}
 +
|param_label={{{param_label|Object}}} {{#expr:{{#var: i }}+{{{name_start|{{{start|1}}}}}}-{{{start|1}}}}}
 +
|object_id={{#replace:{{#replace:{{PAGENAME}}|00-pi|}}|00-pt|}}{{#ifexpr: {{#var: i }} <= 9 |0|}}{{#var: i }}-{{{object_id_postfix|mi}}}<!--
 +
individual section (shared with files) -->
 +
|nominal_category={{{nominal_category|}}}
 +
|nominal_type={{{nominal_type|}}}
 +
|nominal_instance={{{nominal_instance|}}}
 +
|actual_category{{#if:{{{actual_category|}}}||NULL}}={{{actual_category|}}}
 +
|actual_type{{#if:{{{actual_type|}}}||NULL}}={{{actual_type|}}}
 +
|actual_instance{{#if:{{{actual_instance|}}}||NULL}}={{{actual_instance|}}}
 +
|actual_category_sync_active={{{actual_category_sync_active|}}}
 +
}}<!--
 +
-->{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }}
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 14:18, 31 May 2022

count_source_name = Name des Prozessschrittes, aus dem die Anzahl stammt (Kann nicht der gleiche Prozessschritt sein)
count = Fixe Anzahl (alternativ zu source_name)
param_name = Name / Prefix der generierten Objecte (Default: Object)
type = Typkürzel der referenzierten IDs (Default: mi)
start = Startwert für die referenzierten ID (Default: 01)
name_start = Startwert für die Bennenung (Default: start,1)
nominal_type = Soll-Materialtyp
nominal_instance = Soll-Charge
actual_type = Ist-Materialtyp
actual_instance = Ist-Materialcharge