Template:VersionCompatibilityClose: Difference between revisions
Jump to navigation
Jump to search
(Well, I take that back, having all the major revision marks this will become more problematic for the narrowed browsers after taking many more revisions in the future...) |
(You should be using a sandbox for those experiments. I let the colors edit pass and didn't have time to go extensively through the other changes you did, but expect rollbacks like this for anything else not discussed previously) |
||
Line 1: | Line 1: | ||
<includeonly><!-- 2 seemingly missing div tags are in Template:VersionCompatibility --><div style="position: relative; font-size:10px; white-space:nowrap;"> | <includeonly><!-- 2 seemingly missing div tags are in Template:VersionCompatibility --><div style="position: relative; font-size:10px; white-space:nowrap;"> | ||
<!-- Current revision point --> | <!-- Current revision point --> | ||
<div style="position: absolute; top:9px; left:-3px;">Δ</div><div style="position: absolute; top:17px; left:-3px;">{{revision|{{CurrentGitRevision}}}}</div> | <div style="position: absolute; top:9px; left:-3px;">Δ</div><div style="position: absolute; top:17px; left:-3px;">{{revision|{{CurrentGitRevision}}}} '''(current)'''</div> | ||
<!-- 5.0 point --> | <!-- 5.0 point --> | ||
{{#ifexpr:{{VersionRevision|5.0|use=link}}<{{VersionRevision|{{#var:rev|{{CurrentGitRevision}}}}|use=link}}||<div style="position: absolute; width:{{#expr:100-(({{VersionRevision|5.0|use=link}}-{{VersionRevision|{{#var:rev}}|use=link}})/({{CurrentRevision}}-{{VersionRevision|{{#var:rev}}|use=link}})*100)}}%;"><div style="position: absolute; margin-left:100%;"><div style="position: absolute; top:9px; left:-2px;">Δ</div><div style="position: absolute; top:18px; left:-8px;">{{revision|5.0}}</div></div></div>}} | {{#ifexpr:{{VersionRevision|5.0|use=link}}<{{VersionRevision|{{#var:rev|{{CurrentGitRevision}}}}|use=link}}||<div style="position: absolute; width:{{#expr:100-(({{VersionRevision|5.0|use=link}}-{{VersionRevision|{{#var:rev}}|use=link}})/({{CurrentRevision}}-{{VersionRevision|{{#var:rev}}|use=link}})*100)}}%;"><div style="position: absolute; margin-left:100%;"><div style="position: absolute; top:9px; left:-2px;">Δ</div><div style="position: absolute; top:18px; left:-8px;">{{revision|5.0}}</div></div></div>}} |
Revision as of 08:12, 4 April 2017
[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 VersionCompatibilityClose 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. |