Help talk:HTML in wikitext/Archive 1
Meta:Help:HTML in wikitext authors and history
- 06:46, 4 September 2006 contribs)| (→Permitted HTML)
- 06:45, 4 September 2006 contribs)| (→Permitted HTML)
- 06:43, 4 September 2006 contribs)| (→Permitted HTML)
- 06:42, 4 September 2006 contribs)| (→Permitted HTML)
- 06:41, 4 September 2006 contribs)| (→Permitted HTML)
- 13:47, 15 August 2006 User:149.99.188.58 (→Font)
- 13:47, 15 August 2006 User:149.99.188.58 (→Font)
- 13:43, 15 August 2006 User:149.99.188.58 (→Font)
- 13:39, 15 August 2006 User:149.99.188.58 (→Font)
- 08:14, 6 August 2006 contribs)| (→Permitted HTML - * <ol>)
- 07:03, 6 August 2006 User:72.174.171.125 (→Permitted HTML - Updated links to HTML article and made some more precise)
- 13:26, 14 July 2006 contribs)| (→MediaWiki namespace - CSS and JS pages (see Help:User style) are not interpreted as wikitext, and therefore can have arbitrary HTML.)
- 10:08, 9 July 2006 contribs)| m (→Permitted HTML)
- 23:35, 8 July 2006 User:165.146.163.167 (→Permitted HTML - Fix another example)
- 23:30, 8 July 2006 User:165.146.163.167 (→Permitted HTML - Correct formatting of the <a href="..."> example)
- 21:45, 7 July 2006 User:69.209.194.245 (→Permitted HTML - added two remaining links)
- 21:24, 7 July 2006 User:69.209.194.245 (→Permitted HTML)
- 17:09, 7 July 2006 contribs)| (In some pages in the MediaWiki namespace HTML does not work, and e.g. <span id=abc> produces the HTML &lt;span id=abc&gt; rendered by the browser as <span id=abc>.)
- 15:13, 6 July 2006 contribs)| (changed link to be an actual link)
- 04:36, 22 June 2006 User:69.181.74.197 (→Permitted HTML)
- 04:33, 22 June 2006 User:69.181.74.197 (→Permitted HTML)
- 04:46, 8 June 2006 User:24.83.229.238 (→Font)
- 20:12, 31 May 2006 User:209.78.47.227 (→Font)
- 09:41, 30 May 2006 contribs)| (→Permitted HTML)
- 14:38, 25 May 2006 contribs)| (→Permitted HTML - Logical > Structured link fix)
- 04:03, 16 May 2006 User:220.244.88.206 (→Span)
- 02:04, 10 May 2006 contribs)| m (Reverted edits by 86.104.204.84 to last version by 68.48.7.17)
- 01:59, 10 May 2006 User:86.104.204.84
- 00:48, 9 May 2006 User:68.48.7.17 (Revert - porn spam)
- 00:03, 9 May 2006 User:86.104.204.84
- 15:22, 8 May 2006 User:87.80.134.195 (rv vandalism)
- 11:11, 8 May 2006 User:84.247.54.176
- 00:59, 7 May 2006 contribs)| m (Reverted edits by 86.104.204.84 to last version by Solensean)
- 00:58, 7 May 2006 User:86.104.204.84
- 23:35, 11 April 2006 contribs)| (rv vandalism)
- 21:45, 11 April 2006 User:124.1.66.131
- 02:45, 27 March 2006 User:68.87.64.105 (→Span)
- 12:17, 23 March 2006 User:217.251.173.142 (→Font - removed bogus <font> plus CSS example)
- 12:09, 23 March 2006 User:217.251.173.142 (→Permitted HTML - stop floating navbox before pre)
- 08:23, 16 January 2006 contribs)| m (→Font)
- 22:10, 2 January 2006 User:69.180.129.156 (fixing an html link example that wouldn't have worked anyway)
- 05:22, 9 December 2005 contribs)| (Modified interwiki links that don't work on Wikipedia itself.)
- 03:15, 8 December 2005 contribs)| (hoverbox)
- 19:19, 7 December 2005 User:131.155.151.252 (One foot is 30.48 cm, but 20000 feet is 6.1 km)
- 03:29, 25 November 2005 contribs)| (Changed initial template.)
- 12:12, 24 November 2005 contribs)| (Fixed hyperlinks that break when this page is copied to other projects.)
- 15:33, 23 November 2005 User:80.144.118.119 (→Font)
- 15:30, 23 November 2005 User:80.144.118.119 (→Font)
- 12:28, 23 November 2005 User:80.86.36.97 (link)
- 12:22, 23 November 2005 User:80.86.36.97 (→Font - link & clarify)
- 00:25, 18 October 2005 User:216.68.189.82 (Span.)
- 01:55, 15 October 2005 User:69.76.160.207 (→Permitted HTML)
- 01:55, 15 October 2005 User:69.76.160.207 (→Permitted HTML)
- 21:44, 16 September 2005 User:82.58.83.230 (→Permitted HTML=)
- 21:42, 16 September 2005 User:82.58.83.230 (→Permitted HTML)
- 08:01, 15 July 2005 contribs)| m (Reverted edits by 198.144.192.42 to last version by Patrick)
- 05:06, 15 July 2005 User:198.144.192.42 (→Permitted HTML)
- 08:53, 8 June 2005 contribs)| (rm sidebar, overlaps text)
- 05:25, 27 May 2005 contribs)| m (Reverted edits by 68.75.176.214 to last version by Patrick)
- 22:48, 26 May 2005 User:68.75.176.214
- 21:04, 8 May 2005 contribs)| (→Div - clarify)
- 13:31, 8 May 2005 User:192.138.137.237 (→Div)
- 22:27, 21 April 2005 contribs)| (h:h and h:f)
- 15:57, 18 April 2005 contribs)| m
- 01:07, 11 March 2005 contribs)| (→Permitted HTML - re:Talk (provisional): In 1.4rc1, the removeHTMLtags function is located in Parser.php)
- 02:07, 31 January 2005 contribs)| (Added links)
- 20:19, 30 January 2005 contribs)| m (Added links to HTML element descriptions)
- 19:56, 30 January 2005 User:68.5.79.90 (→Permitted HTML)
- 17:50, 30 January 2005 User:68.5.79.90 (Added links to HTML element descriptions)
- 17:11, 25 January 2005 contribs)| (update - span is allowed)
- 14:43, 11 December 2004 User:213.54.228.22
- 14:40, 11 December 2004 User:213.54.228.22
- 14:36, 11 December 2004 User:213.54.228.22
- 09:10, 6 August 2004 contribs)| m (→External links)
- 12:23, 5 August 2004 contribs)| (→Font -.title {color: red; } to see which text has a hover box.)
- 10:25, 5 August 2004 contribs)| (→Font - class="title")
- 10:22, 5 August 2004 contribs)| (font)
- 10:00, 5 August 2004 contribs)| (→Span -font)
- 08:00, 5 August 2004 contribs)| m
- 07:56, 5 August 2004 contribs)| (→Span -Note that the blank spaces at the end of and just after the styled part are removed; use &nbsp; at the end:)
- 07:43, 5 August 2004 contribs)| (→Span -The replacement <div style="display:inline"> can be used, but, oddly, apparently only in a list:)
- 05:42, 3 August 2004 contribs)| (→Span -The replacement <div style="display:inline"> is effectively disabled: the code is retained, but with closure of the paragraph before it and starting a new one after it.)
- 04:44, 3 August 2004 contribs)| m (→Span)
- 04:35, 3 August 2004 contribs)| (→Span - Note that many readers will not have their own css, specially adapted for such usage, so one cannot refer to "the red text above", etc.)
- 04:30, 3 August 2004 contribs)| (→Span -correction; This is suitable if the color is specifically intended to be red; if it is just for emphasis a more general term for the class would be more appropriate, because css allows the u)
- 04:10, 3 August 2004 contribs)| (→Span -E.g. to assign the class "red" to a text one can put <div style="display:inline; class="red"/>example text</div> which gives)
- 04:00, 3 August 2004 contribs)| (Span is also not allowed now, but this is being discussed, see w:Wikipedia:Span tags poll. It can be replaced by <div style="display:inline"/>.)
- 23:38, 2 August 2004 contribs)| m
- 22:33, 1 August 2004 contribs)|
- 06:47, 1 August 2004 contribs)| (links)
- 08:40, 31 July 2004 contribs)| m
- 08:38, 31 July 2004 contribs)| (E.g., element "a" is not allowed, and the wikitext)
- 08:27, 31 July 2004 contribs)| (and allows the tag to be used as link target.)
- 08:16, 31 July 2004 contribs)| (For many w:HTML elements more convenient wikitext code is available, see Help:Editing. However, HTML tags allow an id that can be referenced in css, to specify a user style.)
- 08:10, 31 July 2004 contribs)| (The following excerpt from [http://cvs.sourceforge.net/viewcvs.py/wikipedia/phpwiki/newcodebase/OutputPage.php OutputPage.php] shows what HTML is allowed in wikitext.)
HTML 5
Is anyone doing any work in preparedness for HTML5? These articles may be of use:
- Preparing for HTML5 with Semantic Class Names
- HTML 5 structure—HTML 4 and XHTML 1 to HTML 5
- HTML5 id/class name cheatsheet
- Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 15:24, 22 August 2009 (UTC)
HTML, or XHTML?
Desirably or otherwise, the Doctype declaration at the top of every en:WP page announces that the page is not in HTML but in XHTML (specifically, 1.0 Transitional). HTML and XHTML aren't the same, and pointing out the difference isn't merely pedantic. As it is, this page prescribes such code as simple "<br>" for a line break, and of course this is not valid XHTML. I believe that the Mediawiki software (in its current state, at least) silently corrects this to "<br />" and thus that this particular difference between HTML and XHTML doesn't really matter in practice; but it hardly helps (or contributes toward the educational purpose of Wikipedia as a whole) that this page promulgates misunderstandings. Unless there's some plan that I haven't heard of to switch soon to HTML (e.g. HTML5), I suggest moving this page to "Help:XHTML in wikitext" and making changes within it toward XHTML. But perhaps I'm overlooking something. -- Hoary (talk) 00:13, 1 April 2011 (UTC)
- The example "<br>" seems to indicate that the current page title "Help:HTML in wikitext" is better, the slash is not needed in the wikitext.--Patrick (talk) 12:51, 1 April 2011 (UTC)
- Please see the first sentence of my comment above. -- Hoary (talk) 12:55, 1 April 2011 (UTC)
- That is about the code sent to the browser, not about the wikitext.--Patrick (talk) 12:57, 1 April 2011 (UTC)
Wikipedia uses HTML Tidy to correct a lot of markup. Tags such as <br>, </br> and <br/> get transformed to a proper <br />.
The main issues occur when content is ported to another wiki that does not use HTML Tidy, resulting in invalid XHTML output. HTML Tidy does fix things it should not at times which results in some rather confusing output. ---— Gadget850 (Ed) talk 13:07, 1 April 2011 (UTC)
- So the result is XHTML 1.0 Transitional, or purports to be. The Doctype declaration aside, it's clearly XHTML, it doesn't use framesets, and in places it's clearly transitional rather than strict, so XHTML 1.0 Transitional it is. (I've a feeling that something happens after the HTML Tidy phase, because "un-Tidy" empty <ul></ul> pairs are common.) Knowing that the final product is going to be XHTML 1.0 Transitional (or thereabouts), what do you want going into Tidy: HTML elements, or XHTML elements? -- Hoary (talk) 14:25, 2 April 2011 (UTC)
- HTML Tidy is not enabled for editnotices or in the MediaWiki namespace. Using
<br>
will render invalid XHTML and will break tools such as Twinkle. ---— Gadget850 (Ed) talk 23:57, 2 April 2011 (UTC)- Although what Tidy isn't enabled for arguably isn't "wikitext", the fact that Tidy isn't enabled there and the potential for irritation when [specifically] HTML is used in the wrong place seem to me additional reasons to emphasize that XHTML is what's used for this site. Two measures: (i) retitle the page "Help:HTML in wikitext", and (ii) edit the page accordingly. (Of course the latter sounds far more forbidding than it really is. The changes would be very few and very simple; I could effect them all in a few minutes, though as somebody who seems a lot more knowledgeable than I am, you'd be wise to give the results a quick look-over.) -- Hoary (talk) 04:34, 3 April 2011 (UTC)
- HTML Tidy is not enabled for editnotices or in the MediaWiki namespace. Using
Multiple line breaks?
br does not accept a parameter such as 2 or 3, does it?
It seems like such a natural thing. Varlaam (talk) 17:21, 16 May 2012 (UTC)
- No, the
<br />
tag is not part of the wikicode but is built-in to XHTML, and the only attributes that it recognises areclass=
,clear=
,id=
,style=
, andtitle=
. See http://www.w3.org/TR/html4/struct/text.html#edef-BR - There is rarely a need to use more than one line break. Some people try to use them to force text to appear below an image instead of alongside it: but the effects vary between different screen resolutions, and even between browsers. The
{{clear}}
family of templates do this in a much more predictable manner. --Redrose64 (talk) 17:37, 16 May 2012 (UTC)- I certainly agree with you that legitimate situations for it are rare.
- In the interim though I have set up a multiple break at the head of one of my pages, List of World War II short films.
- I am not able to test across multiple browsers.
- Could you possibly have a look at my code and see what you think?
- (I used to have a job where I had to do a code read for every programmer in the office, other than the guru. What a nightmare.)
- Thanks, Varlaam (talk) 17:53, 16 May 2012 (UTC)
- It's not clear to me why any
<br />
are necessary there - let alone three. The{{TOC left}}
,{{clear right}}
and{{-}}
also seem superfluous to me: they serve to fix the formatting because the lead sentence has been mispositioned (it comes first but should be after the first image). If the lead sentence is moved after the image, this will allow those six items to be removed, so that the article then begins:
- It's not clear to me why any
{{contains Cyrillic text}} {{contains Japanese text}} [[File:Education for Death.jpg|150px|thumb|School scene from Walt Disney's ''Education for Death'' (1943)]] Below is an incomplete list of '''short films or''' animated '''cartoons''' that pertain to [[World War II]], or the years leading up to it. ==Restrictions==
- This is not just shorter, but it also conforms to MOS:LEAD. --Redrose64 (talk) 19:16, 16 May 2012 (UTC)
Commenting ("invisible" text)
Came here from Wiki markup page where discussion referenced, this section indicated for proposed merge into HTML (XHTML) Help. I just think it would be best to have the same info in both pages, ie at Wiki markup AND Help:HTML. David_FLXD (Talk) 23:37, 6 July 2012 (UTC)
- Then why not merge both pages entirely? ---— Gadget850 (Ed) talk 11:36, 7 July 2012 (UTC)
- Took me a while to work this out, but at the top of Help:Wiki markup#Invisible text (comments) there is a
{{merge to}}
box. A matching{{merge from}}
should have been placed at the top of Help:HTML in wikitext#Comments, and a discussion raised here as well. --Redrose64 (talk) 11:40, 7 July 2012 (UTC)- Yeah. I think I got interrupted. Regardless, if you have this documented in two separate places, then you get two different sets of documentation. There is discussion at Help talk:Wiki markup#HTML v. wikimarkup. ---— Gadget850 (Ed) talk 12:18, 7 July 2012 (UTC)
- Oppose. HTML5 and Wikicode are similar, but not the same. I am removing the merge notice.Frmorrison (talk) 15:12, 9 July 2014 (UTC)
- OK. Help:Wiki markup#Invisible text (comments) documents HTML, but it matches the mish mash of that entire page. -- Gadget850 talk 16:36, 9 July 2014 (UTC)
- Oppose. HTML5 and Wikicode are similar, but not the same. I am removing the merge notice.Frmorrison (talk) 15:12, 9 July 2014 (UTC)
- Yeah. I think I got interrupted. Regardless, if you have this documented in two separate places, then you get two different sets of documentation. There is discussion at Help talk:Wiki markup#HTML v. wikimarkup. ---— Gadget850 (Ed) talk 12:18, 7 July 2012 (UTC)
- Took me a while to work this out, but at the top of Help:Wiki markup#Invisible text (comments) there is a
Cite id italics
This is odd, there are a few pages I am familiar with that use <cite id = > in the references section to enable html linking of citations to books where multiple pages are used. The tag now seems to be italicizing the citations. See International_Society_for_the_Study_of_Trauma_and_Dissociation#References andSatanic_ritual_abuse#References. The italics seem to go past the references section and cause the external links section heading and actual links to italicize as well. What's up with that? WLU (t) (c) Wikipedia's rules:simple/complex 18:44, 18 July 2012 (UTC)
- I don't see the problem, but that usage is obsolete.
<cite>
should contain only the title of the work. You should consider using Shortened footnotes. ---— Gadget850 (Ed) talk 19:00, 18 July 2012 (UTC)- Aw...that's a lot of work :(
- It's weird, I see the italics in both pages, but they flow on to subsequent sections only in SRA. I'll switch 'em to SFN instead, thanks. WLU (t) (c) Wikipedia's rules:simple/complex 19:04, 18 July 2012 (UTC)
- (edit conflict)If you don't want to get into the technicalities of that, try
{{wikicite}}
which may be used as a drop-in replacement. That is to say, a ref formatted as<cite id="Smith2012">details of 2012 book by Smith</cite>
- may be amended to
{{wikicite|ref="Smith2012"|reference=details of 2012 book by Smith}}
- This technique creates exactly the same anchor (and is compatible with a greater number of browsers), but does not format the text in any way. --Redrose64 (talk) 19:07, 18 July 2012 (UTC)
- I converted to {{sfn}} on both pages so it's fine now. That was a tedious task. But at least it bumped up the ol' edit count. WLU (t) (c) Wikipedia's rules:simple/complex 20:26, 18 July 2012 (UTC)
- I did a few fixes: You have to use
|ref=harv
in the long citations; you have to use|last=
and|first=
, not|author=
. ---— Gadget850 (Ed) talk 22:22, 18 July 2012 (UTC)
- I did a few fixes: You have to use
- I converted to {{sfn}} on both pages so it's fine now. That was a tedious task. But at least it bumped up the ol' edit count. WLU (t) (c) Wikipedia's rules:simple/complex 20:26, 18 July 2012 (UTC)