Template talk:Set2

From Brickwiki
Jump to: navigation, search

Okay, I don't really understand the difference between Template:Set and Template:Set2. Ditto for Part and Part2. Hopefully I'm close in my /* Usage */. --ALittleSlow 11:22, 8 May 2012 (CDT)

I figured it out :) --ALittleSlow 12:05, 8 May 2012 (CDT)
Could you format the template to correspond to our convention on set decriptions? Tedward 13:55, 8 May 2012 (CDT)
Can you give an example? Remember that ANY text can be passed in as parameter #2 so formatting that parm as the title in front may not work..... Some examples using Airport Shuttle (6399)
What is it you wanted to see done with this one???? Maybe we need a Set3 that does it all? ++Lar: t/c 15:51, 8 May 2012 (CDT)
It sounds like using both is the right way for now, but it's cumbersome. This would take some magic, but if Template:Set could look up the title in Peeron, then it could represent per the convention as Ted suggested. Set2 could be left as is to provide flexibility. Or better, Set could have an optional 2nd parameter which provided the Set2 functionality. --ALittleSlow 22:01, 8 May 2012 (CDT)
Well, I would like to see the basic set template display the name and number as in the third example with the number displayed in parenthesis. I like the flexibility of the set2 template as an alternate. Tedward 22:58, 8 May 2012 (CDT)
Combining Set and Set2 into a single template looks trivial, and I'll play with it later. I would vote for calling it "Set" rather than "Set3", and deprecating Set2. For the magic, I need to get to the code behind "Set:". Anyone know how to do that? Oh, a Set with a magically generated set name would break any pages currently using Set and already following the convention. Hmmm. --ALittleSlow 23:23, 8 May 2012 (CDT)
The set and part custom functionality (done as a Mediawiki extension I think) was done by Astronouth7303‏‎ early in the creation of this wiki, IIRC. I don't know all the details but you may need to have Jeramy look at what extensions are installed that are custom. We may want to determine where Set and Set2 are used to determine how best to proceed. (bot to revise everything? dunno) I seem to recall that optional parameters weren't working with the version of MW we had back in 2005-6 but they should work now. ++Lar: t/c 09:01, 9 May 2012 (CDT)
Special:Version doesn't show anything, unless it's included in wfLDrawExtension. It looks to me like he may be using the "filter chain" customization he was working on at WikiMedia. There's mention at the end of that discussion that "parser functions extensions", implemented in 2006, are the way that type of thing should be done, and maybe he went that way. Wonder if I need a shell account on the server to dig deeper? --ALittleSlow 07:13, 10 May 2012 (CDT)
You could ask him. Or if he doesn't respond, ask his father (Steve Bliss) how best to get hold of him... But I think there is a lot of functionality in wfLDrawExtension, some that isn't directly LDraw related... not sure. I agree that you may need shell access to get to the bottom of this. I think Astronouth had it on Venkatesh's hardware. ++Lar: t/c 08:22, 10 May 2012 (CDT)
I put Set2's functionality into Set, but I see from Lar's 3rd example that the behavior isn't exactly the same. (I.e. I broke it.) I'll see if I can cover the case of a specified but empty 2nd parameter w/o much work. (I also recognize there are probably more important things I should be working on, but this is a good, fairly safe, problem for me to get some experience on.) --ALittleSlow 19:02, 12 May 2012 (CDT)
Got it. He's using an interwiki link. So no custom code. But we'll need some to implement the "conventional" set. I have a feeling a template alone won't be able to do it. --ALittleSlow 10:47, 14 May 2012 (CDT)
Personal tools