Difference between revisions of "Template:Topics"
(Created page with "<includeonly>{{#ask: {{#ifeq: {{{featured|}}} | true | Category:Featured Topic | Category:Topic }} {{#if: {{{1|}}} | Has parent::{{#arraymap:{{{1}}}|,|x|x|{...") |
|||
Line 1: | Line 1: | ||
<includeonly>{{#ask: {{#ifeq: {{{featured|}}} | true | <includeonly>{{#ask: {{#ifeq: {{{featured|}}} | true | ||
− | | [[Category:Featured Topic]] | + | | [[Category:Featured Topic]] OR |
− | | [[Category:Topic]] | + | }} [[Category:Topic]] {{#ifeq: {{{featured|}}} | true |
− | }} {{#if: {{{1|}}} | [[Has parent::{{#arraymap:{{{1}}}|,|x|x|{{!}}{{!}}}}]] }} | + | | [[Has parent::{{#ask: [[Category:Featured Topic]] |
+ | | link = none | ||
+ | | sep = {{!}}{{!}} | ||
+ | }}]] {{#if: {{{1|}}} | OR }} | ||
+ | }} {{#if: {{{1|}}} | ||
+ | | [[Category:Topic]] {{#arraymap:{{{1}}}|,|x|[[x]]|OR [[Category:Topic]]}} OR [[Category:Topic]] [[Has parent::{{#arraymap:{{{1}}}|,|x|x|{{!}}{{!}}}}]] | ||
+ | }} | ||
| ?# | | ?# | ||
| ?Has title | | ?Has title | ||
Line 15: | Line 21: | ||
== Examples == | == Examples == | ||
− | === List of featured topics === | + | === List of topics (all children) === |
+ | |||
+ | <nowiki>{{Topics}}</nowiki> | ||
+ | |||
+ | {{Topics}} | ||
+ | |||
+ | === List of featured topics (direct children) === | ||
<nowiki>{{Topics|featured=true}}</nowiki> | <nowiki>{{Topics|featured=true}}</nowiki> | ||
Line 21: | Line 33: | ||
{{Topics|featured=true}} | {{Topics|featured=true}} | ||
− | === List of direct children === | + | === List of featured topics + other topics (direct children) === |
+ | |||
+ | <nowiki>{{Topics|Public transport|featured=true}}</nowiki> | ||
+ | |||
+ | {{Topics|Public transport|featured=true}} | ||
+ | |||
+ | === List of some topics (direct children) === | ||
− | <nowiki>{{Topics|Democracy}}</nowiki> | + | <nowiki>{{Topics|Democracy, Privacy}}</nowiki> |
− | {{Topics|Democracy}} | + | {{Topics|Democracy, Privacy}} |
<noinclude> | <noinclude> |
Revision as of 11:03, 25 September 2017
Contents
Usage
{{Topics|Some Topic|featured=true}}
Examples
List of topics (all children)
{{Topics}}
- Culture
- Democracy
- Economy
- Education
- Feminism
- Health
- Net Neutrality
- Pirate Party
- Privacy
- Sharing Society
- Sustainability
List of featured topics (direct children)
{{Topics|featured=true}}
List of featured topics + other topics (direct children)
{{Topics|Public transport|featured=true}}
List of some topics (direct children)
{{Topics|Democracy, Privacy}}