Difference between revisions of "Template:Ilkhanate family tree"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
(use mw-collapsible)
imported>Keivan.f
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| class="navbox mw-collapsible <includeonly>{{{state|mw-collapsed}}}</includeonly>" style="width: {{{width|100%}}}; {{#switch: {{{align|}}}
+
{| class="navbox mw-collapsible <includeonly>{{#ifeq:{{{state|}}}|collapsed|mw-collapsed|{{{state|mw-collapsed}}}}}</includeonly>" style="width: {{{width|100%}}}; {{#switch: {{{align|}}}
 
|left = float: left;
 
|left = float: left;
 
|right = float: right;
 
|right = float: right;
Line 7: Line 7:
 
!  class="navbox-title" style="background: {{#ifeq: {{{title-background|}}} |navbox|  |{{{title-background|none}}} }};" | {{navbar-collapsible| Ilkhanate family tree | Ilkhanate family tree }}
 
!  class="navbox-title" style="background: {{#ifeq: {{{title-background|}}} |navbox|  |{{{title-background|none}}} }};" | {{navbar-collapsible| Ilkhanate family tree | Ilkhanate family tree }}
 
|-
 
|-
|{{unreferenced section|date=April  2015}}
+
|{{unreferenced|section|date=January 2021}}
 
|-
 
|-
 
|<div class="center">
 
|<div class="center">
Line 17: Line 17:
 
{{tree chart| | | | | | Hkh |y| Dkh | | | | | | | | | |Hkh=1<br>'''[[Hulagu Khan]]'''<br>(''b''. 1217–''d''. 1265)<br>[[Ilkhan]]<br>1256–1265 |Dkh=[[Doquz Khatun]]<br>(''d''. 1265)}}
 
{{tree chart| | | | | | Hkh |y| Dkh | | | | | | | | | |Hkh=1<br>'''[[Hulagu Khan]]'''<br>(''b''. 1217–''d''. 1265)<br>[[Ilkhan]]<br>1256–1265 |Dkh=[[Doquz Khatun]]<br>(''d''. 1265)}}
 
{{tree chart| | | |,|-|-|-|-|+|-|-|-|-|-|v|-|-|-|.| | |}}
 
{{tree chart| | | |,|-|-|-|-|+|-|-|-|-|-|v|-|-|-|.| | |}}
{{tree chart| | | Tek | | | Abq | | | | Tqa | | Mng | |Tek=3<br>'''[[Tekuder]]'''<br>(''b''. 1233–''d''. 1284)<br>[[Ilkhan]]<br>1282–1284 |Abq=2<br>'''[[Abaqa Khan]]'''<br>(''b''. 1234–''d''. 1282)<br>[[Ilkhan]]<br>1262–1282 |Tqa=Taraqai |Mng=Mengu Timur}}
+
{{tree chart| | | Tek | | | Abq | | | | Tqa | | Mng | |Tek=3<br>'''[[Tekuder]]'''<br>(''b''. 1233–''d''. 1284)<br>[[Ilkhan]]<br>1282–1284 |Abq=2<br>'''[[Abaqa Khan]]'''<br>(''b''. 1234–''d''. 1282)<br>[[Ilkhan]]<br>1265–1282 |Tqa=Taraqai |Mng=Mengu Timur}}
 
{{tree chart| | | | |,|-|-|-|^|-|.| | | |!| | | |!| | |}}
 
{{tree chart| | | | |,|-|-|-|^|-|.| | | |!| | | |!| | |}}
 
{{tree chart| | | | Arg | | | | Gkh | | Bdu | | Amj | |Arg=4<br>'''[[Arghun]]'''<br>(''b''. 1258–''d''. 1292)<br>[[Ilkhan]]<br>1284–1291 |Gkh=5<br>'''[[Gaykhatu]]'''<br>(''d''. 1295)<br>[[Ilkhan]]<br>1291–1295 |Bdu=6<br>'''[[Baydu]]'''<br>(''d''. 1295)<br>[[Ilkhan]]<br>1295 |Amj=Ambarji}}
 
{{tree chart| | | | Arg | | | | Gkh | | Bdu | | Amj | |Arg=4<br>'''[[Arghun]]'''<br>(''b''. 1258–''d''. 1292)<br>[[Ilkhan]]<br>1284–1291 |Gkh=5<br>'''[[Gaykhatu]]'''<br>(''d''. 1295)<br>[[Ilkhan]]<br>1291–1295 |Bdu=6<br>'''[[Baydu]]'''<br>(''d''. 1295)<br>[[Ilkhan]]<br>1295 |Amj=Ambarji}}

Latest revision as of 00:16, 4 January 2021

Initial visibility: currently defaults to autocollapse

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Ilkhanate family tree|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Ilkhanate family tree|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Ilkhanate family tree|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.

|align=value is also available; where value can be either right or left. The default is center.
|title-background=value is also available; where value can be either navbox or a color. The default is none, and {navbox defaults to the default navbox color.
|width=value is also available; where value can be either N [em/%/px] or auto. The default is 100%.