FANDOM


Some suggestions for new templates, I've got them all but {{C}} worked out.

  • {{B|[book]}} returns the full name of the book. eg {{B|1}} → The Eye of the World, {{B|loc}} → Lord of Chaos
  • {{Bi|[book]}} returns the initials of the book. eg {{Bi|1}} → TEotW
  • {{B0|[book]}} returns the number of the boo. eg {{B0|loc}} → 6
  • {{C|[book]|[chapter]}} returns the full name of the chapter. eg {{C|1|2}} → An Empty Road *<nowiki>{{C|loc|p}} → The First Message
  • {{Cu|[book]|[chapter]}} returns the full page name of the chapter. eg {{Cu|1|2}} → The_Eye_of_the_World/Chapter_2
  • {{C0|[chapter]}} returns a validated chapter name (Prologue|Epilogue|Chapter_[chapter]) or just [chapter].

I thought it would be useful for a number of the templates (and because I really dislike the namespace pollution of all the {{1}} ones.

EDIT: here's the various sources:

B

{{#switch:{{B0|{{{1}}} }}

  |1=The Eye of the World
  |2=The Great Hunt
  |3=The Dragon Reborn
  |4=The Shadow Rising
  |5=The Fires of Heaven
  |6=Lord of Chaos
  |7=A Crown of Swords
  |8=The Path of Daggers
  |9=Winter's Heart
  |10=Crossroads of Twilight
  |11=Knife of Dreams
  |12=The Gathering Storm
  |13=Towers of Midnight
  |14=A Memory of Light

  |ns=New Spring
  |bwb=The World of Robert Jordan's Wheel of Time
  |strike=The Strike at Shayol Ghul
  |out=Outriggers

|The Wheel of Time}}

A template that renders the full name of a book from either an abbreviation or a number.

Examples

  • {{B|1}} → The Eye of the World
  • {{B|cot}} → Crossroads of Twilight

B0

{{#switch:{{lc:{{{1}}} }}

  |teotw|eotw=1
  |tgh=2
  |tdr=3
  |tsr=4
  |tfoh|tfh=5
  |loc=6
  |acos=7
  |tpod|pod=8
  |wh=9
  |cot=10
  |kod=11
  |tgs=12
  |tom|tofm=13
  |amol=14

  |ns=ns
  |bwb|worjwot=bwb
  |strike|sasg|tsasg=strike
  |out|outriggers=outriggers

}}

A template that returns book numbers for the main series books. It also normalizes other book's to initials.

Examples

  • {{B0|1}} → The Eye of the World
  • {{B0|cot}} → Crossroads of Twilight

Bi

{{#switch:{{B0|{{{1}}} }}

  |1=EotW <!-- or TEotW? -->
  |2=TGH
  |3=TDR
  |4=TSR
  |5=TFoH
  |6=LoC
  |7=ACoS
  |8=TPoD
  |9=WH
  |10=CoT
  |11=KoD
  |12=TGS
  |13=ToM<!-- or TofM? -->
  |14=AMoL

  |ns=NS
  |bwb=TWoRJWoT
  |strike=TSaSG

|WoT}}

A template that renders a normalized abbreviation of a book. Default is 'WoT'

Examples

  • {{Bi|1}} → EotW
  • {{Bi|cot}} → CoT

C

A template that retreives the real name of a chapter.

Examples

  • {{C|1|2}} → An Empty Road
  • {{C|cot|pblah}} → The First Message
  • {{C|eotw|rblah}} → Ravens

C0

{{#switch:{{lc:{{#sub:{{{1}}}|0|1}}}}

  |p=Prologue
  |e=Epilogue

  | {{#iferror:{{#expr:{{{1}}}+0}}
    |{{{1}}}
    |Chapter_{{{1}}}
  }}

}}

Converts the first parameter into a valid chapter title.

Examples

  • {{C0|PblAh}} → Prologue
  • {{C0|10}} → Chapter_10
  • {{C0|RbLah}} → RbLah

Cu

{{#replace:{{B|{{{1}}}}}| |_}}/{{C0|{{{2}}}}}

A template that renders a link to a chapter from one of the main books.

Explanation

The first part (before the /) de-prettyfy the page title (retreives the correct title, and replaces spaces with underscores).

The second part normalizes the second parameter to /Prologue, /Epilogue, /Chapter_{{{2}}}, or just /{{{2}}}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.