Took care of two more broken characters
|
m Added a comment about why spaces are incompatible with bare nlink. It's a different case from the other character classes which have no name. Spaces have a name, but cannot be the only character in a title
|
||
Line 1: | Line 1: | ||
{{#ifeq:{{{name|}}}| none || {{#switch:{{{gc|}}} | Zs | Cc | Cs | Cp | Cn = <!--no smallcaps name, but straight nlink if given-->{{#ifeq:{{{nlink|}}} | <#salted#> || {{#if: {{{nlink|}}} | [[{{{nlink|}}}]] | {{error|Error using {{tl|unichar}}: Pagename expected in "nlink{{=}}"| tag=span }}}}}} |
{{#ifeq:{{{name|}}}| none || {{#switch:{{{gc|}}} | Zs <!--A space cannot be the sole character in a page name --> | Cc | Cs | Cp | Cn = <!--no smallcaps name, but straight nlink if given-->{{#ifeq:{{{nlink|}}} | <#salted#> || {{#if: {{{nlink|}}} | [[{{{nlink|}}}]] | {{error|Error using {{tl|unichar}}: Pagename expected in "nlink{{=}}"| tag=span }}}}}} |
||
| #default={{#switch:{{{nlink|<#salted#>}}} |
| #default={{#switch:{{{nlink|<#salted#>}}} |
||
| <#salted#> =<!--no link--><span style="font-variant-caps:all-small-caps;">{{uc:{{{na|}}}}}</span> |
| <#salted#> =<!--no link--><span style="font-variant-caps:all-small-caps;">{{uc:{{{na|}}}}}</span> |
![]() | This is the template sandbox page for Template:Unichar/name (diff). |
Returns the Unicode character Name text, in {{small}} uppercases, optionally wikilinked.
Input:
|na=
: name string (named param so whitespace/returns are stripped)|link=
: wikilink article name; should be "<#salted#>" if user did not use "|link=
" at all (meaning: do not link the name).See main template {{Unichar}} for full documentation.