• Home
  • Random
  • Log in
  • Settings
  • About Safer nicotine wiki
  • Disclaimers
Safer nicotine wiki

Template:Evaldemo

  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]

Examples:

  1. {{Evaldemo|CURRENTDAY|s=is}} displays
    {{CURRENTDAY}} is 12
  2. {{Evaldemo|#expr:2*3}} displays
    {{#expr:2*3}} gives 6
  3. {{subst:evaldemo|subst=subst:|#expr:2*3}} gives:
    {{ subst:#expr:2*3}} gives 6
  4. {{Evaldemo|1=#expr:2+2=5}} displays
    {{#expr:2+2=5}} gives 0
  5. {{Evaldemo|1=#expr:(2+2=4)|s==}} displays
    {{#expr:(2+2=4)}} = 1
  6. {{Evaldemo|urlencode:!|s==}} displays
    {{urlencode:!}} = %21
  7. {{Evaldemo|uc:abc}} gives
    {{uc:abc}} gives ABC
  8. {{subst:Evaldemo|uc:Upper Case|subst=subst:}} substitutes
    {{ subst:uc:Upper Case}} gives UPPER CASE
    See Help:Substitution for several caveats wrt subst=subst:.

As always the expression (first parameter) cannot directly contain "|", "=", plus other special cases related to square brackets / curly braces. In the case of this template "not directly" means "never" except from "=" as shown above.

The above documentation is transcluded from Template:Evaldemo/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://safernicotine.wiki/mediawiki/index.php?title=Template:Evaldemo&oldid=6898"
Last edited on 29 August 2021, at 05:18
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
More information

Languages

      This page is not available in other languages.

      Safer nicotine wiki
      • Creative Commons Attribution-ShareAlike
      • Powered by MediaWiki
      • Monitored by WikiApiary
      • ipv6 ready
      • Powered by Semantic MediaWiki
      • This page was last modified on 29 August 2021, at 05:18. Warning: Page may not contain recent updates.
      • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
      • Privacy policy
      • About Safer nicotine wiki
      • Disclaimers
      • Terms of Use
      • Desktop
      • Data access
      • Developers
      • Statistics
      • Cookie statement