User:Tbone55/User Page/All guide

From Wikipedia, the free encyclopedia




User Homepage
Give Me Advice
Talk
Esperanza
Userboxes
Autograph Book
My Awards

Contents

[edit] Basic text formatting

What it looks like What you type

You can italicize text by putting 2 apostrophes on each side.

3 apostrophes will bold the text.

5 apostrophes will bold and italicize the text.

(Using 4 apostrophes doesn't do anything special --
there are just ' left over ones' that are included as part of the text.)

You can ''italicize text'' by putting 2 
apostrophes on each side. 

3 apostrophes will bold '''the text'''. 

5 apostrophes will bold and italicize 
'''''the text'''''.

(Using 4 apostrophes doesn't do anything
special -- <br> there are just '''' left
over ones'''' that are included as part of the text.)

A single newline generally has no effect on the layout. These can be used to separate sentences within a paragraph. Some editors find that this aids editing and improves the diff function (used internally to compare different versions of a page).

But an empty line starts a new paragraph.

When used in a list, a newline does affect the layout (see below).

A single newline
generally has no effect on the layout.
These can be used to separate
sentences within a paragraph.
Some editors find that this aids editing
and improves the ''diff'' function
(used internally to compare
different versions of a page).

But an empty line
starts a new paragraph.

When used in a list, a newline ''does'' 
affect the layout ([[#lists|see below]]).

You can break lines
without a new paragraph.
Please use this sparingly.

Please do not start a link or italics or bold on one line and close it on the next.

You can break lines<br>
without a new paragraph.<br>
Please use this sparingly.

Please do not start a [[link]] or 
''italics'' or '''bold''' on one line 
and close it on the next.

You should "sign" your comments on talk pages:
- Three tildes gives your signature: Karl Wick
- Four tildes give your signature plus date/time: Karl Wick 07:46, 27 November 2005 (UTC)
- Five tildes gives the date/time alone: 07:46, 27 November 2005 (UTC)

You should "sign" your comments 
on talk pages: <br>
- Three tildes gives your
signature: ~~~ <br>
- Four tildes give your 
signature plus date/time: ~~~~ <br>
- Five tildes gives the 
date/time alone: ~~~~~ <br>

[edit] HTML tags

You can use some HTML tags too. For a list of HTML tags that are allowed, see HTML in wikitext. However, you should avoid HTML in favor of Wiki markup whenever possible.


What it looks like What you type

Put text in a typewriter font. The same font is generally used for computer code.

Put text in a <tt>typewriter
font</tt>. The same font is 
generally used for <code>
computer code</code>.

Strike out or underline text, or write it in small caps.

<strike>Strike out</strike>
or <u>underline</u> text,
or write it <span style=
"font-variant:small-caps">
in small caps</span>.

Superscripts and subscripts: X2, H2O

Superscripts and subscripts:
X<sup>2</sup>, H<sub>2</sub>O
Centered text
  • Please note the American spelling of "center".
<center>Centered text</center>

The blockquote command will indent both margins when needed instead of the left margin only as the colon does.

<blockquote>
The '''blockquote''' command will indent 
both margins when needed instead of the 
left margin only as the colon does.  
</blockquote>

Invisible comments to editors (<!-- -->) only appear while editing the page.

  • If you wish to make comments to the public, you should usually use the talk page.
Invisible comments to editors (&lt;!-- --&gt;)
only appear while editing the page.
<!-- Note to editors: blah blah blah. -->

[edit] Organizing your writing

What it looks like What you type
Section headings

Headings organize your writing into sections. The Wiki software can automatically generate a table of contents from them.

Subsection

Using more equals signs creates a subsection.

A smaller subsection

Don't skip levels, like from two to four equals signs.

Start with 2 equals signs not 1 because 1 creates H1 tags which should be reserved for page title.

== Section headings ==

''Headings'' organize your writing into 
sections. The Wiki software can automatically 
generate a table of contents from them.

=== Subsection ===

Using more equals signs creates a subsection.

==== A smaller subsection ====

Don't skip levels, 
like from two to four equals signs.

Start with 2 equals signs not 1 
because 1 creates H1 tags
which should be reserved for page title.
  • Unordered lists are easy to do:
    • Start every line with a star.
      • More stars indicate a deeper level.
    Previous item continues.
    • A newline
  • in a list

marks the end of the list.

  • Of course you can start again.
* ''Unordered lists'' are easy to do:
** Start every line with a star.
*** More stars indicate a deeper level.
*: Previous item continues.
** A newline
* in a list  
marks the end of the list.
* Of course you can start again.
  1. Numbered lists are:
    1. Very organized
    2. Easy to follow

A newline marks the end of the list.

  1. New numbering starts with 1.
# ''Numbered lists'' are:
## Very organized
## Easy to follow
A newline marks the end of the list.
# New numbering starts with 1.

Here's a definition list:

Word 
Definition of the word
A longer phrase needing definition
Phrase defined
A word 
Which has a definition
Also a second one
And even a third

Begin with a semicolon. One item per line; a newline can appear before the colon, but using a space before the colon improves parsing.

Here's a ''definition list'':
; Word : Definition of the word
; A longer phrase needing definition
: Phrase defined
; A word : Which has a definition
: Also a second one
: And even a third

Begin with a semicolon. One item per line; 
a newline can appear before the colon, but 
using a space before the colon improves 
parsing.
  • You can even do mixed lists
    1. and nest them
    2. inside each other
      • or break lines
        in lists.
      definition lists
      can be
      nested 
      too
* You can even do mixed lists
*# and nest them
*# inside each other
*#* or break lines<br>in lists.
*#; definition lists
*#: can be 
*#:; nested : too
A colon (:) indents a line or paragraph.

A newline starts a new paragraph.
Often used for discussion on talk pages.

We use 1 colon to indent once.
We use 2 colons to indent twice.
3 colons to indent 3 times, and so on.
: A colon (:) indents a line or paragraph.
A newline starts a new paragraph. <br>
Often used for discussion on talk pages.
: We use 1 colon to indent once.
:: We use 2 colons to indent twice.
::: 3 colons to indent 3 times, and so on.

You can make horizontal dividing lines (----) to separate text.


But you should usually use sections instead, so that they go in the table of contents.

You can make horizontal dividing lines (----)
to separate text.
----
But you should usually use sections instead,
so that they go in the table of contents.

You can add footnotes to sentences using the ref tag -- this is especially good for citing a source.

There are over six billion people in the world.[1]
References:
  1. ^ CIA World Factbook, 2006.

For details, see Wikipedia:Footnotes and Help:Footnotes.

You can add footnotes to sentences using
the ''ref'' tag -- this is especially good
for citing a source.

:There are over six billion people in the
world.<ref>CIA World Factbook, 2006.</ref>

References: <references/>

For details, see [[Wikipedia:Footnotes]]
and [[Help:Footnotes]].

[edit] Links

You will often want to make clickable links to other pages.

What it looks like What you type

Here's a link to a page named Official position. You can even say Official positions and the link will show up correctly.

Here's a link to a page named [[Official position]].
You can even say [[Official position]]s
and the link will show up correctly.

You can put formatting around a link. Example: Wikipedia.

You can put formatting around a link.
Example: ''[[Wikipedia]]''.

The first letter of articles is automatically capitalized, so wikipedia goes to the same place as Wikipedia. Capitalization matters after the first letter.

The ''first letter'' of articles is automatically
capitalized, so [[wikipedia]] goes to the same place
as [[Wikipedia]]. Capitalization matters after the
first letter.

The weather in London is a page that doesn't exist yet. You could create it by clicking on the link.

[[The weather in London]] is a page that doesn't exist
yet. You could create it by clicking on the link.

You can link to a page section by its title:

If multiple sections have the same title, add a number. #Example section 3 goes to the third section named "Example section".

You can link to a page section by its title:

*[[List of cities by country#Morocco]].

If multiple sections have the same title, add
a number. [[#Example section 3]] goes to the
third section named "Example section".

You can make a link point to a different place with a piped link. Put the link target first, then the pipe character "|", then the link text.

Or you can use the "pipe trick" so that text in parentheses or text after a comma does not appear.


*[[Help:Link|About Links]]
*[[List of cities by country#Morocco|
Cities in Morocco]]

*[[Spinning (textiles)|]]
*[[Boston, Massachusetts|]]

You can make an external link just by typing a URL: http://www.nupedia.com

You can give it a title: Nupedia

Or leave the title blank: [1]

You can make an external link just by typing a URL:
http://www.nupedia.com

You can give it a title:
[http://www.nupedia.com Nupedia]

Or leave the title blank:
[http://www.nupedia.com]

Linking to an e-mail address works the same way: mailto:someone@domain.com or someone

Linking to an e-mail address works the same way:
mailto:someone@domain.com or 
[mailto:someone@domain.com someone]

You can redirect the user to another page.

#REDIRECT [[Official position]]

Category links do not show up in line but instead at page bottom and cause the page to be listed in the category. Add an extra colon to link to a category in line without causing the page to be listed in the category: Category:English documentation

[[Help:Category|Category links]] do not show up in line
but instead at page bottom ''and cause the page to be
listed in the category.''
[[Category:English documentation]]

Add an extra colon to ''link'' to a category in line
without causing the page to be listed in the category:
[[:Category:English documentation]]

The Wiki reformats linked dates to match the reader's date preferences. These three dates will show up the same if you choose a format in your Preferences:

The Wiki reformats linked dates to match the reader's
date preferences. These three dates will show up the
same if you choose a format in your
[[Special:Preferences|]]:
* [[July 20]], [[1969]]
* [[20 July]] [[1969]]
* [[1969]]-[[07-20]]

[edit] Just show what I typed

See also Text formatting examples.

A few different kinds of formatting will tell the Wiki to display things as you typed them.

What it looks like What you type

The nowiki tag ignores [[Wiki]] ''markup''. It reformats text by removing newlines and multiple spaces. It still interprets special characters: →

<nowiki>
The nowiki tag ignores 
[[Wiki]] ''markup''.
It reformats text by 
removing
newlines    and multiple
 spaces.
It still interprets special
characters: &rarr;
</nowiki>
The pre tag ignores [[Wiki]]
 ''markup''.
It also doesn't     reformat
 text.
It still interprets special
characters: →
<pre>
The pre tag ignores [[Wiki]]
 ''markup''.
It also doesn't     reformat
 text.
It still interprets special
characters: &rarr;
</pre>

Leading spaces are another way to preserve formatting.

Putting a space at the
beginning of each
line stops the text   
from being
reformatted.  It still 
interprets Wiki
markup and special
characters: →
Leading spaces are another way
to preserve formatting.

 Putting a space at the
 beginning of each
 line stops the text   
 from being
 reformatted.  It still 
 interprets [[Wiki]]
 ''markup'' and special
 characters: &rarr;

[edit] Images, tables, video, and sounds

After uploading, just enter the filename, highlight it and press the "embedded image"-button of the edit_toolbar.

This will produce the syntax for uploading a file [[Image:filename.png]]

This is a very quick introduction. For more information, see:

What it looks like What you type

A picture, including alternate text:

This Wiki's logo

You can put the image in a frame with a caption:

This Wiki's logo
This Wiki's logo
A picture, including alternate text:

[[Image:Wiki.png|This Wiki's logo]]

The image in a frame with a caption:
[[Image:Wiki.png|frame|This Wiki's logo]]

A link to Wikipedia's page for the image: Image:Wiki.png

Or a link directly to the image itself: Media:Wiki.png

A link to Wikipedia's page for the image:
[[:Image:Wiki.png]]

Or a link directly to the image itself:
[[Media:Wiki.png]]

Use media: links to link directly to sounds or videos: A sound file

Use '''media:''' links to link 
directly to sounds or videos: 
[[media:Sg_mrob.ogg|A sound file]]
This is
a table
{| border="1" cellspacing="0" 
cellpadding="5" align="center"
! This
! is
|- 
| a
| table
|-
|}

[edit] Mathematical formulas

You can format mathematical formulas with TeX markup. See Help:Formula.

What it looks like What you type

\sum_{n=0}^\infty \frac{x^n}{n!}

<math>\sum_{n=0}^\infty \frac{x^n}{n!}</math>

[edit] Templates

Templates are segments of Wiki markup that are meant to be copied automatically ("transcluded") into a page. You add them by putting the template's name in {{double braces}}.

Some templates take parameters, as well, which you separate with the pipe character.

What it looks like What you type

This text comes from the page named Template:Transclusion demo. It has been transcluded into this page.

{{Transclusion demo}}

This transclusion demo is a little bit of text from the page Help:Transclusion Demo to be included into any file.

{{:Help:Transclusion Demo}}

This template takes two parameters, and creates underlined text with a hover box for many modern browsers supporting CSS:

Hover your mouse over this text

Go to this page to see the H:title template itself: {{H:title}}

This template takes two parameters, and
creates underlined text with a hover box
for many modern browsers supporting CSS:

{{H:title|This is the hover text|
Hover your mouse over this text}}

Go to this page to see the H:title template
itself: {{tl|H:title}}

Template:H:f User

[edit] Then Magic Words

Copied from Magic words section of help

[edit] Table of contents

Word Explanation
__NOTOC__ Hides ToC on the current page.
__FORCETOC__ Forces the table of contents to appear.
__TOC__ Places a ToC here (overriding any __NOTOC__).

[edit] More magic

Word Explanation
__NOEDITSECTION__ Hides the edit links beside headings.
__NEWSECTIONLINK__ [MW1.7+] Gives a "+"-link next to the edit-tab to make a new section on a non-talk page.
__NOCONTENTCONVERT__
__NOCC__
Don't perform the content language conversion (character and phase) in article display; for example, Chinese zh with zh_cn, zh_tw, zh_sg, zh_hk.
__NOGALLERY__ [MW1.7+] This magic word allows images in category pages to be displayed as inline links instead of gallery.
__NOTITLECONVERT__
__NOTC__
Like __NOCC__ but affecting article title only.
__END__ Allows for trailing whitespace to be included in the page save.
__START__ This magic word has no effect but an ID in MagicWord.php (MAG_START).

[edit] Time

The time in UTC.

Word Example Explanation
{{CURRENTDAY}} 30 Displays the current day in numeric form.
{{CURRENTDAY2}} 30 [MW1.6+] Same as {{CURRENTDAY}}, but with leading zero (01 .. 31).
{{CURRENTDAYNAME}} Friday Name of the day in the language of the project or English.
{{CURRENTDOW}} 5 Same as {{CURRENTDAYNAME}}, but as a number (0=Sunday, 1=Monday...).
{{CURRENTMONTH}} 03 The number 01 .. 12 of the month.
{{CURRENTMONTHABBREV}} Mar [MW1.5+] Same as {{CURRENTMONTH}}, but in abbreviated form as Jan .. Dec.
{{CURRENTMONTHNAME}} March Same as {{CURRENTMONTH}}, but in named form January .. December.
{{CURRENTTIME}} 06:03 The current time (00:00 .. 23:59).
{{CURRENTHOUR}} 05 The current hour (00 .. 23).
{{CURRENTWEEK}} 13 Number of the current week (1-53) according to ISO 8601 with no leading zero.
{{CURRENTYEAR}} 2007 Returns the current year.
{{CURRENTTIMESTAMP}} 20070330054751 [MW1.7+] ISO 8601 time stamp.

[edit] Local time

The time depending on the local timezone of the wiki. (All words [MW1.8+] )

Word Example Explanation
{{LOCALDAY}} 30 Displays the local day of the month in numeric form.
{{LOCALDAY2}} 30 Same as {{LOCALDAY}}, but with a leading zero (01 .. 31).
{{LOCALDAYNAME}} Friday Name of the day in the language of the project or English.
{{LOCALDOW}} 5 Same as {{LOCALDAYNAME}}, but as a number (0=Sunday, 1=Monday...).
{{LOCALMONTH}} 03 The number 01 .. 12 of the month.
{{LOCALMONTHABBREV}} Mar Same as {{LOCALMONTH}}, but in abbreviated form as Jan .. Dec.
{{LOCALMONTHNAME}} March Same as {{LOCALMONTH}}, but in named form as January .. December.
{{LOCALTIME}} 07:28 The local time (00:00 .. 23:59).
{{LOCALHOUR}} 07 The local hour (00 .. 23).
{{LOCALWEEK}} 13 Number of the local week (1-53) according to ISO 8601 with no leading zero.
{{LOCALYEAR}} 2007 Returns the local year.
{{LOCALTIMESTAMP}} 20070330072847 ISO 8601 time stamp.

[edit] Statistics

Word Example Explanation
{{CURRENTVERSION}} 1.10alpha (r20145) [MW1.7+] $wgVersion [2]
{{NUMBEROFARTICLES}}
{{NUMBEROFARTICLES:R}}
1,712,046
1712061
A variable which returns the total number of articles on the Wiki.
{{NUMBEROFPAGES}}
{{NUMBEROFPAGES:R}}
8,198,499
8198499
[MW1.7+] Returns the total number of pages. [3]
{{NUMBEROFFILES}}
{{NUMBEROFFILES:R}}
744,106
744106
[MW1.5+] Returns the number of uploaded files (rows in the image table).
{{NUMBEROFUSERS}}
{{NUMBEROFUSERS:R}}
3,984,177
3984177
[MW1.7+] Returns the number of registered users (rows in the user table).
{{NUMBEROFADMINS}}
{{NUMBEROFADMINS:R}}
1,159
1159
[MW1.7+] Returns the number of administrators (sysop, bureaucrat, steward and checkuser).
{{PAGESINNAMESPACE}}  disabled here Longer alias of PAGESINNS
{{PAGESINNS:ns}}
{{PAGESINNS:ns:R}}
{{PAGESINNS:2}} 
{{PAGESINNS:2:R}} 
disabled here
[MW1.7+] Returns the number of pages in the given namespace. Disabled by default, enable with $wgAllowSlowParserFunctions.

[edit] Page names and related info

Word Example Explanation
{{PAGENAME}} Tbone55/User Page/All guide Returns the name of the current page, including all levels (Title/Subtitle).
{{PAGENAMEE}} Tbone55/User_Page/All_guide More URL-friendly percent encoded special characters (To use an articlename in an external link).
{{SUBPAGENAME}}
{{SUBPAGENAMEE}}
All guide
All_guide
[MW1.6+] Name of the current page, excluding parent pages ("Subtitle" on "Title/Other/Subtitle") in namespaces supporting subpages, see Help:Link.
{{BASEPAGENAME}}
{{BASEPAGENAMEE}}
Tbone55/User Page
Tbone55/User_Page
[MW1.7+] The basename of a subpage ("Title/Other" on "Title/Other/Subtitle"), see Help:Link.
{{NAMESPACE}}
{{NAMESPACEE}}
User
User
Returns the name of the namespace the current page resides in.
{{FULLPAGENAME}}
{{FULLPAGENAMEE}}
User:Tbone55/User Page/All guide
User:Tbone55/User_Page/All_guide
[MW1.6+] Shorthands for NAMESPACE+PAGENAME
{{TALKSPACE}}
{{TALKSPACEE}}
User talk
User_talk
[MW1.7+] Name of next odd namespace (e.g. 4 => 5)
{{SUBJECTSPACE}}
{{SUBJECTSPACEE}}
User
User
[MW1.7+] Name of last even namespace (e.g. 5 => 4)
{{ARTICLESPACE}}
{{ARTICLESPACEE}}
User
User
[MW1.7+] An alias for SUBJECTSPACE(E)
{{TALKPAGENAME}}
{{TALKPAGENAMEE}}
User talk:Tbone55/User Page/All guide
User_talk:Tbone55/User_Page/All_guide
[MW1.7+] FULLPAGENAME in its TALKSPACE
{{SUBJECTPAGENAME}}
{{SUBJECTPAGENAMEE}}
User:Tbone55/User Page/All guide
User:Tbone55/User_Page/All_guide
[MW1.7+] FULLPAGENAME in its SUBJECTSPACE
{{ARTICLEPAGENAME}}
{{ARTICLEPAGENAMEE}}
User:Tbone55/User Page/All guide
User:Tbone55/User_Page/All_guide
[MW1.7+] An alias for SUBJECTPAGENAME(E)
{{REVISIONID}} 118263754 [MW1.5+] The unique identifying number of a page, see Help:Diff.
{{REVISIONDAY}} 27 [MW1.8+] The day on which the page was last modified.
{{REVISIONDAY2}} 27 [MW1.8+] The day on which the page was last modified, but with a leading zero (01 .. 31).
{{REVISIONMONTH}} 3 [MW1.8+] The month in which the page was last modified.
{{REVISIONYEAR}} 2007 [MW1.8+] The year in which the page was last modified.
{{REVISIONTIMESTAMP}} 20070327142704 [MW1.8+] ISO 8601 time stamp, indicating when the page was last modified.
{{SITENAME}} Wikipedia Value of $wgSitename.
{{SERVER}} http://en.wikipedia.org Value of $wgServer
{{SCRIPTPATH}} /w [MW1.5+] $wgScriptPath
{{SERVERNAME}} localhost [MW1.5+] $wgServerName

[edit] Parser functions

For details see Help:Parser function.

[edit] Namespaces and URLs

Word Example Explanation
{{ns:}} {{ns:4}} = Wikipedia
{{ns:project}} = Wikipedia
Returns the name of a given namespace number.
{{localurl:x y @}}
{{localurle:x y @}}
{{localurl:a|b=c}}
../../../x/_/y/X_y_%40.html
../../../x/_/y/X_y_%40.html
../../../a/_/_/A.html
Returns the local URL of a page (might not exist). Optional query parameter, see Help:Variable.
{{urlencode:x y @}} x+y+%40 [MW1.7+] Encodes variable values for use in external links. [4]
{{anchorencode:x #y @}} x_.23y_.40 [MW1.8+] Encodes variable values for use in external links. [5]
{{fullurl:x y @}}
{{fullurle:x y @}}
{{fullurl:m:a|b=c}}
http://en.wikipedia.org../../../x/_/y/X_y_%40.html
http://en.wikipedia.org../../../x/_/y/X_y_%40.html
http://meta.wikimedia.org/wiki/a?b=c
[MW1.5+] Returns the full URL of a given page. Optional query parameter as for localurl:.

[edit] Formatting

Word Example Explanation
{{#language:}} {{#language:da}} = Dansk [MW1.7+] Native name of language code.
{{lc:}} {{lc:AbC dEf}} = abc def [MW1.5+] LowerCase
{{lcfirst:}} {{lcfirst:Ab Cd}} = ab Cd [MW1.5+] LC first char.
{{uc:}} {{uc:aBc DeF}} = ABC DEF [MW1.5+] UpperCase
{{ucfirst:}} {{ucfirst:aB cD}} = AB cD [MW1.5+] UC first char.
{{formatnum:}} {{formatnum:-299792458.56789}} = -299,792,458.56789 [MW1.7+] Add decimal separators according to the wiki's default locale. Leading minus and plus are recognized.
{{padleft:}}
{{padright:}}
{{padleft:bcd|6|a}} = aaabcd
{{padright:bcd|6|a}} = bcdaaa
[MW1.8+] Pads a string with a character to the specified width.

Padding does not seem to work for characters with a multi-character code, such as &nbsp;, which would be useful with padleft for sorting tables with Javascript.

[edit] Template modifiers

Usage Explanation
{{:xyz}} A bare colon is not a template modifier, it's the prefix for the main namespace. Test e.g. article {{:UTC}} vs. template {{UTC}}.
Using this syntax you include the text of the main namespace article xyz in another article.
{{int:xyz}} Shorthand for {{MediaWiki:xyz}}, rendered as <xyz> if MediaWiki:xyz doesn't exist. See Help:MediaWiki namespace.
{{msg:xyz}} Try {{Template:xyz}} before magic word xyz, without this modifier it's the other way around. No additional effect if there is no template xyz.
{{msgnw:xyz}} The unevaluated wikitext is rendered. See msgnw.
{{raw:xyz}} [MW1.6+] Like {{msg:}} (unclear) [6]
{{subst:xyz}} In the wikitext, the tag is substituted by the content (single-level evaluation only), see Help:Substitution.

[edit] Image modifiers

For details see w:en:Wikipedia:Extended image syntax.

These are image modifiers used in [[Image:title.ext|modifier|...|modifier]] links. Some are mutually exclusive, and then the last specified wins.

[edit] Size

The last unrecognized modifier is used as caption for framed images or together with thumbnails. It's also used as description alt=text.

Word Usage Explanation
framed
frame
enframed
[[Image:Mediawiki.png|framed]] Places an image in a frame with a description. Uses original size.
thumbnail
thumb
[[Image:Mediawiki.png|thumbnail]] Modifies image size, sets it to dependant on user's favourite thumbnail size in their preferences.
thumb=xyz [[Image:Mediawiki.png|thumb=Wiki.png]] Manualthumb: instead of displaying an automatically-sized thumbnail for Mediawiki.png, display the image Wiki.png.
width px [[Image:Mediawiki.png|40px]] Scales image to given width  in pixels

[edit] Position

For details see Help:Images_and_other_uploaded_files

The positions are mutually exclusive, the last specified wins. Template:- can stop floating. For inline images only modifier px (see above) is supported.

Word Usage Explanation
right [[Image:Mediawiki.png|right]] Modifies position, floats the image to the right.
left [[Image:Mediawiki.png|left]] Modifies position, floats the image to the left.
none [[Image:Mediawiki.png|none]] Explicitly states that the image should not float.
center
centre
[[Image:Mediawiki.png|center]] Modifies position, like none but centered.

[edit] Miscellany

Word Example Explanation
{{DISPLAYTITLE:xyz}} default disabled [MW 1.7+] Set the page's title [7], see $wgAllowDisplayTitle.
{{DIRMARK}}
{{DIRECTIONMARK}}

[MW1.7+] u+200E left to right or u+200D right to left mark
{{CONTENTLANGUAGE}} en [MW1.7+] Default content $wgLanguageCode
{{DEFAULTSORT:xyz}} [MW1.10+] Sets a default category sort key for the current page[2].
#redirect #REDIRECT [[target]]
at top of source page
Creates a redirect to another page.

[edit] Language-dependent word conversions

Word Example Explanation
{{ CURRENTMONTHNAMEGEN }} March Genitive form of month name used for Czech, Polish, Ukrainian[8]
{{grammar:case | word }} {{grammar:7sg|Wikipedie}}
on cs: is Wikipedií.
Derived word forms in inflected languages like Czech [9]
{{plural:count |form1 |form2 }}
{{plural:count |1st | 2nd | 3rd }}
{{plural: 2 | is | are }}
outputs are
{{plural: 0 | this | these }}
outputs these
count 1 yields form1 (singular), plural transformations are used for languages like Russian [10] based on "count mod 10".

"Grammar" and "Plural" are language-dependent functions, defined in [11], [12], etc. (note that in PHP, the modulo operator is the percent sign).

"Grammar" can either be applied to predefined words only, or to arbitrary words, depending on whether the definition is just a 2D array, or involves string manipulations. See also cs:Šablona:Wikivar/GRAMMAR.

"Plural" is a project-dependent switch function, e.g. giving the first text if count = 1, the second if count = 2,3, or 4, and else the third. See also mediazilla:5805 for the use of "plural" in system messages.

[edit] See also

[edit] References

  1. ^ CIA World Factbook, 2006.
  2. ^ "Technology report", en-Wikipedia Signpost, January 2007


Template:H:f User