OER4Schools/ICT/include: Difference between revisions

From OER in Education
No edit summary
No edit summary
 
(One intermediate revision 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}} }}} }} }}<noinclude>
{{#vardefine:ictpracticesession|{{:OER4Schools/ICT/page|{{{1|{{#var:sessionnumber}} }}} }} }}
{{: {{#var:ictpracticesession}} }}</includeonly><noinclude>


This template uses  
This template uses  
Line 19: Line 20:
  #vardefine:ictpracticesession =  <nowiki>{{</nowiki>:OER4Schools/ICT/page|<nowiki>{{{</nowiki>1|<nowiki>{{#</nowiki>var:sessionnumber}} }}} }}
  #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 [[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  
In this template, we should check whether  

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.