Template talk:Infobox/Archive 13
Is Jewish a religion?
Closure of RfCI thought that an RfC could only be closed by an administrator? Müdigkeit isn't an admin. Could someone confirm this? Also the reason given is simply about numbers and doesn't mention anything about consensus. Gaia Octavia Agrippa Talk 10:14, 1 February 2016 (UTC)
Citations in Infobox zodiacI am improving Template:Infobox zodiac to correct the generated dates. I would like to include a citation in the infobox that would have a superscript within the infobox that leads to the article's list of references. However, different articles have different citation styles. What approaches have been tried to make a citation in an infobox compatible with various citation styles? Jc3s5h (talk) 17:38, 24 March 2016 (UTC) Using data from wikidataCould we make it any easier to use wikidata on infobox templates? For example, rather than including the following code on the infobox template: |data2 = {{#invoke:Wikidata|getValue|P123|{{{parameter_name|FETCH_WIKIDATA}}}}} would it be possible to just define the following: |data2 = {{{parameter_name|}}} |property2 = 123 and then this template would do the business of obtaining the data from the relevant property if the parameter was undefined? — Martin (MSGJ · talk) 15:23, 31 March 2016 (UTC)
|data2 = {{{parameter_name|FETCH_WIKIDATA}}} |property2 = 123
Protected edit request on 7 April 2016
Add his religion to infobox as he was a very religious man. Vikramadityachandel (talk) 18:07, 7 April 2016 (UTC) Not done
Protected edit request on 9 April 2016
Hello! I noticed there were a few typos in the info box at the top of the page. I.E. it says "news editor" and there are several, as well as "managing editors" and there is only one. Additionally, Laura Johnston is not an opinion editor, she's a senior editor. If you could please give me permission to approve this request that would be great! I work for the Columbia Missourian and the editor in chief, Tom Warhover, asked me to edit and correct this page. Thanks. Lc sherman (talk) 00:07, 9 April 2016 (UTC)
Example infobox (in section Examples) uses File:Example.pngIt should probably be using File:Example-serious.jpg 10:39, 26 April 2016 (UTC) — Preceding unsigned comment added by 217.119.235.14 (talk)
RfC: Wikidata in infoboxes, opt-in or opt-out?Wikidata has begun to be automatically imported into infobox fields. Should this be opt-in or opt-out? Please take part in the discussion at Wikipedia:Village pump (policy)#RfC: Wikidata in infoboxes, opt-in or opt-out?. Curly Turkey 🍁 ¡gobble! 01:18, 16 May 2016 (UTC) The title in mobil devicesIt seems as if the title of some infoboxes, for instance the on organizations, are reproduced a bit strange on mobile devices. The normal titles is aligned to the left, whereas the native title seems to be aligned at the center. Is that by purpose? Chicbyaccident (talk) 08:40, 3 June 2016 (UTC)
Image fieldWhy does Template:Infobox person use filename only in the "image" field, but Template:Infobox uses full image syntax? I can never remember which takes what and have to look it up. Kendall-K1 (talk) 13:34, 25 June 2016 (UTC) Use of thumbnails in InfoboxI am working on cleaning out the maintenance category Category:Pages using infoboxes with thumbnail images and I'm curious if there is a way we can use the Infobox template/module to help prevent NEW occurrences of thumbnails. Is there a way for the infobox to throw an error in preview when someone tries to add a new thumbnail? --Zackmann08 (Talk to me/What I been doing) 19:00, 15 July 2016 (UTC) Template:Infobox restaurantI’ve noticed a problem with this template. Posting here also as it’s talk page is relatively inactive, and the problem may be related to this template or its module. The thread is Template talk:Infobox restaurant#Map not working.--JohnBlackburnewordsdeeds 14:37, 16 July 2016 (UTC) Conditional headerHello! The documentation for template:infobox says (quote) "Ideally, the Lua module supporting this template should now support a new way to make each header row autohideable by detecting if there is at least one non-empty data row after that header row" (unquote). I think that is a great idea, so I thought about an easy way to implement that. The result is the altered Lua module in Module:Infobox/sandbox. Here is a diff from the current version. The new version should not change anything at all for current infoboxes, but it introduces a new series of parameters, called condheader(n) for conditional header. A condheader will work exactly as a normal header if it is followed immediately by a data row in the infobox. But if the next row is not a data row, the condheader will be suppressed. I have a modified Template:Infobox bridge which uses condheader(n) in my personal sandbox together with a redirection to Module:Infobox/sandbox, so the new code can be tested for bridge articles using Special:TemplateSandbox with User:Dipsacus fullonum/sandbox as sandbox prefix. I hope you will like the idea too! It could make many infoboxes simpler to code and maintain. Best regards, Dipsacus fullonum (talk) 20:34, 8 August 2016 (UTC) Genral RfC on Infoboxes?At Talk:Noël_Coward#RfC: Should an Infobox be added to the page?, there's been some assertions that an RfC needs to be performed here in order to address issues raised in the RfC for an infobox at Noël Coward. I don't understand this myself, but maybe someone more familiar with maintaining this template can discern what this is about? In that (rather long) discussion, there are several links to this talk, Line-break bug in data values
When <br> is used to create a multiline Code used is:
-- Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 19:21, 31 August 2016 (UTC) Can we have a simpler Infobox?Hello, To be honest, I found the current infobox module really confusing and hard to understand considering how messed up when it have CSS and HTML code nested in the lua codes... So, I'm wondering if it's possible to have a more simpler module without any of CSS and HTML code lines? it will be usefull for every new user of mediawiki and please, add the comments that explain how each function works. Thank you very much and enjoy your day! Allaze-eroler (talk) 22:36, 6 September 2016 (UTC) Need help crafting a new infobox.I have been creating lists of presidential elections by state, an example being United States presidential elections in New York. I would like to craft a custom infobox for these 51 pages containing a location map of the state, state flag/seal, and blanks for the set of parameters set forth at Draft:Template:Infobox elections by state. Any help with the wiki-fu for this would be appreciated. Cheers! bd2412 T 02:26, 16 September 2016 (UTC)
Remove the "testing purposes" label for the "assume args are being passed directly in" case in moduleSome infobox modules such as Module:Infobox_road and Module:Infobox_settlement calls the Infobox module and feeds it with arguments in testing mode. A few Module:Infobox derivatives are used this way as well, sometimes by more commonly-used modules like Module:Infobox gene. This unofficial usage makes sense as writers would have to copy the whole template and modify it otherwise. As more and more infobox templates are being converted to Lua module, it seems necessary to convert the testing-only status for directly argument-passing usage to a normative one. This change would help module writers write modules more confidently by declaring a previously testing-only interface stable. --Artoria2e5 emits crap 14:02, 13 October 2016 (UTC)
|
This edit request to Template:Infobox has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Could you please let me copy the code of this infobox template because I really need it for a project I have in school. I am a student from Albania and I study at Epoka University. I have an assignment to create a wiki page and I really need this infobox template. 79.106.109.152 (talk) 19:41, 9 February 2017 (UTC)
- Just click https://en.wikipedia.org/w/index.php?title=Template:Infobox&action=edit. Jo-Jo Eumerus (talk, contributions) 21:11, 9 February 2017 (UTC)
Template-protected edit request on 17 February 2017
This edit request to Template:Infobox has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I would like a copy of the Infobox template. I am creating a private wiki, and the steps to import the Template:Infobox do not seem to be working for me. CSchrieb (talk) 00:04, 17 February 2017 (UTC)
- Not done: it's not clear what changes you want to be made. Please mention the specific changes in a "change X to Y" format. GeoffreyT2000 (talk, contribs) 01:41, 17 February 2017 (UTC)
Show/Hide subboxes
Main 1 | |||||||
---|---|---|---|---|---|---|---|
Main 2 | |||||||
| |||||||
| |||||||
Label 5 | Data 5 | ||||||
Main 6 |
Is it possible to show/hide subboxes? LA (T) @ 03:14, 20 February 2017 (UTC)
- Do you mean like at Frank Sinatra or Canada -Moxy (talk) 03:45, 20 February 2017 (UTC)
- I think they mean like sections of infoboxes. I've seen this, but I can't think of an example ... Curly "JFC" Turkey 🍁 ¡gobble! 03:47, 20 February 2017 (UTC)
- I am talking about Template:Infobox#Subboxes where a show/hide link is by the subox's first header. LA (T) @ 14:37, 20 February 2017 (UTC)
- User:Lady Aleena, example with subboxes posted above. the show/hide will occupy the first table header and everything within that subbox will be collapsed. Frietjes (talk) 14:50, 20 February 2017 (UTC)
- Thank you Frietjes. Have a nice day! LA (T) @ 14:59, 20 February 2017 (UTC)
- User:Lady Aleena, example with subboxes posted above. the show/hide will occupy the first table header and everything within that subbox will be collapsed. Frietjes (talk) 14:50, 20 February 2017 (UTC)
- Canada
|ethnic_groups = {{Collapsible list
.--Moxy (talk) 04:48, 20 February 2017 (UTC)
Sub boxes and the usage of the infobox class
Hi, I've become aware that subboxes emit the infobox class. This seems incorrect to me. Is there a specific reason to do so ? —TheDJ (talk • contribs) 21:05, 27 February 2017 (UTC)
- I can't think of any reason why it would be needed. Frietjes (talk) 22:25, 27 February 2017 (UTC)
Subboxes
Main 1 | |||||||
---|---|---|---|---|---|---|---|
Main 2 | |||||||
| |||||||
Label 5 | Data 5 | ||||||
Main 6 |
foo | |||
coloured row |
Is it possible to have a subbox with the header width the same as a regular infobox header? Jc86035 (talk) Use {{re|Jc86035}}
to reply to me 15:41, 23 March 2017 (UTC)
- Jc86035, you might have some luck if you increase the width of the subboxes. Frietjes (talk) 19:44, 23 March 2017 (UTC)
- if that doesn't work, you could try increasing the magnitude of the negative margins for the subbox (e.g.,
margin:-4px
). Frietjes (talk) 19:45, 23 March 2017 (UTC)- @Frietjes: The problem is that this would need to scale with differing widths for {{Infobox station}} and {{Infobox rail line}}, due to differing image and route diagram widths (and the infobox getting wider when the route diagrams are uncollapsed). I've tried faking the header (in preview) using divs with extra borders to the left and right, but it's problematic because of the minimum two necessary divs so that the text stays in the centre with the [show/hide] button and the height being different in mobile and desktop due to table padding. Do you think a structure with NavFrames would work better? Jc86035 (talk) Use {{re|Jc86035}}
to reply to me 05:19, 24 March 2017 (UTC)- Jc86035, you could try adding a width that's over 100%, but I don't know how different browsers would react, or what would happen if the box gets stretched more than usual. as far as I can tell, the problem is that the enclosing data table cell is adding padding, and the subbox is removing the padding using a negative margin. but, the '100%' for the width for the subbox is calculated without the padding. you will definitely have better luck using tables for collapsed content vs. divs since the infobox is a table. if you want to give me some concrete examples in a sandbox, I can work on it. Frietjes (talk) 13:22, 24 March 2017 (UTC)
- @Frietjes: Never mind. It seems it's easier to just inject
padding:0
into the infobox using Module:String [2]. - Do you think it would be a good idea to allow styling for individual parameters (e.g.
|data42style=
) in Module:Infobox, or is it not worth adding? Jc86035 (talk) Use {{re|Jc86035}}
to reply to me 14:18, 24 March 2017 (UTC)- Jc86035, could be useful. we have resisted some per-cell styling to reduce the number of rainbow coloured infoboxes, but there are definitely cases like this one where the subbox really wants to be in a zero-padded cell. one compromise could be to have an option to turn off the padding for a data cell, but a more generic
|datastyleX=
would be useful for other situations. for {{infobox3cols}} we have|rowcellstyleX=
which allows you to style all the table cells in a row. so, if there is only one cell (e.g., data without labels) you get what you want. so, we could import that feature here which would have the advantage of keeping the syntax the same between the two templates. Frietjes (talk) 14:28, 24 March 2017 (UTC) - your Module:String looks fragile, and may break for very large route diagrams ... Frietjes (talk) 14:30, 24 March 2017 (UTC)
- @Frietjes: sounds like a good idea. I've added a spade to the function (for now) so that it doesn't accidentally modify something else. I don't think anyone is going to try to include East Coast Main Line diagram in the infobox, although that does stop the infobox from rendering. Jc86035 (talk) Use {{re|Jc86035}}
to reply to me 14:37, 24 March 2017 (UTC)- Jc86035, okay, I have made a proposal below, will see if there are any objections/issues. Frietjes (talk) 17:59, 24 March 2017 (UTC)
- @Frietjes: sounds like a good idea. I've added a spade to the function (for now) so that it doesn't accidentally modify something else. I don't think anyone is going to try to include East Coast Main Line diagram in the infobox, although that does stop the infobox from rendering. Jc86035 (talk) Use {{re|Jc86035}}
- Jc86035, could be useful. we have resisted some per-cell styling to reduce the number of rainbow coloured infoboxes, but there are definitely cases like this one where the subbox really wants to be in a zero-padded cell. one compromise could be to have an option to turn off the padding for a data cell, but a more generic
- @Frietjes: Never mind. It seems it's easier to just inject
- Jc86035, you could try adding a width that's over 100%, but I don't know how different browsers would react, or what would happen if the box gets stretched more than usual. as far as I can tell, the problem is that the enclosing data table cell is adding padding, and the subbox is removing the padding using a negative margin. but, the '100%' for the width for the subbox is calculated without the padding. you will definitely have better luck using tables for collapsed content vs. divs since the infobox is a table. if you want to give me some concrete examples in a sandbox, I can work on it. Frietjes (talk) 13:22, 24 March 2017 (UTC)
- @Frietjes: The problem is that this would need to scale with differing widths for {{Infobox station}} and {{Infobox rail line}}, due to differing image and route diagram widths (and the infobox getting wider when the route diagrams are uncollapsed). I've tried faking the header (in preview) using divs with extra borders to the left and right, but it's problematic because of the minimum two necessary divs so that the text stays in the centre with the [show/hide] button and the height being different in mobile and desktop due to table padding. Do you think a structure with NavFrames would work better? Jc86035 (talk) Use {{re|Jc86035}}
Adding rowcellstyle
per the thread above, are there any objections to this change? it adds an optional |rowcellstyleX=
parameter which allows you to pass CSS for styling the cells in that row. this style applies to both the labels and the data fields, and follows the same syntax used in module:infobox3cols. this will allow us to use |rowcellstyleX=padding:0
for rows containing subboxes so we don't need to use the negative margin trick for the subbox. let me know if you see any problems with the proposed addition. thank you. Frietjes (talk) 15:57, 24 March 2017 (UTC)
- @Frietjes: probably safe to merge, given there are 212 editors who watch this page and it's a relatively minor change. Jc86035 (talk) Use {{re|Jc86035}}
to reply to me 05:18, 4 April 2017 (UTC)- Jc86035, okay, done. Frietjes (talk) 05:39, 4 April 2017 (UTC)
MOS
Is there any MOS for infoboxes? Should we have one? I guess spaces and capitals in defining params in infoboxes should be done away with. I would like to invite comments from others on this. -- Pankaj Jain Capankajsmilyo (talk · contribs · count) 06:23, 21 April 2017 (UTC)
- @Capankajsmilyo: Wikipedia:Manual of Style/Infoboxes. Jc86035 (talk) Use {{re|Jc86035}}
to reply to me 12:00, 21 April 2017 (UTC)- Thanks -- Pankaj Jain Capankajsmilyo (talk · contribs · count) 04:45, 28 April 2017 (UTC)
Align subbox header
How to center subbox header? Example is Frank Sinatra. Show/hide takes space on the right and pushes title to the left; if we use margin-left:1em or something like that, then in mobile view (where collapsible things are uncollapsed and show/hide buttons removed) title goes from center 1em to the right in this case.
I mean to make it like it is in {{Infobox station}}, so that header text does not jump left-right when clicking show/hide (this could be done in Module:Navbar or collapsible class to fix all show/hide instances: center them, and stop them moving left-right).--Obsuser (talk) 13:45, 8 May 2017 (UTC)
- @Obsuser: Fixed in {{Collapsed infobox section begin}}. A div with a left/right margin is required for the show/hide text not to be calculated in the header centring (I don't think this could be fixed easily with a CSS class). Jc86035 (talk) Use {{re|Jc86035}}
to reply to me 15:13, 8 May 2017 (UTC)- Thank you.
- BTW, how to center "Transport for London rail lines" content in https://en.m.wikipedia.org/wiki/Waterloo_%26_City_line? Sometimes div style centering and margin:0 auto is not working for files, some tables or complicated content; how to force floating in the center?
- Also, I've noticed extra vertical space above first header in https://en.m.wikipedia.org/wiki/Frank_Sinatra. /I see it on PC, Win7, Chrome./
- And {{Collapsed infobox section begin}} does not work in its /doc example if image caption is not defined, don't know why.--Obsuser (talk) 15:56, 8 May 2017 (UTC)
- @Obsuser: {{London metro lines}} was fixed by Frietjes (by add
min-width:100%
to override mobile CSS). In some places there just isn't any margin/text-align CSS because the maximized width negates the need for it. Could you give any other examples of where it's not working? I don't think there's an easy solution for the extra vertical space without playing with the mobile CSS (since any formatting could also unintentionally affect the desktop layout). - If the
|image_caption=
text were to be deleted then the table code inserted by {{Collapsed infobox section begin}} would have been treated as part of|image=
and wouldn't have displayed properly. I don't think this is a problem since there's almost always a caption parameter in infoboxes. Jc86035 (talk) Use {{re|Jc86035}}
to reply to me 06:37, 9 May 2017 (UTC)
- @Obsuser: {{London metro lines}} was fixed by Frietjes (by add
Position of the infobox in mobile version of Wikipedia
I have noticed for two days now that the infobox appears after the first paragraph of the leading section of any article. This affects all the articles I have gone through in this period; from Television season articles, television series articles, a persons article etc. Isn't the infobox supposed to be at the beginning of the in the mobile version of Wikipedia articles? Please, someone help fix this. Nyanchoka : talk 2 me 18:06, 25 May 2017 (UTC)
- User:Nyanchoka, please see the thread at VPT. Frietjes (talk) 18:51, 25 May 2017 (UTC)
Module:Infobox/sandbox
At WT:Lua I was invited to comment on Module:Infobox/sandbox. All I can manage at the moment is to examine the changes from the main module and comment on any peculiarities—the logic of what the changes achieve is a blur that I can't take time to examine. I am moderately sure the new code is robust and will do what is expected and I only have trivia to report. My first point is that it is best to retain the existing style of a module (unless that style is horrendous). For example, change the first of these to the second:
for i=2,#s do for i = 2, #s do
It would be nice if the first edit to the main module (without any other changes) was to change all the spaces used for indents to tabs per current conventions, but that is not needed.
I have been using %S
(matches non-whitespace) for a while and this tweak could be made:
local function notempty( s ) return s and s:match( '^%s*(.-)%s*$' ) ~= '' end local function notempty( s ) return s and s:match( '%S' ) end
I guess there is a reason marker
is used twice in the following. Please don't explain as I can't digest it now but I thought I would mention anything I noticed.
return marker .. tostring(root) .. marker
Johnuniq (talk) 05:44, 28 May 2017 (UTC)
- Johnuniq, thank you for the comments. I have made some changes to partially address your suggestions. I avoided changing any spaces to tabs in any places that would increase the diff. The double markers are intentional so that we can split into a table and assume that (a) all the even items are child infoboxes, and (b) all the odd items are not child infoboxes. the sandbox2 version does something less complicated. Frietjes (talk) 16:05, 28 May 2017 (UTC)
Flag icons in infoboxes
Re: "Avoid flag icons." (WP:INFOBOXUSE) and "Flag icons should not be used in infoboxes" (WP:INFOBOXFLAG), I am considering removing flag items from a large number of infoboxes such as Notre-Dame de Paris, United States Navy SEALs, and Iberian Peninsula. Are there any other guidelines, policies or RfCs I should be aware of that might guide me as to pages that are exceptions? --Guy Macon (talk) 09:39, 30 June 2017 (UTC)
- @Guy Macon: Given that there are a very large number of {{Infobox settlement}} transclusions (likely as many as a hundred thousand) which contain national flags, it could be better to change the policy to reflect actual practice. I'm not sure, though. Jc86035 (talk) Use {{re|Jc86035}}
to reply to me 10:08, 30 June 2017 (UTC)- Jc86035, I think I would partially agree with you. I don't think the flags add anything to Notre-Dame or the SEALs but where there is a list in the infobox such as the Iberian Peninsular they visually break up the box into its components. Guy, perhaps you need to start an RfC running on WT:MOSINFOBOX? Martin of Sheffield (talk) 10:27, 30 June 2017 (UTC)
RfC: Allow private schools to be characterized as secular as well as religious?
This RfC, which directly concerns and affects {{Infobox school}} which is a child of this a template, is here: Wikipedia:Village pump (policy)/Archive 136#RfC: Allow private schools to be characterized as non-affiliated as well as religious, in infobox?. Herostratus (talk) 18:52, 25 June 2017 (UTC)
- The above RfC is an attempt is being made to overturn two infobox RfCs, one from less than six months ago and another from a year ago.
- Specifically, this new RfC asks that "religion = none" be allowed in the infobox.
- The first RfC that this new RfC is trying to overturn is:
- 15 June 2015 RfC: RfC: Religion infobox entries for individuals that have no religion.
- The result of that RfC was "unambiguously in favour of omitting the parameter altogether for 'none' " and additionally found that "There's no obvious reason why this would not apply to historical or fictional characters, institutions etc.", and that nonreligions listed in the religion entry should be removed when found "in any article".
- The second RfC that this new RfC is trying to overturn is:
- 31 December 2015 RfC: RfC: Religion in infoboxes.
- The result of that RfC was that the "in all Wikipedia articles, without exception, nonreligions should not be listed in the Religion= parameter of the infobox.".
- The above-mentioned RfC has been snow closed. At 8 Yes, 48 No, the Wikipedia community has decided, once again, that without exception, nonreligions should not be listed in the 'Religion=' parameter of the infobox on any article anywhere on Wikipedia. --Guy Macon (talk) 15:49, 30 June 2017 (UTC)
Former Names and Former Administrative Divisions
For a lot of cities/towns in Europe, like Danzig or Straßburg, they've belonged to a number of countries over the years. Can we add a 'former name' and 'former administrative divisions' section as an optional section? So, for example, Suckow an der Ihna, now Żukowo would show something like:
Żukowo Former Name: Suckow an der Ihna Former Country: German Empire (1871-1945)
- Member State: Prussia
- Province: Pomerania
- Regierungsbezirk: Stettin
- Kreis: Saatzig
- Regierungsbezirk: Stettin
- Province: Pomerania
(stars representing intented)
--James (talk) 12:10, 6 July 2017 (UTC)
- @James: Maybe you meant to post your question on Template talk:Infobox settlement? --Izno (talk) 12:27, 6 July 2017 (UTC)
Improvement
Is it possible to add code for tracking category with pages containing various Infoboxes with unknown parameters to this template itself, rather than to each infobox separately? -- Pankaj Jain Capankajsmilyo (talk · contribs · count) 19:54, 25 August 2017 (UTC)