Difference between revisions of "Template:Menu Template"

From PSU Cyril Wiki
Jump to: navigation, search
m (Maybe this'd work)
m (xhtml compliance fix)
Line 3: Line 3:
 
| style="background-color: #{{{color3|}}}; border: solid 2px #{{{color2|}}}; padding:5px; text-align:center"| {{#if:{{{link|}}}|'''[[{{{name|}}}]]'''|'''{{{name|}}}'''}}
 
| style="background-color: #{{{color3|}}}; border: solid 2px #{{{color2|}}}; padding:5px; text-align:center"| {{#if:{{{link|}}}|'''[[{{{name|}}}]]'''|'''{{{name|}}}'''}}
 
|-
 
|-
| <small>
+
|
{{{1|}}}{{#if:{{{v|}}}|
+
<small>
 +
{{{1|}}}
 +
{{#if:{{{v|}}}|
 
{{#if:{{{2|}}}|<br>{{{2|}}}|}}
 
{{#if:{{{2|}}}|<br>{{{2|}}}|}}
 
{{#if:{{{3|}}}|<br>{{{3|}}}|}}
 
{{#if:{{{3|}}}|<br>{{{3|}}}|}}
Line 66: Line 68:
 
[[Category: {{{name|}}}]]
 
[[Category: {{{name|}}}]]
 
}}
 
}}
 +
</small>
 
|}
 
|}
 
</includeonly>
 
</includeonly>

Revision as of 15:41, 11 December 2006


Menu Example Horizontal

Using the follow code:

{{Menu Template
|name=Test_1
|color1=FBB
|color2=EAA
|color3=D99
|v=
|link=yes
|1=omg
|2=liek
|3=wtf
}}

The following result was created:

Test_1

omg | liek | wtf

Menu Example Vertical

Using the follow code:

{{Menu Template
|name=Test_2
|color1=BFB
|color2=AEA
|color3=9D9
|v=yes
|link=
|1=Fantashii
|2=Sutaa
|3=Yuunibaasu
}}

The following result was created:

Test_2

Fantashii
Sutaa
Yuunibaasu