User:Kri/Useful for editing Wikipedia

From Wikipedia, the free encyclopedia

Special characters[edit]

Punctuation[edit]

Character Name HTML friendly code Comments
‒, –, —, ― dash
hyphen
minus −
- hyphen-minus keyboard key

XML characters[edit]

Character Name HTML friendly code Comments
& ampersand & HTML escape character
< less-than sign &lt;
> greater-than sign &gt;
" quotation mark &quot;

Math characters[edit]

Character HTML friendly code

∫ ∑ ∏ √ − ± ∞
≈ ∝ ≡ ≠ ≤ ≥
× · ÷ ∂ ′ ″
∇ ‰ ° ∴ ℵ ø
∈ ∉ ∩ ∪ ⊂ ⊃ ⊆ ⊇
¬ ∧ ∨ ∃ ∀
⇒ ⇐ ⇓ ⇑ ⇔
→ ↓ ↑ ← ↔

&int; &sum; &prod; &radic; &minus; &plusmn; &infin;
&asymp; &prop; &equiv; &ne; &le; &ge;
&times; &middot; &divide; &part; &prime; &Prime;
&nabla; &permil; &deg; &there4; &alefsym; &oslash;
&isin; &notin; &cap; &cup; &sub; &sup; &sube; &supe;
&not; &and; &or; &exist; &forall; 
&rArr; &lArr; &dArr; &uArr; &hArr;
&rarr; &darr; &uarr; &larr; &harr;
Character

ℜ ℑ
ℙ ℕ ℤ ℚ ℝ ℂ ℍ

Greek characters[edit]

Character HTML friendly code

α β γ δ ε ζ
η θ ι κ λ μ
ν ξ ο π ρ σ ς
τ υ φ χ ψ ω

Α Β Γ Δ Ε Ζ
Η Θ Ι Κ Λ Μ
Ν Ο Ξ Π Ρ Σ
Τ Υ Φ Χ Ψ Ω

&alpha; &beta; &gamma; &delta; &epsilon; &zeta; 
&eta; &theta; &iota; &kappa; &lambda; &mu;
&nu; &xi; &omicron; &pi; &rho; &sigma; &sigmaf;
&tau; &upsilon; &phi; &chi; &psi; &omega;

&Alpha; &Beta; &Gamma; &Delta; &Epsilon; &Zeta; 
&Eta; &Theta; &Iota; &Kappa; &Lambda; &Mu; 
&Nu; &Xi; &Omicron; &Pi; &Rho; &Sigma;
&Tau; &Upsilon; &Phi; &Chi; &Psi; &Omega;
Variant forms
Character Name
ϐ "curled beta"
ϵ "lunate epsilon"
ϑ "script theta"
ϰ "kappa symbol"
ϖ "variant pi"
ϱ curled form rho
ϲ "lunate sigma"
ϒ curled form upsilon
ϕ closed form phi

Commercial symbols[edit]

Character HTML friendly code

™ © ® ¢ € ¥
£ ¤

&trade; &copy; &reg; &cent; &euro; &yen; 
&pound; &curren;

Miscellaneous[edit]

Character Name HTML friendly code
  non-breaking space &nbsp;

Wiki markup[edit]

General wiki markup[edit]

Wiki tags
Tag Function
<nowiki>text</nowiki> Ignores all Wiki and some HTML markup
<math>code</math> Generates image of math expression from LaTeX code, see help page
Layout
Markup Function
{| | table content |} Table
{| class="wikitable" | table content |} Wikitable
{{colbegin|num columns}} text to divide {{colend}} Columns

HTML specific[edit]

Syntax Function
<!--comment--> HTML comment
<br /> Line break
<pre>text</pre>
Ignores Wiki and HTML markup, displays text in mono-spaced font, and preserves formatting

Wikipedia templates[edit]

Source citing[edit]

Template Function See also
{{references}} Adds a reference list to the article
{{ref}} and {{note}} Alternative referencing style (will get their own indexes)

Categorization[edit]

Template Function See also
{{subst:dated|uncategorized}} Adds page to Category:Category needed

Text formatting[edit]

Template Function See also
{{unicode|characters}} Switches to unicode fonts {{lang}}
{{math|expression}} Formats raw mathematical formulas in the same manner as HTML based TeX formulas {{bigmath}}
{{code|code}} Wraps a short span of text in <syntaxhighlight> tags
{{nowiki|code}} A way to display text without wikification

