Jump to content

User:Forgottenman/sandbox2: Difference between revisions

From The Austrian Economics Wiki, the global repository of classical-liberal thought
urlencode issues
m labels
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
|-
|-
|<code><nowiki>{{urlencode:Washington, Pennsylvania|QUERY}}</nowiki></code>||{{urlencode:Washington, Pennsylvania|QUERY}}
|<code><nowiki>{{urlencode:Washington, Pennsylvania|QUERY}}</nowiki></code>||{{urlencode:Washington, Pennsylvania|QUERY}}
|-
|<code><nowiki>{{urlencode:x y z á é}}</nowiki></code>||{{urlencode:x y z á é}}
|-
|<code><nowiki>{{urlencode:x y z á é|WIKI}}</nowiki></code>||{{urlencode:x y z á é|WIKI}}
|-
|<code><nowiki>{{urlencode:x y z á é|PATH}}</nowiki></code>||{{urlencode:x y z á é|PATH}}
|-
|<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.