Template:Ruby/split

From JoJo's Bizarre Encyclopedia - JoJo Wiki
< Template:Ruby
Revision as of 05:30, 12 July 2014 by imported>Hildawn (Created page with "{{IfSemantics | {{ #explode: {{{1}}} | <ruby }}{{ #arraymap: {{{1}}} | <ruby | $x$ | {{ #explode: {{ #explode: $x$ | <r{{ #switch: {{{2}}...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{{1}}}

Template Documentation (sometimes hidden or invisible)

Template tools: purgewhat links herewhat transclude thissubpages

{{Ruby/split}} is used to strip text using {{Ruby}} to either just the base text or just the top text.

This can work with <ruby> markup used without {{Ruby}}, but it is recommended to use {{Ruby}} as this template won't necessarily work with different variations.

Usage

{{Ruby/split|Ruby text|top}} converts a string of ruby text to just the top text. You can also use "furi" or "furigana" instead of "top".

{{Ruby/split|Ruby text|base}} converts a string of ruby text to just the base text. Omitting "base" also does this.

Examples

  • {{Ruby|極|きょく}}{{Ruby|神|しん}}{{Ruby|皇|おう}}ロキ normally produces (きょく)(しん)(おう)ロキ.
  • {{Ruby/split|{{Ruby|極|きょく}}{{Ruby|神|しん}}{{Ruby|皇|おう}}ロキ|top}} produces (きょく)(しん)(おう)ロキ.
  • {{Ruby/split|{{Ruby|極|きょく}}{{Ruby|神|しん}}{{Ruby|皇|おう}}ロキ|base}} produces (きょく)(しん)(おう)ロキ.
  • 13{{Ruby|人|にん}}{{Ruby|目|め}}の{{Ruby|埋|まい}}{{Ruby|葬|そう}}{{Ruby|者|しゃ}} normally produces 13(にん)()(まい)(そう)(しゃ)
  • {{Ruby/split|13{{Ruby|人|にん}}{{Ruby|目|め}}の{{Ruby|埋|まい}}{{Ruby|葬|そう}}{{Ruby|者|しゃ}}|top}} produces 13(にん)()(まい)(そう)(しゃ)
  • {{Ruby/split|13{{Ruby|人|にん}}{{Ruby|目|め}}の{{Ruby|埋|まい}}{{Ruby|葬|そう}}{{Ruby|者|しゃ}}|base}} produces 13(にん)()(まい)(そう)(しゃ)
  • {{Ruby/split|ブラック・ホール|top}} produces ブラック・ホール
  • {{Ruby/split|ブラック・ホール|base}} produces ブラック・ホール

See also

Visit Template:Ruby/split/doc to edit this text! (How does this work?) (Refresh this text)