v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:Migration progress"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<center style="padding:none; margin:none;">
+
<noinclude>
<div style="width:{{{width|100%}}}; padding:none; margin:none;">
+
Some notes on this bar:
<div style=" border: 1px solid {{{border|#ac7}}}; padding:1px; overflow:hidden; background:{{{backbg|#F9F9F9}}}; position:relative; height:{{{height|18}}}px;border-top-left-radius:4px; -moz-border-radius-topleft:4px; -webkit-border-top-left-radius:4px; border-bottom-right-radius:4px; -moz-border-radius-bottomright:4px; -webkit-border-bottom-right-radius:4px;">
+
* "Up-to-date" includes all articles without the version tag, which could still have some missing info. Might be worth tracking those separately.
<span style="width:{{#expr: ({{{1|0}}}+{{{2|0}}})/({{{1|0}}}+{{{2|0}}}+{{{3|100}}})}}%; height:100%; border-right: 1px solid {{{border|#ac7}}}; background:{{{barbg|{{{bg|#cce6b3}}}}}}; float:left; padding:0; margin:0; position:absolute; top: 0px; left: 0px;"></span>
+
* The numbers aren't exact, since the categories may include a few irrelevant pages outside the main namespace (sandboxes, talk pages).
<span style="width:{{#expr: ({{{1|0}}})/({{{1|0}}}+{{{2|0}}}+{{{3|100}}})}}%; height:100%; border-right: 1px solid {{{border|#ac7}}}; background:{{{barbg|{{{bg|#ace6b3}}}}}}; float:left; padding:0; margin:0; position:absolute; top: 0px; left: 0px;"></span>
 
<span style="height:100%; padding:0; margin:0; position:absolute; top:0px; left: 10px; font-size:12px; line-height:18px;  text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.75);"><small>[[Dwarf_Fortress_Wiki:Version_migration|'''{{{1|0}}} up-to-date for v50; {{{2|0}}} partially migrated; {{{3|100}}} remaining''']]</small></span>
 
</div></div></center>
 
  
<!--
 
  
<div style="width:{{{width|16em}}};">
+
</noinclude>{{
{{#ifeq: {{{header}}} | no | <p><big>'''{{#expr:( {{{1|<noinclude>2</noinclude>0}}} / {{{total|100}}} ) * 100 round 1}}%'''</big> {{{text|completed <small>(estimate)</small>}}}</p> |  }}
 
<p style="-moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px;-moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px;
 
border:1px solid #888; padding:1px; overflow:hidden;">
 
  
<span style="width:{{#expr: ({{{1|0}}}/{{{total|100}}}) * 100}}%; height:{{{height|8}}}px; background:#bd8; float:left; -moz-border-radius-bottomright: 2px; -webkit-border-bottom-right-radius: 2px;-moz-border-radius-topleft: 2px; -webkit-border-top-left-radius: 2px;">&nbsp;</span>
+
#vardefine: totalCurrentArticles |
 
+
      {{#expr: {{formatnum:{{NUMBEROFARTICLES}}|R}}  
<span style="width:{{#expr: ({{{2|0}}}/{{{total|100}}}) * 100}}%; height:{{{height|8}}}px; background:#aaa; float:left; -moz-border-radius-bottomright: 2px; -webkit-border-bottom-right-radius: 2px;-moz-border-radius-topleft: 2px; -webkit-border-top-left-radius: 2px;">&nbsp;
+
            - {{formatnum:{{PAGESINCATEGORY:Obsolete}}|R}}  
 
+
            - {{formatnum:{{PAGESINCATEGORY:Obsolete features}}|R}}
</span><span style="width:{{#expr: 100 - (({{{1|10}}}+{{{2|0}}})/{{{total|100}}}) * 100}}%; height:{{{height|8}}}px; background:#fff; float:left; -moz-border-radius-bottomright: 2px; -webkit-border-bottom-right-radius: 2px;-moz-border-radius-topleft: 2px; -webkit-border-top-left-radius: 2px;">&nbsp;</span>
+
      }}
 
+
}}{{
</p></div>
+
#vardefine: articlesNeedingReview | {{formatnum:{{PAGESINCATEGORY:Migrated pages needing review}}|R}}
-->
+
}}{{
 +
#vardefine: sectionsNeedingReview | {{formatnum:{{PAGESINCATEGORY:Migrated pages with sections needing review}}|R}}
 +
}}{{
 +
#vardefine: upToDateArticles |
 +
  {{#expr:  
 +
    {{#var:totalCurrentArticles}}  
 +
    - {{#var:articlesNeedingReview}}
 +
    - {{#var:sectionsNeedingReview}}
 +
  }}
 +
}}{{
 +
User:OddballJoe/Sandbox/ProgressBar|{{#var:upToDateArticles}}|{{#var:sectionsNeedingReview}}|{{#var:articlesNeedingReview}}
 +
|text=[[Dwarf_Fortress_Wiki:Version_migration|'''{{#var:upToDateArticles}} up-to-date for v50; {{#var:sectionsNeedingReview}} partially migrated; {{#var:articlesNeedingReview}} remaining''']]
 +
}}

Revision as of 19:27, 10 January 2023

Some notes on this bar:

  • "Up-to-date" includes all articles without the version tag, which could still have some missing info. Might be worth tracking those separately.
  • The numbers aren't exact, since the categories may include a few irrelevant pages outside the main namespace (sandboxes, talk pages).