Editing Template:Ps2classic
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{#if:{{{1|}}}<!-- | {{#if:{{{1|}}}|<!-- | ||
-->|<!-- | if parameter 1 exists | ||
-->{{#switch:{{{1|}}}<!-- | |||
--> | switch cases: left, center, right --> | ||
| left | |||
| center | |||
| right = class="nowrap" style="background:#7777ff; color:#ffffff; text-align:{{{1|}}}; padding-top:0px; padding-bottom:0px; border:2px outset #7777ff;" data-sort-value="1" {{!}} <abbr title="The Game was released for this region as a official PS2 Classic at the PlayStation Store">[[Image:Store_logo.png|x16px|link=]]'''PS2 Classic'''</abbr><!-- | |||
-->|<!-- | switch case: default (different than left, center, right) --> | ||
| #default = <span class="nowrap" style="background:#7777ff; color:#ffffff; border:2px outset #7777ff;"><abbr title="{{{1|}}}">[[Image:Store_logo.png|x16px|link=]]'''PS2 Classic'''</abbr></span><!-- | |||
--> | -->}}<!-- switch ends | ||
-->style=" | |||
else (parameter 1 doesnt exists)--> | |||
|class="nowrap" style="background:#7777ff; color:#ffffff; text-align:center; padding-top:0px; padding-bottom:0px; border:2px outset #7777ff;" data-sort-value="1" {{!}} <abbr title="The Game was released for this region as a official PS2 Classic at the PlayStation Store">[[Image:Store_logo.png|x16px|link=]]'''PS2 Classic'''</abbr><!-- | |||
-->}}<!-- if ends --><noinclude> | -->}}<!-- if ends --><noinclude> | ||
== | |||
{{ | *Examples/tests | ||
{{ | {| class="wikitable" style="font-size:85%; width:100%;" | ||
! style="width:200px;" | {{ps2classic|Your custom text}} | |||
| inline inside a wikitable <nowiki>{{ps2classic|Your custom text}}</nowiki> | |||
|- | |||
| {{ps2classic}} || inside a wikitable <nowiki>{{ps2classic}}</nowiki> | |||
|- | |||
| {{ps2classic|left}} || inside a wikitable <nowiki>{{ps2classic|left}}</nowiki> | |||
|- | |||
| {{ps2classic|center}} || inside a wikitable <nowiki>{{ps2classic|center}}</nowiki> | |||
|- | |||
| {{ps2classic|right}} || inside a wikitable <nowiki>{{ps2classic|right}}</nowiki> | |||
|} | |||
Inline outside of tables {{ps2classic|The custom hidden text feature is intended to be used only inline, you can write whatever you want in it}} <nowiki>{{ps2classic|Your custom text}}</nowiki> | |||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |