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 (anchor) See <a href=http://wermenh.com>My home page</a> See My home page
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 https://wattsupwiththat.com/resources/#comment-65319 to see what this really does.

Youtube videos

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"
        src="http://www.youtube.com/embed/yaBNjTtCxd4"
        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)

Linking to past comments

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 https://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.

79 thoughts on “Test

  1. I just had another thought about underlines.

    I think I discovered that if I could get around the automatic spam trap by writing Anthony with an empty HTML command inside, e.g. Ant<b></b>hony .

    What happens when I try that with underline?

    Apologies in advance to the long-suffering mods, at least one of these comments may get caught by the spam trap.

  2. WordPress only displays images for URLs on their own line and ending with a image file extension. If I delete the attribute string above, i.e. ?token=I7JQbQli1swRgik%2BKnIKAmCk52Y%3D then what’s left should work:

    • Now one that would permit image display:

      Update: Right clicking to get the image’s url gave me a URL that goes through WP’s cache via (slashes replaced by spaces, periods by dashes) i2-wp-com wermenh-com images winter0708 P3020227_snowbank7-jpg

    • Now just the image without a suffix:

      Update: This image uses the same URL as the previous cached image. That means we can’t use a changing suffix to force a trip around the cache any more for HTTP images. I’ll play with HTTPS later.

      • Reply to Ric W ==> Thanks — I was fielding comments on an essay using an unfamiliar tablet, and wasn’t sure which and/or both were part of HTML5. I usually use the old ClimateAudit comment Greasemonkey tool, even though its formatting is funky these days, for the tags. Don’t suppose you could update that add-in?

      • IIRC, Greasemonkey was written for CA, which uses a different theme that does WUWT.

        I don’t have the time to figure out the JavaScript code or whatever it’s written in, and I don’t have the ability to make changes that deep in WUWT.

        Instead of Greasemonkey, I often use https://addons.mozilla.org/en-US/firefox/addon/its-all-text/ . It can open up an external editor, so it has saved my butt a few times when WP loses a post I was making.

  3. 77 ÷ 10,257 = 0.7% Survey Candidatess
    77 ÷ 3,146 = 2.5% Respondants
    77 ÷ 244 = 31.6% Active Climate Researchers
    77 ÷ 144 = 53.5% Climate Disipline
    77 ÷ 79 = 97.5% Who published > 50% on AGW.

  4. And btw, if you want to power most things in a modern home during the off-peak solar hours, then you may need 4 powerwalls because each is limited to 3.3 KW. And forget electric on-demand water heating. How many of these items does your family use in the morning or evening?

    Electric water heater, tank type : 4.5-5.5 KW
    Electric water heater, tankless 4 gpm: 18 KW
    Electric clothes dryer: 3.4 KW
    Electric stove eye: 1.2-2.5 KW
    Elecric oven: 3-4 KW
    Microwave: 0.6-1.5 KW
    Toaster/Toaster Oven: 1-1.5 KW
    Coffee maker: 1 KW
    Hair dryer: 1 KW
    Household A/C, 2 Ton: 3.3 KW

  5. Very few of my comments get through, either from home or work. On the rare occasion a post successfully goes up. Other blogs work fine, it’s just WUWT that my comments so rarely are successful.

    So, I’m taking this opportunity to see if it works in the test environment. Cheers.

    • Trying your original url with “&foo=bar.jpg” at the end. Often the web server ignores the bogus argument, but WP will see the .jpg and display the image. See notes in the original post.

  6. Averages and Extremes for August 15:
    Averages and Extremes Value Year
    Average Maximum Temperature 25.9°C
    Average Minimum Temperature 14.3°C
    Frequency of Precipitation 33.0%
    Highest Temperature (1938-2012) 34.4°C 1938

  7. Why is every month reported by the progressive media as the “hottest month ever in recorded history”?
    Of course, the latest “hottest month” is July 2016.

  8. Looks like it didn’t like all the zeroes I used.

    It’s interesting that people are willing to spend $300,000,000 on five tall wind turbines but in five years no one has made the minimum $10,000 bid on a picturesque lighthouse that’s in the general area.

  9. It looks like it didn’t like all the zeroes I used.

    It’s interesting that people are willing to spend $300 million on five tall wind turbines but in five years no one has made the minimum $10,000 bid on a picturesque lighthouse that’s in the general area.

  10. Is f*sc*sm bad word

    [Fascism is always bad, but the word itself should be used when it describes the political system in question. .mod]

  11. Not certain this is the right place, but you may like this link from the Sydney Morning Herald.

    http://www.smh.com.au/nsw/wildly-in-error-dodgy-coal-pollution-data-fans-demand-for-independent-control-20160818-gqvhat.html

    If there is a better place, could some knowledgeable person shift it to the right place, please? It is interesting to compare the graph in this article with that offered by Dr. Strangelove August 11, 2016 at 11:07 pm.

    Dudley Horscroft

  12. Hey, what happened to the old smiley face?? When I tried to post it, this appeared:

    I wonder if WordPress changed any others?

     ☹ ☻

    The old smiley was more subtle; less in-your-face. The new one is way too garish.

    If WP keeps that up, I’ll just have to use this lame replacement:

    :-)

    Or even worse:

    ;-)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s