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:#0070D0; color:#ffffff; text-align:{{{1|}}};" data-sort-value="0" title="{{Compatibility Tags Descriptions|ps2classicShort}}" {{!}} [[Image:Store_logo_mini.png|x16px|link=]]''' PS2 Classic'''<!-- | |||
-->|< | switch case: default (different than left, center, right) --> | ||
| #default = <span class="nowrap" style="background-image:linear-gradient(#0090f0 0%, #0070d0 33%, #0070d0 66%, #0050b0 100%); color:#ffffff; display:inline-block; width:8.5em; line-height:1.2em; text-align:center; box-shadow: 1px 1px 2px 1px #cccccc; border-radius:0.4em; border:1px outset #0090f0;" title="{{{1|}}}">[[Image:Store_logo_mini.png|x16px|link=]] PS2 Classic</span><!-- | |||
--> | -->}}<!-- switch ends | ||
-->style=" | |||
else (parameter 1 doesnt exists)--> | |||
| class="nowrap" style="background:#0070D0; color:#ffffff; text-align:center;" data-sort-value="0" title="{{Compatibility Tags Descriptions|ps2classicShort}}" {{!}} [[Image:Store_logo_mini.png|x16px|link=]]''' PS2 Classic'''<!-- | |||
-->}}<!-- if ends --><noinclude> | -->}}<!-- if ends --><noinclude> | ||
== Examples == | == Examples == | ||
{{ | |||
{{ | {| class="wikitable" style="font-size:85%" | ||
|+ class="wikitable" style="font-size:85%" | |||
| style="border-top:hidden; padding:0px; width:150px;" | || style="border-top:hidden; padding:0px;" | | |||
|- | |||
| {{ps2classic}} || '''<nowiki>{{ps2classic}}</nowiki>''' Inside a wikitable, default alignment (center) | |||
|- | |||
| {{ps2classic|left}} || '''<nowiki>{{ps2classic|left}}</nowiki>''' Inside a wikitable, aligned to left | |||
|- | |||
| {{ps2classic|center}} || '''<nowiki>{{ps2classic|center}}</nowiki>''' Inside a wikitable, aligned to center | |||
|- | |||
| {{ps2classic|right}} || '''<nowiki>{{ps2classic|right}}</nowiki>''' Inside a wikitable, aligned to right | |||
|} | |||
{| style="border:hidden;" | |||
| {{ps2classic|text}} || '''<nowiki>{{ps2classic|text}}</nowiki>''' Inline with default font size | |||
|- | |||
| <span style="font-size:1.2em">{{ps2classic|text}}</span> || '''<nowiki><span style="font-size:1.2em">{{ps2classic|text}}</span></nowiki>''' Inline with bigger font size | |||
|} | |||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |