# Test

SMPTE color bars – Click for your own test pattern kit

This page is for posters to test comments prior to submitting them to WUWT. Your tests will be deleted in a while, though especially interesting tests, examples, hints, and cool stuff will remain for quite a while longer.

Some things that don’t seem to work any more, or perhaps never did, are kept in Ric Werme’s Guide to WUWT.

## Formatting in comments

WordPress does not provide much documentation for the HTML formatting permitted in comments. There are only a few commands that are useful, and a few more that are pretty much useless.

A typical HTML formatting command has the general form of <name>text to be formatted</name>. A common mistake is to forget the end command. Until WordPress gets a preview function, we have to live with it.

N.B. WordPress handles some formatting very differently than web browsers do. A post of mine shows these and less useful commands in action at WUWT.

N.B. You may notice that the underline command, <u>, is missing. WordPress seems to suppress for almost all users, so I’m not including it here. Feel free to try it, don’t expect it to work.

Name Sample Result
b (bold) This is <b>bold</b> text This is bold text
Command strong also does bolding.
i (italics) This is <i>italicized</i> text This is italicized text
Command em (emphasize) also does italics.
A URL by itself (with a space on either side) is often adequate in WordPress. It will make a link to that URL and display the URL, e.g. See http://wermenh.com.

Some source on the web is presenting anchor commands with other parameters beyond href, e.g. rel=nofollow. In general, use just href=url and don’t forget the text to display to the reader.

blockquote (indent text) My text

<blockquote>quoted text</blockquote>

More of my text

My text

quoted text

More of my text

Quoted text can be many paragraphs long.

WordPress italicizes quoted text (and the <i> command enters normal text).

strike This is <strike>text with strike</strike> This is text with strike
pre (“preformatted” – use for monospace display) <pre>These lines are bracketed<br>with &lt;pre> and &lt;/pre>
These lines are bracketed

with <pre> and </pre>
Preformatted text, generally done right. Use it when you have a table or something else that will look best in monospace. Each space is displayed, something that <code> (next) doesn’t do.
code (use for monospace display) <code>Wordpress handles this very differently</code> WordPress handles this very differently
See http://wattsupwiththat.com/resources/#comment-65319 to see what this really does.

Using the URL for a YouTube video creates a link like any other URL. However, WordPress accepts the HTML for “embedded” videos. From the YouTube page after the video finishes, click on the “embed” button and it will suggest HTML like:

<iframe width="560" height="315"

frameborder="0" allowfullscreen>

</iframe>



WordPress will convert this into an internal square bracket command, changing the URL and ignoring the dimension. You can use this command yourself, and use its options for dimensions. WordPress converts the above into something like:

[youtube https://www.youtube.com/watch?v=yaBNjTtCxd4&w=640&h=480]

Use this form and change the w and h options to suit your interests.

## Images in comments

If WordPress thinks a URL refers to an image, it will display the image

instead of creating a link to it. The following rules may be a bit excessive,

but they should work:

1. The URL must end with .jpg, .gif, or .png. (Maybe others.)
2. The URL must be the only thing on the line.
3. This means you don’t use <img>, which WordPress ignores and displays nothing.
4. This means WordPress controls the image size.
5. <iframe> doesn’t work either, it just displays a link to the image.

If you have an image whose URL doesn’t end with the right kind of prefix, there may be two options if the url includes attributes, i.e. if it has a question mark followed by attribute=value pairs separated by ampersands.

Often the attributes just provide information to the server about the source of the URL. In that case, you may be able to just delete everything from the question mark to the end.

For some URLs, e.g. many from FaceBook, the attributes provide lookup information to the server and it can’t be deleted. Most servers don’t bother to check for unfamiliar attributes, so try appending “&xxx=foo.jpg”. This will give you a URL with one of the extensions WordPress will accept.

WordPress will usually scale images to fit the horizontal space available for text. One place it doesn’t is in blockquoted text, there it seems to display fullsize and large images overwrite the rightside nav bar text.

## Special characters in comments

Those of us who remember acceptance of ASCII-68 (a specification released in 1968) are often not clever enough to figure out all the nuances of today’s international character sets. Besides, most keyboards lack the keys for those characters, and that’s the real problem. Even if you use a non-ASCII but useful character like ° (as in 23°C) some optical character recognition software or cut and paste operation is likely to change it to 23oC or worse, 230C.

Nevertheless, there are very useful characters that are most reliably entered as HTML character entities:

Type this To get Notes
&amp; & Ampersand
&lt; < Less than sign

Left angle bracket

&bull; Bullet
&deg; ° Degree (Use with C and F, but not K (kelvins))
&#8304;

&#185;

&#178;

&#179;

&#8308;

¹

²

³

Superscripts (use 8304, 185, 178-179, 8308-8313 for superscript digits 0-9)
&#8320;

&#8321;

&#8322;

&#8323;

Subscripts (use 8320-8329 for subscript digits 0-9)
&pound; £ British pound
&ntilde; ñ For La Niña & El Niño
&micro; µ Mu, micro
&plusmn; ± Plus or minus
&times; × Times
&divide; ÷ Divide
&ne; Not equals
&nbsp; Like a space, with no special processing (i.e. word wrapping or multiple space discarding)
&gt; > Greater than sign

Right angle bracket

Generally not needed

Various operating systems and applications have mechanisms to let you directly enter character codes. For example, on Microsoft Windows, holding down ALT and typing 248 on the numeric keypad may generate the degree symbol. I may extend the table above to include these some day, but the character entity names are easier to remember, so I recommend them.

## Latex markup

WordPress supports Latex. To use it, do something like:

$latex P = e\sigma AT^{4}$     (Stefan-Boltzmann's law)

$latex \mathscr{L}\{f(t)\}=F(s)$

to produce

$P = e\sigma AT^{4}$     (Stefan-Boltzmann’s law)

$\mathscr{L}\{f(t)\}=F(s)$

Each comment has a URL that links to the start of that comment. This is usually the best way to refer to comment a different post. The URL is “hidden” under the timestamp for that comment. While details vary with operating system and browser, the best way to copy it is to right click on the time stamp near the start of the comment, choose “Copy link location” from the pop-up menu, and paste it into the comment you’re writing. You should see something like http://wattsupwiththat.com/2013/07/15/central-park-in-ushcnv2-5-october-2012-magically-becomes-cooler-in-july-in-the-dust-bowl-years/#comment-1364445.

The “#<label>” at the end of the URL tells a browser where to start the page view. It reads the page from the Web, searches for the label and starts the page view there. As noted above, WordPress will create a link for you, you don’t need to add an <a> command around it.

## One way to avoid the moderation queue.

Several keywords doom your comment to the moderation queue. One word, “Anthony,” is caught so that people trying to send a note to Anthony will be intercepted and Anthony should see the message pretty quickly.

If you enter Anthony as An<u>th</u>ony, it appears to not be caught,

so apparently the comparison uses the name with the HTML within it and

sees a mismatch.

## 28 thoughts on “Test”

1. Steven Fraser says:

Bold Italic Off

2. test says:

It is true though, that before it had ever been encountered in the wild it was first created in a lab!

https://www.nature.com/news/engineered-bat-virus-stirs-debate-over-risky-research-1.18787

And while it may not have been “engineered” as such, the odds that it didn’t come from the Wuhan lab that was experimenting with the virus on live animals are millions to one! The lab has live infected species in cages and the chance of crossover, was intentional!

3. Red94ViperRT10 says:

…new building materials with higher melting points so that roads won’t crack in extreme temperatures…”

Oh, good grief! *extreme eyeroll* *pound head on wall like Charlie Brown”

4. wlad from brz says:

quoted text

5. rickk says:
6. rickk says:

—————

7. rickk says:
8. rickk says:
• Jack Black says:

Vimeo video test ….

 

9. Jack Black says:

These YouTube embeds not working anymore according to instructions in the Rick Werne text above. YouTube converting copied URLs to the short form of youtu.be/xxxxxxx type, and the ending square bracket being converted on the fly to HEX code %5D which seems to munge the code to FUBAR !

WordPress instructions to copy the embed code of the iFrame don’t work either, because YouTube has added a whole load of guff in the embed URL that WordPress didn’t expect now. This is a major FUBAR, I think….

WordPress says ….

But copied embed code looks like this ….

[blockquote]
[/blockquote]

All this accelerometer, gyroscope, encrypted-media etc guff is what confuses WordPress maybe. Did Anybody manage to embed a YouTube Video into WordPress anymore? So I will give it one last attempt and do this…

[blockquote]
[/blockquote]

Did it work ?

10. Jack Black says:

OK so I got the wrong brackets to show proper formatting with my blockquote, blame spell correct for that…. I correct formatting manually in this post.

Again:

These YouTube embeds not working anymore according to instructions in the Rick Werne text above. YouTube converting copied URLs to the short form of youtu.be/xxxxxxx type, and the ending square bracket being converted on the fly to HEX code %5D which seems to munge the code to FUBAR !

WordPress instructions to copy the embed code of the iFrame don’t work either, because YouTube has added a whole load of guff in the embed URL that WordPress didn’t expect now. This is a major FUBAR, I think….

WordPress says ….

But copied embed code looks like this ….

All this accelerometer, gyroscope, encrypted-media etc guff is what confuses WordPress maybe. Did Anybody manage to embed a YouTube Video into WordPress anymore? So I will give it one last attempt and do this…

I think WordPress daemon is still converting the ending square bracket to the special HEX code of %5D though, and how to get around this?

Did it work ?

11. Jack Black says:

Blast !

Even the code in the blockquote is being changed by WordPress daemon….. Let me try another way…

Again:

These YouTube embeds not working anymore according to instructions in the Rick Werne text above. YouTube converting copied URLs to the short form of youtu.be/xxxxxxx type, and the ending square bracket being converted on the fly to HEX code %5D which seems to munge the code to FUBAR !

WordPress instructions to copy the embed code of the iFrame don’t work either, because YouTube has added a whole load of guff in the embed URL that WordPress didn’t expect now. This is a major FUBAR, I think….

WordPress says ….

But copied embed code looks like this nowadays ….

 [youtube https://www.youtube.com/watch?v=7P5RW0Tmp-U&w=740&h=416] 

All this accelerometer, gyroscope, encrypted-media etc guff is what confuses WordPress maybe. Did Anybody manage to embed a YouTube Video into WordPress anymore? So I will give it one last attempt and do this… just the URL, but without the protocol specifier.

 www.youtube.com/embed/7P5RW0Tmp-U 

Did that do it?

I think WordPress daemon is still converting the generated ending square bracket “]” to the special HEX code of %5D though, and how to get around this?

12. Jack Black says:

I can’t seem to demonstrate the new YouTube embed code, because WordPress daemon is stripping out all the parameters, even when I do the blockquote or with “code” brackets.

Maybe if I put it all between quotation marks?

Or you go to the video and right click and choose copy embed code and then paste to a notepad and see for yourself. Anyway the YouTube embed is no longer working because of some parameters change, or validation or something. WordPress plugin maybe needs updating? Can this be checked? I try again tomorrow perhaps.

13. Jack Black says:

So the quotation marks idea was no good.

Well that didn’t show up either, hmm 🤔

How to show it ? I try to do screen capture and imgur…

https://i.imgur.com/CedhCZ4_d.jpg?maxwidth=800&shape=thumb&fidelity=high

Now you see the embed code?

It’s nothing like the old YouTube embed code that WordPress plugin expects, and if you try to use old style iframe code then YouTube server doesn’t like that.

I give up for today, and hope you can get new WordPress updated plugin that can cope with new changes to YouTube’s coding…. 🤔

14. Jack Black says:

So according to a commenter in another thread you just have to copy URL (from address bar), and paste into comment in a new paragraph. All the foregoing, about embed codes, size parameters, iFrames, youtube prefix in squared brackets, etc., is seemingly old obsolete nonsense !!! Let’s see if that’s true.

So I paste this (first line shown with “code” brackets):
 

Did it work this time at last?

• Jack Black says:

Aha ! So it worked if the address bar URL is pasted in between a set of code chevron brackets like so:

“”paste YouTube URL here””

Yet not if directly pasted as simple URL, or it only then shows up as a hotlink. Curiouser and curiouser !!! Note that in the example I give I show chevrons in quotation marks, to prevent them disappearing.
For this to work Commenter must NOT include these quotation marks. Was that understood?
Seemingly for some users direct paste of address bar YouTube URL does work, depending upon their web browser, and operating system, which may automatically paste in hidden code brackets? Anyway it seems apparent that using iFrame or prefix squared bracket codes is all obsolete guff nowadays?

One more time to confirm this, I follow my own instructions (NO quotation marks on chevrons!!!!)

 

@Rick or Mods, if this worked OK then maybe amend the YouTube embed instructions accordingly?

15. Jack Black says:

Final thoughts….

No matter how I tried to demonstrate the code that worked, whenever I put the word “code” in the chevrons it disappeared, so lastly for clarity, I will use extra character _ underscore spacer. Remove all extra underscore spacers when you are doing it for real. I hope that Rick or Mods can actually show this code illustrated properly, should they decide to modify the YouTube instructions in this page preamble.

I hope none of my illustration vanished this time 😎

• Jack Black says:

It’s very hard to put chevrons in these comments without them vanishing. So final, final, final, try, I will substitute square brackets for chevroned brackets in my illustrated example. Commenters MUST of course use chevroned brackets when actually doing the deed !

Do NOT use short style ‘youtu.be’ URLs
MUST be full www dot youtube dot com, with full https colon slash slash prefix
Exactly as copied from browser address bar, and no trailing ampersand parameters !

Phew ! 😅😵🤔

16. Jack Black says:

To anyone who read my long saga of experiments in here; Thank you for reading thus far ! 🙂

So it does appear that these results may be web-browser and/or Operating System specific. Some people may get away with merely copy & paste of YouTube FULL URL from the address bar of the relevant web page. Others may require to use the “code” brackets option. The short URL provided by right click on actual video player (youtu.be&etc) doesn’t work anymore in here. iFrame embed codes no longer work. YouTube has changed their API !!!

What ALWAYS now (June 2020) works is this …

Do like so…
Commenters MUST of course use chevroned brackets instead of square brackets when actually doing the deed !
Square brackets are only used here, so they won’t vanish in this comment, being mistaken for an actual command.

YouTube URL MUST be style : https colon slash slash www dot youtube dot com slash watch?v=xxxxxxxx

Exactly as copied from browser address bar, and must delete any other trailing ampersand parameters !

Thanks for all your patience, in reading this far, and I hope that Rick, Charles, and Mods/Editors would put that example in the site Help Tips, and remove all the old anachronistic stuff about copying iFrame embed codes and “[youtube ” prefixes etc. Mods/Editors may be able to illustrate the use of chevroned “code” brackets properly?

Thanks everybody who troubled to read my long saga 😎

17. Ron says:
18. tom0mason says:

Testing —

Hello, world Hides text until hovered over or clicked on

19. Rotor says:

quoted text