Difference between revisions of "Template:TopicSidebar"

From Pirate Party Belgium
Jump to: navigation, search
(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 20:29, 24 September 2017

Family Topic Toicon-icon-avocado-read.svg
Logo-heart 135px.png
Parents Father Topic
Mother Topic
Uncle Topic
See also Sister Topic
Brother-in-Law Topic
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
}}