Template:TopicSidebar: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
No edit summary
(show title instead of page, for related and parent)
Line 7: Line 7:
{{#if: {{{parent|}}} |
{{#if: {{{parent|}}} |
! Parents  
! Parents  
{{!}} {{#arraymap:{{{parent}}}|,|x|[[Has parent::x]]|<br />}}
{{!}} {{#arraymap:{{{parent}}}|,|x|[[Has parent::x|{{#show: x | ?Has title | default = x }}]]|<br />}}
{{!}}- }}
{{!}}- }}
{{#if: {{{title|}}} |  
{{#if: {{{title|}}} |  
Line 24: Line 24:
{{#if: {{{related|}}} |
{{#if: {{{related|}}} |
! See also
! See also
{{!}} {{#arraymap:{{{related}}}|,|x|[[Related to::x]]|<br />}}
{{!}} {{#arraymap:{{{related}}}|,|x|[[Related to::x|{{#show: x | ?Has title | default = x }}]]|<br />}}
{{!}}- }}
{{!}}- }}
{{#if: {{{discussion|}}}{{{basictext|}}} |
{{#if: {{{discussion|}}}{{{basictext|}}} |

Revision as of 19:29, 24 September 2017

Family Topic
Logo-heart 135px.png
Parents Father Topic
Mother Topic
Uncle Topic
See also Sister Topic
Brother-in-Law Topic
Basic Text Discussion

Usage

{{TopicSidebar
| title = Family Topic
| image = Logo-heart 135px.png
| featured = true
| parent = Father Topic, Mother Topic, Uncle Topic
| related = Sister Topic, Brother-in-Law Topic
| basictext = https://pirateparty.be/basic-text
| discussion = https://loomio.org
}}