Template:Parse source/doc
Appearance
This is a documentation subpage for Template:Parse source. It contains usage information, categories and other content that is not part of the original template page. |
Usage
[edit]This template should only be used in {{information}} to parse the source field.
The template tries to match the message based on {{own}}. When a match is made, the message is returned in the user's interface language.
To add a match based on {{own}} add:
|<!-- <lang> -->{{subst:ucfirst:{{subst:lc:Own}}}}
You have to use the lc and ucfirst functions because the switch statement first converts all characters to lowercase and than the first character to uppercase again (to have case insensitive matching).
The use of {{own}} in the information template won't cause a template loop ({{own}} won't match and will just return).
See also
[edit]- {{ISOdate}} - Template used to parse the date in {{information}}