User:Awesome diamonds/Sandbox/Transclude

This is a template-tester, where I make a page like a template and test it at Terraria Wiki:Sandbox or at User:Awesome diamonds/Sandbox, my sandbox.

Stuff Below
{{empty doc|{{code| {{User:Awesome diamonds/Sandbox/Transclude|Parameters Here|t=Template}} }}

First off, it appears I have unknowingly copied Ferretwings's /Sandbox/Template, down to the switch functions... whoops...

How to Use
Use the t= parameter to tell the template what to call. Currently the options are as follows (each of the options are preceded by a t=, of course):
 * DC — Outputs the “Does Contain” template.
 * WN — Outputs the “Wiki Name” template.
 * NONSL — Outputs the “No-Namespace Link” template.
 * SNG — Outputs the “Singular Link” template.
 * NWC — Outputs the “Nowiki Code” template.
 * FRAC — Outputs the “Fraction” template.
 * If nothing is input, an error message will display.
 * Any other inputs do not work, and an error message will display.

Does Contain
This template tests if STRING1 contains STRING2. If it does, it outputs IFDOES. Optionally, IFNOT can be specified, and will output if STRING1 does not contain STRING2.

Functions similarly to, but could be used in some situations that it can’t, and can’t be used in some situations that  can.

Wiki Name
No parameters (besides t= ) need to be specified. This template outputs the wiki name of the page it is on. For example, this template would output “Terraria Wiki” if on this page. If on the Minecraft Gamepedia, it would output “Minecraft Wiki”. Useful for UserProfiles.
 * Currently acts up with interwikis and some wikis with a name ≠ the url.

No-Namespace Link
This template creates a link to “Namespace:Page”, but with the namespace visibly removed. See wikipedia for a template like this.

Singular Link
This template will visibly remove any “s”s or “ies”s at the end of the page, but keep the link intact. Will act up when pages like Zombie are used.
 * Use e=yes to tell the template that the singular word ends in e normally.

Nowiki Code
Goal: Output “nowiki”d text in code format.

Fraction
Goal: Small little test just to see if it might be viable as a template. }}