Hello,
yesterday I found myself with a problem similar to the one described here: http://stackoverflow.com/questions/15164710/mediawiki-templates-inherit-para... But, actually, I would like to process template paramaters without first having to return the values associated to them -> {{{param1}}}, {{{param2}}}. Let's say, something like processing argv, where argv may contain argv['param1'], argv['param2'], but not knowing whether param1 or param2 do exist first (I should iterate over keys in this case…)
Is this something that might be done somehow by using Lula (Scribunto)?
Thanks!
Yes, Lula (lol :)) seems to fit your purpose well. Look here[1], it just works!
--- [1] https://en.wikipedia.org/wiki/Template:Navbox
On Tue, May 14, 2013 at 11:09 AM, Toni Hermoso Pulido toniher@cau.catwrote:
Hello,
yesterday I found myself with a problem similar to the one described here:
http://stackoverflow.com/questions/15164710/mediawiki-templates-inherit-para... But, actually, I would like to process template paramaters without first having to return the values associated to them -> {{{param1}}}, {{{param2}}}. Let's say, something like processing argv, where argv may contain argv['param1'], argv['param2'], but not knowing whether param1 or param2 do exist first (I should iterate over keys in this case…)
Is this something that might be done somehow by using Lula (Scribunto)?
Thanks!
Toni Hermoso Pulido http://www.cau.cat
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Hehe, thanks Paul for the nice example!
2013/5/14 Paul Selitskas p.selitskas@gmail.com:
Yes, Lula (lol :)) seems to fit your purpose well. Look here[1], it just works!
[1] https://en.wikipedia.org/wiki/Template:Navbox
On Tue, May 14, 2013 at 11:09 AM, Toni Hermoso Pulido toniher@cau.cat wrote:
Hello,
yesterday I found myself with a problem similar to the one described here:
http://stackoverflow.com/questions/15164710/mediawiki-templates-inherit-para... But, actually, I would like to process template paramaters without first having to return the values associated to them -> {{{param1}}}, {{{param2}}}. Let's say, something like processing argv, where argv may contain argv['param1'], argv['param2'], but not knowing whether param1 or param2 do exist first (I should iterate over keys in this case…)
Is this something that might be done somehow by using Lula (Scribunto)?
Thanks!
Toni Hermoso Pulido http://www.cau.cat
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
-- З павагай, Павел Селіцкас/Pavel Selitskas Wizardist @ Wikimedia projects
By the way, I found this short guide https://test2.wikipedia.org/wiki/Wikipedia:Guide_to_Scribbling (which helped me to know how to get Parent frame args). Shouldn't it somewhere else as well (unless I didn't manage to find it in other wikis) ?
2013/5/14 Toni Hermoso Pulido toniher@cau.cat:
Hehe, thanks Paul for the nice example!
2013/5/14 Paul Selitskas p.selitskas@gmail.com:
Yes, Lula (lol :)) seems to fit your purpose well. Look here[1], it just works!
[1] https://en.wikipedia.org/wiki/Template:Navbox
On Tue, May 14, 2013 at 11:09 AM, Toni Hermoso Pulido toniher@cau.cat wrote:
Hello,
yesterday I found myself with a problem similar to the one described here:
http://stackoverflow.com/questions/15164710/mediawiki-templates-inherit-para... But, actually, I would like to process template paramaters without first having to return the values associated to them -> {{{param1}}}, {{{param2}}}. Let's say, something like processing argv, where argv may contain argv['param1'], argv['param2'], but not knowing whether param1 or param2 do exist first (I should iterate over keys in this case…)
Is this something that might be done somehow by using Lula (Scribunto)?
Thanks!
Toni Hermoso Pulido http://www.cau.cat
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
-- З павагай, Павел Селіцкас/Pavel Selitskas Wizardist @ Wikimedia projects
-- Toni Hermoso Pulido http://www.cau.cat
I copied it over to English Wikipedia as well: https://en.wikipedia.org/wiki/Wikipedia:Guide_to_Scribbling
It would be good if there were something like this on meta, although the current wording/linking assumes the context of Wikipedia.
Ryan Kaldari
On 5/14/13 7:26 AM, Toni Hermoso Pulido wrote:
By the way, I found this short guide https://test2.wikipedia.org/wiki/Wikipedia:Guide_to_Scribbling (which helped me to know how to get Parent frame args). Shouldn't it somewhere else as well (unless I didn't manage to find it in other wikis) ?
2013/5/14 Toni Hermoso Pulido toniher@cau.cat:
Hehe, thanks Paul for the nice example!
2013/5/14 Paul Selitskas p.selitskas@gmail.com:
Yes, Lula (lol :)) seems to fit your purpose well. Look here[1], it just works!
[1] https://en.wikipedia.org/wiki/Template:Navbox
On Tue, May 14, 2013 at 11:09 AM, Toni Hermoso Pulido toniher@cau.cat wrote:
Hello,
yesterday I found myself with a problem similar to the one described here:
http://stackoverflow.com/questions/15164710/mediawiki-templates-inherit-para... But, actually, I would like to process template paramaters without first having to return the values associated to them -> {{{param1}}}, {{{param2}}}. Let's say, something like processing argv, where argv may contain argv['param1'], argv['param2'], but not knowing whether param1 or param2 do exist first (I should iterate over keys in this case…)
Is this something that might be done somehow by using Lula (Scribunto)?
Thanks!
Toni Hermoso Pulido http://www.cau.cat
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
-- З павагай, Павел Селіцкас/Pavel Selitskas Wizardist @ Wikimedia projects
-- Toni Hermoso Pulido http://www.cau.cat
wikitech-l@lists.wikimedia.org