Difference between revisions of "Template:PS Button"

From Team Fortress Wiki
Jump to: navigation, search
(it workssssssss)
m
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{PSTemplate/core|{{{1}}}}}<noinclude>
+
{{#switch:{{lc:{{{1|}}}}}
 +
| cross = [[File:PS Button X.png{{#if:{{{2|}}}|{{!}}{{{2|}}}|}}|link={{{link|}}}]]
 +
| square = [[File:PS Button Square.png{{#if:{{{2|}}}|{{!}}{{{2|}}}|}}|link={{{link|}}}]]
 +
| circle = [[File:PS Button Circle.png{{#if:{{{2|}}}|{{!}}{{{2|}}}|}}|link={{{link|}}}]]
 +
| triangle = [[File:PS Button Triangle.png{{#if:{{{2|}}}|{{!}}{{{2|}}}|}}|link={{{link|}}}]]
 +
}}<noinclude>
  
 
{{Doc begin}}
 
{{Doc begin}}
This is the {{Tl|PSTemplate}} template, which can be used to show correct PlayStation buttons by changing template's parameters by using only one single template.
+
== Usage ==
 +
{| class="wikitable grid"
 +
! class="header" | Input
 +
! class="header" | Produces
 +
|-
 +
| cross || align="center" | {{PS Button|cross}}
 +
|-
 +
| square || align="center" | {{PS Button|square}}
 +
|-
 +
| circle || align="center" | {{PS Button|circle}}
 +
|-
 +
| triangle || align="center" | {{PS Button|triangle}}
 +
|-
 +
|}
  
__TOC__
 
== Example ==
 
  
Type the desired key into the first parameter:
+
'''Optional:''' Specify the size as the second parameter, e.g. {{tlx|PS Button|cross|20px}} produces {{PS Button|cross|20px}}
:<code><nowiki>{{PSTemplate|cross}}</nowiki></code> produces {{PSTemplate|cross}}
+
[[Category:Templates]]
:<code><nowiki>{{PSTemplate|square}}</nowiki></code> produces {{PSTemplate|square}}
+
</noinclude>
:<code><nowiki>{{PSTemplate|circle}}</nowiki></code> produces {{PSTemplate|circle}}
 
:<code><nowiki>{{PSTemplate|triangle}}</nowiki></code> produces {{PSTemplate|triangle}}
 
 
 
== Technical details ==
 
 
 
This template uses the sub-template {{tl|PSTemplate/core}} that holds the images for PlayStation buttons.
 

Latest revision as of 07:55, 19 November 2013


Documentation for PS Button

Usage

Input Produces
cross PS Button X.png
square PS Button Square.png
circle PS Button Circle.png
triangle PS Button Triangle.png


Optional: Specify the size as the second parameter, e.g. {{PS Button|cross|20px}} produces PS Button X.png