Template:Topics: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>{{#ask: {{#ifeq: {{{featured|}}} | true | Category:Featured Topic | Category:Topic }} {{#if: {{{1|}}} | Has parent::{{#arraymap:{{{1}}}|,|x|x|{...") |
(sort by title) |
||
(One intermediate revision by the same user not shown) | |||
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 10: | Line 16: | ||
| link = none | | link = none | ||
| mainlabel =- | | mainlabel =- | ||
| sort = Has title | |||
| order = asc | |||
}}</includeonly><noinclude>== Usage == | }}</includeonly><noinclude>== Usage == | ||
<nowiki>{{Topics|Some Topic|featured=true}}</nowiki> | <nowiki>{{Topics|Some Topic|featured=true}}</nowiki> | ||
Line 15: | Line 23: | ||
== 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 35: | ||
{{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> |
Latest revision as of 21:50, 25 September 2017
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}}