Template:ModelDocumentationTemplate: Difference between revisions

From IAMC-Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
 
(44 intermediate revisions by 2 users not shown)
Line 6: Line 6:
|IsDocumentationOf=
|IsDocumentationOf=
|DocumentationCategory=
|DocumentationCategory=
|HasLevel
|isEmpty
|HasSeq
|HasParent
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
</noinclude><includeonly>{{#ifeq:{{#show:{{PAGENAME}}|? IsInPrintMode}}|true||
! style="text-align: center; background-color:#ccccff;" |<span style="font-size: larger;">{{#ask:[[HasLevel::0]][[IsDocumentationOf::<q>[[-IsDocumentationOf::{{PAGENAME}}]]</q>]]}}</span>
{{ProcessStateTemplate|model={{#show:{{PAGENAME}}|? IsDocumentationOf|link=none}} }}
|-
{{ModelInfoBoxesTemplate}}
|{{#arraymap:{{#ask:[[HasLevel::0]][[IsDocumentationOf::<q>[[-IsDocumentationOf::{{PAGENAME}}]]</q>]]|link=none|sep=;}}
 
  |;|xx
[[Category:{{{DocumentationCategory|}}}]]
  |<ul>
{{#set:
  {{#ask:[[HasParent::xx]]|? HasSequence=|link=none|sep=;|format=template|template=level1Template|sort=HasSequence}}
IsDocumentationOf={{{IsDocumentationOf|}}}
  </ul>
|IsOptional={{#ask:[[:Category:{{{DocumentationCategory|}}}]]|?IsOptionalCategory=|mainlabel=-}}
  |}}
|HasLevel={{#ask:[[:Category:{{{DocumentationCategory|}}}]]|?HasCategoryLevel=|mainlabel=-}}
|-
|HasSequence={{#ask:[[:Category:{{{DocumentationCategory|}}}]]|?HasCategorySequence=|mainlabel=-}}  
! style="text-align: center; background-color:#ccccff;" |<span style="font-size: larger;">Corresponding documentation page</span>
}}{{#ifeq:
|-
    {{#ask:[[:Category:{{{DocumentationCategory|}}}]]|?HasCategoryLevel=|mainlabel=-}}|0|
|{{#arraymap:{{#show:{{PAGENAME}}|? HasLevel}}|;|xx
    |{{#arraymap:{{#ask:[[:Category:{{{DocumentationCategory|}}}]]|?Subcategory of=|mainlabel=-|link=none|valuesep=;}}|;|xx
  |{{#ask:[[Category:Model Documentation]][[HasLevel::xx]]
            |{{#set:HasParent=xx - {{{IsDocumentationOf|}}} }}
    |? IsDocumentationOf
    |}}  
    | format=ul
}}{{#ifeq:
    | template=CorrespondingPageTemplate
    {{{IsEmpty|}}}||{{#set:IsEmpty=No}}|{{#set:IsEmpty={{{IsEmpty|}}} }} }}  
    | link=none
}}</includeonly>
    }}
|}}
|-
! style="text-align: center; background-color:#ccccff;" |<span style="font-size: larger;">Model information</span>
|}
[[Category:{{{DocumentationCategory|}}}]]<!--
-->{{#set:IsDocumentationOf={{{IsDocumentationOf|}}} }}<!--
-->{{#set:HasLevel={{{HasLevel|}}} }}<!--
-->{{#set:HasSequence={{{HasSeq|}}} }}<!--
-->{{#ifeq:HasParent|||{{#set:HasParent={{{HasParent|}}} }} }}
</includeonly>

Latest revision as of 11:37, 27 May 2020

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

{{ModelDocumentationTemplate
|IsDocumentationOf=
|DocumentationCategory=
|isEmpty
}}

Edit the page to see the template text.