Template:Ruby/detect
From JoJo's Bizarre Encyclopedia - JoJo Wiki
< Template:Ruby
Jump to navigation
Jump to search
Revision as of 05:29, 12 July 2014 by imported>Hildawn (Created page with "{{ #if: {{ #pos: {{{1}}} | <ruby }} | {{ #if: {{{2|}}} | {{{2}}} | 1 }}{{ #if: {{ #pos: {{{1}}} | <ruby> }} | Category:Pages using hardcoded Ruby markup }} | {{{3|}}...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template Documentation (sometimes hidden or invisible)
Template tools: purge • what links here • what transclude this • subpages |
Contents
{{Ruby/detect}} is a utility template used to determine if the given string uses Ruby markup.
This template also detects if the given string uses hardcoded Ruby markup instead of {{Ruby}}, in which case it adds the page to Category:Pages using hardcoded Ruby markup.
Usage
{{Ruby/detect|string}}
If the string uses Ruby markup, the template returns 1
; otherwise it doesn't return anything.
Optionally, a value to return if the string does (or doesn't) use Ruby markup can also be specified: {{Ruby/detect|string|uses Ruby|doesn't use Ruby}}
See also
- {{Ruby/split}}
Visit Template:Ruby/detect/doc to edit this text! (How does this work?) (Refresh this text)
- Manga ▾
- Media ▾
- Characters ▾
- World ▾
- Archives ▾
- Misc ▾
- Wiki ▾