A "colon function" is a predefined template with at least one unnamed parameter, separated from the function name by a colon ":" (unlike ordinary templates using "|"). Thus the syntax is:
- {{ function name : parameter value }}
The function name is not case-sensitive. Further parameters (if any, depending on the function) are separated by "|".
Formatting
LC
Makes a text lowercase.
{{lc:AbCdEf}} gives abcdef.
{{lc:Ä Β Ç}} gives ä β ç, expected ä β ç.
UC
Makes a text uppercase.
{{uc:AbCdEf}} gives ABCDEF.
{{uc:ä β ß}} gives Ä Β ß, expected: Ä Β SS. Don't expect too much.
LCFIRST
Makes the first character lowercase: {{lcfirst:Ab Cd}} gives ab Cd.
UCFIRST
Makes the first character uppercase: {{ucfirst:aB cD}} gives AB cD.
URLENCODE
Converts the text into URL friendly format by replacing spaces with " ": {{urlencode:hello world}} gives hello+world
NS
Gives the namespace name for a given namespace number or name:
{{ns:4}}
gives lensowiki.
{{ns:{{ns:12}}_talk}}
gives Help talk.
{{ns:project}}
gives lensowiki.
However {{ns:{{SITENAME}}}}
for {{SITENAME}}
=lensowiki doesn't work, on Meta it has the same effect as <nowiki>{