Difference between revisions of "Template:Menu Template"

From PSU Cyril Wiki
Jump to: navigation, search
m (less excessive whitespace; I have the feeling this stuff is stretching the front page.)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
 
{| align="center" style="background-color: #{{{color1|}}}; border: solid 2px #{{{color2|}}}; border-spacing:0; padding:5px;"
 
{| align="center" style="background-color: #{{{color1|}}}; border: solid 2px #{{{color2|}}}; border-spacing:0; padding:5px;"
| 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|}}}'''}}
 
|-
 
|-
 
|
 
|
Line 67: Line 67:
 
{{#if:{{{30|}}}|<nowiki> | </nowiki>{{{30|}}}|}}
 
{{#if:{{{30|}}}|<nowiki> | </nowiki>{{{30|}}}|}}
 
[[Category: {{{name|}}}]]
 
[[Category: {{{name|}}}]]
}}</small>|}</includeonly><noinclude>
+
}}</small>
 
+
|}</includeonly><noinclude>
 
== Menu Example Horizontal ==
 
== Menu Example Horizontal ==
 
Using the follow code:
 
Using the follow code:
Line 121: Line 121:
 
}}
 
}}
  
[[Category: Template Templates]]
+
[[Category: Template Templates|{{PAGENAME}}]]
[[Category: Templates]]
+
[[Category:Templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 06:27, 22 December 2011

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