User:Forgottenman/sandbox2: Difference between revisions
Appearance
Forgottenman (talk | contribs) m +other example |
Forgottenman (talk | contribs) m labels |
||
| Line 16: | Line 16: | ||
|<code><nowiki>{{urlencode:x y z á é|WIKI}}</nowiki></code>||{{urlencode:x y z á é|WIKI}} | |<code><nowiki>{{urlencode:x y z á é|WIKI}}</nowiki></code>||{{urlencode:x y z á é|WIKI}} | ||
|- | |- | ||
|<code><nowiki>{{urlencode:x y z á é| | |<code><nowiki>{{urlencode:x y z á é|PATH}}</nowiki></code>||{{urlencode:x y z á é|PATH}} | ||
|- | |- | ||
|<code><nowiki>{{urlencode:x y z á é| | |<code><nowiki>{{urlencode:x y z á é|QUERY}}</nowiki></code>||{{urlencode:x y z á é|QUERY}} | ||
|} | |} | ||
According to [http://www.mediawiki.org/wiki/Help:Magic_words#URL_data magic word documentation], these should give different results. | According to [http://www.mediawiki.org/wiki/Help:Magic_words#URL_data magic word documentation], these should give different results. | ||
Latest revision as of 14:20, 12 May 2011
Problem with Magic Word urlencode:
| Code | Result |
|---|---|
{{urlencode:Washington, Pennsylvania}} |
Washington%2C+Pennsylvania |
{{urlencode:Washington, Pennsylvania|WIKI}} |
Washington,_Pennsylvania |
{{urlencode:Washington, Pennsylvania|PATH}} |
Washington%2C%20Pennsylvania |
{{urlencode:Washington, Pennsylvania|QUERY}} |
Washington%2C+Pennsylvania |
{{urlencode:x y z á é}} |
x+y+z+%C3%A1+%C3%A9 |
{{urlencode:x y z á é|WIKI}} |
x_y_z_%C3%A1_%C3%A9 |
{{urlencode:x y z á é|PATH}} |
x%20y%20z%20%C3%A1%20%C3%A9 |
{{urlencode:x y z á é|QUERY}} |
x+y+z+%C3%A1+%C3%A9 |
According to magic word documentation, these should give different results.