Template:AutoResourceTable: Difference between revisions
From OER in Education
No edit summary |
No edit summary |
||
(24 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<!-- [[Resources]], [[Resources/Primary|Primary]] ([[Resources/Primary/Science|Science]], [[Resources/Primary/Maths|Maths]]), | <!-- [[Resources]], [[Resources/Primary|Primary]] ([[Resources/Primary/Science|Science]], [[Resources/Primary/Maths|Maths]]), | ||
[[Resources/Secondary|Secondary]] ([[Resources/Secondary/Science|Science]], [[Resources/Secondary/Maths|Maths]]) --> | [[Resources/Secondary|Secondary]] ([[Resources/Secondary/Science|Science]], [[Resources/Secondary/Maths|Maths]]) --> | ||
{{DISPLAYTITLE: | {{DISPLAYTITLE: | ||
Resources: | |||
{{#ifeq: {{#titleparts: {{PAGENAME}} | 1 | -2 }} |Resources|| {{#titleparts: {{PAGENAME}} | 1 | -2 }} }} | |||
{{#ifeq: {{#titleparts: {{PAGENAME}} | 1 | -1 }} |Resources|all| {{#titleparts: {{PAGENAME}} | 1 | -1 }} }} | |||
}} | |||
<!-- | |||
*** Print topic list at the top *** | |||
--> | |||
{{topiclist| | |||
{{{1|}}} | |||
[[Category:{{#titleparts: {{PAGENAME}} | 1 | -1 }}]] | |||
{{#ifeq: {{#titleparts: {{PAGENAME}} | 1 | -2 }} |Resources|| [[Category:{{#titleparts: {{PAGENAME}} | 1 | -2 }}]]}} | |||
}} | |||
<!-- | |||
*** Print resource table *** | |||
--> | |||
{{ResourceTable| | {{ResourceTable| | ||
{{{1|}}} | |||
[[Category:{{#titleparts: {{PAGENAME}} | 1 | -1 }}]] | [[Category:{{#titleparts: {{PAGENAME}} | 1 | -1 }}]] | ||
{{#ifeq: {{#titleparts: {{PAGENAME}} | 1 | -2 }} |Resources|| [[Category:{{#titleparts: {{PAGENAME}} | 1 | -2 }}]]}} | {{#ifeq: {{#titleparts: {{PAGENAME}} | 1 | -2 }} |Resources|| [[Category:{{#titleparts: {{PAGENAME}} | 1 | -2 }}]]}} | ||
[[Final::yes]] | |||
}} | }} | ||
<!-- | |||
Category:{{#titleparts: {{PAGENAME}} | 1 | -1 }} | Not: "ResourceTable essentially just does formatting - the firsdt argument is passed through to an #ask query. | ||
Category:{{#titleparts: {{PAGENAME}} | 1 | -2 }} | --> | ||
[[:Category:{{#titleparts: {{PAGENAME}} | 1 | -1 }}]] | |||
[[:Category:{{#titleparts: {{PAGENAME}} | 1 | -2 }}]] | |||
<noinclude>[[Category:ResourceAndToolTableTemplates]]</noinclude> |