User:Mwr0

This is where I keep my own notes about how to do various things in Wikipedia and HTML.

Those three pretty boxes on the right were copied from User:Jimbo Wales



 Shift+Alt+P to Preview Changes; Shift+Alt+S to Save Changes

TOC and FORCETOC
By default, I get no TOC even tho there are more than 3 sections.

I got a TOC by adding the magic word (2 underscores before and after TOC).

Did not need.

https://www.mediawiki.org/wiki/Manual:Table_of_contents

Edit link for top section (answer from asking a Help question)

 * If it's only for your own use then it's not done with a template but with a setting in the preferences for your account. See Help:Section. If you want others to get such a link on a specific page without changing their preferences then I didn't know we had such a template but I did a search on "template:edit lead" and found Template:Edit section on page four of the search results. If you don't know the top section is called the lead then it may be harder to find the template. It shouldn't be used on articles. PrimeHunter (talk) 23:31, 19 April 2015 (UTC)


 * But using Edit section as the first thing on the page doesn't put the [Edit] in the right place.

Answer: (Top)Preferences → Gadgets → Appearance → Add an [edit] link for the lead section of a page

Some Specials (2 equals)
-
 * Special:RecentChanges
 * Special:Contributions/XX
 * Special:Contributions/newbies
 * Special:Statistics
 * Help:Pageview_stats
 * http://stats.grok.se/
 * http://stats.grok.se/en/201211/User:Mwr0/SortableTurnout
 * http://stats.grok.se/en/latest90/Talk:Antisemitic_Canard

Horizontal Rules (2 equals)
Magenta follows (made with a ); thickness is given N pixels: &lt;div style="border-style:solid;border-color:magenta;border-width: 2px 0px 0px 0px;"&gt;&lt;/div&gt;

