Template:ExportAttributeTemplate: Difference between revisions

From IAMC-Documentation
Jump to navigation Jump to search
m (1 revision imported)
m (1 revision imported)
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
<pre>
<pre>
{{ExportAttributeTemplate
{{ExportAttributeTemplate
|model=
|group=
|attribute=
|feature
|subof=
|#userparam=model
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly><!--
</noinclude><includeonly>
-->{{#ifeq:{{{subof|}}}||
=={{{group|}}}==
{{#ask:[[IsAttributeOfModel::{{{model|}}}]][[HasAttributeLabel::{{{attribute|}}}]]
{{#arraymap:{{{feature|}}}
    | mainlabel=-
  |;|ftr
    |? HasAttributeLabel=title
  |{{#ask:[[-Has subobject::{{{#userparam|}}}]][[HasAttributeLabel::ftr]][[BelongsToGroup::{{{group|}}}]]
    |? HasDefaultOption=standardoption
        | mainlabel=-
    |? HasSelectedOption=option
        |? HasAttributeLabel=title
    |? HasSpecificOption=other
        |? HasDefaultOption=standardoption
    |? HasText=text
        |? HasSelectedOption=option
    |? HasList=list
        |? HasSpecificOption=other
    |? HasAttributeComment=comment
        |? HasText=text
    |? IsSingleChoice#true,false=single
        |? HasList=list
    | format=plainlist
        |? HasAttributeComment=comment
    | template=ExportItemTemplate
        |? IsSingleChoice#true,false=single
    | named args=yes
        | format=plainlist
}}|{{#ask:[[IsAttributeOfModel::{{{model|}}}]][[HasAttributeLabel::{{{attribute|}}}]][[IsSubOf::{{{subof|}}}]]
        | template=ExportItemTemplate
    | mainlabel=-
        | named args=yes
    |? IsSubOf=subof
      }}
    |? HasAttributeLabel=title
|}}
    |? HasDefaultOption=standardoption
</includeonly>
    |? HasSelectedOption=option
    |? HasSpecificOption=other
    |? HasText=text
    |? HasList=list
    |? HasAttributeComment=comment
    |? IsSingleChoice#true,false=single
    | format=plainlist
    | template=ExportItemTemplate
    | named args=yes
  }}
}}</includeonly>

Latest revision as of 12:34, 15 April 2020

This is the "ExportAttributeTemplate" template. It should be called in the following format:

{{ExportAttributeTemplate
|group=
|feature
|#userparam=model
}}

Edit the page to see the template text.