Template:Ruby/detect/doc

From Yugipedia
< Template:Ruby‎ | detect
Revision as of 02:43, 21 March 2013 by Dinoguy1000 (talk | contribs) (create)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

{{Ruby/detect}} is a utility template used to determine if the given string uses 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