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 #bbbbbb; border-radius:0.4em; border:2px outset #0070D0;" 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/tests | ||
{{ | |||
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> | |||
{| class="wikitable" style="font-size:85%; width:100%;" | |||
! style="width:200px;" | {{ps2classic|Your custom text}} !! inline inside a default wikitable <nowiki>{{ps2classic|Your custom text}}</nowiki> | |||
|- | |||
| {{ps2classic}} || inside a default wikitable <nowiki>{{ps2classic}}</nowiki> | |||
|- | |||
| {{ps2classic|left}} || inside a default wikitable <nowiki>{{ps2classic|left}}</nowiki> | |||
|- | |||
| {{ps2classic|center}} || inside a default wikitable <nowiki>{{ps2classic|center}}</nowiki> | |||
|- | |||
| {{ps2classic|right}} || inside a default wikitable <nowiki>{{ps2classic|right}}</nowiki> | |||
|} | |||
{| class="wikitable" style="border-collapse:separate; padding-left:0px; padding-right:0px; border-spacing:0px; font-size:85%; width:100%;" | |||
! style="width:200px;" | Name || Notes | |||
|- | |||
| {{ps2classic}} || inside a custom wikitable <nowiki>{{ps2classic}}</nowiki> | |||
|- | |||
| {{ps2classic|left}} || inside a custom wikitable <nowiki>{{ps2classic|left}}</nowiki> | |||
|- | |||
| {{ps2classic|center}} || inside a custom wikitable <nowiki>{{ps2classic|center}}</nowiki> | |||
|- | |||
| {{ps2classic|right}} || inside a custom wikitable <nowiki>{{ps2classic|right}}</nowiki> | |||
|} | |||
<span style="font-size:75%;">{{ps2classic| }}</span> | |||
<span style="font-size:100%;">{{ps2classic| }}</span> | |||
<span style="font-size:125%;">{{ps2classic| }}</span> | |||
<span style="font-size:150%;">{{ps2classic| }}</span> | |||
<span style="font-size:175%;">{{ps2classic| }}</span> | |||
<span style="font-size:200%;">{{ps2classic| }}</span> | |||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |