Difference between revisions of "Template:ModelDocumentationTemplate"

From IAMC-Documentation
Jump to: navigation, search
Line 52: Line 52:
 
-->{{#set:IsDocumentationOf={{{IsDocumentationOf|}}} }}<!--
 
-->{{#set:IsDocumentationOf={{{IsDocumentationOf|}}} }}<!--
 
-->{{#set:IsOptional={{#ask:[[:Category:{{{DocumentationCategory|}}}]]|?IsOptionalCategory=|mainlabel=-}} }}<!--
 
-->{{#set:IsOptional={{#ask:[[:Category:{{{DocumentationCategory|}}}]]|?IsOptionalCategory=|mainlabel=-}} }}<!--
-->{{#set:HasLevel={{{HasLevel|}}} }}<!--
+
-->{{#set:HasLevel={{#ask:[[:Category:{{{DocumentationCategory|}}}]]|?HasCategoryLevel=|mainlabel=-}} }}<!--
-->{{#set:HasSequence={{{HasSeq|}}} }}<!--
+
-->{{#set:HasSequence={{#ask:[[:Category:{{{DocumentationCategory|}}}]]|?HasCategorySequence=|mainlabel=-}} }}<!--
 +
-->{{#ifexpr:{{#ask:[[:Category:{{{DocumentationCategory|}}}]]|?HasCategoryLevel=|mainlabel=-}}>0<!--
 +
    -->|{{#set:HasParent={{#ask:[[:Category:Emissions]]|?Subcategory of=|link=none|mainlabel=-}} - {{{IsDocumentationOf|}}}<!--
 +
    -->|}}<!--
 
-->{{#ifeq:{{{HasParent|}}}|||{{#set:HasParent={{{HasParent|}}} }} }}<!--
 
-->{{#ifeq:{{{HasParent|}}}|||{{#set:HasParent={{{HasParent|}}} }} }}<!--
 
-->{{#ifeq:{{{IsEmpty|}}}||{{#set:IsEmpty=No}}|{{#set:IsEmpty={{{IsEmpty|}}} }} }}
 
-->{{#ifeq:{{{IsEmpty|}}}||{{#set:IsEmpty=No}}|{{#set:IsEmpty={{{IsEmpty|}}} }} }}
  
 
</includeonly>
 
</includeonly>

Revision as of 17:15, 9 August 2016

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

{{ModelDocumentationTemplate
|IsDocumentationOf=
|DocumentationCategory=
|HasLevel
|HasSeq
|HasParent
|isEmpty
}}

Edit the page to see the template text.