OER4Schools/ICT/include: Difference between revisions

From OER in Education
 
No edit summary
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
#REDIRECT [[OER4Schools/ICT/page]]
<includeonly>{{#ifeq: {{SUBPAGENAME}}| ICT |
<div class="noprint" style="margin: 5px; border: solid 1px blue; padding: 3px;">
{{Edit | Edit this section |  {{:OER4Schools/ICT/page|{{{1|{{#var:sessionnumber}} }}} }}  }},
[[{{:OER4Schools/ICT/page|{{{1|{{#var:sessionnumber}} }}} }}/zm|View this section for Zambia]],
[[{{:OER4Schools/ICT/page|{{{1|{{#var:sessionnumber}} }}} }}/rw|... for Rwanda]].
</div>
|
<div class="noprint" style="float: right; margin: 5px; border: solid 1px blue;">
([[{{:OER4Schools/ICT/page|{{{1|{{#var:sessionnumber}} }}} }}|View this section]])<br>
([[{{:OER4Schools/ICT/page|{{{1|{{#var:sessionnumber}} }}} }}/zm|... for Zambia]])<br>
([[{{:OER4Schools/ICT/page|{{{1|{{#var:sessionnumber}} }}} }}/rw|... for Rwanda]])
</div>
}}
{{#vardefine:ictpracticesession|{{:OER4Schools/ICT/page|{{{1|{{#var:sessionnumber}} }}} }} }}
{{: {{#var:ictpracticesession}} }}</includeonly><noinclude>
 
This template uses
[[OER4Schools/ICT/page]] sessionnumber
to determine the right ICT practice needed for the sessionnumber, and sets
#vardefine:ictpracticesession =  <nowiki>{{</nowiki>:OER4Schools/ICT/page|<nowiki>{{{</nowiki>1|<nowiki>{{#</nowiki>var:sessionnumber}} }}} }}
 
In [[OER4Schools/ICT/page]]  you can use <nowiki>{{</nowiki>Local|default=...|Zambia=...|defaultonly=1}} to change which ICT practice is returned by page.
 
In this template, we should check whether
<nowiki>{{</nowiki>#var:ictpracticesession}}/<nowiki>{{</nowiki>#var:localcode}}
exists, and if so, use it.
 
</noinclude>

Latest revision as of 12:21, 17 January 2015


This template uses

OER4Schools/ICT/page sessionnumber

to determine the right ICT practice needed for the sessionnumber, and sets

#vardefine:ictpracticesession =  {{:OER4Schools/ICT/page|{{{1|{{#var:sessionnumber}} }}} }}

In OER4Schools/ICT/page you can use {{Local|default=...|Zambia=...|defaultonly=1}} to change which ICT practice is returned by page.

In this template, we should check whether

{{#var:ictpracticesession}}/{{#var:localcode}} 

exists, and if so, use it.