Template:DisplayLinkTemplate: Difference between revisions

From IAMC-Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
template to display a link
template to display a corresponding link only if model is fully documented and HasProcessState=published
param1= pagename
param1= pagename
param2= label
</noinclude><includeonly><!--
</noinclude><includeonly><!--
-->{{#arraymap:{{#show:{{{1|}}}|?IsDocumentationOf|link=none}}|bbb|xx|<!--
-->{{#arraymap:{{#show:{{{1|}}}|?IsDocumentationOf|link=none}}|;|xx|<!-- xx = model
-->{{#ifeq:xx|IPETS||<!--
  -->{{#ifeq:
-->{{#ifeq:xx|DNE21+||<!--
      {{#show: xx|? HasParticipationState}}|full
--><br/>[[{{{1|}}}|xx]] }} }} |}}</includeonly>
      |{{#ifeq:
          {{#show: xx|? HasProcessState}}|published
          |[[{{{1|}}}|xx]]<br/> <!-- display model and link to corresponding page -->
          |
        }}
        {{#ifeq:
          {{#show: xx|? HasProcessState}}|under review
          |[[{{{1|}}}|xx]]<br/> <!-- display model and link to corresponding page -->
          |
        }}
      |
    }}  
|}}</includeonly>

Latest revision as of 14:59, 17 December 2019

template to display a corresponding link only if model is fully documented and HasProcessState=published param1= pagename