Template talk:Information field

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

{{Information field}} in other_fields parameter of {{Information}} (problem solved)[edit]

This problem has been solved. A workaround is no longer needed. --Sponk (talk) 17:07, 10 July 2010 (UTC)Reply[reply]

Hello! I am trying to use {{Information field}} in conjuction with the {{Information}} other_fields parameter. This is what I get (depending on whether I am using the other_versions parameter or not):


Example #1 (including other_versions parameter):

Description note the “|- valign="top"” on top of this box
Date
Source Own work
Author Sponk (talk)
Permission
(Reusing this file)
whatever
Other versions “other_versions” field
“Other field”
InfoField
This is the value parameter of {{Information field}}


Example #2 (excluding other_versions parameter):

Description nothing on top of this box, so far so good
Date
Source Own work
Author Sponk (talk)
Permission
(Reusing this file)
now it moves here: 
“Other field”
(same row?!)
InfoField
This is the value parameter of {{Information field}}


What am I doing wrong? So long, --Sponk (talk) 09:55, 17 May 2010 (UTC)Reply[reply]


I have finally received an answer to my problem from  User:✓ – my thanks to him! ✓'s remark has lead me to the following workaround: If you place <nowiki />¶ (including the line feed!) right in front of the {{Information field}} template, you will obtain the following, desired output:
Description nothing on top of this box
Date
Source Own work
Author Sponk (talk)
Permission
(Reusing this file)
everything's still fine
“Other field”
InfoField
now it works!
Greetings, --Sponk (talk) 11:16, 10 July 2010 (UTC)Reply[reply]
All examples work now. --DieBuche (talk) 16:16, 10 July 2010 (UTC)Reply[reply]
Thanks a lot! Greetings, --Sponk (talk) 17:07, 10 July 2010 (UTC)Reply[reply]

Drop wiki style[edit]

There are many cases where html style work and not wiki, but I have yet to find any instance of the reverse sitation. Cant we simply remove the "wiki" style ?--Zolo (talk) 09:38, 13 November 2011 (UTC)Reply[reply]

Yes, I just realized the same thing. --Jarekt (talk) 05:17, 22 January 2012 (UTC)Reply[reply]
By the way I changed the template to only include html version. --Jarekt (talk) 20:02, 23 January 2012 (UTC)Reply[reply]

Additional line break[edit]

{{Editprotected}} Hi. The line breaks in the template code cause the information fields to be visibly different from the other fields. Therefore, I'd like to propose the following piece of code...:

<th style="background: #ccf; text-align: right; padding-right: 0.4em; {{{style|}}}" class="{{{class|}}}">{{{name|{{{1|}}}}}}</th>
<td>
{{{value|{{{2|}}}}}}
</td>
</tr>

...to be changed into:

<th style="background: #ccf; text-align: right; padding-right: 0.4em; {{{style|}}}" class="{{{class|}}}">{{{name|{{{1|}}}}}}</th><td>{{{value|{{{2|}}}}}}</td></tr>

Thanks in advance.
Fleet Command (talk) 15:12, 6 May 2012 (UTC)Reply[reply]

I placed your proposed change in the {{Information field/sandbox}} and tried it on the template below and it does not seem to work with bulleted list:
*Title
  • Title
Author
  • Artist name
  • Artist name
Title
  • Title
  • Title
Source/Photographer
  • Some source
  • Some source
current
InfoField
Field Value 1b
proposed Field Value 1a
current
InfoField
  • Field Value 2b
  • Field Value 2b
proposed
  • Field Value 2a
  • Field Value 2a
--Jarekt (talk) 02:43, 7 May 2012 (UTC)Reply[reply]
Okay, I think I found a perfect solution as seen here: [1]
<tr valign="top">
<td style="background: #ccf; text-align: right; padding-right: 0.4em; width: 15%; font-weight:bold; {{{style|}}}" class="{{{class|}}}">{{{name|{{{1|}}}}}}</td>
<td><!-- Mandatory line break here -->
{{{value|{{{2|}}}}}}<!-- DO NOT insert a line break here. --></td></tr>
See the effects above. Fleet Command (talk) 08:40, 12 May 2012 (UTC)Reply[reply]

✓ Done Rd232 (talk) 22:48, 10 October 2012 (UTC)Reply[reply]

I reversed that edit. It did not work with cases where people had "*" bullets in new fields. See User_talk:Jarekt#NARA_template_broken. I created Template:Information field/testcases to test proposed changes. --Jarekt (talk) 19:34, 1 November 2012 (UTC)Reply[reply]

Bug ?[edit]

Not sure it relates to this template, but the yellow table the yellow table inside the "Federal Archives description" field of {{BArch-image/core}} sort of disappears when transcluded in File:Bundesarchiv Bild 183-1990-0116-030, Berlin, keine Gewalt, Jens Reich, Margitta Hinze.jpg. Similar tables in the "description" and "original description" fields seem to work, and the only differece I see is that they do not use {{Information field}} (I may missed an html error somewhere tough. --Zolo (talk) 22:33, 22 May 2012 (UTC)Reply[reply]

Add option to surround the table value with a span element with a given class[edit]

Hi,

For {{Credit line}}, we need to be able to surround the value with a element of a given class (in that case licensetpl_attr).

I tested a modification at {{Information field/sandbox}} − see Template:Information field/testcases for the tests. Unless there is an opposition, I will transfer these edits to {{Information field}} shortly.

Thanks, Jean-Fred (talk) 14:20, 23 November 2013 (UTC)Reply[reply]

✓ Done --Jean-Fred (talk) 22:02, 29 May 2014 (UTC)Reply[reply]

Adding a parameter for value style[edit]

Hi. I've made a proposed change to the sandbox version of this template to add a parameter specifying the style of the value's cell. This is needed in order to hide information that should be on the page but should remain invisible. This came up as part of the discussion at Template talk:Credit line#Inconsistent use of licensetpl_attr. Guillaume (WMF) (talk) 17:20, 19 November 2014 (UTC)Reply[reply]

Deployed --Jarekt (talk) 18:54, 19 November 2014 (UTC)Reply[reply]
Thanks Jarekt! Guillaume (WMF) (talk) 20:13, 19 November 2014 (UTC)Reply[reply]

sandbox[edit]

I do not know the system of your templates, but Template:Information field/sandbox has 259970 transclusion[2][3] Christian75 (talk) 09:34, 15 June 2015 (UTC)Reply[reply]

Our system is the same as on other Wikis: sandbox should never by transcluded (except temporarily for testing) and can be over written at any time. Christian75 thank you for reporting the issue. I will try to figure it out. --Jarekt (talk) 11:49, 15 June 2015 (UTC)Reply[reply]
Pictogram voting keep-light-green.svg Fixed It took some digging but it was a bug in Template:Credit line that caused it. --Jarekt (talk) 12:32, 15 June 2015 (UTC)Reply[reply]

Edit request on 29 July 2019[edit]

{{Edit request}}

Please change valign="top" to style="vertical-align: top". The valign attribute has been obsolete since the introduction of HTML5. Jc86035 (talk) 08:22, 29 July 2019 (UTC)Reply[reply]

✓ Done 4nn1l2 (talk) 08:48, 29 July 2019 (UTC)Reply[reply]