Jump to content

User:The wub/Web2Cit/data/com/go/abcnews/templates.json

From Meta, a Wikimedia project coordination wiki

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.
path"/"
fields
fieldname"itemType"
requiredtrue
procedures
selections
type"fixed"
config"newspaperArticle"
transformations
Empty array
fieldname"publishedIn"
requiredtrue
procedures
selections
type"fixed"
config"ABC News"
transformations
Empty array
fieldname"title"
requiredtrue
procedures
selections
type"citoid"
config"title"
transformations
Empty array
fieldname"date"
requiredfalse
procedures
selections
type"xpath"
config"/html/head/meta[@property='lastPublishedDate']/@content"
transformations
type"match"
config"\d{4}-\d{2}-\d{2}"
itemwisetrue
fieldname"authorFirst"
requiredfalse
procedures
selections
type"xpath"
config".//*[contains(concat(" ",normalize-space(@class)," ")," Byline__Author ")]"
transformations
type"split"
config" "
itemwisetrue
type"range"
config"1"
itemwisefalse
fieldname"authorLast"
requiredfalse
procedures
selections
type"xpath"
config".//*[contains(concat(" ",normalize-space(@class)," ")," Byline__Author ")]"
transformations
type"split"
config" "
itemwisetrue
type"range"
config"2"
itemwisefalse
fieldname"language"
requiredfalse
procedures
selections
type"citoid"
config"language"
transformations
Empty array