-->

Monday, April 2, 2018

This is where I keep my own notes about how to do various things in Wikipedia and HTML.
User contrib box badly messes up formatting {User contrib|4.75 factorial}


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


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




-

@Mwr0: 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#Editing before the first 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)


iGuzzini 2013-2014 INTERIOR part2 by Bellatrix Bellatrix - issuu
iGuzzini 2013-2014 INTERIOR part2 by Bellatrix Bellatrix - issuu. Source : issuu.com

  • 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)


Beauty-And-The-Beast-Children- ...
Beauty-And-The-Beast-Children- .... Source : en.shpock.com

Magenta <HR> follows (made with a <div style=...></div>); thickness is given N pixels:
<div style="border-style:solid;border-color:magenta;border-width: 2px 0px 0px 0px;"></div>

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

HTML character entities and the like (2 equals)


iGuzzini 2013-2014 INTERIOR part2 by Bellatrix Bellatrix - issuu
iGuzzini 2013-2014 INTERIOR part2 by Bellatrix Bellatrix - issuu. Source : issuu.com

All 3 ways of striking text work: striking <space>test<space> within outer text

  • <S> â€" outer test text
  • <STRIKE> â€" outer test text
  • strike template â€" outer test text

…MWR note… formatting hints by example (ellipses (&hellip;))
...MWR note... formatting hints by example (three periods)
(there is no vertical ellipse)
Use {‍&zwj;{ ("zero-width joiner") for two of { in a row (or bracket with <nowiki>...</nowiki>)
Use }‍&zwj;}‍ for two of } in a row (or bracket with <nowiki>...</nowiki>)
Or USE the double-parens templates! {{((}} and {{))}}

The following are named HTML character entities of the form &name;


frasl,pi: 3⁄π Pi Π piv Ï– oline ‾ real â„œ image â„' trade â„¢ copy ©
crarr ↵ lArr ⇐ uArr â‡' rArr â‡' dArr â‡" hArr â‡" ?how to combine? circ aˆ tilde aËœ
lsquo rsquo ‘X’ left/right single quotes
ldquo rdquo “X” left/right double quotes
sbquo bdquo ‚X„ "single/double low-9 quotation marks"
lsaquo rsaquo ‹X› "left/right single angle quotation marks"
lang 〈 and rang 〉 are "bra" and "ket".
â‡'â‡'â‡'lt < and gt > are "bra" and "ket"?
dagger † Dagger ‡ permil ‰

The following are numeric HTML character entities of the form &#ddd; (decimal) or &#xxxxx; (hex)


