Difference between revisions of "Template:Erf/pagelookup"

From Erfwiki
Jump to: navigation, search
m (Linked to the wrong page)
(28 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 
<includeonly>{{#switch: {{{1}}}
 
<includeonly>{{#switch: {{{1}}}
| 1 = {{{2}}}
+
| 1 = {{{2}}}.jpg
 
| 2 = {{#switch: {{{2}}}
 
| 2 = {{#switch: {{{2}}}
   | 1 = 2009-10-29  
+
   | 1   = 2009-10-29.jpg
   | 2 = 2009-10-31
+
   | 2   = 2009-10-31.jpg
   | 3 = 2009-11-04
+
   | 3   = 2009-11-04.jpg
   | 4 = 2009-11-07
+
   | 4   = 2009-11-07.jpg
   | 5 = 2009-11-11
+
   | 5   = 2009-11-11.jpg
   | 6 = 2009-11-14
+
   | 6   = 2009-11-14.jpg
   | 7 = 2009-11-18
+
   | 7   = 2009-11-18.jpg
   | 8 = 2009-11-23
+
   | 8   = 2009-11-23.jpg
   | 9 = 2009-11-28
+
   | T1 = 2009-11-25.png
   | 10 = 2009-12-03
+
  | 9  = 2009-11-28.jpg
   | 11 = 2009-12-08
+
  | T2  = 2009-11-30.png
   | 12 = 2009-12-18
+
   | 10 = 2009-12-03.jpg
   | 13 = 2009-12-24
+
  | T3  = 2009-12-05.png
   | 14 = 2009-12-31
+
   | 11 = 2009-12-08.jpg
   | 15 = 2010-01-06
+
   | T4  = 2009-12-11.png
   | 16 = 2010-01-14
+
  | T5  = 2009-12-16.png
   | 17 = 2010-01-21
+
  | 12  = 2009-12-18.jpg
   | 18 = 2010-01-27
+
  | T6  = 2009-12-20.png
   | 19 = 2010-02-03
+
   | 13 = 2009-12-24.jpg
   | 20 = 2010-02-10
+
  | T7  = 2009-12-27.png
   | 21 = 2010-02-17
+
   | 14 = 2009-12-31.jpg
   | 22 = 2010-02-24
+
  | T8  = 2010-01-03.png
   | 23 = 2010-03-07
+
   | 15 = 2010-01-06.jpg
   | 24 = 2010-03-15
+
  | T9  = 2010-01-09.png
   | 25 = 2010-03-22
+
   | 16 = 2010-01-14.jpg
   | 26 = 2010-03-29
+
  | T10 = 2010-01-19.png
   | 27 = 2010-04-07
+
   | 17 = 2010-01-21.jpg
   | 28 = 2010-04-13
+
  | T11 = 2010-01-24.png
   | 29 = 2010-04-21
+
   | 18 = 2010-01-27.jpg
   | 30 = 2010-04-29
+
  | T12 = 2010-01-29.png
   | 31 = 2010-05-06
+
   | 19 = 2010-02-03.jpg
   | 32 = 2010-05-14
+
  | T13 = 2010-02-06.png
 +
   | 20 = 2010-02-10.jpg
 +
  | T14 = 2010-02-12.png
 +
   | 21 = 2010-02-17.jpg
 +
  | T15 = 2010-02-20.png
 +
   | 22 = 2010-02-24.jpg
 +
  | T16 = 2010-03-04.png
 +
   | 23 = 2010-03-07.jpg
 +
  | T17 = 2010-03-12.png
 +
   | 24 = 2010-03-15.jpg
 +
  | T18 = 2010-03-19.png
 +
   | 25 = 2010-03-22.jpg
 +
   | T19 = 2010-03-26.png
 +
  | 26  = 2010-03-29.jpg
 +
  | T20 = 2010-04-03.png
 +
   | 27 = 2010-04-07.jpg
 +
   | 28 = 2010-04-13.jpg
 +
   | 29 = 2010-04-21.jpg
 +
  | T21 = 2010-04-25.png
 +
   | 30 = 2010-04-29.jpg
 +
  | T22 = 2010-05-01.png
 +
   | 31 = 2010-05-06.jpg
 +
  | T23 = 2010-05-09.png
 +
   | 32 = 2010-05-14.jpg
 +
  | T24 = 2010-05-19.png
 +
  | 33  = 2010-05-24.jpg
 +
  | K1  = 2010-06-09.jpg
 +
  | 33a = 2010-06-09.jpg
 +
  | K2  = 2010-06-12.jpg
 +
  | 33b = 2010-06-12.jpg
 +
  | 34  = 2010-06-16.jpg
 +
  | T25 = 2010-06-20.png
 +
  | 35  = 2010-06-24.jpg
 +
  | T26 = 2010-07-01.png
 +
  | 36  = 2010-07-08.jpg
 +
  | T27 = 2010-07-16.png
 +
  | 37  = 2010-07-23.jpg
 +
  | T28 = 2010-07-29.png
 +
  | 38  = 2010-08-04.jpg
 +
  | T29 = 2010-08-12.png
 +
  | 39  = 2010-08-19.jpg
 +
  | T30 = 2010-08-26.png
 +
  | 40  = 2010-09-01.jpg
 +
  | T31 = 2010-09-09.png
 +
  | 41  = 2010-09-15.jpg
 +
  | 42  = 2010-09-23.jpg
 +
  | T32 = 2010-09-30.png
 +
  | 43  = 2010-10-09.jpg
 +
  | 44  = 2010-10-19.jpg
 +
  | T33 = 2010-10-27.png
 +
  | 45  = 2010-11-01.jpg
 +
  | T34 = 2010-11-07.png
 +
  | 46  = 2010-11-13.jpg
 +
  | T35 = 2010-11-19.png
 +
  | 47  = 2010-11-23.jpg
 +
  | T36 = 2010-11-27.png
 +
  | 48  = 2010-12-04.jpg
 +
  | K3  = 2010-12-08.jpg
 +
  | 49  = 2010-12-14.jpg
 +
  | T37 = 2010-12-24.png
 +
  | 50  = 2010-12-31.jpg
 +
  | T38 = 2011-01-07.png
 +
  | 51  = 2011-01-17.jpg
 +
  | T39 = 2011-01-22.png
 +
  | 52  = 2011-01-26.jpg
 +
  | T40 = 2011-02-02.png
 +
  | 53  = 2011-02-11.jpg
 +
  | T41 = 2011-02-18.png
 +
  | 54  = 2011-02-23.jpg
 +
  | T42 = 2011-02-27.png
 +
  | 55  = 2011-03-04.jpg
 +
  | T43 = 2011-03-10.png
 +
  | 56  = 2011-03-17.jpg
 +
  | T44 = 2011-03-23.png
 +
  | 57  = 2011-03-25.jpg
 +
  | T45 = 2011-03-31.png
 +
  | 58  = 2011-04-07.jpg
 +
  | T46 = 2011-04-14.png
 +
  | 59  = 2011-04-21.jpg
 +
  | T47 = 2011-04-26.png
 +
  | 60  = 2011-05-06.jpg
 +
  | T48 = 2011-05-13.png
 +
  | 61  = 2011-05-17.jpg
 +
  | T49 = 2011-05-22.png
 +
  | 62 = 2011-05-25.jpg
 +
  | T50 = 2011-06-02.png
 +
  | 63 = 2011-06-05.jpg
 +
  | T51 = 2011-06-14.png
 +
  | 64 = 2011-06-17.jpg
 +
  | T52 = 2011-06-22.png
 +
  | 65 = 2011-06-28.jpg
 +
  | 66 = 2011-07-07.jpg
 +
  | 67 = 2011-07-16.jpg
 +
  | 68 = 2011-07-24.jpg
 +
  | 69 = 2011-08-02.jpg
 +
  | T53 = 2011-08-13.png
 +
  | 70 = 2011-08-28.jpg
 +
  | 71 = 2011-09-06.jpg
 +
  | 72 = 2011-09-16.jpg
 +
  | 73 = 2011-09-30.jpg
 +
  | T54 = 2011-10-05.png
 +
  | 74 = 2011-10-14.jpg
 +
  | T55 = 2012-06-04.png
 +
  | 75 = 2012-06-05.jpg
 +
  | 76 = 2012-06-13.jpg
 +
  | 77 = 2012-06-20.jpg
 +
  | 78 = 2012-06-27.jpg
 +
  | 79 = 2012-07-04.jpg
 +
  | 80 = 2012-07-10.jpg
 +
  | 81 = 2012-07-17.jpg
 +
  | 82 = 2012-07-25.jpg
 +
  | T56 = 2012-07-29.png
 +
  | 83 = 2012-08-01.jpg
 +
  | 84 = 2012-08-07.jpg
 +
  | K4 = 2012-08-15.jpg
 +
  | 85 = 2012-08-22.jpg
 +
  | 86 = 2012-08-29.jpg
 +
  | 87 = 2012-09-04.jpg
 +
  | 88 = 2012-09-12.jpg
 +
  | 89 = 2012-09-19.jpg
 +
  | 90 = 2012-09-26.jpg
 +
  | 91 = 2012-10-03.jpg
 +
  | 92 = 2012-10-10.jpg
 +
  | T57 = 2012-10-14.png
 +
  | 93 = 2012-10-18.jpg
 +
  | 94 =
 
   |    ] image name not found [[Template:Erf/pagelookup|Please Add to Template]] }}
 
   |    ] image name not found [[Template:Erf/pagelookup|Please Add to Template]] }}
 
| 1.5 = {{#switch: {{{2}}}
 
| 1.5 = {{#switch: {{{2}}}
   | 1  = E001_ParsonNewCourtyard
+
   | 1  = E001_ParsonNewCourtyard.jpg
   | 2  = E002_ParsonNewOffice_500
+
   | 2  = E002_ParsonNewOffice_500.jpg
   | 3  = E003_StanleyOverflight_500
+
   | 3  = E003_StanleyOverflight_500.jpg
   | 4  = E004_StanleyWanda_700
+
   | 4  = E004_StanleyWanda_700.jpg
   | 5  = E005_StanleyAnsom_600
+
   | 5  = E005_StanleyAnsom_600.jpg
   | 6  = E006_ParsonPonders_600
+
   | 6  = E006_ParsonPonders_600.jpg
   | 7  = E007_Fireworks_600
+
   | 7  = E007_Fireworks_600.jpg
   | 8  = E008_ParsonAndStanley_600
+
   | 8  = E008_ParsonAndStanley_600.jpg
   | 9  = E009_ParsonAndMaggie_600
+
   | 9  = E009_ParsonAndMaggie_600.jpg
   | 10  = E010_CaesarBow_600
+
   | 10  = E010_CaesarBow_600.jpg
   | 11  = E011_TransylvitianWarlords_600
+
   | 11  = E011_TransylvitianWarlords_600.jpg
   | 12  = E012_JillianSleep_600
+
   | 12  = E012_JillianSleep_600.jpg
   | 13  = E013_JillianFish_600
+
   | 13  = E013_JillianFish_600.jpg
   | 14  = E014_JillianAl_600
+
   | 14  = E014_JillianAl_600.jpg
   | 15  = E015_Sheep_600
+
   | 15  = E015_Sheep_600.jpg
   | 16  = E016_VinnyBat_600
+
   | 16  = E016_VinnyBat_600.jpg
   | 17  = E017_Skanks_600
+
   | 17  = E017_Skanks_600.jpg
   | 18  = E018_Ring_600
+
   | 18  = E018_Ring_600.jpg
   | 19  = E019_Talk_600
+
   | 19  = E019_Talk_600.jpg
   | 20  = E020_Fling_600
+
   | 20  = E020_Fling_600.jpg
   | 21  = E021_PotFling_600
+
   | 21  = E021_PotFling_600.jpg
   | 22  = E022_CThayerDonnelly_ParsonEyebook
+
   | 22  = E022_CThayerDonnelly_ParsonEyebook.png
 +
  | 23  = E022_elddonnemar_ZhopaBasket.png
 +
  | 24  = E024_Alisa_Picnic1.jpg
 +
  | 25  = E025_Alisa_Tower.jpg
 +
  | 26  = E026_Onezumi_Parson.jpg
 +
  | 27  = E027_PatJacobs_ParsonHex.jpg
 +
  | 28  = E028_Rykka_TowerLanding.jpg
 +
  | 29  = E029_JoeZuniga_DrunkTime.jpg
 +
  | 30  = E030_Nathan_TurnsEnd.jpg
 +
  | 31  = E031_ChrisBattey_ParsonPointing.png
 +
  | 32  = E032_EugeneConniff_Banana.jpg
 +
  | 33  = E033_KavinScalf_AnsomWanda.jpg
 +
  | 34  = E034_Eiphel_Wrigley.jpg
 +
  | 35  = E035_NoIllustration.png
 +
  | 36  = E036_TheMutant_jackcomic.png
 +
  | 37  = E037_NoIllustration.png
 +
  | 38  = E038_TomWhitney.jpg
 +
  | 39  = E039_NoIllustration.png
 +
  | 40  = E040_Cloudbreaker.jpg
 +
  | 41  = E041_LaurelB.jpg
 +
  | 42  = E042_NoIllustration.png
 +
  | 43  = E043_NoIllustration.png
 +
  | 44  = E044_celebrenithil_MaggieParson.png
 +
  | 45  = E045_NoIllustration.png
 +
  | 46  = E046_NoIllustration.png
 +
  | 47  = E047_NoIllustration.png
 +
  | 48  = E048_NoIllustration.png
 +
  | 49  = E049_NoIllustration.png
 
   |    ] image name not found [[Template:Erf/pagelookup|Please Add to Template]] }}
 
   |    ] image name not found [[Template:Erf/pagelookup|Please Add to Template]] }}
| ] image name not found [[Template:Erf/pagelookup|Please Add to Template]]
+
| 0 = {{#switch: {{{2}}}
 +
  | 1  = 2011|10|inner-peace-through-superior-firepower-episode-001
 +
  | 2  = inner-peace-through-superior-firepower-–-episode-002/
 +
  | 3  =
 +
  | 4  =
 +
  | 5  =
 +
  | 6  =
 +
  | 7  =
 +
  | 8  =
 +
  | 9  =
 +
  | 10  =
 +
  | 11  =
 +
  | 12  =
 +
  | 13  =
 +
  | 14  =
 +
  | 15  =
 +
  | 16  =
 +
  | 17  =
 +
  | 18  =
 +
  | 19  =
 +
  | 20  =
 +
  | 21  =
 +
  | 22  =
 +
  | 23  =
 +
  | 24  =
 +
  | 25  =
 +
  | 26  =
 +
  | 27  =
 +
  | 28  =
 +
  | 29  =
 +
  | 30  =
 +
  | 31  =
 +
  | 32  =
 +
  | 33  =
 +
  | 34  =
 +
  | 35  =
 +
  | 36  =
 +
  | 37  =
 +
  | 38  =
 +
  | 39  =
 +
  | 40  =
 +
  | 41  =
 +
  | 42  =
 +
  | 43  =
 +
  | 44  =
 +
  | 45  =
 +
  |    ] image name not found [[Template:Erf/pagelookup|Please Add to Template]] }}
 +
