Exemplo n.º 1
0
         ########
         $script->eligible = $blockCount <= 1 && $editCount >= 300 && $editCountRecent >= 20;
     } while (!$script->eligible && $script->get_next());
     break;
     ############################
     ## 2015 steward elections
     ############################
 ############################
 ## 2015 steward elections
 ############################
 case 35:
     ########
     ## Has an account on Meta
     ########
     $script->msg('Global requirements:', 'is-wiki');
     $script->condition($script->has_account('metawiki_p'), "has an account on Meta...", "does not have an account on Meta.");
     if (!$script->eligible) {
         break;
     }
     ########
     ## Has a global account
     ########
     $script->condition($script->is_global(), "has a <a href='//meta.wikimedia.org/wiki/Help:Unified_login' title='about global accounts'>global account</a>...", "does not have a <a href='//meta.wikimedia.org/wiki/Help:Unified_login' title='about global accounts'>global account</a> (optional)...", "", "is-warn");
     $script->eligible = true;
     ########
     ## Check local requirements
     ########
     $script->printWiki();
     /* set messages for global accounts */
     if ($script->unified) {
         $edits_fail_append = "However, edits will be combined with other unified wikis.";