Template:VersionCompatibilityVersion: Difference between revisions

Jump to navigation Jump to search
Escape quotes in notes (affected e.g. Metroid: Other M)
(VersionCompatibility updates -- bar scales from 2.0 to CurrentRevision, fixed text positioning bug, fixed bar overhang bug)
(Escape quotes in notes (affected e.g. Metroid: Other M))
 
(23 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly><div  
<includeonly><!-- Tooltip --><div title="Rev: {{VersionRevision|{{{1}}}|use=title}} | Rating: {{{2}}} | Notes: {{#regex:{{{3|}}}|/"/|&quot;}}">
title="Rev: {{VersionRevision|{{{1}}}|use=title}} | Rating: {{{2}}} | Notes: {{{3|}}}"  
 
style="position:absolute;  
<!-- Bar and revision label -->
text-align:right;  
<div class="plainlinks" style="position: absolute; overflow: hidden; height:12px; border: 1px solid black; width:{{#if:{{#var:tl_vc_startrev}}|{{#expr:100-(({{VersionRevision|{{{1}}}|use=link}}-{{VersionRevision|{{#var:tl_vc_startrev}}|use=link}})/({{CurrentRevision}}-{{VersionRevision|{{#var:tl_vc_startrev}}|use=link}})*100)}}|100}}%;
height:13px;  
border-right:1px solid #000;  
margin-right:1px;
margin-top:12px;
overflow:hidden;
{{#ifexpr:{{VersionRevision|{{{1}}}|use=link}}<({{VersionRevision|2.0|use=link}}+50)
|left:14px; right:11px;
|width:{{#expr:98-(({{VersionRevision|{{{1}}}|use=link}}-{{VersionRevision|2.0|use=link}})/({{CurrentRevision}}-{{VersionRevision|2.0|use=link}})*100)}}%;
}}


background:{{#switch:{{{2}}}
background:{{#switch:{{{2}}}
|?=#000
  |*=#f83333
  |*=#f00
  |**=#fa3
  |**=#f80
  |***=#fe3
  |***=#ff0
  |****=#3db
  |****=#8f0
  |*****=#00f855}}; text-align:right; font-size:10px;"><div style="position:relative; bottom:2px; right:2px;">{{revision|{{{1}}}}}</div></div></div>{{#if:{{{3|}}}||[[Category:VersionCompatibilityVersion Template missing notes]]}}</includeonly><noinclude>{{documentation|Template:VersionCompatibility/doc}}</noinclude>
  |*****=#0f0
}};"><span style="font-size:9px; font-weight:bold; padding-right:1px; color:{{#switch:{{{2|}}}
|?=#FFF
|*|**|***|****|*****|#default=#000
}};">{{VersionRevision|{{{1}}}|use=title}}</span></div></includeonly><noinclude>{{documentation|Template:VersionCompatibility/doc}}</noinclude>

Navigation menu