User:Edgars2007/create-proposal.js/form.js

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
<div>
  <style>

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 1s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

    #easy-brfa-form th {
    	text-align: right;
    }
    
    #before-applying {
    	padding: 2em;
    	border: thin solid gray;
    	border-radius: 5px;
    	margin-bottom: 3em;
    }
    
    .validation-status {
    	margin-left: 1em;
    }
    
    input[type=text]:not(#subject-item) {
    	width: 100%;
    }
  </style>
  <div id="before-applying">
    <b>Some header</b>
    <ul>
      <li>Some useful text.</li>
    </ul>
  </div>
  <table>
    <tr>
      <th>Property name in English</th>
      <td><input type="text" class="mw-ui-input mw-ui-input-inline" id="prop-name" size="50"/></td>
    </tr>
    <tr>
      <th>Property description in English</th>
      <td><input type="text" class="mw-ui-input mw-ui-input-inline" id="prop-desc" size="50"/></td>
    </tr>
    <tr>
      <th>Subject item<div class="tooltip">?<span class="tooltiptext">As "Q5", not "{{Q|5}}"</span></div></th>
      <td><input type="text" class="mw-ui-input mw-ui-input-inline" id="subject-item" size="10" /></span></td>
    <tr>
    <tr>
      <th>Infobox parameter<div class="tooltip">?<span class="tooltiptext">E.g., {{para|1}} in [[:w:en:Template:Tr]]</span></div></th>
      <td><input type="text" class="mw-ui-input mw-ui-input-inline" id="infobox" size="50"/></td>
    </tr>
    <tr>
      <th>Datatype</th>
      <td><select name="datatype" id="datatype">
    <option value="item">item</option>
    <option value="string">string</option>
    <option value="extid">external-id</option>
    <option value="media">media</option>
    <option value="coordinates">coordinates</option>
    <option value="mono-text">monolingual text</option>
    <option value="multi-text">multilingual text</option>
    <option value="time">time</option>
    <option value="url">URL</option>
    <option value="number">number</option>
  </select></td>
    </tr>
    <tr>
      <th>Property proposal subpage<div class="tooltip">?<span class="tooltiptext">On which subpage this proposal should be transcluded?</span></div></th>
      <td>
        <input type="radio" name="subpage" value="generic" id="subpage-generic" />
        <label for="subpage-generic">Generic</label>
        <br />
        <input type="radio" name="subpage" value="authority control" id="subpage-auth-c" />
        <label for="subpage-auth-c">Authority control</label>
        <br />
        <input type="radio" name="subpage" value="person" id="subpage-person" />
        <label for="subpage-person">Person</label>
        <br />
        <input type="radio" name="subpage" value="organization" id="subpage-organization" />
        <label for="subpage-organization">Organization and politics</label>
        <br />
        <input type="radio" name="subpage" value="event" id="subpage-event" />
        <label for="subpage-event">Event</label>
        <br />
        <input type="radio" name="subpage" value="creative work" id="subpage-creative" />
        <label for="subpage-creative">Creative work</label>
        <br />
        <input type="radio" name="subpage" value="term" id="subpage-term" />
        <label for="subpage-term">Term</label>
        <br />
        <input type="radio" name="subpage" value="space" id="subpage-space" />
        <label for="subpage-space">Space</label>
        <br />
        <input type="radio" name="subpage" value="sister projects" id="subpage-sister" />
        <label for="subpage-sister">Sister projects</label>
        <br />
        <input type="radio" name="subpage" value="economics" id="subpage-economics" />
        <label for="subpage-economics">Economics</label>
        <br />
        <input type="radio" name="subpage" value="transportation" id="subpage-transportation" />
        <label for="subpage-transportation">Transportation</label>
        <br />
        <input type="radio" name="subpage" value="natural science" id="subpage-natural" />
        <label for="subpage-natural">Natural science</label>
        <br />
        <input type="radio" name="subpage" value="property metadata" id="subpage-metadata" />
        <label for="subpage-metadata">Property metadata</label>
      </td>
    </tr>
    <tr>
    <tr>
    <tr>
      <th>Domain<div class="tooltip">?<span class="tooltiptext">types of items that may bear this property (people, anything, organisations etc.)</span></div></th>
      <td><input type="text" class="mw-ui-input mw-ui-input-inline" id="domain" size="50"/></td>
    </tr>
    <tr>
      <th>Allowed values<div class="tooltip">?<span class="tooltiptext">type of linked items (Q template or text), list or range of allowed values, string pattern...</span></div></th>
      <td><input type="text" class="mw-ui-input mw-ui-input-inline" id="allowed-values" size="50"/></td><th>Popular patterns</th><td><select name="patterns" id="patterns">
    <option id="patterns" value="[0-9]+">only numbers</option>
    <option id="patterns" value="[1-9][0-9]*">only numbers (first - 1-9)</option>
    <option id="patterns" value="[a-z]+">only lowercase letters</option>
  </select></td>
    </tr>
    <tr>
      <th>Allowed units<div class="tooltip">?<span class="tooltiptext">units that are allowed for values of this property, preferrably Qx items</span></div></th>
      <td><input type="text" class="mw-ui-input mw-ui-input-inline" id="allowed-units" size="50"/></td>
    </tr>
    <tr>
      <th>Source<div class="tooltip">?<span class="tooltiptext">external reference, Wikipedia list article, etc.</span></div></th>
      <td><input type="text" class="mw-ui-input mw-ui-input-inline" id="source" size="50"/></td>
    </tr>
    <tr>
      <th>Example</th>
      <td><input type="text" class="mw-ui-input mw-ui-input-inline" id="example" size="50" placeholder="{{Q|1}} → {{Q|2}}"/></td>
    </tr>
    <tr>
      <th>Planned use<div class="tooltip">?<span class="tooltiptext">What use do you plan to make of the property within the next month</span></div></th>
      <td><input type="text" class="mw-ui-input mw-ui-input-inline" id="use" size="50"/></td>
    </tr>
    <tr>
      <th>Formatter URL<div class="tooltip">?<span class="tooltiptext">for external identifiers, URL pattern where $1 replaces the value</span></div></th>
      <td><input type="text" class="mw-ui-input mw-ui-input-inline" id="formatter" size="50"/></td>
    </tr>
    <tr>
      <th>Related properties<div class="tooltip">?<span class="tooltiptext">other, related properties</span></div></th>
      <td><input type="text" class="mw-ui-input mw-ui-input-inline" id="see-also" size="50"/></td>
    </tr>
    <tr>
      <th>filter<div class="tooltip">?<span class="tooltiptext">sample: 7 digit number can be validated with edit filter [[Special:AbuseFilter/17]]</span></div></th>
      <td><input type="text" class="mw-ui-input mw-ui-input-inline" id="filter" size="50"/></td>
    </tr>
    <tr>
      <th>Robots<div class="tooltip">?<span class="tooltiptext">Should or are bots or gadgets doing any task with this?</span></div></th>
      <td><input type="text" class="mw-ui-input mw-ui-input-inline" id="robot" size="50"/></td>
    </tr>
    <tr>
      <th>Motivation<div class="tooltip">?<span class="tooltiptext">Your motivation</span></div></th>
      <td><textarea class="mw-ui-input mw-ui-input-large" id="motivation"></textarea></td>
    </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>
=== {{TranslateThis | anchor = en
| en = ((prop-name))
<!-- |xx = property names in some other languages -->
}} ===
{{Property proposal
|status			= <!-- atstājiet šo tukšu -->
|description		= {{TranslateThis
 | en = ((prop-desc))
<!-- | xx = descriptions in other languages -->
 }}
|subject item           = ((subject-item))
|infobox parameter	= ((infobox))
|datatype		= ((datatype))
|domain			= ((domain))
|allowed values		= ((allowed-values))
|allowed units          = ((allowed-units))
|source			= ((source))
|example		= ((example))
|planned use            = ((use))
|formatter URL		= ((formatter))
|see also               = ((see-also))
|filter			= ((filter))
|robot and gadget jobs	= ((robot))
|subpage		= form.js
|topic			= ((subpage))
}}

;Motivation

((motivation)) [[User:Edgars2007|Edgars2007]] ([[User talk:Edgars2007|<span class="signature-talk">{{int:Talkpagelinktext}}</span>]]) 05:34, 12 August 2016 (UTC)

;{{int:Talk}}