Game widow (talk | contribs) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
[[User:Kallac|Kallac]] ([[User talk:Kallac|talk]]) 21:00, 1 September 2017 (UTC) |
[[User:Kallac|Kallac]] ([[User talk:Kallac|talk]]) 21:00, 1 September 2017 (UTC) |
||
:Possibly, but i would need an example of where you need multiple keywords, and ideally a few examples so that i can discern a pattern — [[User:Game widow|Game widow]] <sup><small>([[User talk:Game widow| talk]] )</small></sup> 22:05, 1 September 2017 (UTC) |
:Possibly, but i would need an example of where you need multiple keywords, and ideally a few examples so that i can discern a pattern — [[User:Game widow|Game widow]] <sup><small>([[User talk:Game widow| talk]] )</small></sup> 22:05, 1 September 2017 (UTC) |
||
+ | ::For example [[Iris]] - it would be nice if the items in the 'keyword' section would automatically be converted to links. That way we can also quickly adapt should a keyword change. Even nicer if the same thing could be done for certain words in ability_detail - for example [[Saesenthessis]] could use links to [[Dwarf]] and [[Elf]].<br/> - [[User:Kallac|Kallac]] ([[User talk:Kallac|talk]]) 10:21, 2 September 2017 (UTC) |
||
+ | ::To clarify, it works fine with single keywords right now. Just when a card has multiple keywords separated by a comma, nothing happens.<br/> - [[User:Kallac|Kallac]] ([[User talk:Kallac|talk]]) 13:50, 2 September 2017 (UTC) |
||
+ | |||
+ | That seems to have done the trick, nice! |
||
+ | [[User:Kallac|Kallac]] ([[User talk:Kallac|talk]]) 12:34, 2 November 2017 (UTC) |
Latest revision as of 12:34, 2 November 2017
I'm not very familiar with the wiki syntax. Is there a way to parse the 'keywords' string for multiple words at once, and replace them with the proper links? I don't think the current switch statement works here. Kallac (talk) 21:00, 1 September 2017 (UTC)
- Possibly, but i would need an example of where you need multiple keywords, and ideally a few examples so that i can discern a pattern — Game widow ( talk ) 22:05, 1 September 2017 (UTC)
- For example Iris - it would be nice if the items in the 'keyword' section would automatically be converted to links. That way we can also quickly adapt should a keyword change. Even nicer if the same thing could be done for certain words in ability_detail - for example Saesenthessis could use links to Dwarf and Elf.
- Kallac (talk) 10:21, 2 September 2017 (UTC) - To clarify, it works fine with single keywords right now. Just when a card has multiple keywords separated by a comma, nothing happens.
- Kallac (talk) 13:50, 2 September 2017 (UTC)
- For example Iris - it would be nice if the items in the 'keyword' section would automatically be converted to links. That way we can also quickly adapt should a keyword change. Even nicer if the same thing could be done for certain words in ability_detail - for example Saesenthessis could use links to Dwarf and Elf.
That seems to have done the trick, nice! Kallac (talk) 12:34, 2 November 2017 (UTC)