Difference between revisions of "Template:Clan Campbell"

From blackwiki
Jump to navigation Jump to search
imported>TonyTheTiger
(adding {{collapsible option}} and/or {{{state}}})
imported>Frietjes
m (copyedit)
Line 1: Line 1:
 
{{Navbox
 
{{Navbox
|state = <includeonly>{{{state|autocollapse}}}</includeonly>
+
| state     = {{{state<includeonly>|autocollapse</includeonly>}}}
|titlestyle = background:#138808;color:white;
+
| name     = Clan Campbell
|name   = Clan Campbell
+
| title     = [[Clan Campbell]]
|title     = <font color=white>[[Clan Campbell]]</font>
+
| listclass = hlist
|listclass = hlist
+
 
| groupstyle = background:#355E3B;
+
| group1 = Branches
| group1= <font color=white>Branches</font>
+
| list1 =
| list1 =
 
 
* [[Clan Campbell|Campbell of Argyll]]
 
* [[Clan Campbell|Campbell of Argyll]]
* [[Earl of Breadalbane and Holland|Campbell of Breadalbane]]  
+
* [[Earl of Breadalbane and Holland|Campbell of Breadalbane]]
 
* [[Clan Campbell of Cawdor|Campbell of Cawdor]]
 
* [[Clan Campbell of Cawdor|Campbell of Cawdor]]
* [[Campbell of Glenorchy]]  
+
* [[Campbell of Glenorchy]]
* [[Campbell of Loudoun]]  
+
* [[Campbell of Loudoun]]
 
* [[Carter-Campbell of Possil|Campbell of Possil]]
 
* [[Carter-Campbell of Possil|Campbell of Possil]]
 
* [[Campbell of Strachur]]
 
* [[Campbell of Strachur]]
 
* [[Campbell of Auchinbreck]]
 
* [[Campbell of Auchinbreck]]
| group2= <font color=white>Lands</font>
+
 
| list2 =
+
| group2 = Lands
 +
| list2 =
 
* [[Inveraray]]
 
* [[Inveraray]]
 
* [[Cawdor]]
 
* [[Cawdor]]
Line 24: Line 24:
 
* [[Loudoun]]
 
* [[Loudoun]]
 
* [[Possilpark|Possil]]
 
* [[Possilpark|Possil]]
* [[Strachur]]  
+
* [[Strachur]]
| group3= <font color=white>Castles</font>
+
 
| list3 =
+
| group3 = Castles
 +
| list3 =
 
* [[Inveraray Castle]]
 
* [[Inveraray Castle]]
 
* [[Castle Campbell]]
 
* [[Castle Campbell]]
 
* [[Kilchurn Castle]]
 
* [[Kilchurn Castle]]
* [[Edinample Castle]]  
+
* [[Edinample Castle]]
 
* [[Carnasserie Castle]]
 
* [[Carnasserie Castle]]
 
* [[Saddell Castle]]
 
* [[Saddell Castle]]
Line 40: Line 41:
 
}}<noinclude>
 
}}<noinclude>
 
{{collapsible option}}
 
{{collapsible option}}
[[Category:Scotland templates]]</noinclude>
+
[[Category:Scotland templates]]
 +
</noinclude>

Revision as of 21:50, 5 April 2013

Initial visibility: currently defaults to autocollapse

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

  • |state=collapsed: {{Clan Campbell|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Clan Campbell|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Clan Campbell|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.