Characters
editTemplate/Tag/Extension | Code | HTML Entity | Result |
---|---|---|---|
{{!}} magic word |
{{!}}
|
|
|
| |
Template:!! | {{!!}} |
|| |
|| |
Template:!( |
{{!(}}
|
[
|
[ |
Template:!(( |
{{!((}}
|
[[ |
[[ |
Template:)! |
{{)!}}
|
]
|
] |
Template:))! |
{{))!}}
|
]] |
]] |
Template:( | {{(}}
|
{
|
{ |
Template:(( | {{((}} |
{{ |
{{ |
Template:((( | {{(((}} |
{{{ |
{{{ |
Template:) | {{)}}
|
}
|
} |
Template:)) | {{))}} |
}} |
}} |
Template:))) | {{)))}} |
}}} |
}}} |
Template:(! | {{(!}} |
{| |
{| |
Template:!- | {{!-}} |
|- |
|- |
Template:!) | {{!)}}
|
|}
|
|} |
Template:End | {{End}}
| ||
Template:= | {{=}}
|
=
|
= |
See also
editCode
editTemplate/Tag/Extension | Code | Result |
---|---|---|
Template:Pre | {{pre |space=nowrap |width=200px |Some ''lengthy lengthy lengthy lengthy lengthy lengthy code'' here.}}
|
Some lengthy lengthy lengthy lengthy lengthy lengthy code here. |
Template:Pre2 | {{pre2 |scroll |nowiki |style=color:blue |Some ''lengthy lengthy lengthy lengthy lengthy lengthy code'' here.}}
|
nowiki|Some lengthy lengthy lengthy lengthy lengthy lengthy code here. |
<pre> parser tag
|
<pre>Some ''code'' here.</pre>
|
Some ''code'' here. |
<code> HTML tag
|
<code>Some ''code'' here.</code>
|
Some code here.
|
<nowiki> parser tag
|
<nowiki>Some ''code'' here.</nowiki>
|
Some ''code'' here. |
<code> and <nowiki> tags together
|
<code style="white-space:nowrap;"><nowiki>Some ''code'' here.</nowiki></code>
|
Some ''code'' here.
|
<syntaxhighlight> extension or <source> alias (deprecated)
|
<syntaxhighlight lang="lua" highlight="2,4-6" line start="10" style="border:1px solid black;">
-- Print stuff.
function hello_world ()
print("Hello")
print("world")
print("from")
print("Wikipedia")
print("!")
end
|
-- Print stuff.
function hello_world ()
print("Hello")
print("world")
print("from")
print("Wikipedia")
print("!")
end
|
<syntaxhighlight lang="lua" class="nowrap" inline>print("Hello world!") </syntaxhighlight>
|
print("Hello world!")
| |
Template:Xtag | {{xtag |1=pre |2=pair |content=content |params=params}}
|
<pre params>content</pre>
|
Template:Tag | {{tag |1=tag |2=pair |content=content |attribs=attrib="value" |wrap=yes |link=yes}}
|
<tag attrib="value">content</tag>
|
Template:XMLElement (Note: avoid spaces.) |
{{XMLElement|1=tag|2=Title|content=content|atr= attrib="value"|end=optional|nospace=yes|noslash=yes}}
|
<tag attrib="value">content</tag>
|
Links
editTemplate/Tag/Extension | Code | Result | |
---|---|---|---|
Omit namespaces and parenthetical disambiguation (will be expanded on save) | Pipe trick | [[Talk:Example (musician)|]]
|
Example |
Reverse pipe trick (only works if the current page title has comma-separated/parenthetical disambiguation) | [[|User:JohnnyMyself]]
|
User:JohnnyMyself | |
Subpages | Slash trick | [[/sandbox]]
|
/sandbox |
Categories | Template:Category link | {{Category link |1=Example |2=Example Category |count=yes |count_type=all |backlog=5}}
|
Example Category ( 7 ) |
Wikilink | [[Category:Example]] |
NOTE: A regular wikilink to a category page causes this page to be added to that category. | |
Wikilink without adding the page to that category | [[:Category:Example]]
|
Category:Example | |
Help | Template:Help link | {{Help link|Example}}
|
Example |
Wikilink | [[Help:Example]]
|
Help:Example | |
Modules | Template:Module | [[Module:Example]]
|
Module:Example {{#invoke:Example|function}} |
Wikilink | [[Module:Example]]
|
Module:Example | |
Templates | Template:Template link normal | {{Template link normal|Example}}
|
Template:Example |
Wikilink | [[Template:Example]]
|
Template:Example |
TO DO
editTemplate:PlayStation key press
Category:Wikipedia utility templates
Category:Wikipedia formatting and function templates
Category:Wikipedia XHTML tag-replacing templates
Category:Character-substitution templates
Category:Inline spacing templates
Category:Internal link templates
Category:Internal module-link templates
Category:Username internal link templates
Category:Section and anchor link formatting templates
Category:Documentation assistance templates
Category:Wikipedia behavioral guidelines