Exemplo n.º 1
0
 ############################
 ## 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.";
         $edits_fail_attrs = "is-warn";
     } else {
         $edits_fail_append = '';
         $edits_fail_attrs = '';
     }
     /* check requirements */
     $prior_edits = 0;