Wiki escaping[edit]

Template Result Comments See also
{{void}} Outputs the null string; useful for programming advanced templates. Is often used within a template to the right of an equals sign. {{ns:0}},
{{voidd}}
{{(}} { Can be used in place of a literal "{" when the latter would be interpreted as a syntactic marker {{((}}, {{(((}}
{{!}} | Auxiliary template allowing the encoding of "|" within template parameters
{{pipe}}, or &#124; | Doesn't cause problems when it is used inside a template
{{!(}} [ Can be used in place of a literal "[" when the latter would be interpreted as a syntactic marker
{{=}} = Allows "=" to be used in template parameters

Linking[edit]

Template linking
Template Result Comment
{{tl|example}} {{example}} Doesn't support parameters
{{tlp|example|parameters}} {{example|parameters}}
{{tlx|example|parameters}} {{example|parameters}} Monospaced font
{{tlxi|example|parameters}} {{example|parameters}} Monospaced, italicized font
{{tls|example}} {{subst:example}} Doesn't support parameters
{{tlsp|example|parameters}} {{subst:example|parameters}}
{{tlsx|example|parameters}} {{subst:example|parameters}}
Template linking templates

General-purpose formatting[edit]

Comparison of template-linking templates according to the styles of generated text and link produced
Text style ↓ {{tlg}} options[note 1]
to achieve text style
Link style
Linked Unlinked Linked with subst Unlinked with subst Linked including braces Linked with alternative text
{{tlg}} options[note 1]
to achieve link style
DEFAULT nolink=yes subst=yes nolink=yes|subst=yes braceinside=yes alttext=Foo
2=Foo
normal DEFAULT {{tlg}}[note 1]
{{tl}}
{{tlp|1|2|...}}[note 2]
{{Template:tlu}}[note 3]
{{tlf}}[note 2]
<template link>
{{subst:tls}}
{{subst:Template:tlsu}}[note 3]
{{subst:tlsf}}[note 2]
<template link>
{{tn}} {{tla}}
code code=yes {{tl2}}
{{tlx}}
{{Template:tlxu}}[note 3]
{{tlc}}[note 2]
<template link>
{{tnull}}<template link>
{{subst:tlxs}} {{subst:tlsc}}[note 2]
<template link>
monospace plaincode=yes[note 4] {{subst:tltss}}[note 5]
kbd kbd=yes[note 5]
bold bold=yes {{tlb}}
bold+code bold=yes|code=yes {{tlxb}}
italic+code italic=yes|code=yes {{tlxi}}
  1. ^ a b c {{tlg}} is the most general template, allowing any combination of text style and/or link style options.
  2. ^ a b c d e Prevents wrapping of text by placing it inside <span class="nowrap">...</span> tags.
  3. ^ a b c Allows links to templates in any namespace.
  4. ^ {{tlg|plaincode=yes}} uses <code style="border:none; background-color:transparent;">...</code>.
  5. ^ a b Displays monospaced font using <span style="font-family:monospace;">...</span>.

Other formatting templates[edit]

Templates producing specialised formatting effects for given templates, modules or parameters
Code example Effect Notes
{{Tj|Hatnote|Some text|selfref: yes|category: no|lang: fr}}
{{Hatnote
| Some text
| selfref = yes
| category = no
| lang = fr
}}
Supports colors, placeholder texts, named and unnamed parameters
<syntaxhighlight lang="wikitext">
{{Hatnote
   | Some text
   | selfref = yes
   | category = no
   | lang = fr
}}
</syntaxhighlight>
{{Hatnote
    | Some text
    | selfref = yes
    | category = no
    | lang = fr
}}
Same as above
{{Tji|Hatnote|Some text|selfref: yes|category: no|lang: fr}} {{Hatnote|Some text|selfref=yes|category=no|lang=fr}} Supports colors, placeholder texts, named and unnamed parameters
<syntaxhighlight lang="wikitext" inline>{{Hatnote|Some text|selfref=yes|category=no|lang=fr}}</syntaxhighlight> {{Hatnote|Some text|selfref=yes|category=no|lang=fr}} Same as above
{{tl2|Hatnote|lang=fr}} {{hatnote}} Supports linking to sister projects (e.g., fr:Hatnote)
{{demo|<nowiki>{{Hatnote|lang=fr|Some text}}</nowiki>}}
{{hatnote|lang=fr|Some text}}
Shows code and example
{{tln|Hatnote}} Template:Hatnote Produces a normal link to the template
{{elc|Template:Hatnote}}
{{elc|Template:Hatnote|Hatnote}}
[[Template:Hatnote]]
[[Template:Hatnote|Hatnote]]
Formats wikilink, with optional piped link text and blended suffix
{{ml|Example|hello}} {{#invoke:Example|hello}} Counterpart to {{tl}} for linking to Lua modules
{{mfl|Example|hello}} {{#invoke:Example|hello}} Similar to {{ml}}, but expects the function to be documented and creates a link to the corresponding section
{{mlx|Example|hello}} {{#invoke:Example|hello}} Counterpart to {{tlx}} for linking to Lua modules
{{ml-lua|Module:Example|hello}} require('Module:Example') Link to Lua modules and built-in libraries, showing Lua code.
{{para|title|<var>book title</var>}} |title=book title Formats template parameters for display, with or without values
{{sclx|LASTING}} [[WP:LASTING]] Takes a shortcut suffix in project namespace and displays it with brackets and the WP: alias in a <code>...</code> tag.
{{tag|ref}}
{{xtag|templatedata}}
<ref>...</ref>
<templatedata>
Formats [X]HTML tags; can add content, choose opening, closing, or self-closing
{{dtl|Ping project}} {{d:Ping project}} Wikidata counterpart to {{tl}}
{{pf|if}}
{{pf|if|{{{1}}}|true|false}}
{{#if}}
{{#if:{{{1}}}|true|false}}
Parser function equivalent to {{tl}}
{{magic word|uc:}} {{uc:}} Magic word links

With utility links[edit]

Templates producing utility links for a given template (Hatnote used here as example)
Code example Effect
{{lt|Hatnote}} Template:Hatnote (edit | talk | history | links | watch | logs)
{{lts|Hatnote}} Template:Hatnote(edit talk links history)
{{t links|Hatnote}} {{Hatnote}} (edit talk history links # /subpages /doc /doc edit /sbox /sbox diff /test)
{{tfd links|Hatnote}} Template:Hatnote (talk · history · transclusions · logs · subpages)
{{tetl|Hatnote}} {{Hatnote}}
links talk edit
{{tsetl|Hatnote}} {{subst:Hatnote}}
 links talk edit
{{ti|Hatnote}} Template:Hatnote (talk · links · edit)
{{tic|Hatnote}} Template:Hatnote (talk links edit)
{{tim|Hatnote}} m:Template:Hatnote (backlinks edit)
{{tiw|Hatnote}} Template:Hatnote (backlinks edit)
{{tlt|Hatnote}} {{Hatnote}} (talk)
{{ttl|Hatnote}} {{Hatnote}} (t/l)
{{twlh|Hatnote}} Template:Hatnote (links, talk)

Hatnote templates[edit]

Hatnote templates
Article hatnote templates
Template Result See also
{{dablink|text}} {{rellink}}
{{about|use 1|use 2|page 2|and|page 3|other uses|page 4}}
{{other uses}}
{{for|other topic|page 2|page 3}}
{{for||page 2|page 3}} or
{{other uses|page 2|page 3}}
{{for2|other topic|custom text}}
{{other uses of|name|page 2}}
{{details|topic=topic|article}}
{{see|page 1|page 2|page 3}} or
{{further|[[page 1]], [[page 2]] and [[page 3]]}}
{{see also|page 1|page 2|page 3}}
{{see also2|costum text 1|costum text 2}}
{{redirect|User:Kri/Hatnotes}}
{{redirect|User:Kri/Hatnotes|use 1|page 2|use 2|page 3|and|page 4}} {{redirect2}},
4, 6, 7, 10
{{redirect-acronym|User:Kri/Hatnotes|page 2}}
{{redirect3|User:Kri/Hatnotes|costum text}}
{{distinguish|page 2|page 3|page 4}}
{{distinguish2|costum text}}
{{redirect-distinguish|User:Kri/Hatnotes|page 2|page 3}}
{{redirect-distinguish|User:Kri/Hatnotes|costum text}}
{{misspelling|page 2}}
{{main|page 2|page 3}}
{{main list|page 2}}
{{selfref|text referring to Wikipedia, see [[Wikipedia:Manual of Style (self-references to avoid)]]}}
Category hatnote templates
Template Result See also
{{category see also|category 2|category 3|category 4}}
{{Preceding category|category 2}}
{{Succeeding category|category 2}}
{{Category pair|category 2|category 3}}
{{contrast|category 2|category 3}}
{{contrast|plural=yes|category 2|category 3}} (plural)
User talk hatnote templates
Template Result See also
{{this user talk|topic|page 2}}

Message templates[edit]

Welcome templates[edit]

Page talk templates[edit]

User warning templates[edit]

Talkback templates[edit]

Talkback templates
Template Result Comments
{{talkback|your username|section title|ts=~~~~~}}
Hello, Kri. You have new messages at Your username's talk page.
Message added 13:15, 7 August 2011 (UTC). You can remove this notice at any time by removing the {{Talkback}} or {{Tb}} template.
{{talkbacktiny|your username|~~~~~}}
Hello, Kri. You have new messages at your username's talk page. -- 13:15, 7 August 2011 (UTC)
{{usertalkback|icon=frag| you=other|me=other}}
Features a lot of options

Linking[edit]

Linking between Wikimedia sister projects[edit]

Interwiki linking options
Project Long form Shortcut Pagename template
Wikipedia [[wikipedia:]] [[w:]]
Wiktionary [[wiktionary:]] [[wikt:]] {{Wiktionary|Pagename}}
Wikinews [[wikinews:]] [[n:]] {{Wikinews|Pagename}}
Wikibooks [[wikibooks:]] [[b:]] {{Wikibooks|Pagename}}
Wikiquote [[wikiquote:]] [[q:]] {{Wikiquote|Pagename}}
Wikisource [[wikisource:]] [[s:]] {{Wikisource|Pagename}}
Wikisource (common repository) [[oldwikisource:]] {{WikisourceWiki|Pagename}}
Wikispecies [[wikispecies:]] [[species:]] {{Wikispecies|Pagename}}
Wikiversity [[wikiversity:]] [[v:]] {{Wikiversity|Pagename}}
Wikiversity Beta [[betawikiversity:]]
Wikivoyage [[wikivoyage:]] [[voy:]] {{Wikivoyage|Pagename}}
Wikipedia in another language (help) [[language code:wikipedia:]] [[language code:]], [[w:language code:]]
Wikimedia Foundation Governance Wiki [[wikimedia:]][[foundation:]] [[wmf:]]
Wikimedia Commons [[commons:]] [[c:]] {{Commons|Pagename}}
Wikimedia Meta-Wiki [[metawiki:]], [[metawikimedia:]], [[metawikipedia:]], [[meta:]] [[m:]] {{Meta|Pagename}}
Wikimedia Strategic Planning [[strategy:]]
Simple English Wikipedia [[simple:]]
Wikimedia Incubator [[incubator:]] {{Incubator|Pagename}}
Wikispore [[wikispore:]]
MediaWiki [[mediawikiwiki:]] [[mw:]] {{MediaWiki|Pagename}}
Wikimedia Quality [[quality:]]
Wikimedia OTRS (ticket with TicketID, ticket with TicketNumber) [[otrswiki:]][[otrs:000000]][[ticket:0000000000000000]]
Phabricator (formerly Bugzilla and MediaZilla) [[phabricator:]][[bugzilla:]][[mediazilla:]] [[phab:]] {{Phab|Tasknumber}}
Nostalgia [[nostalgia:]] [[nost:]]
Test Wikipedia [[testwiki:]]
Wikitech [[wikitech:]][[labsconsole:]]
Wikidata [[wikidata:]] [[d:]] {{Wikidata property|​property id|topic}}
Outreach Wiki [[outreach:]][[outreachwiki:]]
Toolforge [[toolforge:]]

MediaWiki extensions[edit]

Graphs[edit]

Debugging[edit]

Tools[edit]

Uncovered[edit]

Wikipedia structures[edit]

Talkback templates[edit]

Miscellaneous[edit]