Template:DisplayAllFeaturesTemplate: Difference between revisions

From IAMC-Documentation
Jump to navigation Jump to search
m (1 revision imported)
No edit summary
Line 15: Line 15:
<table class="wikitable">
<table class="wikitable">
<tr><th></th><!-- header row with models-->
<tr><th></th><!-- header row with models-->
{{#arraymap:{{{#userparam|}}}|;|mdl|<th>mdl</th>|}}</tr>
{{#arraymap:{{#ask:[[Category:Model]]|format=plainlist|link=none|sep=;}}|;|mdl|<th>mdl</th>|}}</tr>
{{#arraymap:{{{feature|}}}
{{#arraymap:{{{feature|}}}|;|attr<!-- header of a feature row-->
  |;|attr<!-- header of a feature row-->
   |<tr><th>attr</th>
   |<tr><th>{{GetFeatureLabelTemplate|featurePage={{{ftrPage|}}}|feature=attr}}</th>
     {{#arraymap:{{#ask:[[Category:Model]]|format=plainlist|link=none|sep=;}}
     {{#arraymap:{{{#userparam|}}} <!-- for each model de feature content -->
       |;|mdl
       |;|mdl
       |{{#ask:[[-Has subobject::mdl]][[BelongsToGroup::{{{group|}}}]][[HasAttributeLabel::attr]]
       |<td>{{#ask:[[-Has subobject::mdl]][[BelongsToGroup::{{{group|}}}]][[HasAttributeLabel::attr]]
             |mainlabel=-     
             |mainlabel=-     
            |? HasAttributeLabel=title
            |? HasDefaultOption=standardoption
             |? HasSelectedOption=option
             |? HasSelectedOption=option
             |? HasSpecificOption=other
             |? HasSpecificOption=other
             |? HasText=text
             |? HasText=text
             |? HasList=list
             |? HasList=list
            |? HasAttributeComment=comment
            |? HasSequence-
            |sort=HasSequence
             |valuesep=;
             |valuesep=;
            |named args=yes
             |format=plainlist
             |format=plainlist
            |template=DisplayItemInMatrixTemplate
       }} </td>   
       }}    
     |}}</tr>
     |}}</tr>
|}}</table>
|}}</table>
</includeonly>
</includeonly>

Revision as of 16:36, 5 November 2021

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

{{DisplayAllFeaturesTemplate
|group
|feature
|ftrPage
|userparam=model
}}

Edit the page to see the template text.