Module talk:Template parameter value
Appearance
![]() | This module was considered for deletion on 2018 July 18. The result of the discussion was "No consensus to delete". |
Bug with pipped links
There is currently a bug with piped links, see example below:
{{Template parameter value|Charmander|Infobox video game character|1|firstgame|1}}
->
The result should have been [[Pokémon Red and Blue|''Pokémon Red'' and ''Blue'']]
. --Gonnym (talk) 19:48, 1 February 2019 (UTC)
- I am aware, and I've been looking into fixing this. Cheers. -- /Alex/21 22:49, 1 February 2019 (UTC)
Not handling nesting correctly
If a parameter value includes a single nested transclusion (multiple ones are not handled), the last match() does not work correctly. In my fork, I have changed
content = string.match(content, '^([^|}]*{{[^}]+}}[^|}]*)|') or string.match(content, '([^|}]+)')
to
content = string.match(content, '^([^|{}]*{{[^}]+}}[^|}]*)[|}]') or string.match(content, '([^|}]+)')
The next line then preprocess()es the transclussion correctly, as was its intention. This was likely not found before, because short-descriptions shouldn't have such, but my fork does.