Template:VersionCompatibilityVersion: Difference between revisions
Jump to navigation
Jump to search
(set "?" font color to white) |
(VersionCompatibility updates -- bar scales from 2.0 to CurrentRevision, fixed text positioning bug, fixed bar overhang bug) |
||
Line 1: | Line 1: | ||
<includeonly><div title="{{VersionRevision|{{{1}}}|use=title}} {{{2}}} {{{3|}}}" style="position:absolute; text-align:right; height:13px; border-right:1px solid #000; margin-right: | <includeonly><div | ||
title="Rev: {{VersionRevision|{{{1}}}|use=title}} | Rating: {{{2}}} | Notes: {{{3|}}}" | |||
style="position:absolute; | |||
text-align:right; | |||
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}}} | |||
|?=#000 | |?=#000 | ||
|*=#f00 | |*=#f00 | ||
Line 9: | Line 23: | ||
|?=#FFF | |?=#FFF | ||
|*|**|***|****|*****|#default=#000 | |*|**|***|****|*****|#default=#000 | ||
}};">{{VersionRevision|{{{1}}}|use=title}}</span></div></includeonly><noinclude> | }};">{{VersionRevision|{{{1}}}|use=title}}</span></div></includeonly><noinclude>{{documentation|Template:VersionCompatibility/doc}}</noinclude> | ||
{{documentation|Template:VersionCompatibility/doc}} | |||
</noinclude> |
Revision as of 06:32, 17 August 2011
[edit] [ ] Template documentation
About
This template is part of a set that enable a graphic display of Dolphin version compatibility.
Neighboring templates
- Template:VersionCompatibility
- Template:VersionCompatibilityVersion
- Template:VersionCompatibilityClose
Example
{{VersionCompatibility}} {{VersionCompatibilityVersion|2.0|**|Notes on this section}} {{VersionCompatibilityVersion|6461|****|Fixed behavior of "Setting"}} {{VersionCompatibilityVersion|3.0-461|***|Notes on this section}} {{VersionCompatibilityVersion|3.5|*|Notes on this section}} {{VersionCompatibilityVersion|3.5-400|**|Notes on this section}} {{VersionCompatibilityVersion|4.0.2|***|Notes on this section}} {{VersionCompatibilityVersion|4.0-2729|*****|Notes on this section}} {{VersionCompatibilityClose}}
Produces
The graph below charts the compatibility with VersionCompatibilityVersion since Dolphin's 2.0 release, listing revisions only where a compatibility change occurred.
Notes
- Two parameters required: First parameter is the revision a compatibility change occurred on. Second parameter is the compatibility rating achieved with that revision.
- Use third parameter to write clear notes - required after initial version compatibility pointer so it doesn't end up a redundant pointer.
- 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.
The above documentation is transcluded from Template:VersionCompatibility/doc. (edit | history) Editors can experiment in this template's sandbox (edit) and testcases (create) pages. Subpages of this template. |