Forum:Center / Centre

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to: navigation, search
Forums: Yew Grove > Center / Centre
This page or section is an archive.
Please do not edit the contents of this page.
This thread was archived on 3 April 2010 by Calebchiam.

People, when editing pages and trying to align to center, pleeeeease use <div style="text-decoration:underline;">, not <centre> ! Thanks a lot ! D-Sheep -T-G-E-H- Construction 89 21:01, March 15, 2010 (UTC)

Isn't there some kind of editing program that converts English spelling to British spelling (excuse my ignorance if there isn't)? I think the program might catch "center" and turn it into "centre."  Tien  21:12, March 15, 2010 (UTC)
I wish there were one. Maybe use of wiki bots ? I have no experience with that, so excuse me if this is impossible to do with them. D-Sheep -T-G-E-H- Construction 89 21:42, March 15, 2010 (UTC)
I thought centre was British, but the tag was center because Wikia is American. But I'm probably wrong then. Ancient talisman.png Oil4 Talk 21:43, March 15, 2010 (UTC)

@Tien you meant American English to British English, didn't you? Anyways like Sheep said maybe a bot? I have no experience programming, but I guess it is possible, maybe easy...? I don't think it is a big problem, though. Balance iz powa!4ndrepd TalkContribsStupid monkeys actually have a use...Jump to the God Wars II! 22:32, March 15, 2010 (UTC)

Yeah, my bad.  Tien  22:56, March 15, 2010 (UTC)

Comment - @Oli: <div align="center"> is a HTML tag, and HTML was invented by Americans so uses American spelling. @Druged: I'm pretty sure the problem is bots (or AWB) anyway that were programmed without the exception of <div align="center">. In any case please do not use <div align="center"></div> if you can as it is deprecated definition and may not be supported in future browsers, use <div style="text-align:center;"></div> instead (similarly for <u> and others). Quest.png Gaz Lloyd 7:^]Events!99s 23:14, March 15, 2010 (UTC)

Is it possible to make both <div align="center"> and <centre> work, or is that impossible?? Unicorn horn dust.png Evil Yanks talk 05:26, March 16, 2010 (UTC)

Probably not possible, as Wikia doesn't really create the HTML tags. Also, <div> tags reaaaally confuse me, and I think that goes for other users too. Chicken7 >talk 05:40, March 16, 2010 (UTC)
Comment (edit conflict) - No, <centre> is not a valid HTML tag and regardless, it's not a permitted tag in wikitext, meaning that it will always be escaped in the output. Ultimately, neither tag should be used, per Gaz's comment above. --Quarenon  Talk 05:41, March 16, 2010 (UTC)
Comment - Chicken, I can see why using <div> would be frustrating, since <center> seems to be a much more intuitive method. However, I think it is a good thing to write HTML using good practices as opposed to what might be the easiest way. The main reason <center> is not used is because the W3C has been trying to make differentiation between structure and presentation. In other words, tags should define the semantic meaning of the parts of the document, while the way it looks is maintained via stylesheets. This might not seem like an important distinction but it really is when you want to make an accessible site (e.g. for people who use narrators, need to use large fonts, high-contrast color schemes, etc). As an example, you use <del> to indicate that a piece of content is no longer applicable. If you were using a screen-reader, then this text might not be spoken out. On the other hand, if you wanted strike-through to be a presentational effect, you use something like <span style="text-decoration: line-through"> instead, so the screen-reader will know that this text is still an important part of the document and the text will be read out.
If we were to truly follow guidelines, we would want to use inline CSS to do alignment, either with text-align: center; to align text within a DIV or with margin: 0 auto; to center the DIV with respect to its parent element. After all, the align attribute is deprecated as well. --Quarenon  Talk 20:10, March 26, 2010 (UTC)

Closed - C.ChiamTalk 02:49, April 3, 2010 (UTC)