Template:Erf/pagelookup

From ErfWiki

(Difference between revisions)
Jump to: navigation, search
m (updated template slighlty; someone needs to add more instances)
m (partial hack job, book 0)
Line 146: Line 146:
   | 21  = E021_PotFling_600.jpg
   | 21  = E021_PotFling_600.jpg
   | 22  = E022_CThayerDonnelly_ParsonEyebook.jpg
   | 22  = E022_CThayerDonnelly_ParsonEyebook.jpg
 +
  |    ] image name not found [[Template:Erf/pagelookup|Please Add to Template]] }}
 +
| 0 = {{#switch: {{{2}}}
 +
  | 1  = 2011/10/inner-peace-through-superior-firepower-episode-001/
   |    ] 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]]
| ] image name not found [[Template:Erf/pagelookup|Please Add to Template]]
}}</includeonly><noinclude>{{{{PAGENAME}}/doc}}</noinclude>
}}</includeonly><noinclude>{{{{PAGENAME}}/doc}}</noinclude>

Revision as of 00:49, 27 November 2011

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