User:The wub/Web2Cit/data/com/newyorker/www/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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
path"/news/"
fields
fieldname"itemType"
requiredtrue
procedures
selections
type"fixed"
config"newspaperArticle"
transformations
Empty array
fieldname"publishedIn"
requiredtrue
procedures
selections
type"fixed"
config"The New Yorker"
transformations
Empty array
fieldname"title"
requiredtrue
procedures
selections
type"citoid"
config"title"
transformations
Empty array
fieldname"date"
requiredfalse
procedures
selections
type"citoid"
config"date"
transformations
Empty array
fieldname"authorFirst"
requiredfalse
procedures
selections
type"xpath"
config".//*[contains(concat(" ",normalize-space(@class)," ")," byline__name ")]//a"
transformations
type"split"
config" "
itemwisetrue
type"range"
config"1"
itemwisefalse
fieldname"authorLast"
requiredfalse
procedures
selections
type"xpath"
config".//*[contains(concat(" ",normalize-space(@class)," ")," byline__name ")]//a"
transformations
type"split"
config" "
itemwisetrue
type"range"
config"2"
itemwisefalse
fieldname"language"
requiredfalse
procedures
selections
type"citoid"
config"language"
transformations
Empty array