Template:Spoilerbox

From Ultima Codex
Jump to navigation Jump to search
SpoilerUntold Secrets Finally Revealed!

Reading this could really spoil your game!

Creates a collapsable spoiler box to keep precious secrets away form those who don't want to know them

Adds article to category:articles that reveal spoilers

Parameters[edit]

Parameters are unnamed:

  {{spoilerbox
  |title
  |text
  }}

first parameter is the title line. Should be only 1 line

second parameter is the text to be hidden

Examples[edit]

Basic[edit]

{{spoilerbox
|This is a big spoiler!
|this is some spoiler text
}}
SpoilerThis is a big spoiler!

this is some spoiler text

Nested[edit]

{{spoilerbox
|This is a big spoiler!
|this is some spoiler text
  {{spoilerbox
  |nested
  |more spoilers!
  }}
}}
SpoilerThis is a big spoiler!

this is some spoiler text

Spoilernested

more spoilers!

Manual[edit]

Some content (such as tables) can't go into a spoiler box because of the way templates work. For that, manaully use the begin and end:

{{spoilerboxbegin| TITLE GOES HERE }}
CONTENT GOES HERE
{{spoilerboxend}}
Spoiler TITLE GOES HERE

CONTENT GOES HERE