Template:DisplayAttributeTemplate: Difference between revisions

From IAMC-Documentation
Jump to navigation Jump to search
No edit summary
en>Rineke Oostenrijk
No edit summary
Line 2: Line 2:
parameters:
parameters:
1) model:  
1) model:  
2} attribute
2) attribute
3) format optional if matrix then the matrixtemplate
3) subof
4) format optional if matrix then the matrixtemplate
</pre>
</pre>
</noinclude><includeonly><!--
</noinclude><includeonly><!--
-->{{#ifeq:{{{format|}}}|matrix<!--
-->{{#ifeq:{{{format|}}}|matrix
-->|{{#ask:[[IsAttributeOfModel::{{{model|}}}]][[HasAttributeLabel::{{{attribute|}}}]]
  |{{#ask:[[IsAttributeOfModel::{{{model|}}}]][[HasAttributeLabel::{{{attribute|}}}]]
  | mainlabel=-
    | mainlabel=-
  |? HasAttributeLabel=title
    |? HasAttributeLabel=title
  |? HasDefaultOption=standardoption
    |? HasDefaultOption=standardoption
  |? HasSelectedOption=option
    |? HasSelectedOption=option
  |? HasSpecificOption=other
    |? HasSpecificOption=other
  |? HasText=text
    |? HasText=text
  |? HasList=list
    |? HasList=list
  |? HasAttributeComment=comment
    |? HasAttributeComment=comment
  |format=list
    |? IsSingleChoice#true,false=single
  |template=DisplayItemInMatrixTemplate
    |format=plainlist
   |named args=yes
    |template=DisplayItemInMatrixTemplate
  |sep=;
    |named args=yes
}}<!--
    |valuesep=;
-->|{{#ask:[[IsAttributeOfModel::{{{model|}}}]][[HasAttributeLabel::{{{attribute|}}}]]
    |sep=;
  | mainlabel=-
  }}
  |? HasAttributeLabel=title
   |{{#ifeq:{{{subof|}}}||
  |? HasDefaultOption=standardoption
    {{#ask:[[IsAttributeOfModel::{{{model|}}}]][[HasAttributeLabel::{{{attribute|}}}]]
  |? HasSelectedOption=option
    | mainlabel=-
  |? HasSpecificOption=other
    |? HasAttributeLabel=title
  |? HasText=text
    |? HasDefaultOption=standardoption
  |? HasList=list
    |? HasSelectedOption=option
  |? HasAttributeComment=comment
    |? HasSpecificOption=other
  |format=list
    |? HasText=text
  |template=DisplayItemTemplate
    |? HasList=list
  |named args=yes
    |? HasAttributeComment=comment
  |sep=;
    |? IsSingleChoice#true,false=single
  }}<!--
    |format=plainlist
-->}}</includeonly>
    |template=DisplayItemTemplate
    |named args=yes
    |valuesep=;
    |sep=;
 
  }}
  |{{#ask:[[IsAttributeOfModel::{{{model|}}}]][[HasAttributeLabel::{{{attribute|}}}]][[IsSubOf::{{{subof|}}}]]
    | mainlabel=-
    |? HasAttributeLabel=title
    |? HasDefaultOption=standardoption
    |? HasSelectedOption=option
    |? HasSpecificOption=other
    |? HasText=text
    |? HasList=list
    |? HasAttributeComment=comment
    |? IsSingleChoice#true,false=single
    |format=plainlist
    |template=DisplayItemTemplate
    |named args=yes
    |valuesep=;
    |sep=;  
  }}
  }}
}}</includeonly>

Revision as of 12:41, 30 March 2020

parameters:
1) model: 
2) attribute
3) subof
4) format optional if matrix then the matrixtemplate