Jump to content

User talk:Nihonjoe/Userboxen/Interests

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Protected edit request on 20 May 2023

[edit]

I'm cleaning up a tracked syntax error called a Tidy font bug across Wikipedia, and this page has two in the hitchhiker's guide userbox. When links are written in the <font>[[link]]</font> format (with the color specified outside of the link) they do not display identically across browsers. Some browsers display it as specified, and other browsers default back to displaying the standard link blue.

Proposed code changes within, collapsing for tidiness

If you would, please change

This user is a '''<font color="#006400">[[frood]]</font>''' who really knows where their '''<font color="#006400">[[The Hitchhiker's Guide to the Galaxy#The origin of the towel joke|towel]]</font>''' is.

to

This user is a [[frood|'''<span style="color:#006400">frood</span>''']] who really knows where their [[The Hitchhiker's Guide to the Galaxy#The origin of the towel joke|'''<span style="color:#006400">towel</span>''']] is.


If you are also willing, there is one more font tag, and four center tags (both are obsolete tags), on this page. Correcting these will clear the page of all WP:LINT errors.

For the other font, change

<font face=roman>'''R'''</font>

to

<span style="font-family:roman">'''R'''</span>

And for the centers,

| style="font-size:{{{info-size|9}}}pt; padding:{{{info-padding|{{{info-p|4pt}}}}}}; line-height:{{{info-line-height|{{{info-lh|1.25em}}}}}}; color:{{{info-color|#000000}}}; {{{info-other-param|{{{info-op|}}}}}}" | <centeR>This user is addicted to<br>'''[[Curry|<span style="color:#FFFF00">Curries</span>]]'''</center>

to

| style="font-size:{{{info-size|9}}}pt; padding:{{{info-padding|{{{info-p|4pt}}}}}}; line-height:{{{info-line-height|{{{info-lh|1.25em}}}}}}; text-align: center; color:{{{info-color|#000000}}}; {{{info-other-param|{{{info-op|}}}}}}" | This user is addicted to<br>'''[[Curry|<span style="color:#FFFF00">Curries</span>]]'''


change

| style="width: 45px; height: 45px; background: black; text-align: center; font-size: {{{5|{{{id-s|14}}}}}}pt; color: {{{id-fc|#FFA812}}};" |<center> [[Image:Wormhole travel as envisioned by Les Bossinas for NASA.jpg|45px]]
| style="font-size: {{{info-s|8}}}pt; padding: 4pt; line-height: 1.25em; color: {{{info-fc|#FFA812}}};" | <center>This user enjoyed [[Farscape|'''<span style="color:#FFA812;">Farscape</span>''']]

to

| style="width: 45px; height: 45px; background: black; text-align: center; font-size: {{{5|{{{id-s|14}}}}}}pt; color: {{{id-fc|#FFA812}}};" | [[Image:Wormhole travel as envisioned by Les Bossinas for NASA.jpg|45px]]
| style="font-size: {{{info-s|8}}}pt; padding: 4pt; line-height: 1.25em; text-align: center; color: {{{info-fc|#FFA812}}};" | This user enjoyed [[Farscape|'''<span style="color:#FFA812;">Farscape</span>''']]

and change

| style="font-size: {{{info-s|8}}}pt; padding: 4pt; line-height: 1.25em; color: {{{info-fc|black}}};" | <center>This user is a '''[[railfan]]''', especially of the '''[[JR West]] [[Geibi Line]]'''.</center>

to

| style="font-size: {{{info-s|8}}}pt; padding: 4pt; line-height: 1.25em; text-align: center; color: {{{info-fc|black}}};" | This user is a '''[[railfan]]''', especially of the '''[[JR West]] [[Geibi Line]]'''.


These remove the use of the obsolete <center> tag and adds "text-align: center;" to the cell layout parameters (if not already present).

Thank you, Zinnober9 (talk) 01:36, 20 May 2023 (UTC) Zinnober9 (talk) 01:36, 20 May 2023 (UTC)[reply]

Courtesy ping to Nihonjoe just in case. SWinxy (talk) 22:05, 20 May 2023 (UTC)[reply]
@Zinnober9: Should we be using <b></b> (and the like)? Won't the wiki ignore those since we have wiki markup? ···日本穣 · 投稿 · Talk to Nihonjoe · Join WP Japan! 20:27, 22 May 2023 (UTC)[reply]
@Nihonjoe <b></b> is HTML5 markup, and both HTML5 and wikimarkup are widely accepted markup on Wikipedia. They are equivalent, clean ways of writing bold text with a style specification (color, font, size, etc) and I've used both <b style=... and '''<span style=... markup in many thousands of edits, and have had no issues with either.
Just for a side by side comparison,
frood (<b style="color:purple">...) and
frood ('''<span style="color:purple">...) display equivalently here, using both ways of writing such.
That said, would you rather the proposed changes use '''span style instead of <b style ? I can easily adjust the proposed changes above to use such instead; just specify. Other than getting a clarification on this detail, do the proposed changes meet your approval? My ideal goal is for you to be happy with the changes and for the identified errors to be corrected. Zinnober9 (talk) 08:59, 23 May 2023 (UTC)[reply]
@Zinnober9: From my understanding of HTML 5 (keeping in mind I've been using HTML since version 2), the <b></b> tags are deprecated in favor of <strong></strong>, and it's preferred to use <span style="bold;"></span> over that. That said, on wiki, it's preferred to use the wiki markup whenever possible. ···日本穣 · 投稿 · Talk to Nihonjoe · Join WP Japan! 17:11, 24 May 2023 (UTC)[reply]
This is the first I've heard of this. That said, I've adjusted the proposed to use '''<span style...
Do the proposed changes now meet your approval? Zinnober9 (talk) 19:39, 24 May 2023 (UTC)[reply]
Nihonjoe, https://www.w3schools.com/tags/tag_b.asp says that <b>...</b> tags are for bold text and <strong>...</strong> tags are for important text. I think b tags or wikimarkup are appropriate in these cases. – Jonesey95 (talk) 19:54, 24 May 2023 (UTC)[reply]
Sure, that's fine. ···日本穣 · 投稿 · Talk to Nihonjoe · Join WP Japan! 20:07, 24 May 2023 (UTC)[reply]
@Nihonjoe, <b>...</b> was undeprecated in the recent past. Now it has semantic meaning. Izno (talk) 20:26, 24 May 2023 (UTC)[reply]
 Done Izno (talk) 22:54, 24 May 2023 (UTC)[reply]