User:Protnet/Page Schemas
Form input parameters[edit]
Parameter | Help | Example |
---|---|---|
mandatory | Boolean. When 1, a value must be entered for this input. | mandatory=1 |
restricted | Boolean. When 1, only administrators can edit this input | |
class | The HTML "class" attribute for this input | class=mywikitable |
property | A semantic property that this field corresponds to | |
default | The default value for this input | |
size | The size of this text field, in characters | size=10 |
maxlength | The maximum allowed length of the text in this field | maxlength=160 |
placeholder | Help text that appears in the input until the user clicks on it | placeholder=Click here to add text |
uploadable | Boolean. When 1, places an "Upload file" link next to this input | uploadable=1 |
default filename | The default filename for uploaded files | default filename=Untitled {{#time: YmdHis}} This example creates file with timestamp in filename. The result should look like this: This example requires parser functions. |
values | The set of values for this input, separated by commas | |
values from property= | A property whose values in the wiki should be this input's set of values | |
values from category | A category whose pages should be this input's set of values | |
values from namespace | A namespace whose pages should be this input's set of values | values from namespace=User This example takes usernames as inputs. The only catch is that shows only users that have created a user page (i.e. blue links). Best used with combobox input type. |
values from concept | A Semantic MediaWiki "concept" page whose pages should be this input's set of values | |
values from url | A URL holding structured data that should be this input's set of values | |
remote autocompletion | Boolean. Use remote autocompletion | |
list | Boolean. Mark this input as holding a list of values | |
delimiter | The delimiter between field values, if this input holds a list of them |