Ref:Art of Oddworld: Difference between revisions

From Oddworld Library
(Created page with "<includeonly> {{#ifexpr: {{{p}}} = 7 | {{ref:refHeader | author = Sherry McKenna | date = 15 September 2004 | datetime = 2004-09-15 | bold = {{{bold|true}}} }} ‘<cite class="book-part">Introduction</cite>’, <abbr title="page">p.</abbr> 7. {{#vardefine:pagePrinted|1}} In }} {{#ifexpr: {{{p}}} = 9 | {{ref:refHeader | author = Lorne Lanning | date = 15 September 2004 | datetime = 2004-09-15 | bold = {{{...")
 
m (Potential fix for #var:headingTitle and #var:pagePrinted affecting template calls after initial template call)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{{#vardefine:pagePrinted|0}}{{#vardefine:headingTitle|0}}
{{#ifexpr: {{{p}}} = 7
{{#ifexpr: {{{p}}} = 7
   | {{ref:refHeader
   | {{ref:refHeader
Line 40: Line 41:
| {{#if: {{{p|}}}
| {{#if: {{{p|}}}
   | {{#ifexpr: {{{p}}} >= 26
   | {{#ifexpr: {{{p}}} >= 26
     | ‘<cite class="book-heading">{{#ifexpr: {{{p}}} < 222
     | {{#ifexpr: {{{p}}} < 222
       | {{#ifexpr: {{{p}}} < 110
       | {{#ifexpr: {{{p}}} < 110
         | {{#ifexpr: {{{p}}} < 72
         | {{#ifexpr: {{{p}}} < 72
           | {{#ifexpr: {{{p}}} < 46
           | {{#ifexpr: {{{p}}} < 46
             | {{#ifexpr: {{{p}}} >= 45
             | {{#ifexpr: {{{p}}} >= 45
               |      Abe Gives Japan the Finger
               |      {{#vardefine:headingTitle|Abe Gives Japan the Finger}}
               }}
               }}
             | {{#ifexpr: {{{p}}} >= 54
             | {{#ifexpr: {{{p}}} >= 54
Line 51: Line 52:
                 | {{#ifexpr: {{{p}}} < 60
                 | {{#ifexpr: {{{p}}} < 60
                   | {{#ifexpr: {{{p}}} < 58
                   | {{#ifexpr: {{{p}}} < 58
                     | This is RuptureFarms…
                     | {{#vardefine:headingTitle|This is RuptureFarms…}}
                     | Mudokon Pops
                     | {{#vardefine:headingTitle|Mudokon Pops}}
                     }}
                     }}
                   | {{#ifexpr: {{{p}}} < 62
                   | {{#ifexpr: {{{p}}} < 62
                     | Molluck the Glukkon
                     | {{#vardefine:headingTitle|Molluck the Glukkon}}
                     | Glukkons
                     | {{#vardefine:headingTitle|Glukkons}}
                     }}
                     }}
                   }}
                   }}
                 | {{#ifexpr: {{{p}}} < 68
                 | {{#ifexpr: {{{p}}} < 68
                   | {{#ifexpr: {{{p}}} < 66
                   | {{#ifexpr: {{{p}}} < 66
                     | Sligs
                     | {{#vardefine:headingTitle|Sligs}}
                     | Sligs and Slogs
                     | {{#vardefine:headingTitle|Sligs and Slogs}}
                     }}
                     }}
                   | {{#ifexpr: {{{p}}} < 70
                   | {{#ifexpr: {{{p}}} < 70
                     | Storyboards
                     | {{#vardefine:headingTitle|Storyboards}}
                     | The Monsaic Lines
                     | {{#vardefine:headingTitle|The Monsaic Lines}}
                     }}
                     }}
                   }}
                   }}
Line 76: Line 77:
               | {{#ifexpr: {{{p}}} < 76
               | {{#ifexpr: {{{p}}} < 76
                 | {{#ifexpr: {{{p}}} < 74
                 | {{#ifexpr: {{{p}}} < 74
                   | The Paramonian Temple
                   | {{#vardefine:headingTitle|The Paramonian Temple}}
                   | Paramonia–The Forest
                   | {{#vardefine:headingTitle|Paramonia–The Forest}}
                   }}
                   }}
                 | {{#ifexpr: {{{p}}} < 78
                 | {{#ifexpr: {{{p}}} < 78
                   | Elum
                   | {{#vardefine:headingTitle|Elum}}
                   | Paramonian Temple Interior
                   | {{#vardefine:headingTitle|Paramonian Temple Interior}}
                   }}
                   }}
                 }}
                 }}
               | {{#ifexpr: {{{p}}} < 82
               | {{#ifexpr: {{{p}}} < 82
                 | {{#ifexpr: {{{p}}} < 80
                 | {{#ifexpr: {{{p}}} < 80
                   | Paramites
                   | {{#vardefine:headingTitle|Paramites}}
                   | The Scrabanian Temple
                   | {{#vardefine:headingTitle|The Scrabanian Temple}}
                   }}
                   }}
                 | {{#ifexpr: {{{p}}} < 84
                 | {{#ifexpr: {{{p}}} < 84
                   | Scrabania–The Desert
                   | {{#vardefine:headingTitle|Scrabania–The Desert}}
                   }}
                   }}
                 }}
                 }}
Line 98: Line 99:
                 | {{#ifexpr: {{{p}}} < 90
                 | {{#ifexpr: {{{p}}} < 90
                   | {{#ifexpr: {{{p}}} < 88
                   | {{#ifexpr: {{{p}}} < 88
                     | RuptureFarms Interiors
                     | {{#vardefine:headingTitle|RuptureFarms Interiors}}
                     | Transportation
                     | {{#vardefine:headingTitle|Transportation}}
                     }}
                     }}
                   }}
                   }}
                 | {{#ifexpr: {{{p}}} < 94
                 | {{#ifexpr: {{{p}}} < 94
                   | The Holding Cell
                   | {{#vardefine:headingTitle|The Holding Cell}}
                   | BigFace the Shaman
                   | {{#vardefine:headingTitle|BigFace the Shaman}}
                   }}
                   }}
                 }}
                 }}
               | {{#ifexpr: {{{p}}} < 99
               | {{#ifexpr: {{{p}}} < 99
                 | {{#ifexpr: {{{p}}} < 98
                 | {{#ifexpr: {{{p}}} < 98
                   | The Good Ending Movie
                   | {{#vardefine:headingTitle|The Good Ending Movie}}
                   | Awards
                   | {{#vardefine:headingTitle|Awards}}
                   }}
                   }}
                 | {{#ifexpr: {{{p}}} >= 106
                 | {{#ifexpr: {{{p}}} >= 106
                   | The Vision Movie
                   | {{#vardefine:headingTitle|The Vision Movie}}
                   }}
                   }}
                 }}
                 }}
Line 124: Line 125:
               | {{#ifexpr: {{{p}}} < 114
               | {{#ifexpr: {{{p}}} < 114
                 | {{#ifexpr: {{{p}}} < 112
                 | {{#ifexpr: {{{p}}} < 112
                   | SoulStorm Brew
                   | {{#vardefine:headingTitle|SoulStorm Brew}}
                   | Flying Sligs
                   | {{#vardefine:headingTitle|Flying Sligs}}
                   }}
                   }}
                 | {{#ifexpr: {{{p}}} < 118
                 | {{#ifexpr: {{{p}}} < 118
                   | Abe Escapes
                   | {{#vardefine:headingTitle|Abe Escapes}}
                   | {{#ifexpr: {{{p}}} < 120
                   | {{#ifexpr: {{{p}}} < 120
                     | Necrum Spirits
                     | {{#vardefine:headingTitle|Necrum Spirits}}
                     }}
                     }}
                   }}
                   }}
Line 137: Line 138:
                 | {{#ifexpr: {{{p}}} < 124
                 | {{#ifexpr: {{{p}}} < 124
                   | {{#ifexpr: {{{p}}} >= 122
                   | {{#ifexpr: {{{p}}} >= 122
                     | FeeCo Depot
                     | {{#vardefine:headingTitle|FeeCo Depot}}
                     }}
                     }}
                   | FeeCo Train
                   | {{#vardefine:headingTitle|FeeCo Train}}
                   }}
                   }}
                 | {{#ifexpr: {{{p}}} < 129
                 | {{#ifexpr: {{{p}}} < 129
                   | Greeter
                   | {{#vardefine:headingTitle|Greeter}}
                   | Bonewerkz
                   | {{#vardefine:headingTitle|Bonewerkz}}
                   }}
                   }}
                 }}
                 }}
Line 150: Line 151:
               | {{#ifexpr: {{{p}}} < 136
               | {{#ifexpr: {{{p}}} < 136
                 | {{#ifexpr: {{{p}}} < 132
                 | {{#ifexpr: {{{p}}} < 132
                   | FeeCo Depot
                   | {{#vardefine:headingTitle|FeeCo Depot}}
                   | {{#ifexpr: {{{p}}} >= 134
                   | {{#ifexpr: {{{p}}} >= 134
                     | Slig Barracks
                     | {{#vardefine:headingTitle|Slig Barracks}}
                     }}
                     }}
                   }}
                   }}
                 | {{#ifexpr: {{{p}}} < 138
                 | {{#ifexpr: {{{p}}} < 138
                   | Worker Sligs
                   | {{#vardefine:headingTitle|Worker Sligs}}
                   | {{#ifexpr: {{{p}}} >= 140
                   | {{#ifexpr: {{{p}}} >= 140
                     | Brewmaster
                     | {{#vardefine:headingTitle|Brewmaster}}
                     }}
                     }}
                   }}
                   }}
Line 165: Line 166:
                 | {{#ifexpr: {{{p}}} < 147
                 | {{#ifexpr: {{{p}}} < 147
                   | {{#ifexpr: {{{p}}} < 144
                   | {{#ifexpr: {{{p}}} < 144
                     | Junior Executives
                     | {{#vardefine:headingTitle|Junior Executives}}
                     | The Good Endings
                     | {{#vardefine:headingTitle|The Good Endings}}
                     }}
                     }}
                   | {{#ifexpr: {{{p}}} = 150
                   | {{#ifexpr: {{{p}}} = 150
                     | Awards
                     | {{#vardefine:headingTitle|Awards}}
                     }}
                     }}
                   }}
                   }}
                 | {{#ifexpr: {{{p}}} = 157
                 | {{#ifexpr: {{{p}}} = 157
                   | Munch Poster
                   | {{#vardefine:headingTitle|Munch Poster}}
                   }}
                   }}
                 }}
                 }}
Line 182: Line 183:
               | {{#ifexpr: {{{p}}} < 182
               | {{#ifexpr: {{{p}}} < 182
                 | {{#ifexpr: {{{p}}} >= 180
                 | {{#ifexpr: {{{p}}} >= 180
                   | Interns
                   | {{#vardefine:headingTitle|Interns}}
                   }}
                   }}
                 | {{#ifexpr: {{{p}}} = 186
                 | {{#ifexpr: {{{p}}} = 186
                   | Fuzzles
                   | {{#vardefine:headingTitle|Fuzzles}}
                   }}
                   }}
                 }}
                 }}
Line 191: Line 192:
                 | {{#ifexpr: {{{p}}} < 196
                 | {{#ifexpr: {{{p}}} < 196
                   | {{#ifexpr: {{{p}}} >= 194
                   | {{#ifexpr: {{{p}}} >= 194
                     | Industrial Vehicles
                     | {{#vardefine:headingTitle|Industrial Vehicles}}
                     }}
                     }}
                   | Rats
                   | {{#vardefine:headingTitle|Rats}}
                   }}
                   }}
                 | {{#ifexpr: {{{p}}} < 200
                 | {{#ifexpr: {{{p}}} < 200
                   | Munch Free
                   | {{#vardefine:headingTitle|Munch Free}}
                   | Almighty Raisin
                   | {{#vardefine:headingTitle|Almighty Raisin}}
                   }}
                   }}
                 }}
                 }}
Line 204: Line 205:
               | {{#ifexpr: {{{p}}} < 205
               | {{#ifexpr: {{{p}}} < 205
                 | {{#ifexpr: {{{p}}} < 204
                 | {{#ifexpr: {{{p}}} < 204
                   | Raisin's Lair
                   | {{#vardefine:headingTitle|Raisin's Lair}}
                   | Native Facilities
                   | {{#vardefine:headingTitle|Native Facilities}}
                   }}
                   }}
                 | {{#ifexpr: {{{p}}} < 206
                 | {{#ifexpr: {{{p}}} < 206
                   | Storm Circle
                   | {{#vardefine:headingTitle|Storm Circle}}
                   | Mudokons
                   | {{#vardefine:headingTitle|Mudokons}}
                   }}
                   }}
                 }}
                 }}
               | {{#ifexpr: {{{p}}} < 214
               | {{#ifexpr: {{{p}}} < 214
                 | {{#ifexpr: {{{p}}} < 210
                 | {{#ifexpr: {{{p}}} < 210
                   | Industrial Facilities
                   | {{#vardefine:headingTitle|Industrial Facilities}}
                   | {{#ifexpr: {{{p}}} >= 212
                   | {{#ifexpr: {{{p}}} >= 212
                     | Big Bro Slig
                     | {{#vardefine:headingTitle|Big Bro Slig}}
                     }}
                     }}
                   }}
                   }}
                 | {{#ifexpr: {{{p}}} < 116
                 | {{#ifexpr: {{{p}}} < 116
                   | Snoozer
                   | {{#vardefine:headingTitle|Snoozer}}
                   | {{#ifexpr: {{{p}}} >= 218
                   | {{#ifexpr: {{{p}}} >= 218
                     | Vykkers Labs Entered
                     | {{#vardefine:headingTitle|Vykkers Labs Entered}}
                     }}
                     }}
                   }}
                   }}
Line 233: Line 234:
         | {{#ifexpr: {{{p}}} < 226
         | {{#ifexpr: {{{p}}} < 226
           | {{#ifexpr: {{{p}}} < 224
           | {{#ifexpr: {{{p}}} < 224
             | Auction Room
             | {{#vardefine:headingTitle|Auction Room}}
             | Rise and Fall of Lulu
             | {{#vardefine:headingTitle|Rise and Fall of Lulu}}
             }}
             }}
           | {{#ifexpr: {{{p}}} = 232
           | {{#ifexpr: {{{p}}} = 232
             | Awards
             | Awards
             | {{#ifexpr: {{{p}}} = 229
             | {{#ifexpr: {{{p}}} = 229
               | Kinto Slaves
               | {{#vardefine:headingTitle|Kinto Slaves}}
               }}
               }}
             }}
             }}
Line 245: Line 246:
         | {{#ifexpr: {{{p}}} < 246
         | {{#ifexpr: {{{p}}} < 246
           | {{#ifexpr: {{{p}}} >= 244
           | {{#ifexpr: {{{p}}} >= 244
             | Crossbow
             | {{#vardefine:headingTitle|Crossbow}}
             }}
             }}
           | {{#ifexpr: {{{p}}} < 256
           | {{#ifexpr: {{{p}}} < 256
             | The Opening Movie
             | {{#vardefine:headingTitle|The Opening Movie}}
             | {{#ifexpr: {{{p}}} = 256
             | {{#ifexpr: {{{p}}} = 256
               | Oddworld Credits
               | {{#vardefine:headingTitle|Oddworld Credits}}
               }}
               }}
             }}
             }}
           }}
           }}
         }}
         }}
       }}</cite>’{{#if: {{{pp|}}}
       }}
                  | , <abbr title="pages">pp.</abbr> {{{pp}}}
      {{#ifexpr:{{#var:headingTitle}} = 0
                  | , <abbr title="page">p.</abbr> {{{p}}}
      |
                }}{{#vardefine:pagePrinted|1}}.
      |‘<cite class="book-heading">{{#var:headingTitle}}</cite>’{{#if: {{{pp|}}}
                                    | , <abbr title="pages">pp.</abbr> {{{pp}}}
                                    | , <abbr title="page">p.</abbr> {{{p}}}
                                    }}{{#vardefine:pagePrinted|1}}.
      }}
     }}
     }}
   }}
   }}
Line 282: Line 287:
                   | {{#ifexpr: {{{p}}} < 256
                   | {{#ifexpr: {{{p}}} < 256
                     | Chapter Seven—Stranger
                     | Chapter Seven—Stranger
                    | {{#ifexpr: {{{p}}} = 256
                      | Oddworld Credits
                      }}
                     }}
                     }}
                   }}
                   }}
Line 291: Line 293:
             }}
             }}
           }}
           }}
         }}</cite>’{{#varexists:pagePrinted
         }}</cite>’{{#ifexpr:{{#var:pagePrinted}} = 0
                  |
                   | {{#if: {{{pp|}}}
                   | {{#if: {{{pp|}}}
                     | , <abbr title="pages">pp.</abbr> {{{pp}}}
                     | , <abbr title="pages">pp.</abbr> {{{pp}}}
Line 302: Line 303:
     }}
     }}
   }}
   }}
   <cite class="book ArtOfOddworld">The Art of Oddworld Inhabitants: The First Ten Years 1994–2004</cite>{{#varexists:pagePrinted
   <cite class="book ArtOfOddworld">The Art of Oddworld Inhabitants: The First Ten Years 1994–2004</cite>{{#ifexpr:{{#var:pagePrinted}} = 0
  |
   | {{#if: {{{pp|}}}
   | {{#if: {{{pp|}}}
     | , <abbr title="pages">pp.</abbr> {{{pp}}}
     | , <abbr title="pages">pp.</abbr> {{{pp}}}
     | , <abbr title="page">p.</abbr> {{{p}}}
     | , <abbr title="page">p.</abbr> {{{p}}}
     }}
     }}
    {{#vardefine:pagePrinted|1}}
   }}.
   }}.
   {{#if: {{{quote|}}} | {{#ifeq: {{{quoteMarks|single}}} | double |“|‘}}<q>{{{quote}}}</q>{{#ifeq: {{{quoteMarks|single}}} | double |”|’}} }}
   {{#if: {{{quote|}}} | {{#ifeq: {{{quoteMarks|single}}} | double |“|‘}}<q>{{{quote}}}</q>{{#ifeq: {{{quoteMarks|single}}} | double |”|’}} }}

Latest revision as of 16:15, 13 February 2025


This reference template is used to easily reference the art book The Art of Oddworld Inhabitants: The First Ten Years 1994–2004. To use it, place it inside a <ref> element in the reference list.

<ref name="Name of the reference">
{{ref:Art of Soulstorm
  | parameter1 = value1
  | parameter2 = value2
}}
</ref>

Parameters

This template takes the following parameters. There are no parameters that are required.

bold
Defaults to the value of true if not specified. The only value that overwrites this is the value of false, which causes the reference header to be rendered with no extra weight. This is useful if the ref:Art of Oddworld template is used within a larger reference, such as when citing a specific work within the book.
p
If included, adds up to three things to the reference. Firstly, it adds a single page number after the title of the book (or after the question number(s) if those parameters are set). Secondly, if a heading is not manually set, the template checks if the given page corresponds to a single heading, which is then added to the reference. Thirdly, it automatically adds the title of the chapter of the book that page is in. Partially ignored if pp is set: pp will overwrite the page numbers if set, but p will still define the heading and chapter.
pp
If included, adds a range or sequence of page numbers after the title of the book. If set, overwrites the page number set by p, but p is still required to add the chapter title. Thus, if pp is set, p should equal the first page in the value of pp.
heading
If manually specified, replaces the nested parser functions that retreive the correct heading. Some headings need to be specified manually, namely ‘Iterations’, ‘The Temple Interior’, ‘Scrabs’, ‘Opening Wall’, and ‘Maggie’. The heading ‘Munch Poster’ also needs to be set manually if the page number is 156, and the heading ‘Kinto Slaves’ needs to be set manually if the page number is 228.
quote
Used to include a quote between the chapter title and the publisher. Only do this if it is particularly important to the context of the reference, and only if it is a short quote with no carriage returns.
quoteMarks
Defines how many quotation marks are used to delimit the quote. Does nothing if there is no quote. Defaults to the value of single if not specified. The only value that overwrites this is the value of double. Only set the value to double if the quote itself contains single quotation marks, and those single quotation marks are the outermost quotation marks used in the quote. Do not count apostrophes as single quotation marks.

The paramter p should be between 5 and 256 inclusive, although there is no automatic verification for this, and no error if it is not.