Template:InlineSpoiler
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
|
.- 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.
- 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
- "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.