Template:Erf
From ErfWiki
(Difference between revisions)
| Line 1: | Line 1: | ||
| - | <includeonly><sup class="plainlinks">[{{ArchiveLink|{{{1}}}}}?px=%2F{{Erf/pagelookup|{{{1}}}|{{{2}}}}} <span title="Erfworld, Book {{{1}}}, Page {{{2}}}{{#if: {{{3|}}}|{{ #iferror: {{#expr: {{{3}}} + 2 }}|: {{{3}}}|, Panel {{{3}}}}}}}{{#if: {{{4|}}} |: {{{4}}}}}">Erf-b{{{1}}}-p{{{2}}}{{#iferror:{{#expr:{{{3}}}+2}}||-p{{{3}}}}}</span>]</sup> | + | <includeonly><sup class="plainlinks">[{{ArchiveLink|{{{1}}}}}?px=%2F{{Erf/pagelookup|{{{1}}}|{{{2}}}}} <span title="Erfworld, Book {{{1}}}, Page {{{2}}}{{#if: {{{3|}}}|{{ #iferror: {{#expr: {{{3}}} + 2 }}|: {{{3}}}|, Panel {{{3}}}}}}}{{#if: {{{4|}}} |: {{{4}}}}}">Erf-b{{{1}}}-p{{{2}}}{{#iferror:{{#expr:{{{3}}}+2}}||-p{{{3}}}}}</span>]</sup>[[Image:Same-site.PNG]]</includeonly><noinclude>{{{{PAGENAME}}/doc}}</noinclude> |
Latest revision as of 22:23, 26 June 2012
Documentation is at Template:Erf/doc. edit
For references to the comic. Links to the comic archive on this site rather than on Giant ITP.
[edit] Maintenance
Please be aware that the script that converts Book 2 page numbers into dates (since comics are posted by date rather than page) is not automatic and must be manually updated at Template:Erf/pagelookup.
Book 0 is going to be an even more evil hack, but probably manually updated similarly.
[edit] Usage
You can use any of the following three formats.
{{Erf|Book|Page|Further Information (optional)}}
{{Erf|Book|Page|Panel|Further Information (optional)}}
{{Erf|Book|Page|Panel (optional)}}
[edit] Example
{{Erf|1|002}} would display Erf-b1-p002or
{{Erf|1|002|5}} would display Erf-b1-p002-p5or
{{Erf|1.5|7|Link to page 7 of the summer update}} would display Erf-b1.5-p7For a slightly more complex example:
{{Erf|1|002|5|Manpower can taste key lime pie}}
displays Erf-b1-p002-p5, with the extra text visible via mouseover.
- Note
- If the extra text includes characters which have other meanings in wiki markup or HTML, (such as fancy brackets or quotation marks, among others) you may need to use
<nowiki></nowiki>tags for it to display correctly.