Template:VersionCompatibilityVersion: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
==About==
This template is part of a set that enable a graphic display of Dolphin version compatibility. An example appears below...
<nowiki>{{VersionCompatibility}}</nowiki>
<nowiki>{{VersionCompatibilityVersion|5699|*}}</nowiki>
<nowiki>{{VersionCompatibilityVersion|6461|****}}</nowiki>
<nowiki>{{VersionCompatibilityClose}}</nowiki>
{{VersionCompatibility}}
{{VersionCompatibilityVersion|5699|*}}
{{VersionCompatibilityVersion|6461|****}}
{{VersionCompatibilityClose}}
==Notes==
* Two parameters are required, the first is the revision a compatibility change occured 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;border-right:1px solid #000;margin-right:-1px;margin-top:12px;width:{{#expr:100-({{{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">{{{1}}}</span></div>
<div style="position:absolute;text-align: right;border-right:1px solid #000;margin-right:-1px;margin-top:12px;width:{{#expr:100-({{{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">{{{1}}}</span></div>
</includeonly>