Template:InlineSpoiler

From Red Faction Wiki
Revision as of 19:02, 25 July 2009 by DavidJCobb (talk | contribs) (Documentation added.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

spoiler {{{1}}} end of spoiler

Inline, accessible spoilers. Much better than the JS <spoiler> version, which isn't very well coded anyway.

Syntax: {{InlineSpoiler|1=Your text}} spoiler Your text end of spoiler

A few things to note.

  • Some symbols used in wikimarkup must be converted to HTML entities. In particular, vertical pipes must be converted to &#124;.
    • If you wish to use a vertical pipe as part of some valid wikimarkup present in the input (e.x. a table), you'll need to use the ! template. If that template does not exist on this wiki, you can find it on Wikipedia. You would use the template in place of the vertical pipe (replacing | with {{!}}).
      • There's no reason to use tables inside of this template. For entire paragraphs, headers, tables, or other similar "blocks", please use the default <SPOILER> tags.
  • "Magic words" such as {{PAGENAME}} should function just fine.
  • Nested templates should also work, though based on the other templates' code, the results may be... unpredictable.
  • The 1= can be omitted, but only if no equal signs are present in the input.