Template:Ps2classic: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
m (Table mode: removed border effects)
(Now all this settings are loaded from class="compatibility-tag")
 
(93 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#if:{{{1|}}}|<!--
{{#if:{{{1|}}}<!--


if parameter 1 exists
-->|<!-- if parameter 1 exists (INLINE MODE)
-->{{#switch:{{{1|}}}<!--


switch cases: left, center, right -->
--><span <!--
| left
  -->class="compatibility-tag"<!--
| center
  -->style="<!--
| right = class="nowrap" style="background:#0070D1; color:#ffffff; text-align:{{{1|}}};" data-sort-value="0" title="The Game was released for this region as a official PS2 Classic at the PlayStation Store" {{!}} [[Image:Store_logo_mini.png|x16px|link=]]'''&nbsp;PS2&nbsp;Classic'''<!--
      -->background:#08e;<!--
      -->color:#fff;<!--
      -->display:inline-block;<!-- container
      -->width:8.4em;<!-- container width, dependant of font size
      -->line-height:1.3em;<!-- container height, dependant of font size
      -->border-radius:0.4em;<!-- container radius, dependant of font size
      -->box-shadow:<!--
        -->2px 4px 6px hsla(0,0%,99%,.3)inset,<!-- internal white shadow
        -->-2px -4px 6px rgba(0,0,0,.3)inset,<!-- internal black shadow
        -->1px 1px 2px rgba(0,0,0,.4);<!-- external black shadow
      -->border:<!--
        -->1px rgba(127,127,127,.5)outset<!-- container grey border
  -->"<!--
  -->title="{{tagtexts|ps2classic}}"<!--
-->><!--
  -->PS2 Classic<!--
--></span><!--


switch case: default (different than left, center, right) -->
-->|<!-- else (TABLE MODE)
| #default = <span class="nowrap" style="background:#0070D1; 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 #0070D1;" title="{{{1|}}}">[[Image:Store_logo_mini.png|x16px|link=]]&nbsp;PS2&nbsp;Classic</span><!--


-->}}<!-- switch ends
-->class="compatibility-tag"<!--
 
-->style="<!--
else (parameter 1 doesnt exists)-->
  -->background:#08e;<!--
| class="nowrap" style="background:#0070D1; color:#ffffff; text-align:center;" data-sort-value="0" title="The Game was released for this region as a official PS2 Classic at the PlayStation Store" {{!}} [[Image:Store_logo_mini.png|x16px|link=]]'''&nbsp;PS2&nbsp;Classic'''<!--
  -->color:#fff;<!--
  -->box-shadow:<!--
      -->2px 4px 6px hsla(0,0%,99%,.3)inset,<!-- internal white shadow
      -->-2px -4px 6px rgba(0,0,0,.3)inset<!-- internal black shadow
-->"<!--
-->data-sort-value="0"<!--
-->title="{{tagtexts|ps2classic}}"<!--
-->{{!}}<!--
-->PS2 Classic<!--


-->}}<!-- if ends --><noinclude>
-->}}<!-- if ends --><noinclude>


 
== Examples ==
*Examples/tests
{{compatibility tags syntax}}
 
{{compatibility tags colorset}}
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|&nbsp;}}</span>
<span style="font-size:100%;">{{ps2classic|&nbsp;}}</span>
<span style="font-size:125%;">{{ps2classic|&nbsp;}}</span>
<span style="font-size:150%;">{{ps2classic|&nbsp;}}</span>
<span style="font-size:175%;">{{ps2classic|&nbsp;}}</span>
<span style="font-size:200%;">{{ps2classic|&nbsp;}}</span>


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 13:19, 3 July 2023

class="compatibility-tag"style="background:#08e;color:#fff;box-shadow:2px 4px 6px hsla(0,0%,99%,.3)inset,-2px -4px 6px rgba(0,0,0,.3)inset"data-sort-value="0"title="Released for the PS3 at the PlayStation Store, the compatibility is certified by Sony."|PS2 Classic

Examples[edit source]

Compatibility tags colorset
  • GOOD compatibility Tags: PSone Classic  PS2 Classic  Playable  Minor Issues
    • Colors
      • The colors of {{ps1classic}} and {{ps2classic}} are inspired by the official style used in PSN store, PlayStation console boxes, etc..., white text/logo on top of a blue background
      • The font color of {{playable}} and {{minorissues}} is derived from the background color of {{ps1classic}} and {{ps2classic}}
    • 3D effects
      • Inline Mode: "bump", common for all tags
      • Table Mode: "bump"
  • BAD compatibility Tags: Major Issues  Unplayable
    • Colors
      • Backgrounds in orange/red tones
      • Shared font color in a red tone darker than the backgrounds
    • 3D effects
      • Inline Mode: "bump", common for all tags
      • Table Mode: "hollow"
  • UNDEFINED compatibility Tags: Available  Not Available
    • Colors
      • Backgrounds in gray tones, {{notavailable}} have the brighter background color because represents the worst compatibility
      • Shared font color in a gray tone darker than the backgrounds
    • 3D effects
      • Inline Mode: "bump", common for all tags
      • Table Mode: "flat"