This is where I keep my own notes about how to do various things in Wikipedia and HTML.
| 120+ |
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
By default, I get no TOC even tho there are more than 3 sections.
I got a TOC by adding the magic word __TOC__ (2 underscores before and after TOC).
Did not need __FORCETOC__.
https://www.mediawiki.org/wiki/Manual:Table_of_contents
Answer: (Top)Preferences → Gadgets → Appearance → Add an [edit] link for the lead section of a page
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))
| This is a Wikipedia user page. This is not an encyclopedia article or the talk page for an encyclopedia article. If you find this page on any site other than Wikipedia, you are viewing a mirror site. Be aware that the page may be outdated and that the user whom this page is about may have no personal affiliation with any site other than Wikipedia. The original page is located at https://en.wikipedia.org/wiki/User:Mwr0. |
All 3 ways of striking text work: striking <space>test<space> within outer text
…MWR note… formatting hints by example (ellipses (…))
...MWR note... formatting hints by example (three periods)
(there is no vertical ellipse)
Use {‍{ ("zero-width joiner") for two of { in a row (or bracket with <nowiki>...</nowiki>)
Use }‍} 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 © macr(macron) ¯ para ¶
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=¶ hex 00B6=¶
2nd,3rd,4th roots x221A=√ x221B=∛ x221C=∜
Modifier characters ... aˆcˉ
Combining characters x0300..x036F:
à(grave accent) ê(circumflex)
Q̄(modifier letter 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, collapsed, collapsible: 1st column header will have [Show] or [Hide] added to it.
Vertical spacing here ...
| n | formatted | descr |
|---|---|---|
| 1 | 'one' | ticked |
| 2 | two | italics |
| 3 | three | bold |
| 4 | 'four' | ticked bold |
| 5 | five | bold italic |
| 6 | 'six' | ticked bold italic |
| 7 | ''six'' | quoted bold italic |
First line of text following the table.
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)
This is just text following that -- and is not kept indented.
By what should be an indented line(using <P>)
Ack. Indenting on talk pages is done using a colon character (:) to produce "tabs"; this template produces a connector bar and (optionally) initial text to indicate an outdent, with the length of the bar specified by the number of colons used in the template. The left margin is sent to the position of the template. A line with just "::{{od}}" produces outdent to indentation level 2, bar length of 10 if not specified.
outside of Hidden
backgroundcolor does not affect the HR
How to include link to help section:
Small Caps Here | with pipe character
Done Hmph.
Not done Whoo. Template:Done
Thank you
Parens and up to three curly (squirrely) brackets Template:!(
Columns with {col-begin}, {col-break}, {col-end} (indented with empty column) —
|
{intitle|mwr}
|
All pages with titles containing mwr
|
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.
The templates listed here are not interchangeable. For example, using {{col-float}} with {{col-end}} instead of {{col-float-end}} would leave a <div>...</div> open, potentially harming any subsequent formatting.
| Type | Family | Handles wiki
table code?† |
Responsive/ mobile suited |
Start template | Column divider | End template |
|---|---|---|---|---|---|---|
| Float | "col-float" | Yes | Yes | {{col-float}} | {{col-float-break}} | {{col-float-end}} |
| "columns-start" | Yes | Yes | {{columns-start}} | {{column}} | {{columns-end}} | |
| Columns | "div col" | Yes | Yes | {{div col}} | instead use {{no col break}} | {{div col end}} |
| "columns-list" | No | Yes | {{columns-list}} (wraps div col) | — | — | |
| Flexbox | "flex columns" | No | Yes | {{flex columns}} | — | — |
| Table | "col" | Yes | No | {{col-begin}}, {{col-begin-fixed}} or {{col-begin-small}} |
{{col-break}} or {{col-2}} .. {{col-5}} |
{{col-end}} |
{| | || |- |} used to create tables? If not, special templates that produce these elements (such as {{(!}}, {{!}}, {{!!}}, {{!-}}, {{!)}}) or HTML tags (<table>...</table>, <tr>...</tr>, etc.) need to be used instead.Under 6 dashes ; next is 5 dashes
All pages with titles beginning with Template:tra
That was 4
That was 6
—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...
{search|confabulation} yields (
)
This one doesn't treat template: as a Cirrus search keyword {search|template:source} (
)
This one does {search link|template:source} template:source
{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 —
{lookfrom|Template:} produces link to search pages listing all starting with Template: — All pages with titles beginning with 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 titles containing Template dead —All pages with titles containing Template,dead —All pages with titles containing Template:dead
{{intitle}} example of {{intitle|Wales Welsh}} FAILS — All pages with titles containing Wales Welsh
A better intitle example would be {{intitle|Welsh rugby}} which of course FAILS
Trying {intitle|Template AND intitle:source} now All pages with titles containing Template AND intitle:source
|
This is {Quote}
Cry "Havoc" and let slip the dogs of war.
— William Shakespeare, Julius Caesar, act III, scene I
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}!
| “ | Back up, you creep. Get away from me. I know you love to intimidate women, |
” |
| — Hillary Clinton's thoughts about Trump, (during the Presidential Debate) | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Nothing can make the next section lines up OK.
[ 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. ]
This section needs expansion. You can help by adding missing information. (March 25, 2015) |
This section needs expansion with: proliferation. You can help by adding missing information. (Zurm 5th, 2031) |
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.