Difference between revisions of "Template:Dynamic navigation box with image"

From blackwiki
Jump to navigation Jump to search
imported>Nkcs
(clarify sintax)
imported>Zzyzx11
(adding a color option)
Line 1: Line 1:
 
<div class="NavFrame">
 
<div class="NavFrame">
 
<div class="NavPic">{{{IMAGE}}}</div>
 
<div class="NavPic">{{{IMAGE}}}</div>
<div class="NavHead">{{{TITLE}}}</div>
+
<div class="NavHead" style="{{ #if: {{{COLOR|}}} | background: {{{COLOR}}} | background: #ccccff }}">{{{TITLE}}}</div>
 
<div class="NavContent">
 
<div class="NavContent">
 
{{{CONTENT}}}
 
{{{CONTENT}}}
Line 13: Line 13:
 
|IMAGE=[[Image:|35px]]
 
|IMAGE=[[Image:|35px]]
 
|TITLE=[[]]
 
|TITLE=[[]]
 +
|COLOR=
 
|CONTENT=
 
|CONTENT=
 
}}</pre>
 
}}</pre>
Line 22: Line 23:
 
|IMAGE=[[Image:Waadt.png|35px|Coat of Arms of the Canton of Vaud]]
 
|IMAGE=[[Image:Waadt.png|35px|Coat of Arms of the Canton of Vaud]]
 
|TITLE=[[Municipalities of the canton of Vaud|Municipalities]] in the [[district of Vevey]]
 
|TITLE=[[Municipalities of the canton of Vaud|Municipalities]] in the [[district of Vevey]]
 +
|COLOR=#efefef
 
|CONTENT=[[Blonay]]&nbsp;&#124; [[Chardonne]]&nbsp;&#124; [[Corseaux]]&nbsp;&#124; [[Corsier-sur-Vevey]]&nbsp;&#124; [[Jongny]]&nbsp;&#124; [[La Tour-de-Peilz]]&nbsp;&#124; [[Montreux]]&nbsp;&#124; [[Saint-Légier-La Chiésaz]]&nbsp;&#124; [[Vevey]]&nbsp;&#124; [[Veytaux]]  
 
|CONTENT=[[Blonay]]&nbsp;&#124; [[Chardonne]]&nbsp;&#124; [[Corseaux]]&nbsp;&#124; [[Corsier-sur-Vevey]]&nbsp;&#124; [[Jongny]]&nbsp;&#124; [[La Tour-de-Peilz]]&nbsp;&#124; [[Montreux]]&nbsp;&#124; [[Saint-Légier-La Chiésaz]]&nbsp;&#124; [[Vevey]]&nbsp;&#124; [[Veytaux]]  
 
}}</pre>
 
}}</pre>

Revision as of 16:38, 13 June 2006

Empty syntax

{{Dynamic navigation box with image
|IMAGE=[[Image:|35px]]
|TITLE=[[]]
|COLOR=
|CONTENT=
}}

Sample use

Adapted from Template:Municipalities of the district of Vevey:

{{Dynamic navigation box with image
|IMAGE=[[Image:Waadt.png|35px|Coat of Arms of the Canton of Vaud]]
|TITLE=[[Municipalities of the canton of Vaud|Municipalities]] in the [[district of Vevey]]
|COLOR=#efefef
|CONTENT=[[Blonay]] | [[Chardonne]] | [[Corseaux]] | [[Corsier-sur-Vevey]] | [[Jongny]] | [[La Tour-de-Peilz]] | [[Montreux]] | [[Saint-Légier-La Chiésaz]] | [[Vevey]] | [[Veytaux]] 
}}


See also

br:Patrom:Taolenn verdeiñ skeudennet ca:Template:Navegació dinàmica amb imatge de:Vorlage:Navigationsleiste mit Bild es:Plantilla:Navegación dinámica con imágen pl:Szablon:Uniwersalny szablon nawigacyjny ro:Format:Navigaţie dinamică cu imagine