User:Enterprisey/easy-brfa.js/tpl-form.js

Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
<div>
  <style>
    #easy-brfa-form th {
    	text-align: right;
    }
    
    #easy-brfa-form td {
    	padding: 0.25em 0;
    }
    
    #before-applying {
    	padding: 2em;
    	border: thin solid gray;
    	border-radius: 5px;
    	margin-bottom: 1.5em;
    }
    
    .validation-status {
    	margin-left: 1em;
    }
    
    .validation-status.pass {
    	color: #008c6e;
    }
    
    .validation-status.fail {
    	color: #d11d13;
    }
    
    input[type=text]:not(#bot-name):not(#task-number) {
    	width: 100%;
    }
    
    .optional-label {
    	font-style: italic;
    	color: #595959;
    }
  </style>
  <div id="before-applying">
    <b>Before applying for approval</b>
    <ul>
      <li>Ensure that you have read the <a href="/wiki/Wikipedia:BOTPOL" title="Wikipedia:BOTPOL" class="mw-redirect">bot policy</a> and that your bot is compliant with it, and that your idea isn't listed as a <a href="/wiki/Wikipedia:Bots/Frequently_denied_bots" title="Wikipedia:Bots/Frequently denied bots">frequently denied bot</a>.</li>
      <li>If your task could be controversial (e.g. most bots making non-maintenance edits to articles and most bots posting messages on user talk pages), seek consensus for the task in the appropriate forums. Common places to start include <a href="/wiki/Wikipedia:Village_pump_(proposals)" title="Wikipedia:Village pump (proposals)">WP:Village pump (proposals)</a> and the talk pages of the relevant policies, guidelines, templates, and/or WikiProjects. Link to this discussion from your request for approval.</li>
      <li>You will need to create an account for your bot if you haven't already done so. Click <a class="external text" href="//en.wiki.x.io/w/index.php?title=Special:UserLogin&amp;type=signup">here</a> when logged in to create the account, linking it to yours. (If you do not create the bot account while logged in, it is likely to be blocked as a possible <a href="/wiki/Wikipedia:SOCK" title="Wikipedia:SOCK" class="mw-redirect">sockpuppet</a> or unauthorised bot until you verify ownership)</li>
      <li>Create a userpage for your bot, linking to your userpage (this is commonly done using the {{<a href="/wiki/Template:Bot" title="Template:Bot">bot</a>}} template) and describing its functions. You may also include an '<a href="/wiki/Template:Emergency-bot-shutoff" title="Template:Emergency-bot-shutoff">emergency shutoff button</a>' just in case anything goes wrong.</li>
    </ul>
  </div>
  <p>All fields are required unless there's a <span class="optional-label">(optional)</span> label.</p>
  <table>
    <tr>
      <th>Bot name</th>
      <td><input type="text" class="mw-ui-input mw-ui-input-inline" id="bot-name" size="50" placeholder="Your bot's username"/><span id="bot-name-status" class="validation-status fail"></span></td>
    </tr>
    <tr>
      <th>Task number</th>
      <td><input type="text" class="mw-ui-input mw-ui-input-inline" id="task-number" value="1" size="3" /><span id="task-number-status" class="validation-status fail"></span></td>
    <tr>
      <th>Function overview</th>
      <td><textarea class="mw-ui-input mw-ui-input-large" placeholder="Quick overview of your bot's functionality" id="function-overview"></textarea>
    </tr>
    <tr>
      <th>Operation</th>
      <td>
        <input type="radio" name="operation" value="automatic" id="operation-automatic" />
        <label for="operation-automatic">Automatic: edits are not reviewed, except when issues arise</label>
        <br />
        <input type="radio" name="operation" value="supervised" id="operation-supervised" />
        <label for="operation-supervised">Supervised: all edits are reviewed soon after being made</label>
        <br />
        <input type="radio" name="operation" value="supervised" id="operation-manual" />
        <label for="operation-manual">Manual: all edits are reviewed before being made</label>
      </td>
    </tr>
    <tr>
      <th>Programming language<br /><span class="optional-label">(optional)</span></th>
      <td><input type="text" class="mw-ui-input mw-ui-input-inline" id="programming-language" placeholder="Python, Java, C, VB, AutoWikiBrowser, etc."/></td>
    </tr>
    <tr>
      <th>Source code<br /><span class="optional-label">(optional,&nbsp;but&nbsp;encouraged)</span></th>
      <td><input type="text" class="mw-ui-input mw-ui-input-inline" id="source-code" placeholder="A link to the source code, 'Standard pywikipedia', 'AWB', etc."/></td>
    </tr>
    <tr>
      <th>Relevant discussions</th>
      <td><input type="text" class="mw-ui-input mw-ui-input-inline" id="relevant-discussions" placeholder="[[User talk:Example#Bot request?]], [[Wikipedia:Village pump (proposals)#ExampleBot]]"/></td>
    </tr>
    <tr>
      <th>Edit period</th>
      <td><input type="text" class="mw-ui-input mw-ui-input-inline" id="edit-period" placeholder="Continuous, daily, one time run, etc."/></td>
    </tr>
    <tr>
      <th>Pages affected</th>
      <td><input type="text" class="mw-ui-input mw-ui-input-inline" id="pages-affected" placeholder="3,000"/></td>
    </tr>
    <tr>
      <th>Exclusion compliant?</th>
      <td><input type="checkbox" id="exclusion-compliant" /><label for="exclusion-compliant">Yes, the bot skips articles and other pages with the <a href="https://en.wiki.x.io/wiki/Template:Bots">{{bots}}</a> template</label></td>
    </tr>
    <tr>
      <th>Bot flag?</th>
      <td><input type="checkbox" id="flag-already" /><label for="flag-already">The bot already has a flag</label></td>
    </tr>
    <tr>
      <th>Function details</th>
      <td><textarea class="mw-ui-input mw-ui-input-large" placeholder="List full and complete function details here" id="function-details"></textarea>
    </tr>
    <tr>
      <td colspan="2"><button id="submit-brfa" class="mw-ui-button mw-ui-constructive mw-ui-block">Submit BRFA request</button></td>
    </tr>
  </table>
</div>
<!-- -------------------------------------------------------- -->
'''Automatic, Supervised, or Manual:''' ((operation))

'''[[Programming language]](s):''' ((programming-language))

'''[[Source code]] available:''' ((source-code))

'''Function overview:''' ((function-overview))

'''Links to relevant discussions (where appropriate):''' ((relevant-discussions))

'''Edit period(s):''' ((edit-period))

'''Estimated number of pages affected:''' ((pages-affected))

'''[[Template:bots|Exclusion compliant]]''' ''(Yes/No)''''':'''  ((exclusion-compliant))

'''Already has a bot flag''' ''(Yes/No)''''':''' ((flag-already))

'''Function details:''' ((function-details))

===Discussion===
<!-- This is not a vote.  It is a discussion -->