Jump to content

Template talk:CO2

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Template talk:CO2/sandbox)

Interesting

[edit]

This is rather interesting. Should this be preferred over writing CO<sub>2</sub>? —Preceding unsigned comment added by UBeR (talkcontribs)

It's up to the individual to decide. This template was created because it was easier to type! Your "manual" way produces everso slightly less server load so all else being equal, is the better one to use.
Smith609 Talk 07:43, 8 May 2008 (UTC)[reply]
Using the template provides several advantages.
  • Special:Whatlinkshere/Template:Co2 shows the pages that use the template. That's an alternative to searching for the displayed text string.
  • Everyone who uses the template will display the same text with the same formatting. That beats letting a large number of diverse editors come up with their own creative formatting.
  • In the unlikely event that the "preferred" formatting changes, then changing one template changes all instances of it. All instances that don't use the template would have to be tracked down manually and edited one at a time, by somebody.
  • The template provides an option to link the displayed text to the carbon dioxide article. Again, you could do that manually, but users might find different ways to do that. Using a template keeps it tidy.
--Teratornis (talk) 00:38, 7 May 2012 (UTC)[reply]

Subscript or Unicode?

[edit]

Is there a reason why this uses HTML subscript notation rather than simply inserting a Unicode ₂ ? (See Subscript) --Nigelj (talk) 20:14, 3 April 2010 (UTC)[reply]

I reverted the template to use HTML subscript since the unicode appears above the baseline. Gobonobo T C 01:29, 4 April 2010 (UTC)[reply]

How to wrap properly?

[edit]

At present the template doesn't wrap properly: depending on the width of the browser page you can get "CO" at the end of one line and the subscript "2" on the start of the next line. I don't know how to fix this. Can someone do so? And message me, pretty please? John Stumbles (talk) 23:56, 9 May 2019 (UTC)[reply]

 Done John Stumbles@, I wrapped the text with {{nowrap}}.  Stepho  talk  09:09, 10 May 2019 (UTC)[reply]

Conflict with cite templates

[edit]

The CO2 template has recently started triggering a warning when used with the {{cite}} family of templates. CO2 uses {{chem}}, which triggers the conflict. Therefore, some users are replacing the CO2 template in cites with HTML code. Some users have gone further and are replacing all uses of the CO2 template with HTML. This is being discussed at Wikipedia_talk:WikiProject_Chemistry#Help_needed.  Stepho  talk  00:16, 2 January 2022 (UTC)[reply]

I have edited this (and many other templates) in the past but the required permissions have changed.  Stepho  talk  09:19, 2 January 2022 (UTC)[reply]

Hi, I've changed the COI request to a template edit request Signed, I Am Chaos (talk) 20:40, 3 January 2022 (UTC)[reply]
Thank you.  Stepho  talk  20:55, 3 January 2022 (UTC)[reply]
 Done * Pppery * it has begun... 21:10, 3 January 2022 (UTC)[reply]
Thank you.  Stepho  talk  21:15, 3 January 2022 (UTC)[reply]

Need advice on similar template

[edit]

I would like to have a template named {km2} which simply spits out km2, replacing the need to type

km<sup>2</sup>

and perhaps having similar refinements available with the {CO2} template.

A template with that name did exist[1] but I am not sure of its functionality. It was deleted[2] because of WP:OVERLINK.

Please advise on if this is a good idea or not, and the best way to make it good. Wizmut (talk) 10:44, 26 December 2023 (UTC)[reply]

If an article mentions square km then more than likely it should also show square miles, as per WP:UNITS. In which case just use {{cvt}}.
Eg {{cvt|100|km2|0}} gives 100 km2 (39 sq mi) .  Stepho  talk  22:43, 26 December 2023 (UTC)[reply]
Oh yes, I love including miles when there's room. But sometimes it's not appropriate.
Consider the readability of these two statements:
Mainland France (535,261 km²) and Corsica (8,680 km²) comprise European France or Metropolitan France. Total area is 633,109 km² when including Overseas departments (89,168 km²).
Mainland France (535,261 km2 (206,665 sq mi)) and Corsica (8,680 km2 (3,351 sq mi)) comprise European France or Metropolitan France. Total area is 633,109 km2 (244,445 sq mi) when including Overseas departments (89,168 km2 (34,428 sq mi)).
The focus in the second one is all about the conversions, but the takeaway in the first one is the magnitude between each region. (My opinion)
Another constraint, the quoted text is in a footnote (from this article:List of European countries by area), so all those numbers are confusing in that tiny little box. But on the table itself, there's room for miles, so the miles are there. Wizmut (talk) 07:13, 27 December 2023 (UTC)[reply]
I'm not thrilled about it but I whipped up {{km2}}. Eg: {{km2|100}} gives 100 km2  Stepho  talk  08:15, 27 December 2023 (UTC)[reply]
Awesome! I'll try to set a good example where it's used. Wizmut (talk) 08:17, 27 December 2023 (UTC)[reply]