Template:Fn/doc

 is the first name template. It is used by other templates to take a name and strip the surname away, leaving behind only the individual's forename. Thus, it is ideal for use inside of templates that handle the names of companions or other characters that are so familiar they are commonly referred to by their first names only. It is especially useful in compressing the amount of vertical space that an infobox template takes up.

This template isn't super useful on its own. For instance, if you type, you'll merely get  — which doesn't do you a whole lot of good.

But, within templates, where you can preset the brackets, it's highly useful to automated processes.

Usage is along the lines of: {{{variable name}}}

In the typical infobox, you'll have a variable and value, which this template can usefully handle. For instance, within {{tlx|Infobox Individual}}, you have:

If you set {{tlx|Infobox Individual}} to correctly process this input as an SMW variable — but want it to show only a linked first name, the guts of the code would be this: {{{sister}}}}} {{{sister2}}}}} This, when mixed with a tiny bit more formatting, would result in the following displaying in the infobox: Martha, Tish. Meanwhile, Property:Sister for Leo Jones would return Martha Jones and Tish Jones.

Exceptions
Because this wiki covers the DWU, we have to make exceptions for characters who don't have normal names. In particular, the DWU has a lot of characters, starting with the titular one, whose names are in the format of "the ". Because this template uses a #switch core, we can easily set up exceptions, where we directly define how we want to handle certain, specific names to be handled — but then otherwise let the template cascade down to the #default way of doing things.