| ] book image name not found [[Template:Erf/pagelookup|Please Add to Template]]
 
}}</includeonly><noinclude>{{{{PAGENAME}}/doc}}</noinclude>
 
}}</includeonly><noinclude>{{{{PAGENAME}}/doc}}</noinclude>

Revision as of 18:13, 7 November 2012

Documentation is at Template:Erf/pagelookup/doc. edit

For references to the comic. This template converts page and book numbers into page names in the archives.erfworld.com comain. It is mainly used to implement the {{erf}} reference template.

For books 0 and 3 it just passes the page number directly. However, books 1 and 2 were originally published with a different page numbering scheme than the current archive (as of early 2016) uses, so the template contains lookup tables to make old references keep working.

Usage

{{Erf/pagelookup|Book|Page}}

Books 0 and 3

For books 0 and 3, the page number is simply the update number in the book.

Books 1 and 2

In books 1 and 2, separate number sequences were used for comic pages, text updates, and Klog entries, but in the current archives everything is numbered sequentially. So, for example, http://archives.erfworld.com/Book_2/43 actually shows comic page 40, because there were 3 Klog pages earlier in the sequence. The template takes the displayed page number (here, 40) and converts it to the right number to put in the URL.

For comic pages, the number to put as as the 'page' argument is just the page number, either with or without leading zeroes. For example,

{{Erf/pagelookup|1|040}}
produces "Book_1/43", which can be used to build the link http://archives.erfworld.com/Book_1/43.

For prologues, epilogues, text updates and klog entries put the number of the text/klog with the letter 'P', 'E', 'T' or 'K' prepended. Do not use leading zeroes with this notation.

{{Erf/pagelookup|1|E4}}    and   {{Erf/pagelookup|2|T23}}

produce Book_1/167 and Book_2/82, respectively.

For historical reasons, klog entries in book 1 can also be referred to by the number of the _preceding_ comic page with an 'a' or 'b' suffix. So, for example

{{Erf/pagelookup|1|077b}}  and  {{Erf/pagelookup|1|K8}}

both produce Book_1/85 because Klog entires 7 and 8 follow directly after comic page 77.

Summer updates

The text "summer updates" that were originally published between Book 1 and Book 2 now appear in the archives as Book 1 epilogue and Book 2 prologue pages. For historical reasons, the reference template still supports referring to them as "book 1.5". Thus, for example

{{Erf/pagelookup|1.5|21}}   and   {{Erf/pagelookup|1.5|22}}

produce Book_1/184 and Book_2/1, referring to the last Book 1 epilogue page and the first Book 2 prologue page.