The wiki is lacking in content. You can help by creating a new article. See the to do list for more ways you can help.
Difference between revisions of "Template:Button"
From Final Fantasy Wiki
Jump to navigationJump to search
m (fixed broken link) |
(fixed buttons) |
||
Line 1: | Line 1: | ||
<span style=cursor:help>{{#switch:{{lc:{{{1}}}}}-{{lc:{{{2}}}}} | <span style=cursor:help>{{#switch:{{lc:{{{1}}}}}-{{lc:{{{2}}}}} | ||
|ps-circle=<span title="Circle button">[[File:PS Circle.png|{{{size| | |ps-circle=<span title="Circle button">[[File:PS Circle.png|{{{size|x16px}}}|link=|Circle button]]</span> | ||
|ps-x=<span title="X button">[[File:PS X.png|{{{size| | |ps-x=<span title="X button">[[File:PS X.png|{{{size|x16px}}}|link=|X button]]</span> | ||
|ps-square=<span title="Square button">[[File:PS Square.png|{{{size| | |ps-square=<span title="Square button">[[File:PS Square.png|{{{size|x16px}}}|link=|Square button]]</span> | ||
|ps-triangle=<span title="Triangle button">[[File:PS Triangle.png|{{{size| | |ps-triangle=<span title="Triangle button">[[File:PS Triangle.png|{{{size|x16px}}}|link=|Triangle button]]</span> | ||
|ps-start=<span title="Start button">[[File:PS Start.png|{{{size|x21px}}}|link=|Start button]]</span> | |||
|#default={{#switch:{{lc:{{{1}}}}} | |#default={{#switch:{{lc:{{{1}}}}} | ||
|long=<span class=defaultbutton style="font-size:{{{size|smaller}}};background:#eee" title="{{{title|{{{2|}}} button}}}">{{{2|}}}</span> | |long=<span class=defaultbutton style="font-size:{{{size|smaller}}};background:#eee" title="{{{title|{{{2|}}} button}}}">{{{2|}}}</span> | ||
|{{#if:{{{1|}}}|{{#switch:{{{2|{{lc:{{{1}}}}}}}} | |{{#if:{{{1|}}}|{{#switch:{{{2|{{lc:{{{1}}}}}}}} | ||
|a=<span title="A button">[[File:A button.png|{{{size| | |a=<span title="A button">[[File:A button.png|{{{size|x16px}}}|link=|A button]]</span> | ||
|b=<span title="B button">[[File:B button.png|{{{size| | |b=<span title="B button">[[File:B button.png|{{{size|x16px}}}|link=|B button]]</span> | ||
|x=<span title="X button">[[File:X button.png|{{{size| | |x=<span title="X button">[[File:X button.png|{{{size|x16px}}}|link=|X button]]</span> | ||
|y=<span title="Y button">[[File:Y button.png|{{{size| | |y=<span title="Y button">[[File:Y button.png|{{{size|x16px}}}|link=|Y button]]</span> | ||
|#default=<span class=button title="{{{2|{{{1}}}}}} button" style="padding:0px 4px">{{{2|{{{1}}}}}}</span> | |#default=<span class=button title="{{{2|{{{1}}}}}} button" style="padding:0px 4px">{{{2|{{{1}}}}}}</span> | ||
}}}}}}}}</span><noinclude> | }}}}}}}}</span><noinclude> | ||
Line 42: | Line 43: | ||
|{{button|ps|triangle}} | |{{button|ps|triangle}} | ||
|[[:File:PS Triangle.png|[link]]] | |[[:File:PS Triangle.png|[link]]] | ||
|- | |||
|<code><nowiki>{{button|ps|start}}</nowiki></code> | |||
|{{button|ps|start}} | |||
|[[:File:PS Start.png|[link]]] | |||
|- | |- | ||
!colspan=3|Default | !colspan=3|Default |
Revision as of 00:43, May 20, 2020
Purpose
A template allowing images for a controller button to be added into an article. Original template was taken from Super Mario Wiki and modified.
The following paramaters are currently supported:
Code | Button | Image |
---|---|---|
PlayStation consoles | ||
{{button|ps|circle}}
|
[link] | |
{{button|ps|x}}
|
[link] | |
{{button|ps|square}}
|
[link] | |
{{button|ps|triangle}}
|
[link] | |
{{button|ps|start}}
|
[link] | |
Default | ||
{{button|A}}
|
[link] | |
{{button|B}}
|
[link] | |
{{button|X}}
|
[link] | |
{{button|Y}}
|
[link] |