Template:Foreach

From Broadcast for Schools.co.uk.co.uk
Jump to: navigation, search

From http://www.mediawiki.org/wiki/Template:Foreach


{{Foreach[|delim=delim]|templatename|item1[|item2]...}}

Example: {{Foreach|SetCategory|Series|TV|1970s}} - add page to categories Series, TV, 1970s

Example: {{Foreach|SetCategoryList|delim=, |ITV|C4}} - ITV Schools, Channel 4 Schools


(doing it this way so category list can be used to populate multi-category searches in future, or category map added to sidebar)