((Can border a DIV, a {{Hidden}}'s header and/or content))

HTML character entities and the like (2 equals)
All 3 ways of striking text work: striking test within outer text &hellip;MWR note&hellip; formatting hints by example (ellipses (&amp;hellip;)) ...MWR note... formatting hints by example (three periods) (there is no vertical ellipse)  Use {{color|red|{&zwj;&amp;zwj;{}} ("zero-width joiner") for two of {{color|red|{}} in a row (or bracket with ) Use {{color|red|}&zwj;&amp;zwj;}&zwj;}} for two of {{color|red|} }} in a row (or bracket with ) Or <U>USE the double-parens templates!</U> {{ and {{color|green|{{((}}))}}}}<BR>
 * &lt;S&gt; &mdash; outer<S> test </S>text
 * &lt;STRIKE&gt; &mdash; outer<STRIKE> test </STRIKE>text
 * strike template &mdash; outertext

NAMED HTML character entities
The following are named HTML character entities of the form <B>&amp;</B>name<B>;</B><BR> <HR width=45%> frasl,pi: 3&frasl;&pi; Pi &Pi; piv &piv; oline &oline; real &real; image &image; trade &trade; copy &copy; macr(macron) &macr; para &para; <BR> crarr &crarr; lArr &lArr; uArr &uArr; rArr &rArr; dArr &dArr; hArr &hArr; ?how to combine? circ a&circ; tilde a&tilde; <BR>lsquo rsquo &lsquo;X&rsquo; left/right single quotes <BR>ldquo rdquo &ldquo;X&rdquo; left/right double quotes <BR>sbquo bdquo &sbquo;X&bdquo; "single/double low-9 quotation marks" <BR>lsaquo rsaquo &lsaquo;X&rsaquo; "left/right single angle quotation marks" <BR>lang &lang; and rang &rang; are "bra" and "ket". <BR>&rArr;&rArr;&rArr;lt &lt; and gt &gt; are "bra" and "ket"? <BR>dagger &dagger; Dagger &Dagger; permil &permil;

NUMERIC HTML character entities
The following are numeric HTML character entities of the form <B>&amp;#</B>ddd<B>;</B> (decimal) or <B>&amp;#x</B>xxxx<B>;</B> (hex) <HR width=60%> cat(🐈)=x1F408 &#x1F408; (bold doesn't embolden; big, large work) ~ paragraph(¶=Alt+0182) 182=&#182; 0182=&#0182; hex 00B6=&#xB6; <BR>2nd,3rd,4th roots x221A=&#x221A; x221B=&#x221b; x221C=&#x221c; <BR>Modifier characters ... a&#x02c6;c&#x02C9; <BR><U>Combining</U> characters x0300..x036F: <BR> a&#x0300;(grave accent) e&#x0302;(circumflex) Q&#x0304;(modifier letter macron) Q&#x0305;(overline) n&#x0337; (short solidus) x&#x033F;(double overline) q&#x034F;z(grapheme joiner)(??) <BR>x0363..x036F combiners (a e i o u c d h m r t v x) A&#x036F; c&#x0363; B&#x0369;

WikiTable
WikiTable, collapsed, collapsible: <B>1st column</B> header will have [Show] or [Hide] added to it.<BR> Vertical spacing here ...
 * Without style=margin:, about 32px above top and 18px below bottom.
 * With 1px and 1px specified is more like 19px and 4px.

First line of text following the table.

indent, outdent
Color in header shows up in the header itself but not in the table of contents.<BR> hidden follows. Note that |expanded=false is the same thing as |expanded=true (it's non-null)

outside of Hidden text on an HR line (4 dashes) goes to next line. {color} does not affect the HR backgroundcolor does not affect the HR

Help Links
How to include link to help section:

smallcaps and more (3 equals)
✅ Hmph. ❌ Whoo. Template:Done<BR>

Parens and up to three curly (squirrely) brackets Template:!(

--
 * via {intitle.
 * via {lookfrom.
 * via {lookfrom.

Columns with {col-begin}, {col-break}, {col-end} (indented with empty column) &mdash;

{intitle|mwr} <BR>{lookfrom|mwr} <BR>{lookfrom|user:mwr}

<BR> <BR>

Other Stuff
-- Under 6 dashes ; next is 5 dashes -

That was 4 -- That was 6

<U>Text sizes</U> DEMO (2 equals)
&mdash;These all now work &mdash; <BR>larger-larger DEMO ("10% larger") &bull; <BR>big-big DEMO ("15% larger") &bull; <BR>large-large DEMO ('simply large') &bull; <BR>huge-huge DEMO (has unexplained sizing params) &bull; <BR>smaller-smaller DEMO ("15% smaller") &bull; <BR>resize-resize 0.8em DEMO <BR>resize-resize 50% DEMO

A little definition list... <dl class=RightFloat> Townsville 4810 </dl>
 * State : Queensland
 * Postcode : Cairns 4870

Prefix, Template, Category, Intitle, Policy Searching
{search|confabulation} yields This one doesn't treat template: as a Cirrus search keyword {search|template:source} <BR>This one does {search link|template:source}
 * wp=Wikipedia
 * gwp=GoogleWikipedia
 * g=Google
 * bwp=BingWikipedia
 * b=bing
 * eb=EcyclopediaBritannica
 * 1911=EB1911
 * co=BartlebyLexis
 * gct=GoogleComputerTerm@PCWorld
 * sw=ScienceWorld@Wolfram


 * Wikipedia
 * List_of_policies_and_guidelines
 * mw:Help:CirrusSearch
 * Wikilink Help:Searching Help:Searching and {main|Help:Searching}
 * Special:Search


 * (heirarchical listing)
 * (heirarchical listing)

{find sources multi/all|Christen Gerhart}<BR>

Template:look from Template:lookfrom (same) Template:in title Template:intitle (same)

test of template link template tl &mdash; tl &mdash; can generate links!

{Special:Prefixindex/Template:x} actually lists first ?741? starting Template:x &mdash;

Template Starting
{lookfrom|Template:} produces link to search pages listing all starting with Template: &mdash;

Intitle|Template
{intitle|Template dead} produces link to search Wikipedia pages with 'Template' in title and 'dead' in title or body, but does not find Template:deadlink (bug?!) &mdash; &mdash; &mdash;

intitle example of FAILS &mdash; A better intitle example would be {{intitle|Welsh rugby}} which of course FAILS
 * Is a search for intitle:Wales Welsh
 * instead of intitle:Wales intitle:Welsh (which has zero matches)
 * works if &mdash; &gt;&gt;&gt;
 * Is a search for intitle:Welsh rugby same as search for rugby intitle:Welsh
 * Should be a search for intitle:Welsh intitle:rugby
 * Trying produces &mdash;
 * Don't ask me what the intitle 'OR' example does &mdash;
 * Or if this searches for both words in the title &mdash;
 * works if &mdash; &gt;&gt;&gt;

Trying {intitle|Template AND intitle:source} now

QUOTING Things
This is {Quote} "Cry "Havoc" and let slip the dogs of war."

And &lt;blockquote&gt; Cry "Havoc" and let slip the dogs of war. William Shakespeare, Julius Caesar, act III, scene I But look at → Category:Quotation_templates!!! Especially {Rquote}!

Nothing can make the next section lines up OK.

Up-to-date directory listing (2 equals)
[ Next line shows using {!xt} vs. {xt} vs. {bxt} ]<BR> {Special:Prefixindex/whatever} vs. {look from vs. {in title

The up-to-date listing below is from {{Special:Prefixindex/User:mwr0/}}<BR> (Default is 3-across alphabetization... took a stab, columns(equals)1 works!) <BR>(Which means that it alphabetizes DOWN the columns.)

[ Expand Section does not check that the date you give it is valid. ]