Difference between revisions of "Template:Resource"
From The Embassy of Good Science
(MWBot) |
(MWBot) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
|Resource Type= | |Resource Type= | ||
|Title= | |Title= | ||
+ | |Has Related Initiative= | ||
|Is About= | |Is About= | ||
|Important Because= | |Important Because= | ||
Line 15: | Line 16: | ||
--><div class="sidebar-item formbutton formbutton-open">{{#widget:BTN Open Resource|link={{#ask:[[{{FULLPAGENAME}}]]|?Has Link=|mainlabel=-}}|label=open resource}} | --><div class="sidebar-item formbutton formbutton-open">{{#widget:BTN Open Resource|link={{#ask:[[{{FULLPAGENAME}}]]|?Has Link=|mainlabel=-}}|label=open resource}} | ||
<div class="smw-edit-dropdown" data-dropdown-trigger=""><div class="menu-dots">[[File:Dropdown_dots.svg|link=]]</div> | <div class="smw-edit-dropdown" data-dropdown-trigger=""><div class="menu-dots">[[File:Dropdown_dots.svg|link=]]</div> | ||
− | <div class="te-dropdown-menu">{{Te Dropdown Menu}}</div></div> | + | <div class="te-dropdown-menu">{{#ifeq:{{{Resource Type|}}}|Interactive|{{Te Dropdown Menu Interactive Content}}|{{Te Dropdown Menu}}}}</div></div> |
</div> | </div> | ||
{{G Discussion Sidebar}} | {{G Discussion Sidebar}} | ||
Line 23: | Line 24: | ||
{{#ifeq:{{{Resource Type|}}}|Interactive|{{#widget:H5P|ID={{#explode:{{PAGENAME}}|-|1}}}}}}<!-- /PREPEND --><!-- | {{#ifeq:{{{Resource Type|}}}|Interactive|{{#widget:H5P|ID={{#explode:{{PAGENAME}}|-|1}}}}}}<!-- /PREPEND --><!-- | ||
− | <!-- DISPLAY FORMAT: GADGET-ROW-EMBASSY -->{{#if: {{{Is About|}}} |<h2>{{int:EGS Is About}}</h2><div class="mw-field-value" data-property="Is About"> | + | <!-- DISPLAY FORMAT: GADGET-ROW-EMBASSY -->{{#if: {{{Has Related Initiative|}}} |<h2>{{int:EGS Has Related Initiative}}</h2><div class="mw-field-value" data-property="Has Related Initiative"> |
+ | [[{{{Has Related Initiative|}}}]] </div>| }}{{#if: {{{Is About|}}} |<h2>{{int:EGS Is About}}</h2><div class="mw-field-value" data-property="Is About"> | ||
{{{Is About|}}} </div>| }}{{#if: {{{Important Because|}}} |<h2>{{int:EGS Important Because}}</h2><div class="mw-field-value" data-property="Important Because"> | {{{Is About|}}} </div>| }}{{#if: {{{Important Because|}}} |<h2>{{int:EGS Important Because}}</h2><div class="mw-field-value" data-property="Important Because"> | ||
{{{Important Because|}}} </div>| }}{{#if: {{{Important For|}}} |<h2>{{int:EGS Important For}}</h2><div class="mw-field-value" data-property="Important For"> | {{{Important Because|}}} </div>| }}{{#if: {{{Important For|}}} |<h2>{{int:EGS Important For}}</h2><div class="mw-field-value" data-property="Important For"> | ||
Line 34: | Line 36: | ||
{{{Has Best Practice|}}} </div>| }}<!-- /DISPLAY --><!-- | {{{Has Best Practice|}}} </div>| }}<!-- /DISPLAY --><!-- | ||
− | <-- SMW ANNOTATION -->[[Resource Type::{{{Resource Type|}}}| ]][[Title::{{{Title|}}}| ]]{{#set:Is About={{{Is About|}}}}}{{#set:Important Because={{{Important Because|}}}}}{{#arraymap:{{{Important For|}}}|;|@@@@|[[Important For::@@@@| ]]| }}{{#set:Has Best Practice={{{Has Best Practice|}}}}}<!-- /SMW ANNOTATION --><!-- | + | <-- SMW ANNOTATION -->[[Resource Type::{{{Resource Type|}}}| ]][[Title::{{{Title|}}}| ]][[Has Related Initiative::{{{Has Related Initiative|}}}| ]]{{#set:Is About={{{Is About|}}}}}{{#set:Important Because={{{Important Because|}}}}}{{#arraymap:{{{Important For|}}}|;|@@@@|[[Important For::@@@@| ]]| }}{{#set:Has Best Practice={{{Has Best Practice|}}}}}<!-- /SMW ANNOTATION --><!-- |
<-- ADDITIONAL SMW ANNOTATION -->[[Semantic Dependency::{{FULLPAGENAME}}| ]] [[Main Category::Category:Resource| ]] [[Display Title::{{{Title}}}| ]] <!-- /ADDITIONAL SMW ANNOTATION --><!-- | <-- ADDITIONAL SMW ANNOTATION -->[[Semantic Dependency::{{FULLPAGENAME}}| ]] [[Main Category::Category:Resource| ]] [[Display Title::{{{Title}}}| ]] <!-- /ADDITIONAL SMW ANNOTATION --><!-- |
Latest revision as of 14:05, 3 June 2024
Usage
{{Resource |Resource Type= |Title= |Has Related Initiative= |Is About= |Important Because= |Important For= |Has Best Practice= }}