Talk:WikiDB/Repeat tag syntax

From TestWiki
< Talk:WikiDB
Revision as of 21:00, 29 December 2017 by HappyDog (Talk | contribs) (Reply)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

See Talk:WikiDB/Repeat tag syntax/Archive for old development discussion.

I have a template that uses <repeat> and works fine:
<repeat table="Locations" criteria="Code={{{1}}}">{{{Code}}} ({{{Nickname}}}) {{#if:{{{Address|}}}|[{{urlencode:{{{Address}}}}}?hl=en&source=opensearch {{{Address}}}]|''No Address''}}</repeat>

But when I try to add internal wiki links: <repeat table="Locations" criteria="Code={{{1}}}">[[Location/{{{Code}}}|{{{Code}}}]]</repeat>, it shows the brackets instead of making a link. Single brackets work for external links, but double brackets don't work for internal links. Suggestions? 14:57, 29 December 2017 (GMT)

I've created a simplified test case, using data from the Companies table on this wiki, which seems to work correctly:
<repeat table="Companies">
:* [[Foo/{{{name}}}|{{{name}}}]]
Can you please confirm that you are using the latest version of WikiDB and that you are using the correct field names (note that field names are case-sensitive)?
If so, please let me know which version of MediaWiki you are experiencing this on. If possible, it would be useful if I could access the example directly on your wiki, so I can investigate further.
--HappyDog (talk) 21:00, 29 December 2017 (GMT)