Template talk:Information field
Template:Information field has been protected indefinitely because it is a highly-used or visible template. Use {{Edit request}} on this page to request an edit.Please test any changes in the template's /sandbox or /testcases subpages, or in a user subpage, and consider discussing changes at the talk page before implementing them. |
{{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)
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” | 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?!) | This is the value parameter of {{Information field}} |
What am I doing wrong? So long, --Sponk (talk) 09:55, 17 May 2010 (UTC)
- 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” | now it works! |
- Greetings, --Sponk (talk) 11:16, 10 July 2010 (UTC)
- All examples work now. --DieBuche (talk) 16:16, 10 July 2010 (UTC)
- Thanks a lot! Greetings, --Sponk (talk) 17:07, 10 July 2010 (UTC)
- All examples work now. --DieBuche (talk) 16:16, 10 July 2010 (UTC)
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)
- Yes, I just realized the same thing. --Jarekt (talk) 05:17, 22 January 2012 (UTC)
- By the way I changed the template to only include html version. --Jarekt (talk) 20:02, 23 January 2012 (UTC)
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)
- 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
|
|
---|---|
Author |
|
Title |
|
Source/Photographer |
|
current | Field Value 1b |
proposed | Field Value 1a |
current |
|
proposed |
|
- --Jarekt (talk) 02:43, 7 May 2012 (UTC)
- 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)
Done Rd232 (talk) 22:48, 10 October 2012 (UTC)
- 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)
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)
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)
- Done --Jean-Fred (talk) 22:02, 29 May 2014 (UTC)
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)
- Deployed --Jarekt (talk) 18:54, 19 November 2014 (UTC)
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)
- 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)
- 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)
Edit request on 29 July 2019[edit]
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)
- Done 4nn1l2 (talk) 08:48, 29 July 2019 (UTC)