Template:Chabad Rebbes Box: Difference between revisions

English version of the Hebrew portal box for the Chabad Rebbes (תבנית:אדמו"רי חב"ד)
 
Show category links only when the category exists
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="toccolours collapsible autocollapse" style="width: 45%; clear: both; margin: 0.5em auto 0.5em auto;"
{{#ifeq:{{{embed|}}}|yes|{{#invoke:Infobox|infoboxTemplate|child=yes
! style="border-bottom:1px solid #aaaaaa;" align="center" colspan="3" | <span style="font-weight: bold; font-size: 1.2em;">[[The {{{rebbe}}}]]</span>
|headerstyle=background:#efe2ae;
|-
|header1=[[File:אייקון נשיאי חבד.png|22px|link=Portal:Rebbes of Chabad]] [[Portal:Rebbes of Chabad|Rebbes of Chabad]]
| align="center" bgcolor="#ccccff" colspan="2" | '''Categories about the {{{rebbe}}}'''
|label2=Series|data2={{{series|}}}
| rowspan="10" style="border-left:1px #aaaaaa solid;"|<div style="text-align:center;">[[File:אייקון נשיאי חבד.png|alt=|60px|link=Portal:Rebbes of Chabad]]<br>'''[[Portal:Rebbes of Chabad|Rebbes of Chabad]]'''</div>
|label3=Nesius|data3={{{years|}}}
*[[Portal:Beis HaRav|Beis HaRav]]
|label4=Preceded by|data4={{{before|}}}
*[[:Category:General Chassidus|General Chassidus]]
|label5=Succeeded by|data5={{{after|}}}
|-
|data6=<div class="hlist" style="font-size:92%; text-align:center;">{{#ifexist:Category:Family of the {{{rebbe}}}|
| align="center" bgcolor="#eeeeff" | '''[[:Category:Family of the {{{rebbe}}}|Family of the {{{rebbe}}}]]'''
* [[:Category:Family of the {{{rebbe}}}|Family]]}}{{#ifexist:Category:Chassidim in the Era of the {{{rebbe}}}|
|-
* [[:Category:Chassidim in the Era of the {{{rebbe}}}|Chassidim]]}}{{#ifexist:Category:Disciples of the {{{rebbe}}}|
| align="center" bgcolor="#eeeeff" | '''[[:Category:Chassidim in the Era of the {{{rebbe}}}|Chassidim in the Era of the {{{rebbe}}}]]'''
* [[:Category:Disciples of the {{{rebbe}}}|Disciples]]}}{{#ifexist:Category:Works of the {{{rebbe}}}|
|-
* [[:Category:Works of the {{{rebbe}}}|Works]]}}{{#ifexist:Category:Niggunim of the {{{rebbe}}}|
| align="center" bgcolor="#eeeeff" | '''[[:Category:Works of the {{{rebbe}}}|Works of the {{{rebbe}}}]]'''
* [[:Category:Niggunim of the {{{rebbe}}}|Niggunim]]}}
|-
</div>
| align="center" bgcolor="#eeeeff" | '''[[:Category:Niggunim of the {{{rebbe}}}|Niggunim of the {{{rebbe}}}]]'''
}}|{{Sidebar
|-
| name    = Chabad Rebbes Box
|}<noinclude>
| style   = width:22em;
Portal box for the Chabad Rebbes. Usage: <nowiki>{{Chabad Rebbes Box|rebbe=Tzemach Tzedek}}</nowiki> (values: Alter Rebbe, Mitteler Rebbe, Tzemach Tzedek, Rebbe Maharash, Rebbe Rashab, Rebbe Rayatz).
| wraplinks = true
 
| pretitle = Part of a series on the
| title    = [[Portal:Rebbes of Chabad|Rebbes of Chabad]]
| image    = [[File:אייקון נשיאי חבד.png|80px|link=Portal:Rebbes of Chabad]]
| heading1 = [[The {{{rebbe}}}]]{{#if:{{{years|}}}|<div style="font-weight:normal;">Nesius: {{{years}}}</div>}}
| content1 = {{#if:{{{before|}}}{{{after|}}}|<div style="display:flex; justify-content:space-between; gap:0.5em; margin-bottom:0.4em;"><div style="text-align:left;">{{#if:{{{before|}}}|← Preceded by<br />'''{{{before}}}'''}}</div><div style="text-align:right;">{{#if:{{{after|}}}|Succeeded by →<br />'''{{{after}}}'''}}</div></div>}}<div style="text-align:left;">
{{#ifexist:Category:Family of the {{{rebbe}}}|
* [[:Category:Family of the {{{rebbe}}}|Family of the {{{rebbe}}}]]}}
{{#ifexist:Category:Chassidim in the Era of the {{{rebbe}}}|
* [[:Category:Chassidim in the Era of the {{{rebbe}}}|Chassidim in the Era of the {{{rebbe}}}]]}}
{{#ifexist:Category:Works of the {{{rebbe}}}|
* [[:Category:Works of the {{{rebbe}}}|Works of the {{{rebbe}}}]]}}
{{#ifexist:Category:Niggunim of the {{{rebbe}}}|
* [[:Category:Niggunim of the {{{rebbe}}}|Niggunim of the {{{rebbe}}}]]}}
</div>
| heading2 = Portals
| content2 = <div style="text-align:left;">
* [[Portal:Rebbes of Chabad|Rebbes of Chabad]]
* [[Portal:Beis HaRav|Beis HaRav]]
* [[:Category:General Chassidus|General Chassidus]]
</div>
}}}}<noinclude>
Side box for the Chabad Rebbes (English version of the Hebrew template אדמו"רי חב"ד, including the succession of the Hebrew סדרה). Place at the top of the article, below the infobox. With <code>embed=yes</code> it renders as a section inside the infobox (module field), visible on mobile. Usage:
Optional: <code>series=</code> (extra row, e.g. for the leaders of the general Chassidic movement). Category links appear only if the category exists.
<pre>{{Chabad Rebbes Box|rebbe=Tzemach Tzedek|before=[[The Mitteler Rebbe]]|after=[[The Rebbe Maharash]]|years=9 Kislev 5588 – 13 Nissan 5626}}</pre>
[[Category:Templates]]
[[Category:Templates]]
[[he:תבנית:אדמו"רי חב"ד]]
[[he:תבנית:אדמו"רי חב"ד]]
</noinclude>
</noinclude>