Template:VersionCompatibilityVersion: Difference between revisions

Jump to navigation Jump to search
m
standardize variable names
No edit summary
m (standardize variable names)
(42 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>
<includeonly><!-- Tooltip --><div title="Rev: {{VersionRevision|{{{1}}}|use=title}} | Rating: {{{2}}} | Notes: {{{3|}}}">
==About==
This template is part of a set that enable a graphic display of Dolphin version compatibility. An example appears below...


<nowiki>{{VersionCompatibility}}</nowiki>
<!-- Bar and revision label -->
<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}}%;


<nowiki>{{VersionCompatibilityVersion|5699|*}}</nowiki>
background:{{#switch:{{{2}}}
 
|*=#f83333
<nowiki>{{VersionCompatibilityVersion|6461|****}}</nowiki>
|**=#fa3
 
|***=#fe3
<nowiki>{{VersionCompatibilityClose}}</nowiki>
|****=#3db
 
|*****=#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>
 
{{VersionCompatibility}}
{{VersionCompatibilityVersion|5699|*}}
{{VersionCompatibilityVersion|6461|****}}
{{VersionCompatibilityClose}}
 
==Notes==
* Two parameters are required, the first is the revision a compatibility change occurred on. The second the compatibility rating achieved with that revision.
* ? can be specified as the rating to indicate unknown statuses
* There is a residual issue with the widths of low revisions (0-1000). These are set to 100% width or close to but for some reason still exceed the width of their container.
 
</noinclude><includeonly><div style="position:absolute;text-align: right;height:12px;border-right:1px solid #000;margin-right:-1px;margin-top:12px;overflow:hidden;width:{{#expr:100-({{#ifeq:{{{1}}}|2.0|5350|{{{1}}}}}/{{CurrentRevision}}*100)}}%;background:{{#ifeq:{{{2}}}|?|#00f|}}{{#ifeq:{{{2}}}|*|#f00|}}{{#ifeq:{{{2}}}|**|#f80|}}{{#ifeq:{{{2}}}|***|#ff0|}}{{#ifeq:{{{2}}}|****|#8f0|}}{{#ifeq:{{{2}}}|*****|#0f0|}}"><span style="font-size:9px;font-weight:bold;padding-right:1px">{{#ifeq:{{{1}}}|2.0|2.0 (RC)|{{{1}}}}}</span></div></includeonly>
6,906

edits

Navigation menu