Template:Playable: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
mNo edit summary
m ([Table Mode] Enabled 3D effects. Dropped support for custom left/right alignment)
Line 1: Line 1:
{{#if:{{{1|}}}|<!--
{{#if:{{{1|}}}<!--


if parameter 1 exists
-->|<!-- if parameter 1 exists (INLINE MODE) -->
-->{{#switch:{{{1|}}}<!--
<span style="background:#9fdf9f; box-shadow:inset 2px 4px 6px 0px rgba(255,255,255,0.5), inset -2px -4px 6px 0px rgba(0,0,0,0.15), 1px 1px 2px 1px #cccccc; outline:3px outset rgba(255,255,255,0.2); outline-offset:-3px; color:#0050b0; display:inline-block; width:8.5em; line-height:1.4em; text-align:center; font-weight:bold; border-radius:0.4em; border:1px outset rgba(127,127,127,0.5);" title="{{{1|}}}">Playable</span><!--


switch cases: left, right -->
-->|<!-- else (TABLE MODE) -->
| left
class="nowrap" style="background:#9fdf9f; box-shadow:inset 2px 4px 6px 0px rgba(255,255,255,0.5), inset -2px -4px 6px 0px rgba(0,0,0,0.15); outline:3px outset rgba(255,255,255,0.2); outline-offset:-3px; text-align:center; font-weight:bold; color:#0050b0;" data-sort-value="1" title="{{Compatibility Tags Descriptions|playableShort}}" {{!}} Playable<!--
| right = class="nowrap" style="background:#9fdf9f; box-shadow:inset 2px 4px 6px 0px rgba(255,255,255,0.5), inset -2px -4px 6px 0px rgba(0,0,0,0.15); outline:3px outset rgba(255,255,255,0.2); outline-offset:-3px; text-align:{{{1|}}}; font-weight:bold; color:#0050b0;" data-sort-value="1" title="{{Compatibility Tags Descriptions|playableShort}}" {{!}} Playable<!--
 
switch case: default (different than left, right) -->
| #default = <span style="background:#9fdf9f; box-shadow:inset 2px 4px 6px 0px rgba(255,255,255,0.5), inset -2px -4px 6px 0px rgba(0,0,0,0.15), 1px 1px 2px 1px #cccccc; outline:3px outset rgba(255,255,255,0.2); outline-offset:-3px; color:#0050b0; display:inline-block; width:8.5em; line-height:1.4em; text-align:center; font-weight:bold; border-radius:0.4em; border:1px outset rgba(127,127,127,0.5);" title="{{{1|}}}">Playable</span><!--
 
-->}}<!-- switch ends
 
else (parameter 1 doesnt exists)-->
| class="nowrap" style="background:#90ff90; color:#0050b0; text-align:center; font-weight:bold;" data-sort-value="1" title="{{Compatibility Tags Descriptions|playableShort}}" {{!}} '''Playable'''<!--


-->}}<!-- if ends --><noinclude>
-->}}<!-- if ends --><noinclude>
Line 22: Line 13:
| style="border-top:hidden; padding:0px; width:150px;" | || style="border-top:hidden; padding:0px; width:350px;" |  
| style="border-top:hidden; padding:0px; width:150px;" | || style="border-top:hidden; padding:0px; width:350px;" |  
|-
|-
| {{playable}} || '''<nowiki>{{playable}}</nowiki>''' Inside a wikitable, default alignment (center)
| {{playable}} || '''<nowiki>{{playable}}</nowiki>''' Inside a table
|-
| {{playable|left}} || '''<nowiki>{{playable|left}}</nowiki>''' Inside a wikitable, aligned to left
|-
| {{playable|right}}<br><br><br> || '''<nowiki>{{playable|right}}</nowiki>''' Inside a wikitable, aligned to right
|}
{| style="float:left; border:hidden;"
| {{playable|text}} || '''<nowiki>{{playable|text}}</nowiki>''' Inline with default font size
|-
|-
| <span style="font-size:1.2em">{{playable|text}}</span> || '''<nowiki><span style="font-size:1.2em">{{playable|text}}</span></nowiki>''' Inline with bigger font size
| {{playable|text}} || '''<nowiki>{{playable|text}}</nowiki>''' Inline
|}
|}



Revision as of 16:13, 11 October 2021

class="nowrap" style="background:#9fdf9f; box-shadow:inset 2px 4px 6px 0px rgba(255,255,255,0.5), inset -2px -4px 6px 0px rgba(0,0,0,0.15); outline:3px outset rgba(255,255,255,0.2); outline-offset:-3px; text-align:center; font-weight:bold; color:#0050b0;" data-sort-value="1" title="Template:Compatibility Tags Descriptions" | Playable

Examples

class="nowrap" style="background:#9fdf9f; box-shadow:inset 2px 4px 6px 0px rgba(255,255,255,0.5), inset -2px -4px 6px 0px rgba(0,0,0,0.15); outline:3px outset rgba(255,255,255,0.2); outline-offset:-3px; text-align:center; font-weight:bold; color:#0050b0;" data-sort-value="1" title="Template:Compatibility Tags Descriptions" | Playable {{playable}} Inside a table
Playable {{playable|text}} Inline

Notes

    • The colors of PS2 Classic, Playable, Minor Issues represents a "good compatibility"
      • The PS2 Classic is the official style composed by a white logo/text on top of a blue background
      • The font color of Playable and Minor Issues is taken from the background color of PS2 Classic