OER4Schools/ICT/include: Difference between revisions

From OER in Education
No edit summary
No edit summary
Line 1: Line 1:
{{#ifeq: {{SUBPAGENAME}}| ICT |
<includeonly>{{#ifeq: {{SUBPAGENAME}}| ICT |
<div style="margin: 5px; border: solid 1px blue; padding: 3px;">
<div 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}} }}} }}  }},
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  

Revision as of 01:06, 8 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.