Template:Compare

From Second Life Wiki
Revision as of 19:20, 9 April 2009 by Zai Lynch (talk | contribs) (New page: <onlyinclude><includeonly>{{#ifeq:{{#replace:{{#urlencode:{{{1|}}}}}|%27|+}}|{{#replace:{{#urlencode:{{{2|}}}}}|%26%2339%3B|+}}|1|0}}</includeonly></onlyinclude>This template compares to s...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This template compares to strings, returns 1 when they are equal or 0 when they aren't. It is supposed to be used to comapare a string with a pagename, since they got different ways to encode apostrophs. Same for titlepart vs. {{PAGENAME}} magic words.

Usage

{{compare|STRING1|STRING2}}

Example:

{{compare|STRING|{{PAGENAME}}}}


Emblem-important-yellow.png Note!

The {{PAGENAME}} magic word is supposed to be passed as second attribut.