Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.

Topic on Template talk:Infobox game

Nicereddy (talkcontribs)

I was trying to add a "DOS Porter" to the Mortal Kombat II page, but that's apparently not a valid property. The porting company was Probe Entertainment.

Anonymous (talkcontribs)

Aah. Well, one day, right? I've been meaning to maybe make the template slightly cleverer about some thing at some point, so when I get a moment I'll do both.

Just add a note on the game's talk page for now, and I'll get to it once I can.

Garrett (talkcontribs)

So you want to change it so it works like {{Infobox game/row/porter|Feral Interactive|OS X, Linux}}?

Anonymous (talkcontribs)

Basically yes, a couple of #arrays and so on should deal with it correctly. Just slightly more worried about the increase in workload, since you'll have a check for each value alongside the rest.

I'm thinking of doing it rather as: {{Infobox game/row/developer|Feral Interactive|OS X, Linux}} for the sake of simplicity. Should work fine (the distinction will be based on the 2nd value, default to developer if nothing is set).

Not sure how we should handle it not matching any value set - right now we permit things such as "multiplayer" or "expansion" in the section. Maybe just having a couple specially defined as incorrect (PC, Mac, etc.) will do.

Probably will do the same thing for dates when I get to it.

Anonymous (talkcontribs)

I have not written a template in a while too long.

Tell me if this makes sense: User:Soeb/Sandbox. Of course the extra property isn't there yet.

Garrett (talkcontribs)

Your template as implemented does not have working SMW functionality. I've tried some tweaks in my own sandbox and the output still isn't working as expected. This might be another limitation of SMW behaviour when used in combination with parser functions (as with Template:GOG.com links which I resolved by integrating a static copy of the other template's code instead of transcluding it). I'm not sure what the easiest solution is off-hand in this case (there's probably another workaround I'm forgetting).

Anonymous (talkcontribs)

Oh, of course, we aren't walking the array. Two templates are minimum for this, to avoid overcomplicating things.