Difference between revisions of "Template:TopicSidebar"

From Pirate Party Belgium
Jump to: navigation, search
(generic link instead of basictext)
m (use ShowTitle template)
Line 11: Line 11:
 
{{#if: {{{parent|}}} |
 
{{#if: {{{parent|}}} |
 
! Parents  
 
! Parents  
{{!}} {{#arraymap:{{{parent}}}|,|x|[[Has parent::x|{{#show: x | ?Has title | default = x }}]]|<br />}}
+
{{!}} {{#arraymap:{{{parent}}}|,|x|[[Has parent::x|{{ShowTitle|x}}]]|<br />}}
 
{{!}}- }}
 
{{!}}- }}
 
{{#if: {{{title|}}} |  
 
{{#if: {{{title|}}} |  
{{#ask: [[Category:Topic]] [[Has parent::{{PAGENAME}}]]
+
  {{#ask: [[Category:Topic]] [[Has parent::{{PAGENAME}}]]
 
   | ?Has title
 
   | ?Has title
 
   | intro =! Subtopics
 
   | intro =! Subtopics
Line 28: Line 28:
 
{{#if: {{{related|}}} |
 
{{#if: {{{related|}}} |
 
! See also
 
! See also
{{!}} {{#arraymap:{{{related}}}|,|x|[[Related to::x|{{#show: x | ?Has title | default = x }}]]|<br />}}
+
{{!}} {{#arraymap:{{{related}}}|,|x|[[Related to::x|{{ShowTitle|x}}]]|<br />}}
 
{{!}}- }}
 
{{!}}- }}
 
{{#if: {{{discussion|}}}{{{link|}}} |
 
{{#if: {{{discussion|}}}{{{link|}}} |

Revision as of 09:00, 25 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
link=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
| link = [[Basic Text]]
| discussion = https://loomio.org
}}