MediaWiki:Proofreadpage index data config

From Rangjung Yeshe Wiki Texts
Revision as of 11:52, 11 March 2021 by Eric (talk | contribs)
Jump to navigation Jump to search

{

 "ID": { //id of the metadata (first parameter of proofreadpage_index_attributes)
   "type": "string", //the property type (for compatibility reasons the values have not to be of this type). Possibles values: string, number, page. If set, the newly set values should be valid according to the type (e.g. for a number a valid number, for a page an existing wiki page...)
   "size": 1, //only for the type string : number of lines of the input (third parameter of proofreadpage_index_attributes)
   "values":  {"a":"A", "b":"B","c":"C", "d":"D"}, //an array values : label that list the possible values (for compatibility reasons the stored values have not to be one of these)
   "default": "", //the default value
   "header": false, //add the property to MediaWiki:Proofreadpage_header_template template (true is equivalent to being listed in proofreadpage_js_attributes)
   "label": "ID", //the label in the form (second parameter of proofreadpage_index_attributes)
   "help": "", //a short help text
   "delimiter": [], //list of delimiters between two part of values. By example ["; ", " and "] for strings like "J. M. Dent; E. P. Dutton and A. D. Robert"
   "data": "" //proofreadpage's metadata type that the property is equivalent to
 }

}