Dear all,
I'm new to the list (though not so new to Wikipedia and MediaWiki :->). I hope this is the right place to ask.
I'm having a problem writing this template: http://wiki.openstreetmap.org/wiki/Template:RelatedTerm
Given "{{RelatedTerm|term }}, ..." (like e.g. "{{RelatedTerm|Church}}{{RelatedTerm|Lord's house}}" ) this should be displayed as "Church. Lord's house.". But instead "Church. house Lord's house." get's displayed. So, when there are values with whitespaces inside the template (like "Lord's house"), the second word is being displayed in front of everything again. Here, you see my test: http://wiki.openstreetmap.org/wiki/Taginfo/RelatedTerm#Tests
It seems to me as if the THEN part of "{{ #if: ..." is to be blamed (see source of Template).
Yours, Stefan
P.S. Any hints on an even better usage of templates and parameters are welcome too.
Stefan,
I'm guessing this is resolved since the test appears to be working.
Bob
On 9/6/2011 2:27 PM, Stefan Keller wrote:
Dear all,
I'm new to the list (though not so new to Wikipedia and MediaWiki :->). I hope this is the right place to ask.
I'm having a problem writing this template: http://wiki.openstreetmap.org/wiki/Template:RelatedTerm
Given "{{RelatedTerm|term }}, ..." (like e.g. "{{RelatedTerm|Church}}{{RelatedTerm|Lord's house}}" ) this should be displayed as "Church. Lord's house.". But instead "Church. house Lord's house." get's displayed. So, when there are values with whitespaces inside the template (like "Lord's house"), the second word is being displayed in front of everything again. Here, you see my test: http://wiki.openstreetmap.org/wiki/Taginfo/RelatedTerm#Tests
It seems to me as if the THEN part of "{{ #if: ..." is to be blamed (see source of Template).
Yours, Stefan
P.S. Any hints on an even better usage of templates and parameters are welcome too.
Wikipedia-l mailing list Wikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikipedia-l
Hi Bob
Yes! It was my fault. Lars helped me. The crucial hint as to use urlencode the URL, like this: [http://wiki.openstreetmap.org/w/index.php?title=Special%3ASearch&search=... {{{1}}}]
Yours, Stefan
2011/9/7 Bob the Wikipedian bobthewikipedian@gmail.com:
Stefan,
I'm guessing this is resolved since the test appears to be working.
Bob
On 9/6/2011 2:27 PM, Stefan Keller wrote:
Dear all,
I'm new to the list (though not so new to Wikipedia and MediaWiki :->). I hope this is the right place to ask.
I'm having a problem writing this template: http://wiki.openstreetmap.org/wiki/Template:RelatedTerm
Given "{{RelatedTerm|term }}, ..." (like e.g. "{{RelatedTerm|Church}}{{RelatedTerm|Lord's house}}" ) this should be displayed as "Church. Lord's house.". But instead "Church. house Lord's house." get's displayed. So, when there are values with whitespaces inside the template (like "Lord's house"), the second word is being displayed in front of everything again. Here, you see my test: http://wiki.openstreetmap.org/wiki/Taginfo/RelatedTerm#Tests
It seems to me as if the THEN part of "{{ #if: ..." is to be blamed (see source of Template).
Yours, Stefan
P.S. Any hints on an even better usage of templates and parameters are welcome too.
Wikipedia-l mailing list Wikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikipedia-l
Wikipedia-l mailing list Wikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikipedia-l
wikipedia-l@lists.wikimedia.org