Jump to content

ବ୍ୟବହାରକାରୀ:Ansumang/metadata/objects

ଉଇକିପିଡ଼ିଆ‌ରୁ

The following is the object model of the metadata script. Note that only non-default properties are listed here. Also, this may not reflect the latest version of the script if I forget to update it after making changes.

  • assessment - Object
    • autorun - Boolean setting value, default true
    • currentAssessment - Object
      • exists - Boolean
      • extra - Array
      • pageLink - String if used, else null
      • rating - String
      • reg - result of a regular expression match
    • request - XMLHttpRequest
    • text - the wikitext of the first section of the talk page
    • url - String - the URL of the request
    • addHook - function
    • addPeerReview - static function, adds peer review data to an info string
    • ajaxMain - function
    • callHooks - function
    • checkArticle - static function
    • encodePageName - static function
    • getAssessment - static function
    • getExtraInfo - function, creates an info string using makeInfoString
    • getRating - static function
    • init - main function
    • makeInfoString - static function
    • stateChange - function, runs when request state changes
    • talkAssess - function
    • update - static function
  • MetadataObject - copy of main 'assessment' object, exists for backwards compatibility
  • MetadataScript - same as MetadataObject