Anonymous

OER4Schools/ICT/include: Difference between revisions

From OER in Education
no edit summary
No edit summary
No edit summary
Line 15: Line 15:


This template uses  
This template uses  
* [[OER4Schools/ICT/page]] sessionnumber
[[OER4Schools/ICT/page]] sessionnumber
to determine the right ICT practice needed for the 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 could 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>
</noinclude>