Difference between revisions of "Template:Related To"

From The Embassy of Good Science
(MWBot)
(MWBot)
Line 3: Line 3:
 
--><noinclude><h2>Usage</h2>
 
--><noinclude><h2>Usage</h2>
 
<pre>{{Related To
 
<pre>{{Related To
 +
  |Related To Resource=
 
   |Related To Theme=
 
   |Related To Theme=
  |Related To Resource=
 
  |Related To Discussion=
 
 
}}</pre>
 
}}</pre>
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
  
<!-- DISPLAY FORMAT: GADGET-ROW-EMBASSY-SIDEBAR --><div class="sidebar-item" data-template="Related To">{{#if: {{{Related To Theme|}}} | <h4 class="sidebar-title">{{int:EGS Theme Related To Theme}} </h4>
+
<!-- DISPLAY FORMAT: GADGET-ROW-EMBASSY-SIDEBAR --><div class="sidebar-items" data-template="Related To">{{#if: {{{Related To Resource|}}} | <h4 class="sidebar-title">{{int:EGS Resource Related To Resource}} </h4>
<span class="related-items">{{#arraymap:{{{Related To Theme|}}}|;|@@@@|<span class="related-item">[[@@@@]]</span>|}}</span> |}}{{#if: {{{Related To Resource|}}} | <h4 class="sidebar-title">{{int:EGS Resource Related To Resource}} </h4>
+
<div class="sidebar-item">
<span class="related-items">{{#arraymap:{{{Related To Resource|}}}|;|@@@@|<span class="related-item">[[@@@@]]</span>|}}</span> |}}{{#if: {{{Related To Discussion|}}} | <h4 class="sidebar-title">{{int:EGS Discussion Related To Discussion}} </h4>
+
  {{#arraymap:{{{Related To Resource|}}}|;|@@@@|
<span class="related-items">{{#arraymap:{{{Related To Discussion|}}}|;|@@@@|<span class="related-item">[[@@@@]]</span>|}}</span> |}}</div>
+
    {{#switch: {{#show:@@@@|?Resource Type}}
 +
    | Guidelines = {{#vardefine:resource_type|is-guidelines}}
 +
    | Cases = {{#vardefine:resource_type|is-caseStudies}}
 +
    | Laws & Regulations = {{#vardefine:resource_type|is-lawsAndRegulations}}
 +
    | Experts & Committees = {{#vardefine:resource_type|is-experts}}
 +
    | Education = {{#vardefine:resource_type|is-education}}
 +
    | #default = {{#vardefine:resource_type|is-other}}
 +
    }}
 +
 
 +
      <div class="related-resource {{#var:resource_type}}">
 +
        <div class="related-resource-category">{{#show:@@@@|?Resource Type}}</div>
 +
        <h4 class="related-resource-title">{{#semantic-title:@@@@}}</h4>
 +
          <div class="related-resource-navigation">[[@@@@|Open((.resource-link))]][[About((.resource-info))]]</div>
 +
      </div>|
 +
  }}
 +
</div> |}}{{#if: {{{Related To Theme|}}} | <h4 class="sidebar-title">{{int:EGS Theme Related To Theme}} </h4>
 +
<div class="sidebar-item"> <div class="other-information-block grid-block"><ul class="other-information-items">{{#arraymap:{{{Related To Theme|}}}|;|@@@@|<li class="other-information-item grid-item">[[@@@@]]</li>|}}</ul></div></div> |}}</div>
 
<!-- /DISPLAY --><!--
 
<!-- /DISPLAY --><!--
  
<-- SMW ANNOTATION -->{{#arraymap:{{{Related To Theme|}}}|;|@@@@|[[Related To Theme::@@@@| ]]| }}{{#arraymap:{{{Related To Resource|}}}|;|@@@@|[[Related To Resource::@@@@| ]]| }}{{#arraymap:{{{Related To Discussion|}}}|;|@@@@|[[Related To Discussion::@@@@| ]]| }}<!-- /SMW ANNOTATION --><!--
+
<-- SMW ANNOTATION -->{{#arraymap:{{{Related To Resource|}}}|;|@@@@|[[Related To Resource::@@@@| ]]| }}{{#arraymap:{{{Related To Theme|}}}|;|@@@@|[[Related To Theme::@@@@| ]]| }}<!-- /SMW ANNOTATION --><!--
  
<-- ADDITIONAL SMW FIELD ANNOTATION -->{{#arraymap:{{{Related To Theme|}}}|;|@@@@|[[Related To Object::@@@@| ]]| }} {{#arraymap:{{{Related To Resource|}}}|;|@@@@|[[Related To Object::@@@@| ]]| }} {{#arraymap:{{{Related To Discussion|}}}|;|@@@@|[[Related To Object::@@@@| ]]| }} <!-- /ADDITIONAL SMW FIELD ANNOTATION --><!--
+
<-- ADDITIONAL SMW FIELD ANNOTATION -->{{#arraymap:{{{Related To Resource|}}}|;|@@@@|[[Related To Object::@@@@| ]]| }} {{#arraymap:{{{Related To Theme|}}}|;|@@@@|[[Related To Object::@@@@| ]]| }} <!-- /ADDITIONAL SMW FIELD ANNOTATION --><!--
  
 
<-- CATEGORY --><!-- /CATEGORY --></includeonly><!--
 
<-- CATEGORY --><!-- /CATEGORY --></includeonly><!--
  
 
<!-- GLOBAL APPEND --><noinclude>{{Generated by gesinn.it}} <!-- All content on this page: Copyright © 2020 gesinn.it GmbH & Co. KG --></noinclude><!-- /GLOBAL APPEND -->
 
<!-- GLOBAL APPEND --><noinclude>{{Generated by gesinn.it}} <!-- All content on this page: Copyright © 2020 gesinn.it GmbH & Co. KG --></noinclude><!-- /GLOBAL APPEND -->

Revision as of 15:31, 6 April 2020

Usage

{{Related To
  |Related To Resource=
  |Related To Theme=
}}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
5.1.6