cat(🐈)=x1F408 🐈 (bold doesn't embolden; big, large work) ~ paragraph(¶=Alt+0182) 182=¶ 0182=¶
2nd,3rd,4th roots x221A=√ x221B=∛ x221C=∜
Modifier characters ... aˆcˉ
Combining characters x0300..x036F:
à(grave accent) ê(circumflex) Q̄(macron) Q̅(overline) n̷ (short solidus) x̿(double overline) q͏z(grapheme joiner)(??)
x0363..x036F combiners (a e i o u c d h m r t v x) Aͯ cͣ Bͩ

WikiTable


Size-10-dress-472e427e.jpg
Size-10-dress-472e427e.jpg. Source : en.shpock.com

WikiTable, collapsed, collapsible: 1st column header will have [Show] or [Hide] added to it.
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


iGuzzini 2013-2014 INTERIOR part2 by Bellatrix Bellatrix - issuu
iGuzzini 2013-2014 INTERIOR part2 by Bellatrix Bellatrix - issuu. Source : issuu.com

Color in header shows up in the header itself but not in the table of contents.
{{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


Hairdryer-3776997c.jpg
Hairdryer-3776997c.jpg. Source : en.shpock.com

How to include link to help section:

smallcaps and more (3 equals)


iGuzzini 2013-2014 INTERIOR part2 by Bellatrix Bellatrix - issuu
iGuzzini 2013-2014 INTERIOR part2 by Bellatrix Bellatrix - issuu. Source : issuu.com

Small Caps Here | with pipe character  Done Hmph. Not done Whoo. Template:Done
? B Thank you Template:!(


All pages with a title containing mwr via {intitle|mwr}.
All pages beginning with "mwr" via {lookfrom|mwr}.
All pages beginning with "user:mwr" via {lookfrom|user:mwr}.

Columns with {col-begin}, {col-break}, {col-end} (indented with empty column) â€"

Including a template as content


Boys-aged-2-3-pjs.jpg
Boys-aged-2-3-pjs.jpg. Source : en.shpock.com

Below this text is a Hidden, using content={{template-name}}.
(Attempt to add subst: in those squirrels failed.)
Headers IN THAT TEMPLATE yield edit links to EDIT THE TEMPLATE!!
Since Hidden, Contents shows that header, but clicking it does not take you to that header
until after you use [show] to expand the Hidden.

Other Stuff


iGuzzini 2013-2014 INTERIOR part2 by Bellatrix Bellatrix - issuu
iGuzzini 2013-2014 INTERIOR part2 by Bellatrix Bellatrix - issuu. Source : issuu.com


Under 6 dashes ; next is 5 dashes


All pages beginning with "Template:tra"


That was 4


That was 6

Text sizes DEMO (2 equals)



â€"These all now work â€"
larger-larger DEMO ("10% larger") •
big-big DEMO ("15% larger") •
large-large DEMO ('simply large') •
huge-huge DEMO (has unexplained sizing params) •
smaller-smaller DEMO ("15% smaller") •
resize-resize 0.8em DEMO
resize-resize 50% DEMO


A little definition list...

State 
Queensland
Postcode 
Cairns 4870
Townsville 4810

Prefix, Template, Category, Intitle, Policy Searching



{search|confabulation} yields

  • wp=Wikipedia
  • gwp=GoogleWikipedia
  • g=Google
  • bwp=BingWikipedia
  • b=bing
  • eb=EcyclopediaBritannica
  • 1911=EB1911
  • co=BartlebyLexis
  • gct=GoogleComputerTerm@PCWorld
  • sw=ScienceWorld@Wolfram

This one doesn't treat template: as a Cirrus search keyword {search|template:source}


This one does {search link|template:source} template:source

  • Wikipedia#Policies_and_laws
  • Wikipedia:List_of_policies_and_guidelines
  • mw:Help:CirrusSearch
  • Wikilink Help:Searching Help:Searching and {main|Help:Searching}
  • Special:Search

  • Category:Search templates
  • Category:Wikipedia templates (heirarchical listing)
  • Category:Wikipedia help templates

{find sources multi/all|Christen Gerhart}
Google · Google Books · Google Scholar · JSTOR · Free Google Images · Archive.org · Bing · Google News recent · New York Times · Wikipedia Reference Search · DuckDuckGo · VGRS · Google Newspapers

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

test of template link template {{tl|tl}} â€" {{tl}} â€" can generate links!


{Special:Prefixindex/Template:x} actually lists first ?741? starting Template:x â€"

Template Starting


{lookfrom|Template:} produces link to search pages listing all starting with Template: â€" All pages beginning with "Template:"

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?!) â€"All pages with a title containing Template dead â€"All pages with a title containing Template,dead â€"All pages with a title containing Template:dead

{{intitle}} example of {{intitle|Wales Welsh}} FAILS â€" All pages with a title containing Wales Welsh

  • Is a search for intitle:Wales Welsh
  • instead of intitle:Wales intitle:Welsh (which has zero matches)
  • works if {{intitle|Wales,Welsh}} â€" >>> All pages with a title containing Wales,Welsh

A better intitle example would be {{intitle|Welsh rugby}} which of course FAILS

  • Is a search for intitle:Welsh rugby same as search for rugby intitle:Welsh
  • Should be a search for intitle:Welsh intitle:rugby
  • Trying {{intitle|Welsh intitle:rugby}} produces â€" All pages with a title containing Welsh intitle:rugby
  • Don't ask me what the {{intitle}} 'OR' example does â€" All pages with a title containing Welsh OR rugby
  • Or if this searches for both words in the title â€" All pages with a title containing Welsh AND rugby
  • works if {{intitle|Welsh,rugby}} â€" >>> All pages with a title containing Welsh,rugby

Trying {intitle|Template AND intitle:source} now All pages with a title containing Template AND intitle:source

{quicktemplates}

QUOTING Things



This is {Quote}

Cry "Havoc" and let slip the dogs of war.

And <blockquote>

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} ]
{Special:Prefixindex/whatever} vs. {look from|whatever} vs. {in title|whatever}

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

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



 
Sponsored Links