Template:DisplayAttributeTemplate: Difference between revisions

From IAMC-Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
todo: make 1 query and send all information to DisplayItemTemplate via format=template
todo: make 1 query and send all information to DisplayItemTemplate via format=template
</pre>
</pre>
</noinclude><includeonly>
</noinclude><includeonly><!--
{{#arraymap:
-->{{#ask:[[IsAttributeOfModel::{{{model|}}}]][[HasAttributeLabel::{{{attribute|}}}]]
{{#ask:[[IsAttributeOfModel::{{{model|}}}]][[HasAttributeLabel::{{{attribute|}}}]]|link=none}}
| mainlabel=-
|;|subobj
|? HasAttributeLabel=title
|{{DisplayItemTemplate
|? HasDefaultOption=standardoption
  |title={{{attribute|}}}:
|? HasSelectedOption=option
  |standardoption={{#show:subobj||? HasDefaultOption|sep=;}}
|? HasSpecificOption=other
  |option={{#show:subobj|? HasSelectedOption|sep=;}}
|? HasText=text
  |other={{#show:subobj|? HasSpecificOption|sep=;}}
|? HasList=list
  |text={{#show:subobj|? HasText|sep=;}}
|? HasAttributeComment=comment
  |list={{#show:subobj|? HasList|sep=;}}
|format=template
  |comment={{#show:subobj|? HasAttributeComment|sep=;}}
|template=DisplayItemTemplate
  }}
|named args=yes
|}}</includeonly>
|sep=;
}}</includeonly>

Revision as of 21:20, 30 August 2016

parameters:
1) model: 
2} attribute
todo: make 1 query and send all information to DisplayItemTemplate via format=template