Template:Paneler
From ErfWiki
| Line 6: | Line 6: | ||
{{Paneler/prev|{{{3|TBFGK}}}|{{{8|}}}|{{{1}}}|{{{9|}}}|{{{2|}}}|{{{10|}}}}} | {{Paneler/prev|{{{3|TBFGK}}}|{{{8|}}}|{{{1}}}|{{{9|}}}|{{{2|}}}|{{{10|}}}}} | ||
{{Paneler/next|{{{3|TBFGK}}}|{{{8|}}}|{{{1}}}|{{{9|}}}|{{{2|}}}|{{{10|}}}}}<br /> | {{Paneler/next|{{{3|TBFGK}}}|{{{8|}}}|{{{1}}}|{{{9|}}}|{{{2|}}}|{{{10|}}}}}<br /> | ||
| - | {{#if: {{{4|}}}|{{crop|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{3|TBFGK}}} {{{1}}}.jpg}}| | + | {{#if: {{{4|}}}|{{crop|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{3|TBFGK}}} {{{1}}}.jpg}}|ABCD {{crop|1|1|50|50|{{Pager/image_next|{{{3|TBFGK}}}|{{{1}}}}}.jpg}}<br>}} ABCD [[Image:{{{3|TBFGK}}}_{{{1}}}-{{{2}}}.jpg]] |
| - | ABCD {{crop|1|1|50|50|{{Pager/image_next|{{{3|TBFGK}}}|{{{1}}}}}.jpg}}<br>}} ABCD | + | |
| - | + | ||
({{{2}}} / [http://www.erfworld.com/wiki/index.php?title=Template:{{{3|TBFGK}}}_page_info&action=edit {{ {{{3|TBFGK}}}_page_info|pagenumber={{{1}}}|paramname=panels}}])<br> | ({{{2}}} / [http://www.erfworld.com/wiki/index.php?title=Template:{{{3|TBFGK}}}_page_info&action=edit {{ {{{3|TBFGK}}}_page_info|pagenumber={{{1}}}|paramname=panels}}])<br> | ||
{{Paneler/prev|{{{3|TBFGK}}}|{{{8|}}}|{{{1}}}|{{{9|}}}|{{{2|}}}|{{{10|}}}}} | {{Paneler/prev|{{{3|TBFGK}}}|{{{8|}}}|{{{1}}}|{{{9|}}}|{{{2|}}}|{{{10|}}}}} | ||
Revision as of 12:53, 22 September 2010
Template to compile all of the panel by panel information from its sub-pages.
WARNING: this is still a work in progress.
This template is for automatically generating a "next page"/"previous page" breadcrumb. It also automatically includes an image with the panel name, if one exists according to the standardised imagename format, (canon name)_(page)-(panel).jpg. Nonstandard imagenames can be included manually of course.
KEY
- {{{1}}} is the page number. It is mandatory.
- {{{2}}} is the panel number, also mandatory.
- (optional) {{{3}}} is the article name that goes before the page number. For example, for the Battle for Gobwin Knob pages, this is "TBFGK" as in TBFGK 1:1 or TBFGK 10:4.
- If left blank, this option defaults to TBFGK.
- Automatic crop function (optional)
- {{{4}}} , {{{5}}} is the top left corner
- {{{6}}} , {{{7}}} is the bottom right corner
- {{{8}}} is the previous page (overrides default -1 from current page)
- {{{9}}} is the next page (overrides default +1 from current page)
- {{{10}}} is the number of panels (overrides the function lookup)
Panel specific files should use the filenames of the form File:TBFGK_3-2.jpg (for page 3, panel 2). If the auto-cropping function is used the filename should be of the form File:TBFGK_37.jpg and the entire page is uploaded as a single file. The easiest way to get the file right is to just create a page that will include the paneler template first, and then use the link.
Usage
{{paneler
|page number
|panel on page
|article name that goes before the page number (TBFGK, Klog, etc)
|Auto crop left X coordinate
|Auto crop upper Y coordinate
|Auto crop right X coordinate
|Auto crop lower Y coordinate
|previous panel (overrides the default +1)
|next panel (overrides the default -1)
|number of panels on page (overrides the function lookup)
}}
Example
Using the code
{{paneler|2|5|TBFGK|363|268|533|498|1|3|13}}
would display all of the following:
Book (TBFGK)
Page by page (2)
Panel by panel (2:5)
|
Page Info
[edit]
|
| Description | [edit] |
Manpower the Temporary continues to stare forward, unmoving.
| Text | [edit] |
Gobwin: My lord...?
Manpower the Temporary: I can taste key lime pie.[1]

