Template:TopicSidebar: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
(Created page with "<includeonly>{| class="pirate-sidebar" ! class="title" colspan="2" | {{#if: {{{title|}}} | [[Has title::{{{title}}}]] }} |- {{#if: {{{image|}}} | {{!}} colspan=2 {{!}} {{{i...")
 
No edit summary
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="pirate-sidebar"
<includeonly>{| class="pirate-sidebar topic"
! class="title" colspan="2" | {{#if: {{{title|}}} | [[Has title::{{{title}}}]] }}
| style="padding:0;" colspan=2 |
{| cellspacing=0 width="100%"
! class="title" | {{#if: {{{title|}}} | [[Has title::{{{title}}}]] }}
| class="icon" | [[File:Toicon-icon-avocado-read.svg|x24px|link=Category:Topic]]
|}
|-  
|-  
{{#if: {{{image|}}} |
{{#if: {{{image|}}} |
{{!}} colspan=2 {{!}} [[{{{image}}}|frameless|250px|center]]
{{!}} colspan=2 {{!}} [[File:{{{image}}}|frameless|150px|center]]
{{!}}- }}
{{!}}- }}
{{#if: {{{parent|}}} |
{{#if: {{{parent|}}} |
! Parents  
! Parents  
{{!}} {{#arraymap:{{{parent}}}|,|x|[[Has parent::x]]|<br />}}
{{!}} {{#arraymap:{{{parent}}}|,|x|[[Has parent::x|{{ShowTitle|x}}]]|<br />}}
{{!}}- }}
{{!}}- }}
{{#if: {{{title|}}} |
  {{#ask: [[Category:Topic]] [[Has parent::{{PAGENAME}}]]
  | ?Has title
  | intro =! Subtopics
{{!}}
  | outro =<nowiki />
{{!}}-
  | sep = <br />
  | template = NamedLink
  | link = none
  | format = list
  }}
}}
{{#if: {{{related|}}} |
{{#if: {{{related|}}} |
! Voir aussi
! See also
{{!}} {{#arraymap:{{{related}}}|,|x|[[Related to::x]]|<br />}}
{{!}} {{#arraymap:{{{related}}}|,|x|[[Related to::x|{{ShowTitle|x}}]]|<br />}}
{{!}}- }}
{{!}}- }}
{{#if: {{{discussion|}}}{{{basictext|}}} |
| style="padding:0;" colspan=2 |
{{!}} style="padding:0;" colspan=2 {{!}}
{| cellspacing=0 style="width:100%;"
{{{!}} cellspacing="0" width="100%"
| style="width:50%; text-align:center;" | {{#if: {{{link|}}}  
{{#if: {{{basictext|}}} |
  | [[File:Toicon-icon-avocado-format.svg|x24px|link={{{link}}}]]  
{{!}} style="text-align:center;" {{#if: {{{discussion|}}} | width="50%" | colspan=2 }} {{!}} [{{{basictext}}} Basic Text]
}}
}}
{{#if: {{{discussion|}}} |
| style="width:50%; text-align:center;" | {{#if: {{{discussion|}}}  
{{!}} style="text-align:center;" {{#if: {{{basictext|}}} | width="50%" | colspan=2 }} {{!}} [{{{discussion}}} Discussion]
  | [[File:Toicon-icon-avocado-discuss.svg|x24px|link={{{discussion}}}|Discussion|alt=Discussion]]
}}
}}
{{!}}} }}
|}
|}{{#if: {{{nocat|}}}  
|}{{#if: {{{nocat|}}}  
|  
|  
Line 29: Line 45:
   | [[Category:Topic]] {{#ifeq: {{{featured|}}} | true  
   | [[Category:Topic]] {{#ifeq: {{{featured|}}} | true  
     | [[Category:Featured Topic]]
     | [[Category:Featured Topic]]
     }}
     }} {{#default_form:Topic}}
   }}
   }}
}}</includeonly><noinclude>{{TopicSidebar
}}</includeonly><noinclude>{{TopicSidebar
| title = Great Topic
| title = Family Topic
| image = File:Logo-heart 135px.png
| image = Logo-heart 135px.png
| featured = true
| featured = true
| parent = Father Topic, Mother Topic, Uncle Topic
| parent = Father Topic, Mother Topic, Uncle Topic
| related = Related Topic, Another Related Topic
| related = Sister Topic, Brother-in-Law Topic
| basictext = https://pirateparty.be/basic-text
| link = Basic Text
| discussion = https://loomio.org
| discussion = https://loomio.org
| nocat = true
| nocat = true
Line 43: Line 59:
== Usage ==
== Usage ==
  <nowiki>{{TopicSidebar
  <nowiki>{{TopicSidebar
| title = Great Topic
| title = Family Topic
| image = File:Logo-heart 135px.png
| image = Logo-heart 135px.png
| featured = true
| featured = true
| parent = Father Topic, Mother Topic, Uncle Topic
| parent = Father Topic, Mother Topic, Uncle Topic
| related = Related Topic, Another Related Topic
| related = Sister Topic, Brother-in-Law Topic
| basictext = https://pirateparty.be/basic-text
| link = Basic Text
| discussion = https://loomio.org
| discussion = https://loomio.org
}}</nowiki></noinclude>
}}</nowiki></noinclude>

Latest revision as of 19:15, 29 October 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
Toicon-icon-avocado-format.svg 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
}}