<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AFolger_Shakespeare%2Fconfiguration</id>
	<title>Module:Folger Shakespeare/configuration - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AFolger_Shakespeare%2Fconfiguration"/>
	<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Folger_Shakespeare/configuration&amp;action=history"/>
	<updated>2026-06-14T10:46:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.3</generator>
	<entry>
		<id>https://mywikibiz.com/index.php?title=Module:Folger_Shakespeare/configuration&amp;diff=471745&amp;oldid=prev</id>
		<title>Zoran: Pywikibot 6.4.0</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Folger_Shakespeare/configuration&amp;diff=471745&amp;oldid=prev"/>
		<updated>2021-07-15T21:42:17Z</updated>

		<summary type="html">&lt;p&gt;Pywikibot 6.4.0&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module's function lookup table, used by the calling context&lt;br /&gt;
local folger_config = {};&lt;br /&gt;
&lt;br /&gt;
-- printf()-like format string for the Folger play URLs.&lt;br /&gt;
local url_pattern = 'http://www.folgerdigitaltexts.org/?chapter=5&amp;amp;play=%s&amp;amp;loc=%s'&lt;br /&gt;
&lt;br /&gt;
-- printf()-like format string for the act, scene, line display.&lt;br /&gt;
local location_format = '[%s %s.%s.%s].'&lt;br /&gt;
&lt;br /&gt;
-- printf()-like format string for the FTLN display.&lt;br /&gt;
local ftln_format = '&amp;lt;abbr title=&amp;quot;Folger Through-Line Number&amp;quot;&amp;gt;ftln&amp;lt;/abbr&amp;gt; [%s %s].'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- TODO: Need some way to specify things like Prologue, Epilogue, Scene Direction, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- Aliases by which plays can be specified in the wrapping template.&lt;br /&gt;
-- Every entry is (and must be) an associative array because we loop over it&lt;br /&gt;
-- later in order to extract the aliases. The key is the play code from Folger.&lt;br /&gt;
local _aliases = {&lt;br /&gt;
  ['AWW'] = {'All\'s Well That Ends Well'},&lt;br /&gt;
  ['Ant'] = {'Antony and Cleopatra'},&lt;br /&gt;
  ['AYL'] = {'As You Like It'},&lt;br /&gt;
  ['Err'] = {'The Comedy of Errors'},&lt;br /&gt;
  ['Cor'] = {'Coriolanus'},&lt;br /&gt;
  ['Cym'] = {'Cymbeline'},&lt;br /&gt;
  ['Ham'] = {'Hamlet'},&lt;br /&gt;
  ['1H4'] = {'Henry IV, Part 1', '1H4'},&lt;br /&gt;
  ['2H4'] = {'Henry IV, Part 2', '2H4'},&lt;br /&gt;
  ['H5']  = {'Henry V', 'H5'},&lt;br /&gt;
  ['1H6'] = {'Henry VI, Part 1', '1H6'},&lt;br /&gt;
  ['2H6'] = {'Henry VI, Part 2', '2H6'},&lt;br /&gt;
  ['3H6'] = {'Henry VI, Part 3', '3H6'},&lt;br /&gt;
  ['H8']  = {'Henry VIII', 'H8'},&lt;br /&gt;
  ['JC']  = {'Julius Caesar'},&lt;br /&gt;
  ['Jn']  = {'King John'},&lt;br /&gt;
  ['Lr']  = {'King Lear'},&lt;br /&gt;
  ['LLL'] = {'Love\'s Labour\'s Lost'},&lt;br /&gt;
  ['Mac'] = {'Macbeth'},&lt;br /&gt;
  ['MM']  = {'Measure for Measure'},&lt;br /&gt;
  ['MV']  = {'The Merchant of Venice'},&lt;br /&gt;
  ['Wiv'] = {'The Merry Wives of Windsor'},&lt;br /&gt;
  ['MND'] = {'A Midsummer Night\'s Dream'},&lt;br /&gt;
  ['Ado'] = {'Much Ado About Nothing'},&lt;br /&gt;
  ['Oth'] = {'Othello'},&lt;br /&gt;
  ['Per'] = {'Pericles'},&lt;br /&gt;
  ['R2']  = {'Richard II', 'R2'},&lt;br /&gt;
  ['R3']  = {'Richard III', 'R3'},&lt;br /&gt;
  ['Rom'] = {'Romeo and Juliet', 'RJ', 'R&amp;amp;J'},&lt;br /&gt;
  ['Shr'] = {'The Taming of the Shrew'},&lt;br /&gt;
  ['Tmp'] = {'The Tempest'},&lt;br /&gt;
  ['Tim'] = {'Timon of Athens'},&lt;br /&gt;
  ['Tit'] = {'Titus Andronicus'},&lt;br /&gt;
  ['Tro'] = {'Troilus and Cressida'},&lt;br /&gt;
  ['TN']  = {'Twelfth Night'},&lt;br /&gt;
  ['TGV'] = {'Two Gentlemen of Verona'},&lt;br /&gt;
  ['TNK'] = {'Two Noble Kinsmen'},&lt;br /&gt;
  ['WT']  = {'The Winter\'s Tale'},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
-- Turn the table inside out, so looking up an alias will return the play code.&lt;br /&gt;
local aliases = {}&lt;br /&gt;
for play_id, alias_list in pairs(_aliases) do&lt;br /&gt;
  for iterator, alias in ipairs(alias_list) do&lt;br /&gt;
    aliases[alias] = play_id&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- Canonical names and Wikipedia article name for plays for display in output.&lt;br /&gt;
-- A map from Folger play code to a canonical name for in-article display.&lt;br /&gt;
-- All aliases are mapped to play code above, and here we map back to the&lt;br /&gt;
-- canonical name and Wikipedia article about that play.&lt;br /&gt;
local names = {&lt;br /&gt;
  ['AWW'] = {title = 'All\'s Well That Ends Well', article = 'All\'s Well That Ends Well'},&lt;br /&gt;
  ['Ant'] = {title = 'Antony and Cleopatra', article = 'Antony and Cleopatra'},&lt;br /&gt;
  ['AYL'] = {title = 'As You Like It', article = 'As You Like It'},&lt;br /&gt;
  ['Err'] = {title = 'The Comedy of Errors', article = 'The Comedy of Errors'},&lt;br /&gt;
  ['Cor'] = {title = 'Coriolanus', article = 'Coriolanus'},&lt;br /&gt;
  ['Cym'] = {title = 'Cymbeline', article = 'Cymbeline'},&lt;br /&gt;
  ['Ham'] = {title = 'Hamlet', article = 'Hamlet'},&lt;br /&gt;
  ['1H4'] = {title = 'Henry IV, Part 1', article = 'Henry IV, Part 1'},&lt;br /&gt;
  ['2H4'] = {title = 'Henry IV, Part 2', article = 'Henry IV, Part 2'},&lt;br /&gt;
  ['H5']  = {title = 'Henry V', article = 'Henry V (play)'},&lt;br /&gt;
  ['1H6'] = {title = 'Henry VI, Part 1', article = 'Henry VI, Part 1'},&lt;br /&gt;
  ['2H6'] = {title = 'Henry VI, Part 2', article = 'Henry VI, Part 2'},&lt;br /&gt;
  ['3H6'] = {title = 'Henry VI, Part 3', article = 'Henry VI, Part 3'},&lt;br /&gt;
  ['H8']  = {title = 'Henry VIII', article = 'Henry VIII (play)'},&lt;br /&gt;
  ['JC']  = {title = 'Julius Caesar', article = 'Julius Caesar (play)'},&lt;br /&gt;
  ['Jn']  = {title = 'King John', article = 'King John (play)'},&lt;br /&gt;
  ['Lr']  = {title = 'King Lear', article = 'King Lear'},&lt;br /&gt;
  ['LLL'] = {title = 'Love\'s Labor\'s Lost', article = 'Love\'s Labor\'s Lost'},&lt;br /&gt;
  ['Mac'] = {title = 'Macbeth', article = 'Macbeth'},&lt;br /&gt;
  ['MM']  = {title = 'Measure for Measure', article = 'Measure for Measure'},&lt;br /&gt;
  ['MV']  = {title = 'The Merchant of Venice', article = 'The Merchant of Venice'},&lt;br /&gt;
  ['Wiv'] = {title = 'The Merry Wives of Windsor', article = 'The Merry Wives of Windsor'},&lt;br /&gt;
  ['MND'] = {title = 'A Midsummer Night\'s Dream', article = 'A Midsummer Night\'s Dream'},&lt;br /&gt;
  ['Ado'] = {title = 'Much Ado About Nothing', article = 'Much Ado About Nothing'},&lt;br /&gt;
  ['Oth'] = {title = 'Othello', article = 'Othello'},&lt;br /&gt;
  ['Per'] = {title = 'Pericles', article = 'Pericles, Prince of Tyre'},&lt;br /&gt;
  ['R2']  = {title = 'Richard II', article = 'Richard II (play)'},&lt;br /&gt;
  ['R3']  = {title = 'Richard III', article = 'Richard III (play)'},&lt;br /&gt;
  ['Rom'] = {title = 'Romeo and Juliet', article = 'Romeo and Juliet'},&lt;br /&gt;
  ['Shr'] = {title = 'The Taming of the Shrew', article = 'The Taming of the Shrew'},&lt;br /&gt;
  ['Tmp'] = {title = 'The Tempest', article = 'The Tempest'},&lt;br /&gt;
  ['Tim'] = {title = 'Timon of Athens', article = 'Timon of Athens'},&lt;br /&gt;
  ['Tit'] = {title = 'Titus Andronicus', article = 'Titus Andronicus'},&lt;br /&gt;
  ['Tro'] = {title = 'Troilus and Cressida', article = 'Troilus and Cressida'},&lt;br /&gt;
  ['TN']  = {title = 'Twelfth Night', article = 'Twelfth Night'},&lt;br /&gt;
  ['TGV'] = {title = 'The Two Gentlemen of Verona', article = 'The Two Gentlemen of Verona'},&lt;br /&gt;
  ['TNK'] = {title = 'The Two Noble Kinsmen', article = 'The Two Noble Kinsmen'},&lt;br /&gt;
  ['WT']  = {title = 'The Winter\'s Tale', article = 'The Winter\'s Tale'},&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
return {&lt;br /&gt;
  aliases = aliases,&lt;br /&gt;
  names = names,&lt;br /&gt;
  url_pattern = url_pattern,&lt;br /&gt;
  location_format = location_format,&lt;br /&gt;
  ftln_format = ftln_format,&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Zoran</name></author>
	</entry>
</feed>