WikiProject Infoboxes | |||||||
|
|
||||||||||||||||||
Sections older than 30 days may be automatically archived by Lowercase sigmabot III. |
Related pages |
---|
|
template for idioms?
Is there a template for idioms?
Is there a template for spy operations, such as MKUltra? Quiet2 (talk) 04:20, 30 January 2022 (UTC)
- https://en.wikipedia.org/wiki/Wikipedia:List_of_infoboxes — Preceding unsigned comment added by Quiet2 (talk • contribs) 04:21, 30 January 2022 (UTC)
Image handling
Shouldn't this include a |credit=
(or |credit#=
for each image), to add a line beneath the caption to indicate image credit, as is required by some imagery? -- 65.92.246.142 (talk) 21:30, 31 January 2022 (UTC)
- If that's necessary, then
|caption=
suffices. Izno (talk) 22:07, 31 January 2022 (UTC)- It would be useful if it were a standardized format, such as commonly found elsewhere, a right-aligned text entry; instead of the centre-aligned caption text. If it isn't a feature of infobox, perhaps a supplementary template, that is called with
|caption=
like {{credit line}} which creates a div to insert into the|caption=
after the caption text?with{{infobox (or derivation xyz) |image=imagexyz |caption=caption text {{credit line|required sourcing credit}} |other params }}
{{credit line}}
being:-- 65.92.246.142 (talk) 12:51, 1 February 2022 (UTC)<div style="text-align:{{{alignment|right}}};"><small>{{{credits}}}</small></div>
- First off,
<small>...</small>
is forbidden inside infoboxes. Apart from that, MOS:CREDITS applies - if you want to know the name of the photographer, click the image. --Redrose64 🌹 (talk) 16:00, 1 February 2022 (UTC)
- First off,
- It would be useful if it were a standardized format, such as commonly found elsewhere, a right-aligned text entry; instead of the centre-aligned caption text. If it isn't a feature of infobox, perhaps a supplementary template, that is called with
What am I doing wrong?
In my sandbox (permalink) are comparisons of a new version of ship infobox that uses Module:Infobox in place of a wikitable. Individual sections of the infobox are implemented as |section<n>={{#invoke:Infobox ship|<section function>|...}}
where |section<n>=
is an alias of (and internally translated to) |data<n>=
. This mechanism is taken from the examples at Template:Infobox § Embedding.
Note the space between the infobox top border and the top of the image in the side-by-side comparisons. The gap is larger in the right (new) infobox. Hover your mouse over the image in the right infobox and right-click → inspect. Between the <tbody>
tag and the image's <tr>...</tr>
tag is another <tr>...</tr>
tag which holds something that looks more-or-less like this:
<tr><td colspan="2" class="infobox-full-data"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1066479718"></td></tr>
Should that be there? If not, what am I doing wrong?
—Trappist the monk (talk) 15:38, 21 May 2022 (UTC)
- Probably shouldn't be there, but you're probably not doing anything wrong. That TemplateStyles corresponds to Module:Infobox/styles.css (note that
mw-data:TemplateStyles:r1066479718
indicates the page revision of the TemplateStyles page injected). Since the row exists, it's getting the associated padding from the CSS being applied toinfobox-full-data
which is why there is more. - The specific issue relates to Template talk:Infobox/Archive 18#Fix for empty cells with child boxes. Izno (talk) 17:25, 21 May 2022 (UTC)
Add a section "Discuss editing/improving an infobox template"
Let's take the infobox on the president of your country, the USA, European Commission, whatever. They contain more or less the same kind of quick overview data, but there are slight differences for example in some the start of the term is mentioned but not the end of the term of their presidency. Imagine you want to discuss to add that or anything else in an infobox. Isn't it worth adding a section with good practices on how to proceed? To me it is not clear what consequences adding that end of term for example. It reads that templates contain "repetitive material that may need to show up on multiple articles or pages, often with customizable input. Most templates are scripts using MediaWiki parser functions, nicknamed "magic words", a simple scripting language." So the start of the term date, is that extracted from a dedicated article; idem the ending date of the president's term? And are those then taken along into other articles using magic words? Thy, SvenAERTS (talk) 12:12, 12 June 2022 (UTC)
- I'm a little unsure of what you're asking, but the place to discuss editing or updating any infobox is either the article's talk page (if it's missing information) or the template talk page (if the template itself needs extra/new fields).
So the start of the term date, is that extracted from a dedicated article
- no, it is a parameter in the template, something like|start_date=YYYY
, which is generally located at the top of the article.And are those then taken along into other articles using magic words
- no, the Magic words in question are things like #if, {{PAGENAME}}, and other "equation-like" things that make the information appear with the same formatting on every page. Primefac (talk) 16:01, 12 June 2022 (UTC)