Difference between revisions of "Template:Ruby/detect/doc"
< Template:Ruby | detect
Dinoguy1000 (talk | contribs) (create) |
Dinoguy1000 (talk | contribs) (+tracking cat) |
||
Line 3: | Line 3: | ||
{{t|Ruby/detect}} is a utility template used to determine if the given string uses Ruby markup. | {{t|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 {{t|Ruby}}, in which case it adds the page to [[:Category:Pages using hardcoded Ruby markup]]. | ||
=== Usage === | === Usage === |
Latest revision as of 02:45, 21 March 2013
This is a documentation subpage for Template:Ruby/detect. It contains usage information, categories and other content that is not part of the original template page. |
{{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]
- {{Ruby/split}}