Template:ModelInfoBoxesTemplate: Difference between revisions

From IAMC-Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
(9 intermediate revisions by 2 users not shown)
Line 4: Line 4:
<pre>
<pre>
{{ModelInfoBoxesTemplate
{{ModelInfoBoxesTemplate
|cat=DocumentationCategory
}}
}}
</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>{| 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;"
! style="text-align: center; background-color:#ccccff;"  colspan="2"|<span style="font-size: larger;">{{#ask:[[HasLevel::0]][[IsDocumentationOf.-IsDocumentationOf::{{PAGENAME}}]]}}</span>
! style="text-align: center; background-color:#ccccff;"  colspan="2"|<span style="font-size: larger;">
{{#ask:[[HasLevel::0]][[IsDocumentationOf.-IsDocumentationOf::{{PAGENAME}}]]}}</span>
|-  
|-  
| colspan="2"|{{#arraymap:
| colspan="2"|{{#arraymap:
Line 14: Line 16:
   |;|x0
   |;|x0
   |<ul>{{#arraymap:
   |<ul>{{#arraymap:
     {{#ask:[[HasParent::x0]]|? HasSequence-|link=none|sep=;|sort=HasSequence|format=list}}
     {{#ask:[[HasParent::x0]]|? HasSequence-|link=none|sep=;|sort=HasSequence|format=plainlist}}
     |;|x1
     |;|x1
     |{{#ifexpr:{{#ask:[[HasParent::x1]]|format=count}}=0 <!--no children
     |{{#ifexpr:{{#ask:[[HasParent::x1]]|format=count}}=0 <!--no children
Line 34: Line 36:
       --><div class="mw-collapsible-content"><!--
       --><div class="mw-collapsible-content"><!--
       --><ul>{{#arraymap:
       --><ul>{{#arraymap:
             {{#ask:[[HasParent::x1]]|? HasSequence-|link=none|sep=;|sort=HasSequence|format=list}}   
             {{#ask:[[HasParent::x1]]|? HasSequence-|link=none|sep=;|sort=HasSequence|format=plainlist}}   
             |;|x2
             |;|x2
             |{{#ifexpr:{{#ask:[[HasParent::x2]]|format=count}}=0 <!--no children           
             |{{#ifexpr:{{#ask:[[HasParent::x2]]|format=count}}=0 <!--no children           
Line 51: Line 53:
               --><div class="mw-collapsible-content"><!--
               --><div class="mw-collapsible-content"><!--
               --><ul>{{#arraymap:
               --><ul>{{#arraymap:
                   {{#ask:[[HasParent::x2]]|? HasSequence-|link=none|sep=;|sort=HasSequence|format=list}}   
                   {{#ask:[[HasParent::x2]]|? HasSequence-|link=none|sep=;|sort=HasSequence|format=plainlist}}   
                   |;|x3
                   |;|x3
                   |<li>[[x3]]</li>
                   |<li>[[x3]]</li>
Line 67: Line 69:
   |{{#show:{{PAGENAME}}|? HasLevel}}
   |{{#show:{{PAGENAME}}|? HasLevel}}
   |{{#show:{{PAGENAME}}|? HasSequence}}
   |{{#show:{{PAGENAME}}|? HasSequence}}
  |{{{cat|}}}
   }}
   }}
|-
! style="text-align: center; background-color:#ccccff;" colspan="2" | <span style="font-size: larger;">Previous versions</span>
|-
| colspan="2"| {{#ask:[[IsArchivedVersionOfModel.-isDocumentationOf::{{PAGENAME}}]]|default=No previous version available|format=ul}}
|-
|-
! style="text-align: center; background-color:#ccccff;" colspan="2"|<span style="font-size: larger;">Model information</span>
! style="text-align: center; background-color:#ccccff;" colspan="2"|<span style="font-size: larger;">Model information</span>
|-
! style="width:7em; vertical-align: text-top;"| Model link
| {{#ask:[[-isDocumentationOf::{{PAGENAME}}]]|? HasModelLink=|mainlabel=-}}
|-
|-
! style="width:7em; vertical-align: text-top;"| Institution
! style="width:7em; vertical-align: text-top;"| Institution
Line 75: Line 85:
|-
|-
! style="vertical-align: text-top;"|Solution concept
! style="vertical-align: text-top;"|Solution concept
| {{#ask:[[Category:Model]][[-isDocumentationOf::{{PAGENAME}}]]|? HasConcept=|mainlabel=-}}
| {{#ask:[[Category:Model]][[-isDocumentationOf::{{PAGENAME}}]]|? HasInfoboxConcept=|mainlabel=-}}
|-
|-
! style="vertical-align: text-top;"|Solution method
! style="vertical-align: text-top;"|Solution method
| {{#ask:[[Category:Model]][[-isDocumentationOf::{{PAGENAME}}]]|? HasMethod=|mainlabel=-}}
| {{#ask:[[Category:Model]][[-isDocumentationOf::{{PAGENAME}}]]|? HasInfoboxMethod=|mainlabel=-}}
|-
|-
! style="vertical-align: text-top;"|Anticipation
! style="vertical-align: text-top;"|Anticipation
| {{#ask:[[Category:Model]][[-isDocumentationOf::{{PAGENAME}}]]|? HasAnticipation=|mainlabel=-}}
| {{#ask:[[Category:Model]][[-isDocumentationOf::{{PAGENAME}}]]|? HasAnticipation=|mainlabel=-}}
|}</includeonly>
|}</includeonly>

Revision as of 18:33, 8 August 2020

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

{{ModelInfoBoxesTemplate
|cat=DocumentationCategory
}}

Edit the page to see the template text.