Template:Ruby/detect

From Yugipedia
< Template:Ruby
Revision as of 19:22, 13 July 2013 by Dinoguy1000 (talk | contribs) (Protected "Template:Ruby/detect": High traffic page (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Template documentation[view] [edit] [history] [purge]

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

  • {{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[edit]