Template talk:Infobox/doc

From Edge of Darkness Wiki

Infobox/doc
Jump to: navigation, search

User:MiszaBot/config

40px
Archives
Unknown extension tag "inputbox"
Threads older than 90 days are archived by MiszaBot II.

Contents

Infobox headings: 'above' or 'title' position?

Please see centralised discussion at Wikipedia talk:Manual of Style#Infobox headings. Your contributions will be welcome there. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 18:34, 4 April 2010 (UTC)

Show/hide capability

I'm having difficulty adding show/hide functionality to infoboxes at the top of articles, specifically at iPhone. Copying PlayStation 3, I jury-rigged iPhone using raw div classes (that I don't really understand). This took some trial and error with the show preview button, and I found that {{show}} and presumably {{hidden}} do not work, and that I can only hide one header (Connectivity, CPU, Input, etc.) per copy of code. I would like to hide several consecutive headers all tied to a single show/hide switch. Is this possible? And as a side question, is it possible to make adding this functionality easier? Thanks, HereToHelp (talk to me) 16:46, 6 May 2010 (UTC)

Make sure that they're always shown by default, especially when there is no JavaScript available. WP:COLLAPSE. OrangeDog (τε) 19:05, 6 May 2010 (UTC)
I notice this has been proposed or discussed a few times before: e.g. Template talk:Infobox/Archive 2#Adding a collapsible section?, Template talk:Infobox/Archive 3#collapsible infoboxes? So far no such functionality has been added. Are there any ideas about how such a feature would best be accommodated here? — Martin (MSGJ · talk) 18:33, 6 June 2010 (UTC)
Not that I know of. The modular nature of the template really should make this trivial, but it's a case of finding someone who has a firm grasp of how our collapsing code works to have a look at it. Chris Cunningham (not at work) - talk 21:47, 7 June 2010 (UTC)
I'm still interested in this, so perhaps I/we should post at WP:VP/T? HereToHelp (talk to me) 02:04, 8 June 2010 (UTC)
If you can decide how you want it to work I can probably work out how to code it. Is it just individual rows that you want to make collapsible (like on iPhone) or do you foresee a need to collapse entire sections as well? — Martin (MSGJ · talk) 09:20, 8 June 2010 (UTC)

a note for the first example

it would be a little helpful to brain dead people like me if it could somehow indicate that when 'all three' (header, label, data) are defined, that they dont show up in the infobox. it just seems counterintuitive. i know it 'says it' right below the example, but a little note within the code (ie "this wont show up") wouldn't hurt some of us dunderheads who skip over the 'wall of text' and just look at the code. i think the problem is that in most computer situations, the header is the header and the body is the body and they both show up .. and i cant figure out why you would call something 'header, label, data' if one would hide the others. anyways thanks. Decora (talk) 01:04, 12 May 2010 (UTC)

I fixed this up a bit - is that what you were thinking? --Ludwigs2 20:14, 5 June 2010 (UTC)

New "child" option

I have added a new "sub-infobox" feature which was being tested in the sandbox. This will allow this infobox to be nested, if the "child" parameter is set to "yes". The documentation will be updated shortly. Please revert (and let me know) if this causes a problem. It was added to deal with issues that came up at {{Infobox person}}. See articles transcluding {{Infobox person/Internet info}} (e.g., Matt Harding) for examples. Thanks! Plastikspork ―Œ(talk) 19:48, 5 June 2010 (UTC)

Looks okay to me. Could we use such an approach to hook extra rows on to an infobox? Then perhaps we could simplify this template by removing support for, say, rows 41-80. — Martin (MSGJ · talk) 18:30, 6 June 2010 (UTC)
That should be possible. It also simplifies "renumbering problem" when one wants to insert new rows into a template, since only the numbers in a particular subsection would have to be renumbered. Do we know which templates are using high row numbers? I know {{infobox martial artist}} is using around 70. Plastikspork ―Œ(talk) 19:43, 6 June 2010 (UTC)
{{infobox football biography 2}} uses over a hundred, although technically it depends on a fork of this template ({{infobox3cols}}, which I should really update and get merged back here) rather than {{infobox}} itself. That's the most pathological case I know of. Chris Cunningham (not at work) - talk 21:44, 7 June 2010 (UTC)

New aboveimage

My infobox


I have just added an {{{aboveimage}}} which is placed immediately above {{{above}}}. Please revert and trout me if it causes any problems. =) ダイノガイ千?!? · Talk⇒Dinoguy1000 00:55, 9 June 2010 (UTC)

I just reverted someone else who added a parameter to this template without discussion. Would you mind making the case for this parameter and getting a consensus before editing this highly visible template? — Martin (MSGJ · talk) 08:51, 9 June 2010 (UTC)
Why would we want an image above the box's text heading? Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 11:48, 9 June 2010 (UTC)
Looks to have been added for the use of {{Infobox road small}}. nevertheless, the point of the "above" parameter is that it's meant to be an upper heading; the layout of {{infobox road small}} is probably an a11y problem right now. Chris Cunningham (not at work) - talk 11:51, 9 June 2010 (UTC)

