Project:General Discussions: Difference between revisions

No edit summary
Line 35: Line 35:
:Works for me. It's very easy to use, I like it. I have one tiny nitpick though: is it necessary to  have the "cap" separated in the video template? Stuff like '''<nowiki>|vid1=R9u_BJXRyuI|cap1=super smash bros brawl in 3d dolphin emulator</nowiki>''' could very easily be '''<nowiki>|vid1=R9u_BJXRyuI|super smash bros brawl in 3d dolphin emulator</nowiki>''' instead, unless there is something in the template to prevent it of course. It's just a little nitpick. Awesome work on the templates Jhonn. - [[User:MaJoR|MaJoR]] ([[User talk:MaJoR|talk]]) 23:22, 19 November 2012 (CET)
:Works for me. It's very easy to use, I like it. I have one tiny nitpick though: is it necessary to  have the "cap" separated in the video template? Stuff like '''<nowiki>|vid1=R9u_BJXRyuI|cap1=super smash bros brawl in 3d dolphin emulator</nowiki>''' could very easily be '''<nowiki>|vid1=R9u_BJXRyuI|super smash bros brawl in 3d dolphin emulator</nowiki>''' instead, unless there is something in the template to prevent it of course. It's just a little nitpick. Awesome work on the templates Jhonn. - [[User:MaJoR|MaJoR]] ([[User talk:MaJoR|talk]]) 23:22, 19 November 2012 (CET)
::Well, the way how templates work doesn't allow it. I can get parameters without any prefix by using {{{1}}}, {{{2}}}, etc, but since the template randomly select one of the N videos that have been included, I cant "find" the number that correspond to the capN parameter of the selected video (because this number vary depending in which entry the template randomly selected). To avoid these kind of issues, we need to declare the parameters, allowing to get the capN by using {{{capN}}} regardless of what location it's defined, so, from my knowledge, there is no way of implementing this... - [[User:Jhonn|Jhonn]] ([[User talk:Jhonn|talk]])
::Well, the way how templates work doesn't allow it. I can get parameters without any prefix by using {{{1}}}, {{{2}}}, etc, but since the template randomly select one of the N videos that have been included, I cant "find" the number that correspond to the capN parameter of the selected video (because this number vary depending in which entry the template randomly selected). To avoid these kind of issues, we need to declare the parameters, allowing to get the capN by using {{{capN}}} regardless of what location it's defined, so, from my knowledge, there is no way of implementing this... - [[User:Jhonn|Jhonn]] ([[User talk:Jhonn|talk]])
:::Gotcha. It's fine, it's very easy to use now. - [[User:MaJoR|MaJoR]] ([[User talk:MaJoR|talk]]) 02:59, 20 November 2012 (CET)
== Recent Discussions ==
== Recent Discussions ==
Below is listed only what was discussed last month. You can [[Project:General_Discussions/Archive|search the archive]] for what was discussed since General Discussions page was created.
Below is listed only what was discussed last month. You can [[Project:General_Discussions/Archive|search the archive]] for what was discussed since General Discussions page was created.