https://isfdb.org/wiki/index.php?title=Help:Wikitext_examples&feed=atom&action=historyHelp:Wikitext examples - Revision history2024-03-29T05:20:54ZRevision history for this page on the wikiMediaWiki 1.35.6https://isfdb.org/wiki/index.php?title=Help:Wikitext_examples&diff=117016&oldid=prevDESiegel60: +cat2008-02-27T18:00:40Z<p>+cat</p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 18:00, 27 February 2008</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l663" >Line 663:</td>
<td colspan="2" class="diff-lineno">Line 663:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{HelpSourceMW|Wikitext examples}}</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{HelpSourceMW|Wikitext examples}}</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:Wiki Help|Wikitext examples]]</ins></div></td></tr>
</table>DESiegel60https://isfdb.org/wiki/index.php?title=Help:Wikitext_examples&diff=111560&oldid=prevDESiegel60: copied from MW help with deletions and changes2008-02-25T18:29:45Z<p>copied from MW help with deletions and changes</p>
<p><b>New page</b></p><div>For basic information see [[Help:Editing]].<br />
<br />
=== Basic text formatting ===<br />
You can format the page using Wikitext special characters.<br />
<br />
{|width="80%" border="1" cellpadding="2" cellspacing="0"<br />
|-<br />
!What it looks like<br />
!What you type<br />
|-<br />
|<br />
You can ''italicize text'' by putting 2 <br />
apostrophes on each side. <br />
<br />
3 apostrophes will '''bold the text'''. <br />
<br />
5 apostrophes will '''bold''' and ''italicize'' <br />
'''''the text'''''.<br />
<br />
(Using 4 apostrophes doesn't do anything special -- <br>they are just '''' left over ones'''' that are included as part of the text.)<br />
|<pre><br />
You can ''italicize text'' by putting 2 <br />
apostrophes on each side. <br />
<br />
3 apostrophes will '''bold the text'''. <br />
<br />
5 apostrophes will '''bold''' and ''italicize''<br />
'''''the text'''''.<br />
<br />
(Using 4 apostrophes doesn't do anything<br />
special -- <br /> they are just ''''left<br />
over ones'''' that are included as part<br />
of the text.)<br />
</pre><br />
|-<br />
|<br />
A single newline<br />
generally has no effect on the layout.<br />
These can be used to separate<br />
sentences within a paragraph.<br />
Some editors find that this aids editing<br />
and improves the ''diff'' function<br />
(used internally to compare<br />
different versions of a page).<br />
<br />
But an empty line<br />
starts a new paragraph.<br />
<br />
When used in a list, a newline ''does'' affect the layout ([[#lists|see below]]).<br />
|<pre><br />
A single newline<br />
generally has no effect on the layout.<br />
These can be used to separate<br />
sentences within a paragraph.<br />
Some editors find that this aids editing<br />
and improves the ''diff'' function<br />
(used internally to compare<br />
different versions of a page).<br />
<br />
But an empty line<br />
starts a new paragraph.<br />
<br />
When used in a list, a newline ''does''<br />
affect the layout ([[#lists|see below]]).<br />
</pre><br />
|-<br />
|<br />
You can break lines<br/><br />
without a new paragraph.<br/><br />
Please use this sparingly.<br />
<br />
Please do not start a link or ''italics'' or '''bold''' on one line and close it on the next.<br />
|<pre><br />
You can break lines<br/><br />
without a new paragraph.<br/><br />
Please use this sparingly.<br />
<br />
Please do not start a link or<br />
''italics'' or '''bold''' on one line<br />
and close it on the next.<br />
</pre><br />
|-<br />
|<br />
You should "sign" your comments on talk pages: <br/><br />
- Three tildes gives your signature: [[User:Example|Example]] <br/><br />
- Four tildes give your signature plus date/time: [[User:Example|Example]] 07:46, 27 November 2005 (UTC) <br/><br />
- Five tildes gives the date/time alone: 07:46, 27 November 2005 (UTC) <br/><br />
|<pre><br />
You should "sign" your comments <br />
on talk pages:<br />
- Three tildes gives your<br />
signature: ~~~<br />
- Four tildes give your <br />
signature plus date/time: ~~~~<br />
- Five tildes gives the <br />
date/time alone: ~~~~~<br />
</pre><br />
|}<br />
<br />
=== HTML tags ===<br />
You can use some ''HTML tags'' too. For a list of HTML tags that are allowed, see [[Help:HTML in wikitext|HTML in wikitext]]. However, you should avoid HTML in favor of Wiki markup whenever possible.<br />
<br />
<br />
{| border="1" cellpadding="2"<br />
!width="1000"|What it looks like<br />
!width="500"|What you type<br />
|-<br />
|<br />
Put text in a <tt>typewriter<br />
font</tt>. The same font is <br />
generally used for <code><br />
computer code</code>.<br />
|<pre><br />
Put text in a <tt>typewriter<br />
font</tt>. The same font is <br />
generally used for <code><br />
computer code</code>.<br />
</pre><br />
|-<br />
|<br />
<strike>Strike out</strike><br />
or <u>underline</u> text,<br />
or write it <span style=<br />
"font-variant:small-caps"><br />
in small caps</span>.<br />
|<pre><br />
<strike>Strike out</strike><br />
or <u>underline</u> text,<br />
or write it <span style=<br />
"font-variant:small-caps"><br />
in small caps</span>.<br />
</pre><br />
|-<br />
|<br />
Superscripts and subscripts:<br />
X<sup>2</sup>, H<sub>2</sub>O<br />
|<pre><br />
Superscripts and subscripts:<br />
X<sup>2</sup>, H<sub>2</sub>O<br />
</pre><br />
|-<br />
|<br />
<center>Centered text</center><br />
* Please note the American spelling of "center".<br />
|<pre><br />
<center>Centered text</center><br />
* Please note the American spelling of "center".<br />
</pre><br />
|-<br />
|<br />
<blockquote><br />
The '''blockquote''' command formats block <br />
quotations, typically by surrounding them <br />
with whitespace and a slightly different font.<br />
</blockquote><br />
|<pre><br />
<blockquote><br />
The '''blockquote''' command formats block <br />
quotations, typically by surrounding them <br />
with whitespace and a slightly different font.<br />
</blockquote><br />
</pre><br />
|-<br />
|<br />
Invisible comments to editors (&lt;!-- --&gt;) <br />
appear only while editing the page.<br />
<!-- Note to editors: blah blah blah. --><br />
<br />
* If you wish to make comments to the public, you should usually use the [[talk page]].<br />
|<pre><br />
Invisible comments to editors (&amp;lt;!-- --&amp;gt;)<br />
appear only while editing the page.<br />
<!-- Note to editors: blah blah blah. --><br />
</pre><br />
|}<br />
<br />
=== Organizing your writing ===<br />
{| border="1" cellpadding="2"<br />
!width="1000"|What it looks like<br />
!width="500"|What you type<br />
|-<br />
|<br />
<div style="font-size:150%;border-bottom:1px solid #000000;">Section headings</div><br />
<br />
''Headings'' organize your writing into <br />
sections. The Wiki software can automatically <br />
generate a [[Help:table of contents|table of contents]] from them.<br />
<br />
<div style="font-size:132%;font-weight:bold;">Subsection</div><br />
Using more "equals" (=) signs creates a subsection.<br />
<br />
<div style="font-size:116%;font-weight:bold;">A smaller subsection</div><br />
<br />
Don't skip levels, like from two to four equals signs.<br />
<br />
Start with 2 equals signs not 1 because 1 creates H1 tags which should be reserved for page title.<br />
|<pre><br />
== Section headings ==<br />
<br />
''Headings'' organize your writing into<br />
sections. The Wiki software can automatically<br />
generate a [[table of contents]] from them.<br />
<br />
=== Subsection ===<br />
Using more "equals" (=) signs creates a subsection.<br />
<br />
==== A smaller subsection ====<br />
<br />
Don't skip levels,<br />
like from two to four equals signs.<br />
<br />
Start with 2 equals signs not 1<br />
because 1 creates H1 tags<br />
which should be reserved for page title.<br />
</pre><br />
|- id="lists"<br />
|<br />
* ''Unordered [[Help:List|list]]s'' are easy to do:<br />
** Start every line with a star.<br />
*** More stars indicate a deeper level.<br />
*: Previous item continues.<br />
** A newline<br />
* in a list <br />
marks the end of the list.<br />
*Of course you can start again.<br />
|<pre><br />
* ''Unordered lists'' are easy to do:<br />
** Start every line with a star.<br />
*** More stars indicate a deeper level.<br />
*: Previous item continues.<br />
** A newline<br />
* in a list <br />
marks the end of the list.<br />
*Of course you can start again.<br />
</pre><br />
|-<br />
|<br />
# ''Numbered lists'' are:<br />
## Very organized<br />
## Easy to follow<br />
A newline marks the end of the list.<br />
# New numbering starts with 1.<br />
<br />
|<pre><br />
# ''Numbered lists'' are:<br />
## Very organized<br />
## Easy to follow<br />
A newline marks the end of the list.<br />
# New numbering starts with 1.<br />
</pre><br />
|-<br />
|<br />
Here's a ''definition list'':<br />
; Word : Definition of the word<br />
; A longer phrase needing definition<br />
: Phrase defined<br />
; A word : Which has a definition<br />
: Also a second definition<br />
: And even a third<br />
<br />
Begin with a semicolon. One item per line; <br />
a newline can appear before the colon, but <br />
using a space before the colon improves <br />
parsing.<br />
|<pre><br />
Here's a ''definition list'':<br />
; Word : Definition of the word<br />
; A longer phrase needing definition<br />
: Phrase defined<br />
; A word : Which has a definition<br />
: Also a second one<br />
: And even a third<br />
<br />
Begin with a semicolon. One item per line; <br />
a newline can appear before the colon, but <br />
using a space before the colon improves <br />
parsing.<br />
</pre><br />
|-<br />
|<br />
* You can even do mixed lists<br />
*# and nest them<br />
*# inside each other<br />
*#* or break lines<br>in lists.<br />
*#; definition lists<br />
*#: can be <br />
*#:; nested : too<br />
|<pre><br />
* You can even do mixed lists<br />
*# and nest them<br />
*# inside each other<br />
*#* or break lines<br>in lists.<br />
*#; definition lists<br />
*#: can be <br />
*#:; nested : too<br />
</pre><br />
|-<br />
|<br />
: A colon (:) indents a line or paragraph.<br />
A newline starts a new paragraph. <br><br />
Should only be used on [[talk pages]]. <br><br />
For articles, you probably want the blockquote tag.<br />
: We use 1 colon to indent once.<br />
:: We use 2 colons to indent twice.<br />
::: 3 colons to indent 3 times, and so on.<br />
|<pre><br />
: A colon (:) indents a line or paragraph.<br />
A newline starts a new paragraph.<br />
Should only be used on talk pages.<br />
For articles, you probably want the blockquote tag.<br />
: We use 1 colon to indent once.<br />
:: We use 2 colons to indent twice.<br />
::: 3 colons to indent 3 times, and so on.<br />
</pre><br />
|-<br />
|<br />
You can make horizontal dividing lines (----)<br />
to separate text.<br />
----<br />
But you should usually use sections instead,<br />
so that they go in the table of contents.<br />
|<pre><br />
You can make horizontal dividing lines (----)<br />
to separate text.<br />
----<br />
But you should usually use sections instead,<br />
so that they go in the table of contents.<br />
</pre><br />
|-<br />
|<br />
You can add footnotes to sentences using the ''ref'' tag -- this is especially good for citing a source. (This will not be supported in the ISFDB wiki until we upgrade to a later version of the WikiMedia software)<br />
<br />
:There are over six billion people in the world.<ref>CIA World Factbook, 2006.</ref><br />
<br />
References: <references/><br />
<br />
For details, see [[Wikipedia:Footnotes]] and [[Help:Footnotes]].<br />
|<br />
<pre><br />
You can add footnotes to sentences using<br />
the ''ref'' tag -- this is especially good<br />
for citing a source. (This will not be <br />
supported in the ISFDB wiki until we upgrade <br />
to a later version of the WikiMedia software)<br />
<br />
:There are over six billion people in the<br />
world.<ref>CIA World Factbook, 2006.</ref><br />
<br />
References: <references/><br />
<br />
For details, see [[Wikipedia:Footnotes]] <br />
and [[Help:Footnotes]].<br />
</pre><br />
|}<br />
<br />
See also [[Wikipedia:Picture tutorial#Forcing a break]] (not just for pictures).<br />
<br />
=== Links ===<br />
<br />
You will often want to make clickable ''links'' to other pages.<br />
<br />
{|width="100%" border="1" cellpadding="2" cellspacing="0"<br />
|-<br />
!What it looks like<br />
!What you type<br />
|-<br />
|<br />
Here's a link to a page named [[Official position]].<br />
You can even say [[official position]]s<br />
and the link will show up correctly.<br />
|<pre><br />
Here's a link to a page named [[Official position]].<br />
You can even say [[official position]]s<br />
and the link will show up correctly.<br />
</pre><br />
|-<br />
|<br />
You can put formatting around a link.<br />
Example: ''[[Wikipedia]]''.<br />
|<pre><br />
You can put formatting around a link.<br />
Example: ''[[Wikipedia]]''.<br />
</pre><br />
|-<br />
|<br />
The ''first letter'' of articles is automatically<br />
capitalized, so [[wikipedia]] goes to the same place<br />
as [[Wikipedia]]. Capitalization matters after the<br />
first letter.<br />
|<pre><br />
The ''first letter'' of articles is automatically<br />
capitalized, so [[wikipedia]] goes to the same place<br />
as [[Wikipedia]]. Capitalization matters after the<br />
first letter.<br />
</pre><br />
|-<br />
|<br />
[[The weather in London]] is a page that doesn't exist<br />
yet. You could create it by clicking on the link.<br />
|<pre><br />
[[The weather in London]] is a page that doesn't exist<br />
yet. You could create it by clicking on the link.<br />
</pre><br />
|-<br />
|<br />
You can link to a page section by its title:<br />
<br />
* [[List of cities by country#Morocco]].<br />
<br />
If multiple sections have the same title, add<br />
a number. [[#Example section 3]] goes to the<br />
third section named "Example section".<br />
|<pre><br />
You can link to a page section by its title:<br />
<br />
* [[List of cities by country#Morocco]].<br />
<br />
If multiple sections have the same title, add<br />
a number. [[#Example section 3]] goes to the<br />
third section named "Example section".<br />
</pre><br />
|-<br />
|<br />
You can make a link point to a different place<br />
with a [[Help:Piped link|piped link]]. Put the link<br />
target first, then the pipe character "|", then<br />
the link text.<br />
<br />
* [[Help:Link|About Links]]<br />
* [[List of cities by country#Morocco|Cities in Morocco]]<br />
<br />
Or you can use the "pipe trick" so that a title that<br />
contains disambiguation text will appear with more concise<br />
link text.<br />
<br />
* [[Spinning (textiles)|Spinning]]<br />
* [[Boston, Massachusetts|Boston]]<br />
|<pre><br />
You can make a link point to a different place<br />
with a [[Help:Piped link|piped link]]. Put the link<br />
target first, then the pipe character "|", then<br />
the link text.<br />
<br />
* [[Help:Link|About Links]]<br />
* [[List of cities by country#Morocco|Cities in Morocco]]<br />
<br />
Or you can use the "pipe trick" so that a title that<br />
contains disambiguation text will appear with more concise<br />
link text.<br />
<br />
* [[Spinning (textiles)|]]<br />
* [[Boston, Massachusetts|]]<br />
</pre><br />
|-<br />
|<br />
You can make an external link just by typing a URL:<br />
http://www.nupedia.com<br />
<br />
You can give it a title:<br />
[http://www.nupedia.com Nupedia]<br />
<br />
Or leave the title blank:<br />
[http://www.nupedia.com]<br />
<br />
External link can be used to link to a wiki page that cannot be linked to with <nowiki>[[page]]</nowiki>:<br />
http://meta.wikimedia.org/w/index.php?title=Fotonotes&oldid=482030#Installation<br />
|<br />
<pre><br />
You can make an external link just by typing a URL:<br />
http://www.nupedia.com<br />
<br />
You can give it a title:<br />
[http://www.nupedia.com Nupedia]<br />
<br />
Or leave the title blank:<br />
[http://www.nupedia.com]<br />
<br />
External link can be used to link to a wiki page that<br />
cannot be linked to with <nowiki>[[page]]</nowiki>:<br />
http://meta.wikimedia.org/w/index.php?title=Fotonotes<br />
&oldid=482030#Installation<br />
</pre><br />
|-<br />
|<br />
Linking to an e-mail address works the same way:<br />
mailto:someone@example.com or [mailto:someone@example.com someone]<br />
|<br />
<pre><br />
Linking to an e-mail address works the same way:<br />
mailto:someone@example.com or [mailto:someone@example.com someone]<br />
</pre><br />
|-<br />
|<br />
You can [[Help:Redirect|redirect]] the user to another page.<br />
|<pre><br />
#REDIRECT [[Official position]]<br />
</pre><br />
|-<br />
|<br />
[[Help:Category|Category links]] do not show up in line<br />
but instead at page bottom ''and cause the page to be<br />
listed in the category.''<br />
[[Category:English documentation]]<br />
<br />
Add an extra colon to ''link'' to a category in line<br />
without causing the page to be listed in the category:<br />
[[:Category:English documentation]]<br />
|<pre><br />
[[Help:Category|Category links]] do not show up in line<br />
but instead at page bottom ''and cause the page to be<br />
listed in the category.''<br />
[[Category:English documentation]]<br />
<br />
Add an extra colon to ''link'' to a category in line<br />
without causing the page to be listed in the category:<br />
[[:Category:English documentation]]<br />
</pre><br />
|-<br />
|<br />
The Wiki reformats linked dates to match the reader's<br />
date preferences. These three dates will show up the<br />
same if you choose a format in your<br />
[[Special:Preferences|Preferences]]:<br />
* [[1969-07-20]]<br />
* [[July 20]], [[1969]]<br />
* [[20 July]] [[1969]]<br />
|<pre><br />
The Wiki reformats linked dates to match the reader's<br />
date preferences. These three dates will show up the<br />
same if you choose a format in your<br />
[[Special:Preferences|]]:<br />
* [[1969-07-20]]<br />
* [[July 20]], [[1969]]<br />
* [[20 July]] [[1969]]<br />
</pre><br />
|}<br />
<br />
===Just show what I typed===<br />
<br />
A few different kinds of formatting will tell the Wiki to display things as you typed them.<br />
<br />
{| border="1" cellpadding="2"<br />
!width="1000"|What it looks like<br />
!width="500"|What you type<br />
|-<br />
|<br />
<nowiki><br />
The nowiki tag ignores <br />
[[Wiki]] ''markup''.<br />
It reformats text by <br />
removing<br />
newlines and multiple<br />
spaces.<br />
It still interprets special<br />
characters: &rarr;<br />
</nowiki><br />
|<pre><br />
&lt;nowiki&gt;<br />
The nowiki tag ignores <br />
[[Wiki]] ''markup''.<br />
It reformats text by <br />
removing<br />
newlines and multiple<br />
spaces.<br />
It still interprets special<br />
characters: &amp;rarr;<br />
&lt;/nowiki&gt;<br />
</pre><br />
|-<br />
|<br />
<pre><br />
The pre tag ignores [[Wiki]]<br />
''markup''.<br />
It also doesn't reformat<br />
text.<br />
It still interprets special<br />
characters: &rarr;<br />
</pre><br />
|<pre><br />
&lt;pre&gt;<br />
The pre tag ignores [[Wiki]]<br />
''markup''.<br />
It also doesn't reformat<br />
text.<br />
It still interprets special<br />
characters: &amp;rarr;<br />
&lt;/pre&gt;<br />
</pre><br />
|-<br />
|<br />
[[Leading spaces]] are another way to preserve formatting.<br />
<br />
Putting a space at the<br />
beginning of each<br />
line stops the text <br />
from being<br />
reformatted. It still <br />
interprets [[Wiki]]<br />
''markup'' and special<br />
characters: &rarr;<br />
|<pre><br />
Leading spaces are another way<br />
to preserve formatting.<br />
<br />
Putting a space at the<br />
beginning of each<br />
line stops the text<br />
from being<br />
reformatted. It still <br />
interprets [[Wiki]]<br />
''markup'' and special<br />
characters: &amp;rarr;<br />
</pre><br />
|}<br />
<br />
===Templates===<br />
<br />
'''[[Help:Template|Templates]]''' are segments of Wiki markup that are meant to be copied automatically ("transcluded") into a page.<br />
You add them by putting the template's name in <nowiki>{{double braces}}</nowiki>. It is also possible to transclude other pages by using <nowiki>{{:colon and double braces}}</nowiki>.<br />
<br />
Some templates take ''parameters'', as well, which you separate with the pipe character.<br />
<br />
{| border="1" cellpadding="2"<br />
!width="1000"|What it looks like<br />
!width="500"|What you type<br />
|-<br />
|<br />
{{Transclusion demo}}<br />
|<pre><br />
{{Transclusion demo}}<br />
</pre><br />
|-<br />
|<br />
{{Help:Transclusion Demo}}<br />
|<pre><br />
{{Help:Transclusion Demo}}<br />
</pre><br />
|-<br />
|<br />
<br />
This template takes two parameters, and<br />
creates underlined text with a hover box<br />
for many modern browsers supporting CSS:<br />
<br />
{{H:title|This is the hover text|<br />
Hover your mouse over this text}}<br />
<br />
Go to this page to see the H:title template<br />
itself: {{tl|H:title}}<br />
<br />
|<pre><br />
This template takes two parameters, and<br />
creates underlined text with a hover box<br />
for many modern browsers supporting CSS:<br />
<br />
{{H:title|This is the hover text|<br />
Hover your mouse over this text}}<br />
<br />
Go to this page to see the H:title template<br />
itself: {{tl|H:title}}<br />
</pre><br />
|}<br />
<br />
{{HelpSourceMW|Wikitext examples}}</div>DESiegel60