OER4Schools/ICT/include: Difference between revisions

From OER in Education
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq: {{SUBPAGENAME}}| ICT |
<includeonly>{{#ifeq: {{SUBPAGENAME}}| ICT |
<div style="margin: 5px; border: solid 1px blue; padding: 3px;">
<div class="noprint" style="margin: 5px; border: solid 1px blue; padding: 3px;">
{{Edit | Edit this section |  {{:OER4Schools/ICT/page|{{{1|{{#var:sessionnumber}} }}} }}  }},
{{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}} }}} }}/zm|View this section for Zambia]],
Line 6: Line 6:
</div>
</div>
|
|
<div style="float: right; margin: 5px; border: solid 1px blue;">
<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}} }}} }}|View this section]])<br>
([[{{:OER4Schools/ICT/page|{{{1|{{#var:sessionnumber}} }}} }}/zm|... for Zambia]])<br>
([[{{:OER4Schools/ICT/page|{{{1|{{#var:sessionnumber}} }}} }}/zm|... for Zambia]])<br>
Line 12: Line 12:
</div>
</div>
}}
}}
{{: {{:OER4Schools/ICT/page|{{{1|{{#var:sessionnumber}} }}} }} }}
{{#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.