Template:Compare

From Second Life Wiki
Revision as of 19:50, 9 April 2009 by Zai Lynch (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template compares two strings, returns 1 when they are equal and an empty string otherwise. It is supposed to be used to comapare a string with a pagename, since they got different ways to encode apostrophs. It can be passed in an #if parser function.

Usage

{{compare|STRING1|STRING2}}

Example:

{{#if:{{compare|STRING|{{PAGENAME}}}}|do something if strings equal|else}}