Difference between revisions of "Template:Instruction Step Trainer"
From The Embassy of Good Science
(MWBot) |
(MWBot) |
||
| (20 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | <!--------------------------------- | + | <!--------------------------------- MANAGED TEMPLATE ----------------------------------><!-- |
--><noinclude><h2>Usage</h2> | --><noinclude><h2>Usage</h2> | ||
| Line 5: | Line 5: | ||
|Instruction Step Title= | |Instruction Step Title= | ||
|Instruction Step Text= | |Instruction Step Text= | ||
| + | |Instruction Step Interactive Content= | ||
}}</pre> | }}</pre> | ||
</noinclude><includeonly><!-- | </noinclude><includeonly><!-- | ||
| − | <!-- PREPEND -->{{#vardefine:sortKeyIndexTrainer|{{#expr:{{#var:sortKeyIndexTrainer}} + 1}}}}<div class="spacer"></div><div class="step-number">{{#var:sortKeyIndexTrainer}}</div><!-- /PREPEND --><!-- | + | <!-- PREPEND -->{{#vardefine:sortKeyIndexTrainer|{{#expr:{{#var:sortKeyIndexTrainer}} + 1}}}}<div class="spacer"></div><div class="instruction-step-wrapper"><div class="step-number">{{#var:sortKeyIndexTrainer}}</div><!-- /PREPEND --><!-- |
| − | <!-- DISPLAY FORMAT: GADGET-ROW-EMBASSY-INSTRUCTION-STEP --><div class="instruction-step | + | <!-- DISPLAY FORMAT: GADGET-ROW-EMBASSY-INSTRUCTION-STEP --><div class="instruction-step instruction-step-grid" data-template="Instruction Step Trainer">{{#if: {{{Instruction Step Title|}}} | |
{{#ifeq: Instruction Step Title | Instruction Step Title | {{#ifeq: Instruction Step Title | Instruction Step Title | ||
| <h5>{{{Instruction Step Title|}}}</h5> | | <h5>{{{Instruction Step Title|}}}</h5> | ||
| Line 20: | Line 21: | ||
| <p data-property="Instruction Step Text">{{{Instruction Step Text|}}}</p> | | <p data-property="Instruction Step Text">{{{Instruction Step Text|}}}</p> | ||
}} | }} | ||
| − | |}}</ | + | |}}{{#if: {{{Instruction Step Interactive Content|}}} | |
| + | {{#ifeq: Instruction Step Interactive Content | Instruction Step Title | ||
| + | | <h5>[[{{{Instruction Step Interactive Content|}}}]]</h5> | ||
| + | | <p data-property="Instruction Step Interactive Content">[[{{{Instruction Step Interactive Content|}}}]]</p> | ||
| + | }} | ||
| + | |}}</div> | ||
<!-- /DISPLAY --><!-- | <!-- /DISPLAY --><!-- | ||
| + | |||
| + | <-- APPEND-->{{#if:{{#explode:{{{Instruction Step Interactive Content|}}}|-|1}}|{{#widget:H5P|ID={{#explode:{{{Instruction Step Interactive Content|}}}|-|1}}}}|}} | ||
| + | </div><!-- /APPEND --><!-- | ||
<-- SMW SUBOBJECT -->{{#subobject:| | <-- SMW SUBOBJECT -->{{#subobject:| | ||
| Line 27: | Line 36: | ||
|Instruction Step Title={{#if:{{{Instruction Step Title|}}}|{{{Instruction Step Title|}}}}} | |Instruction Step Title={{#if:{{{Instruction Step Title|}}}|{{{Instruction Step Title|}}}}} | ||
|Instruction Step Text={{#if:{{{Instruction Step Text|}}}|{{{Instruction Step Text|}}}}} | |Instruction Step Text={{#if:{{{Instruction Step Text|}}}|{{{Instruction Step Text|}}}}} | ||
| + | |Instruction Step Interactive Content={{#if:{{{Instruction Step Interactive Content|}}}|{{{Instruction Step Interactive Content|}}}}} | ||
|@sortkey={{#var:sortKeyIndexTrainer}} | |@sortkey={{#var:sortKeyIndexTrainer}} | ||
| − | }}<!-- /SMW SUBOBJECT --><!-- | + | }}<!-- /SMW SUBOBJECT --><!--<!-- |
| − | |||
| − | |||
| − | <!-- | + | <!-- CATEGORY --><!-- /CATEGORY --></includeonly> |
Latest revision as of 11:15, 15 April 2024
Usage
{{Instruction Step Trainer
|Instruction Step Title=
|Instruction Step Text=
|Instruction Step Interactive Content=
}}
