Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:0

Template page
Revision as of 05:12, 22 December 2024 by Joe Beaudoin Jr. (talk | contribs) (Created page with "<includeonly>{{#explode:{{#replace:{{#replace:{{#replace:{{{1}}}| |_}}|_(|(}}|_| }}|(|0}}</includeonly><noinclude> = 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. "Peg...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation[edit source]

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[edit source]

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.