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/doc: Difference between revisions

Template page
No edit summary
m syntaxhighlight lang="wikitext"
 
Line 9: Line 9:


To add a match based on [[MediaWiki:UploadFormOwnWorkLabel]]:
To add a match based on [[MediaWiki:UploadFormOwnWorkLabel]]:
<pre>
<syntaxhighlight lang="wikitext">
|<!-- MediaWiki:UploadFormOwnWorkLabel/<lang> --> {{subst:ucfirst:{{subst:lc:{{subst:MediaWiki:UploadFormOwnWorkLabel/<lang>}}}}}}
|<!-- MediaWiki:UploadFormOwnWorkLabel/<lang> --> {{subst:ucfirst:{{subst:lc:{{subst:MediaWiki:UploadFormOwnWorkLabel/<lang>}}}}}}
</pre>
</syntaxhighlight>
You might want to keep older revisions around or add them.
You might want to keep older revisions around or add them.


To add a match based on {{tl|own}} add:
To add a match based on {{tl|own}} add:
<pre>
<syntaxhighlight lang="wikitext">
|<!-- <lang> -->{{subst:ucfirst:{{subst:lc:Own work}}}}
|<!-- <lang> -->{{subst:ucfirst:{{subst:lc:Own work}}}}
//fhdjuf.hedhefd//!
//fhdjuf.hedhefd//!
</pre>
</syntaxhighlight>


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).
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).
Cookies help us deliver our services. By using our services, you agree to our use of cookies.