Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Parse source: Difference between revisions

Template page
+2 en
Remove fa, screws things up
Line 14: Line 14:
|<!-- MediaWiki:UploadFormOwnWorkLabel/es --> Trabajo propio (own work)
|<!-- MediaWiki:UploadFormOwnWorkLabel/es --> Trabajo propio (own work)
|<!-- MediaWiki:UploadFormOwnWorkLabel/et --> Üleslaadija oma töö (own work by uploader)
|<!-- MediaWiki:UploadFormOwnWorkLabel/et --> Üleslaadija oma töö (own work by uploader)
|<!-- MediaWiki:UploadFormOwnWorkLabel/fa --> <span dir="rtl">مالکیت اثر برای خود بارگذار</span> (own work)
|<!-- MediaWiki:UploadFormOwnWorkLabel/fi --> Lataajan oma teos (own work by uploader)
|<!-- MediaWiki:UploadFormOwnWorkLabel/fi --> Lataajan oma teos (own work by uploader)
|<!-- MediaWiki:UploadFormOwnWorkLabel/fr --> Travail personnel (own work)
|<!-- MediaWiki:UploadFormOwnWorkLabel/fr --> Travail personnel (own work)

Revision as of 17:40, 6 February 2009


Template documentation[ view · edit · history · purge ]
This documentation is transcluded from Template:Parse source/doc.


Usage

This template should only be used in {{Information}} to parse the source field.

The template tries to match the message based on MediaWiki:UploadFormOwnWorkLabel or {{Own}}. When a match is made, the message is returned in the user's interface language.

To add a match based on MediaWiki:UploadFormOwnWorkLabel:

|<!-- MediaWiki:UploadFormOwnWorkLabel/<lang> --> {{subst:ucfirst:{{subst:lc:{{subst:MediaWiki:UploadFormOwnWorkLabel/<lang>}}}}}}

You might want to keep older revisions around or add them.

To add a match based on {{Own}} add:

|<!-- <lang> -->{{subst:ucfirst:{{subst:lc:Own work}}}}
//fhdjuf.hedhefd//!

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

Cookies help us deliver our services. By using our services, you agree to our use of cookies.