Template:Available: 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 class="nowrap" style="background:#d8d8d8; box-shadow:inset 2px 4px 6px 0px rgba(255,255,255,0.3), inset -2px -4px 6px 0px rgba(0,0,0,0.2), 1px 1px 2px 1px #cccccc; outline:3px outset rgba(255,255,255,0.2); outline-offset:-3px; color:#666666; 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|}}}">Available<span style="font-size:0.65em; vertical-align:0.1em;">(untested)</span></span><!--


switch cases: left, right -->
-->|<!-- else (TABLE MODE) -->
| left
class="nowrap" style="background:#d8d8d8; outline:2px dotted #ffffff; outline-offset:-3px; text-align:center; font-weight:bold; line-height:0.5em; color:#666666;" data-sort-value="8" title="{{Compatibility Tags Descriptions|availableShort}}" {{!}} <span style="display:inline-block;">Available</span><br><span style="display:inline-block; padding-top:3px;"><small>(but&nbsp;untested)</small></span><!--
| right = class="nowrap" style="background:#d8d8d8; outline:2px dotted #ffffff; outline-offset:-3px; text-align:{{{1|}}}; font-weight:bold; line-height:0.5em; color:#666666;" data-sort-value="8" title="{{Compatibility Tags Descriptions|availableShort}}" {{!}} <span style="display:inline-block;">Available</span><br><span style="display:inline-block; padding-top:3px;"><small>(but&nbsp;untested)</small></span><!--
 
switch case: default (different than left, right) -->
| #default = <span class="nowrap" style="background:#d8d8d8; box-shadow:inset 2px 4px 6px 0px rgba(255,255,255,0.3), inset -2px -4px 6px 0px rgba(0,0,0,0.2), 1px 1px 2px 1px #cccccc; outline:3px outset rgba(255,255,255,0.2); outline-offset:-3px; color:#666666; 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|}}}">Available<span style="font-size:0.65em; vertical-align:0.1em;">(untested)</span></span><!--
-->}}<!-- switch ends
 
else (parameter 1 doesnt exists)-->
| class="nowrap" style="background:#d8d8d8; color:#666666; text-align:center; font-weight:bold; line-height:0.5em;" data-sort-value="8" title="{{Compatibility Tags Descriptions|availableShort}}" {{!}} <span style="display:inline-block;">Available</span><br><span style="display:inline-block; padding-top:3px;"><small>(but&nbsp;untested)</small></span><!--


-->}}<!-- if ends --><noinclude>
-->}}<!-- if ends --><noinclude>
Line 23: Line 15:
| {{available}} || '''<nowiki>{{available}}</nowiki>''' Inside a table, default alignment
| {{available}} || '''<nowiki>{{available}}</nowiki>''' Inside a table, default alignment
|-
|-
| {{available|left}} || '''<nowiki>{{available|left}}</nowiki>''' Inside a table, left alignment
| {{available|text}} || '''<nowiki>{{available|text}}</nowiki>''' Inline
|-
| {{available|right}} || '''<nowiki>{{available|right}}</nowiki>''' Inside a table, right alignment
|}
{| style="float:left; border:hidden;"
| {{available|text}} || '''<nowiki>{{available|text}}</nowiki>''' Inline, default font size
|-
| <span style="font-size:1.2em">{{available|text}}</span> || '''<nowiki><span style="font-size:1.2em">{{available|text}}</span></nowiki>''' Inline, bigger font size
|}
|}



Revision as of 16:37, 11 October 2021

class="nowrap" style="background:#d8d8d8; outline:2px dotted #ffffff; outline-offset:-3px; text-align:center; font-weight:bold; line-height:0.5em; color:#666666;" data-sort-value="8" title="Template:Compatibility Tags Descriptions" | Available
(but untested)

Examples

class="nowrap" style="background:#d8d8d8; outline:2px dotted #ffffff; outline-offset:-3px; text-align:center; font-weight:bold; line-height:0.5em; color:#666666;" data-sort-value="8" title="Template:Compatibility Tags Descriptions" | Available
(but untested)
{{available}} Inside a table, default alignment
Available(untested) {{available|text}} Inline

Notes

    • The colors of Available(untested) and Not Available represents a "undefined compatibility" and has been choosen following some rules:
      • Are 3 colors in total (2 background colors, and 1 font color common for both) in grey tones
      • The background color of Not Available is darker than Available(untested) because is considered the worst compatibility
      • The font color needs to preserve the readability when is displayed on top of both backgrounds, so is darkest than the backgrounds