Template:DisplayAttributeTemplate: Difference between revisions

From IAMC-Documentation
Jump to navigation Jump to search
(Created page with "<noinclude><pre> parameters: 1) model: </pre> </noinclude><includeonly> == Land-use and other resources == ''Model documentation: Non-climate sustainability dimension - {{{...")
 
m (1 revision imported)
 
(25 intermediate revisions by 2 users not shown)
Line 2: Line 2:
parameters:
parameters:
1) model:  
1) model:  
2) attribute
3) subof
4) format optional if matrix then the matrixtemplate
</pre>
</pre>
</noinclude><includeonly>
</noinclude><includeonly><!--
== Land-use and other resources ==
-->{{#ifeq:{{{format|}}}|matrix
''Model documentation: [[Non-climate sustainability dimension - {{{model|}}}]]''
  |{{#ask:[[IsAttributeOfModel::{{{model|}}}]][[HasAttributeLabel::{{{attribute|}}}]]
<div class="toccolours">
    | mainlabel=-
{{DisplayItemTemplate
    |? HasAttributeLabel=title
|title=Other resources:
    |? HasDefaultOption=standardoption
|standardoption={{#ask:[[Property:HasOtherResourceOption]]|? Allows value=|mainlabel=-|sep=;}}
    |? HasSelectedOption=option
|option={{#ask:[[{{{model|}}}]]|? HasOtherResourceOption=|mainlabel=-|sep=;}}
    |? HasSpecificOption=other
|other={{#ask:[[{{{model|}}}]]|? HasOtherResource=|mainlabel=-|sep=;}}
    |? HasText=text
|comment={{#ask:[[{{{model|}}}]]|? HasOtherResourceText=|mainlabel=-}}  
    |? HasList=list
}}
    |? HasAttributeComment=comment
<div style="clear:both">
    |? IsSingleChoice#true,false=single
</div></div></includeonly>
    |format=plainlist
    |template=DisplayItemInMatrixTemplate
    |named args=yes
    |valuesep=;
    |sep=;
  }}
  |{{#ifeq:{{{subof|}}}||
    {{#ask:[[IsAttributeOfModel::{{{model|}}}]][[HasAttributeLabel::{{{attribute|}}}]]
    | 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=;
 
  }}
  |{{#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>

Latest revision as of 17:17, 30 March 2020

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