User:Kri/Useful for editing Wikipedia
Appearance
< User:Kri
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 | < | |
> | greater-than sign | > | |
" | quotation mark | " |
Math characters
[edit]Character | HTML friendly code |
---|---|
∫ ∑ ∏ √ − ± ∞ |
∫ ∑ ∏ √ − ± ∞ ≈ ∝ ≡ ≠ ≤ ≥ × · ÷ ∂ ′ ″ ∇ ‰ ° ∴ ℵ ø ∈ ∉ ∩ ∪ ⊂ ⊃ ⊆ ⊇ ¬ ∧ ∨ ∃ ∀ ⇒ ⇐ ⇓ ⇑ ⇔ → ↓ ↑ ← ↔ |
Character |
---|
ℜ ℑ |
Greek characters
[edit]Character | HTML friendly code |
---|---|
α β γ δ ε ζ |
α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ ς τ υ φ χ ψ ω Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ Ω |
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 |
---|---|
™ © ® ¢ € ¥ |
™ © ® ¢ € ¥ £ ¤ |
Miscellaneous
[edit]Character | Name | HTML friendly code |
---|---|---|
non-breaking space | |
Wiki markup
[edit]General wiki markup
[edit]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 |
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 |
|
| | 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 | 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]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
|
braceinside=yes
|
alttext=Foo 2=Foo
|
normal | DEFAULT | {{tlg}} {{tl}} {{tlp|1|2|...}} {{Template:tlu}} |
{{tlf}} <template link> |
{{subst:tls}} {{subst:Template:tlsu}} |
{{subst:tlsf}} <template link> |
{{tn}} | {{tla}} |
code
|
code=yes
|
{{tl2}} {{tlx}} {{Template:tlxu}} |
{{tlc}} <template link> {{tnull}} <template link>
|
{{subst:tlxs}}
|
{{subst:tlsc}} <template link> |
— | |
monospace | plaincode=yes |
— | {{subst:tltss}} |
— | |||
kbd | kbd=yes | ||||||
bold | bold=yes
|
{{tlb}} | — | ||||
bold+code
|
bold=yes
|
{{tlxb}}
| |||||
italic+code
|
italic=yes
|
{{tlxi}}
|
- ^ a b c
{{tlg}}
is the most general template, allowing any combination of text style and/or link style options. - ^ a b c d e Prevents wrapping of text by placing it inside
<span class="nowrap">...</span>
tags. - ^ a b c Allows links to templates in any namespace.
- ^
{{tlg|plaincode=yes}}
uses<code style="border:none; background-color:transparent;">...</code>
. - ^ a b Displays monospaced font using
<span style="font-family:monospace;">...</span>
.
Other formatting templates
[edit]Code example | Effect | Notes |
---|---|---|
{{Tj|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 |
Supports colors, placeholder texts, named and unnamed parameters |
|
{{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}}
|
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]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}} |
{{tsetl|Hatnote}}
|
{{subst:Hatnote}} |
{{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}}
|
Template:Hatnote (links, talk) |
{{twlh|Hatnote}}
|
Template:Hatnote (links, talk) |
Hatnote templates
[edit]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)]]}}
|
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)
|
Template | Result | See also |
---|---|---|
{{this user talk|topic|page 2}}
|
Message templates
[edit]Welcome templates
[edit]- Wikipedia:Welcoming committee/Welcome templates
- Wikipedia:Welcoming committee/Welcome templates/Table
Page talk templates
[edit]User warning templates
[edit]- Wikipedia:Template messages/User talk namespace
- Wikipedia:Template messages/User talk namespace/Multi-level templates
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
MediaWiki extensions
[edit]Graphs
[edit]Debugging
[edit]Tools
[edit]- The special page ExpandTemplates
- The MediaWiki API (? See link)
Uncovered
[edit]Wikipedia structures
[edit]Talkback templates
[edit]- {{please see}}
- {{whisperback}}
- {{you've got mail}}
Miscellaneous
[edit]- User:Gadget850/Cite comparisons, helpful for finding out what style a bibliography uses