Difference between revisions of "Template:PS Button"

From Team Fortress Wiki
Jump to: navigation, search
m (I-ghost moved page Template:PSTemplate to Template:PS Button without leaving a redirect: this was overcomplicated)
m (why was this abstracted so much wtf)
Line 1: Line 1:
{{PSTemplate/core|{{{1}}}}}<noinclude>
+
{{#switch:{{lc:{{{1|}}}}}
 +
| cross = [[File:PS Button X.png|{{{2|}}}|link=]]
 +
| square = [[File:PS Button Square.png|{{{2|}}}|link=]]
 +
| circle = [[File:PS Button Circle.png|{{{2|}}}|link=]]
 +
| triangle = [[File:PS Button Triangle.png|{{{2|}}}|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|50px}} produces {{PS Button|cross|50px}}
:<code><nowiki>{{PSTemplate|cross}}</nowiki></code> produces {{PSTemplate|cross}}
+
</noinclude>
:<code><nowiki>{{PSTemplate|square}}</nowiki></code> produces {{PSTemplate|square}}
 
:<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.
 

Revision as of 21:27, 31 October 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|50px}} produces PS Button X.png