Template talk:Big
Template:Big is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. This template does not have a testcases subpage. You can create the testcases subpage here. |
Text has been copied to or from this page; see the list below. The source pages now serve to provide attribution for the content in the destination pages and must not be deleted as long as the copies exist. For attribution and to access older versions of the copied text, please see the history links below.
|
Size
[edit]Can we discuss this before making more changes? Please list your choice of the hour and back it up. -- Gadget850 talk 01:02, 26 October 2014 (UTC)
- Key points to consider in deciding how to do this properly:
- The HTML Big Element (
<big>
) makes the text font size one size bigger (for example, from small to medium, or from large to x-large) up to the browser's maximum font size.[1] - The big element is a text formatting control that increases the enclosed text by one size increment, based on the old HTML font sizes 1 through 7.[2]
- If you insert a
<big>...</big>
tag over text that is already font size 7, it will not get any larger.[3] - Larger or smaller than the parent element's font size, by roughly the ratio used to separate the absolute size keywords above.[4]
- {xx-small, x-small, small, medium, large, x-large, xx-large}: A set of absolute size keywords based on the user's default font size (which is medium). Similar to presentational HTML's
<font size="1">
through<font size="7">
where the user's default font size is<font size="3">
.[4]
- The HTML Big Element (
- Based on these key points
- "1.2em" is out of the question because it doesn't always make things bigger, and may in fact make them smaller. It also is not nestable.
- "115%" / "120%" is less desirable due to the fact that it does not limit text size to a size equal to font size 7.
- "larger" does exactly what
<big>...</big>
does, it increments the size of the text by one level (eg from "medium" to "large"), is nestable, and stops when the max value of 7 ("xx-large") has been reached. If we are going to have a template that is suppose to use css to replicate exactly what the obsolete tag use to do, then I believe it should do exactly what that tag use to do... — {{U|Technical 13}} (e • t • c) 13:34, 26 October 2014 (UTC)
References
[edit]Replies
[edit]- We has a fixed size (115%) when we still used
<big>
. The reason being that any CSS keywords resulted in inconsistent rendering between browser (IE being the biggest pain). 120% serves roughly the same purpose as the original tag; it raises the fontsize by 120% of its parent element. This is in line with other fontsize template like {{small}}. Is there a pressing reason we must exactly emulate<big>
, including its shortcomings?-- [[User:Edokter]] {{talk}}
14:44, 26 October 2014 (UTC)
- When people use {{Big}} expecting the same result as if they used
<big>...</big>
, they should get the same result. I feel that the template being consistent with the tag is more important than the result being consistent across browsers (and everyone using IE should know their results may vary). The end result is still larger text, and it's what they would expect if they used the tag this is suppose to replace... — {{U|Technical 13}} (e • t • c) 17:33, 26 October 2014 (UTC)- That is exactly what it is doing now.
-- [[User:Edokter]] {{talk}}
18:21, 26 October 2014 (UTC)- small, medium, large, x-large, xx-large, invalid, invalid, invalid... Nope... Fails to limit size to xx-large like it is suppose to... — {{U|Technical 13}} (e • t • c) 19:47, 26 October 2014 (UTC)
- Let's try that with font-size:larger... invalid? Guess not... but then again,
<big>
doesn't exist in HTML5, so there is nothing to emulate.-- [[User:Edokter]] {{talk}}
22:04, 26 October 2014 (UTC)
- Let's try that with font-size:larger... invalid? Guess not... but then again,
- small, medium, large, x-large, xx-large, invalid, invalid, invalid... Nope... Fails to limit size to xx-large like it is suppose to... — {{U|Technical 13}} (e • t • c) 19:47, 26 October 2014 (UTC)
- That is exactly what it is doing now.
Multiplier
[edit]We have 20,000 used of nested <big>
. (search articles) (search all)
I added support to the sandbox for a multiplier |x=
to make it easier to update such uses.
Markup | Renders as |
---|---|
* {{big/sandbox|HHHH}} * {{big/sandbox|x=1|HHHH}} * {{big/sandbox|x=2|HHHH}} * {{big/sandbox|x=3|HHHH}} * {{big/sandbox|x=4|HHHH}} * {{big/sandbox|x=5|HHHH}} |
|
Sizes per Wikipedia:HTML5#big. -- Gadget850 talk 11:27, 23 February 2015 (UTC)
- Ugh... hardcoded pixels are bad™. You can nest {{big}}, and there are also {{large}} and {{resize}}.
-- [[User:Edokter]] {{talk}}
11:48, 23 February 2015 (UTC)- Figured you had seen Wikipedia:HTML5#big. We should probably discuss size equivalents there. -- Gadget850 talk 12:07, 23 February 2015 (UTC)
- I have. All keyword sizes are relative to
font-size: medium;
(equivilant to<font size=3>
), which is the borwsers default size of 16px (on Windows at least). Hardcoded pixel sizes will not account for non-default browser settings.-- [[User:Edokter]] {{talk}}
12:18, 23 February 2015 (UTC)
- I have. All keyword sizes are relative to
- Figured you had seen Wikipedia:HTML5#big. We should probably discuss size equivalents there. -- Gadget850 talk 12:07, 23 February 2015 (UTC)
Changed the sandbox to use percentages, increasing each step by 20%: 120%, 144%, 172%, 207% and 248%. As we discovered at Wikipedia talk:HTML5#Big, IE and Opera increment nested <big>
, while Firefox and Opera grow exponentially. The current set of font size templates use rather random sizes, so they are not useful as a replacement.-- Gadget850 talk 17:41, 15 May 2015 (UTC)
Template-protected edit request on 19 June 2017
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
49.228.245.138 (talk) 20:19, 19 June 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. --Ahecht (TALK
PAGE) 20:27, 19 June 2017 (UTC)
CSS
[edit]What is the purpose to replace <big> by
{{big}}
? Why not using
<div>
?
Template-protected edit request on 7 August 2019
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
156.204.148.231 (talk) 07:22, 7 August 2019 (UTC)
"params": {
"topic1": { "label": "Topic", "description": "A topic mentioned on this disambiguation page", "type": "string" }, "topic2": { "inherits": "topic1" }, "topic3": { "inherits": "topic1" }, }
- 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 and provide a reliable source if appropriate. DannyS712 (talk) 07:55, 7 August 2019 (UTC)
Proposal to merge Template:Big, Template:Large, and Template:Larger
[edit]See this discussion. – Jonesey95 (talk) 23:26, 7 January 2023 (UTC)