BSG-WIKI SM.png
Share Your Thoughts!

Shape the future of Battlestar Wiki with this short survey!

There may be algae cookies and hydronic mushies. Mmm... Trick or Treat!

Template:0

From Battlestar Wiki, the free, open content Battlestar Galactica encyclopedia and episode guide
Revision as of 22:50, 2 May 2020 by Joe Beaudoin Jr. (talk | contribs) (tweak to make sensible "an" vs "is an")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Documentation

Helps clean up errant spaces after piping a link to remove anything ensconced in parentheses, e.g. "Pegasus (episode)." It is used in such templates as: Template:TRS, Template:TOS, Template:ComicLine, and the like.

What this fixes

If using the regular "explode" expression to remove the parenthetical, e.g. "Pegasus (episode)", you'll get "Pegasus ", leaving an unsightly space between "Pegasus" and the end quotation mark.

Example:

{{#explode:Pegasus (episode)|(|0}}, an episode of the [[Re-imagined Series]].

Would print: Pegasus , an episode of the Re-imagined Series.

To fix the above example, one would then use this template thusly:

{{0|Pegasus (episode)}}, an episode of the [[Re-imagined Series]].

Would print: Pegasus, an episode of the Re-imagined Series.