Template:Erf/pagelookup

From ErfWiki

(Difference between revisions)
Jump to: navigation, search
m (debug....)
(Adding the page link for Book 2 page 78, but it may not be active until the next site update posts.)
Line 122: Line 122:
   | 72 = 2011-09-16.jpg
   | 72 = 2011-09-16.jpg
   | 73 = 2011-09-30.jpg
   | 73 = 2011-09-30.jpg
 +
  | 78 = 2011-06-27.jpg
   |    ] 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}}}

Revision as of 08:06, 28 June 2012

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

For references to the comic. This template converts page and book numbers into image names.

For book1, it just passes the page number directly. However, with book 2, the pages are named based on the date they were posted. This template converts book and page number into the date.

Usage

{{Erf/pagelookup|Book|Page}}

Example

{{Erf/pagelookup|1|007}}
would display "007.jpg".

or

{{Erf/pagelookup|2|3}}
would display "2009-11-04.jpg".

In both cases, this gives the image name in the archive.

Go To:
Personal tools