Template:Compare: Difference between revisions

From Second Life Wiki
Jump to navigation Jump to search
Zai Lynch (talk | contribs)
m this should be more reliable
Zai Lynch (talk | contribs)
mNo edit summary
Line 1: Line 1:
<onlyinclude><includeonly>{{#ifeq:{{#titleparts:{{{1|}}}}}|{{#titleparts:{{{2|}}}|1|0}}</includeonly></onlyinclude>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.
<onlyinclude><includeonly>{{#ifeq:{{#titleparts:{{{1|}}}}}|{{#titleparts:{{{2|}}}}}|1|0}}</includeonly></onlyinclude>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.


== Usage ==
== Usage ==

Revision as of 20:39, 9 April 2009

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.

Usage

{{compare|STRING1|STRING2}}

Example:

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