I've reverted the change for now pending consensus. And I might take up the offer to slap Dinoguy with the trout ... — Martin (MSGJ · talk) 11:59, 9 June 2010 (UTC)

Trout well-received; I should've known better. =) Would it perhaps be more acceptable to add another header under the image, or should I simply see if there is any consensus to change the order of elements in {{Infobox road small}}? ダイノガイ千?!? · Talk⇒Dinoguy1000 17:06, 9 June 2010 (UTC)
The small version of the infobox was developed as a companion to the larger, main {{infobox road}}, which has had that ordering for several years. You likely will not get consensus to change the ordering of either infobox. The small variant is in use on articles like Business routes of Interstate 196 that merger several separate, but related, highways together into one article. Imzadi 1979  18:03, 9 June 2010 (UTC)
You could achieve the same appearance by moving the name to "header1", but I agree that this doesn't seem to be semantically correct. Plastikspork ―Œ(talk) 20:10, 9 June 2010 (UTC)
I'm not sure why a change is required anyway, to be honest. There's no hard requirement that images are only added to image attributes: indeed, there's nothing specifically "imagey" about them from a code point of view. That said, the layout of that template is rather idiosyncratic, and (as has been pointed out to several wikiprojects recently) wider community concerns like infobox accessibility are not subordinate to local consensus as found on WikiProject discussions. Chris Cunningham (not at work) - talk 20:55, 9 June 2010 (UTC)
Let me ask this then, what's wrong with the current {{infobox road}} and {{infobox road small}} regarding the location of highway road marker images? {{jct}} generates a <graphic> <highway name> combination that conforms to MOS:FLAG guidelines. The only difference with the combination at the top of the infoboxes is that the <highway name> is on a separate line and not abbreviated. The infobox subtemplates have even been extended to add alt text to the infobox. What's the issue then? Imzadi 1979  21:08, 9 June 2010 (UTC)

Renaming proposal

moved to Wikipedia talk:WikiProject Templates#RfC re template naming Svick (talk) 11:13, 26 June 2010 (UTC)

small change

{{editprotected}} Note: I haven't tested this, just working off general template knowledge

example of problem
  • list item 1
  • list item 2
  • list item 3


In {{infobox/row}} can line 8 be changed to read:

  }}
{{{data}}}</td></tr>

The carriage return should allow wiki bullet and list formatting to work correctly in data cells. currently the first item in any list is not wikified if it's on the first line of the of the parameter specification - example at right. Template:Unsigned

Template:Done — Martin (MSGJ · talk) 10:43, 29 June 2010 (UTC)

Unintended consequences in Template:Infobox knot details

Is there a way to override this new behavior? The content in field data10 of Template:Infobox knot details are ABOK reference numbers which, by convention, always begin with a '#' character. This field is now being incorrectly rendered as a numbered list. Given the above comments, and since the knot details infobox has not been changed in quite a while, it appears this new behavior resulted from the above change (diff). As an example of what has gone wrong, see the infobox on Constrictor knot. The list should read "#176, #355, #364...", not "1. 176, #355, #364...".

I am not a wiki markup expert and would appreciate help/advice on the most appropriate way to override this new behavior in this field of the knot details infobox. The content does include bold and possibly other markup, so I just want to be able to override the new list behavior in this field and not disable all markup. Any recommendations would be appreciated or, failing any reasonable workaround, consideration of a reversion of this change. Thanks much... --Dfred (talk) 20:04, 6 July 2010 (UTC)

Fixed with a <nowiki/> tag before the template parameter in {{Infobox knot details}}. — Richardguk (talk) 20:54, 6 July 2010 (UTC)
Ah, you beat me to it. Template:=) --Ludwigs2 21:01, 6 July 2010 (UTC)

Just a little tweak

{{editprotected}}

I have a version in the {{Infobox/sandbox}}. The changes are very minor but it has been on my mind for a long time. I created a couple of synonymous parameter names so that the coder can use subheader1 and subheader2 instead of subheader and subheader2. This is consistent with image1 and image2. No big thing but the way it is now bugs me a little. Other differences are just code beautification and are not substantial. –droll [chat] 23:42, 29 June 2010 (UTC)

Done, as this doesn't appear to be controversial. However, please revert if there is an unforeseen problem. Plastikspork ―Œ(talk) 04:03, 30 June 2010 (UTC)

image2 horizontal

Hi, would it be possible to change the template to allow image2 to appear alongside (rather than below) image if desired? It could be used for prominent templates such as Template:Infobox U.S. state and Template:Infobox country and probably several others. Thanks LunarLander // talk // 13:54, 7 July 2010 (UTC)

Personal tools
Namespaces
Variants
Actions
Navigation
games
Toolbox