Hello Friends,
i'm Sascha from the Weekly News. We have an Problem. We're change our Layout to an new Template: http://en.opensuse.org/OpenSUSE_Weekly_News/Template/Full-New-Tango . In this is an Template named "Sablon:Point here" included. Now we would like to make at the End from the Document Section "Communicate" an Link to: http://news.opensuse.org/?p=1101 (As example). But if we typing after Slash the '?', the complete Section is not visible. Has anyone an Tip?
On Thursday 15 January 2009 19:32:32 Sascha 'saigkill' Manns wrote:
Hi,
i'm Sascha from the Weekly News. We have an Problem. We're change our Layout to an new Template: http://en.opensuse.org/OpenSUSE_Weekly_News/Template/Full-New-Tango . In this is an Template named "Sablon:Point here" included. Now we would like to make at the End from the Document Section "Communicate" an Link to: http://news.opensuse.org/?p=1101 (As example). But if we typing after Slash the '?', the complete Section is not visible. Has anyone an Tip?
it's not the "?" but rather the "=" that causes the problem. Just URl encode it and you'll be fine:
http://news.opensuse.org/?p%3d1101
On Freitag 16 Januar 2009 16:12:04 Frank Sundermeyer wrote:
it's not the "?" but rather the "=" that causes the problem. Just URl encode it and you'll be fine: http://news.opensuse.org/?p%3d1101
That's what i have in mind. I can't realize this. But now, i know it. Thank you for your help...
Hellp Frank,
On Freitag 16 Januar 2009 16:12:04 Frank Sundermeyer wrote:
On Thursday 15 January 2009 19:32:32 Sascha 'saigkill' Manns wrote: it's not the "?" but rather the "=" that causes the problem. Just URl encode it and you'll be fine: http://news.opensuse.org/?p%3d1101
I had tried this out. If i place ?p%3d1101 the Wiki says: ?p=1147. That's fine. But if i klick on the Link, it goes to: news.opensuse.org/ ?p%3d1147. And Firefox can't solve this URL. Has anyone an Idea?
On Friday 16 January 2009 18:10:40 Sascha 'saigkill' Manns wrote:
Hi,
On Freitag 16 Januar 2009 16:12:04 Frank Sundermeyer wrote:
On Thursday 15 January 2009 19:32:32 Sascha 'saigkill' Manns wrote: it's not the "?" but rather the "=" that causes the problem. Just URl encode it and you'll be fine: http://news.opensuse.org/?p%3d1101
I had tried this out. If i place ?p%3d1101 the Wiki says: ?p=1147. That's fine. But if i klick on the Link, it goes to: news.opensuse.org/ ?p%3d1147.
strange, but true. I would have thought that this is supposed to work.
Nevertheless, I think I finally found the correct solution.
The problem with "=" in template values is the following:
You have to call a template with named parameters {{{foo}}} and {{{bar}}} with
{{templatename|foo=value1|bar=value2}}
A template with parameters {{{1}}} and {{{2}}} can be called as in the example above: {{templatename|1=value1|2=value2}} or, shorter {{templatename|value1|value2}}
This, of course, implies that any "=" characters in a template value are interpreted as a name value pair delimiter. The solution is to use the long name value pair notation mentioned above when a value contains an "=" sign:
----------------------------------------- ==Feedback / Communicate / Get Involved== {{Sablon:PointHere|[[Image:OWN-tango-FCG.png|48px]]|2=See http://news.opensuse.org/?p=1101%7D%7D -----------------------------------------
Another solution would be to create a template (named e.g. Equal) just containing "=", and use it this way ... http://news.opensuse.org/?p%7B%7BEqual%7D%7D1101 ...
Hope this works.
Also see
http://meta.wikimedia.org/wiki/Help:Template
for _all_ the details on MediaWiki Templates (unfortunately you have to read the complicated parts at least 10 times before you understand - well, at least I have to ;-) ).