Usage NotesEdit

Keep it friendly. The use of wikitext is recommended wherever possible, as HTML makes the text in the edit box harder to read and more intimidating for new users.  Complex uses of HTML and CSS can be hidden away in templates where they are less likely to get in the way of the casual editor. 

Combine with CSS. CSS classes (class="classname") can be stored in site stylesheets. Both classes and CSS inline styles (style="color:pink;") can be used with the HTML tags listed above, but note that classes and styles can also be used with many types of wikitext, especially tables, table rows and cells.

Here are more examples of wikitext formatting.  Remember that these can be used in "source" mode in the editor.

More Wikitext Cheatsheet

Description You type  You get
Applies anywhere
Show the current date and time (UTC)


19:17, 20 February 2019 (UTC)

Show username link
Will use contents of Custom signature: entry box in Signature section of preferences, if filled in


Your username

Internal link with jump to section

(within a local wiki)

[[Help:Links#Types of Internal Links]]

Help:Links#Types of Internal Links

Link to another Wiki
[[w:c:community|Community Central]] Community Central Wiki}}
Link to a specific page on another wiki.  [[w:c:community:Special:Forum|Community Central forums]] Community Central forums}}
Display wikitext code as typed <nowiki> [[This is not a link]] </nowiki> [[This is not a link]]
Add a line break This is<br /> broken in two. This is
broken in two.
Applies only if the only text on a line
A horizontal line


Applies only at the beginning of the line
Bold definition term

Any colons (:) at the end of a line starting with a semi-colon (;) will be ignored.

Use &#58; to show a colon.

; Wikitext : Special text that is converted by a wiki into HTML or some other code.

; Be bold

; I eat colons:

; Except these&#58;

Special text that is converted by a wiki into HTML or some other code.
Be bold
I eat colons
Except these:

: One

:: Two

::: Three

:::: Four (is not the limit...)

::::: More!

:::::: Even more!

Four (is not the limit...)
Even more!

See alsoEdit

Further Help & FeedbackEdit

Template:Help and feedback section

it:Aiuto:Wikitext avanzato

ru:Справка:Викитекст ещё

How to use the Wikipedia portal technology Edit

The objective of this document is to try to simplify the implementation of a Wikipedia-style portal in a normal Mediawiki system. This was tested with version 1.17 of Mediawiki.

References Edit

Prerequisites Edit

  • Copy/import the templates and other documents, an example of which is available here. Note that these were copied from Wikipedia, then modified to correct some inconsistencies. The templates were mostly ok, there were problems in the naming of "box-header" and "box-footer" in some places. Also, there were document prefixes missing ({{FULLPAGENAME}}) in some places.

Steps Edit

To create a new portal on the topic "Topic" using the {{box portal skeleton}} follow these steps:

1. Create a new page using [[Portal:Topic]] as the title of the page (where "Topic" is the subject of your portal) and enter the following text
{{subst:box portal skeleton}}


This will create a skeleton of the portal, for modification. You need to modify the overall layout and define the sections that you want, for example "Selected Articles", "News", "Photos", etc. There are basically two types of sections: fixed information, and randomly selected information. The fixed sections can be used for constant information, like the portal overview or tasks to be completed. The random sections can be used for information which constantly changes in order to generate interest in the user for making a repeat visit to the portal, like photos, "did you know this", etc. The pre-defined sections in the skeleton are simply examples and will almost certainly need to be adjusted.

2. To define the format of the subpages, which are the box sections on the portal page, click the template links to the subpage header and footer which will be found near the top of your new portal page. You can modify the appearance of the section boxes by modifying the "box-header" document.
{{Template:Box-header | title={{{1}}} 
|border=#aaaaaa           <!-- This is the color of the borders around Box Sections -->
|titleforeground=white    <!-- This is the color of the Box Section Title Bar text -->
|titlebackground=#aaccff  <!-- This is the color of the Box Section Title Bar -->
|background=#f9f9ff       <!-- This is the color of the Box Section background -->
|foreground=black}}       <!-- This is the color of the Box Section text -->
{{Template:Box-footer | {{{1}}} }}
3. Modify the Template:Browsebar document to design the browse bar which appears at the top of all portal pages. Note that the example provided is from Wikipedia. This format requires a Portal:Contents/Portals document. Depending on the number of portals in your system, you can modify the design to suit your needs. You can also remove the reference to {{browsebar}} from your Portal:Topic page if you don't require a browse bar.
4. Place a link to your portal at the top of an appropriate article (of the same or different name) by placing a {{portal}} there. If the article name is different than the portal name, use {{portal|portal name}}.

For an explanation of how and why this format works go here.

To define an icon for the portal, create a document Template:Portal/Images/Topic with the text:


Upload the image "MyTopicIcon.svg". Now your icon will appear where the {{portal}} template is used.

5. Update {{Number of portals}} if desired.
At this point, you have created a Portal under construction. It is a framework with a lot of red links where content should go. A fair amount of work is still necessary to turn a skeleton portal into one ready for browsing. The first thing to do is to decide on the layout and naming for the box sections (subpages), and identifying which ones will be fixed data and which ones will be random.
6. Return to your portal page Portal:Topic and begin editing (general instructions on editing a portal are below). Basically follow the red links to create sub-pages that will fill the boxes.
7. Consider the first box in the skeleton as an example of a fixed section. The title bar should contain the name of your topic, and the contents should have Portal:Topic/Intro. Click on the link in the contents to create the "Intro" article. When saved, this article will then appear as the contents of the section.

The fixed sections are defined, for example, in this manner, using the "box-header" template:

<div style='float:right; width:44%'>
{{{{FULLPAGENAME}}/box-header|Things to do|{{FULLPAGENAME}}/Opentask|}}

In this case, "Things to do" is the title of the section, and Portal:Topic/Opentask is the name of the article to be placed in the box.

8. Consider the second box in the skeleton as an example of a random section. The title bar should have "Selected article" as the title, and the content should have several "red" links. There are two types of random selections, see w:Template:Random portal component and w:Template:Random portal component with nominate for a discussion on how they work and which one to use.

The random sections resemble:

{{Random portal component with nominate
|header=Selected article summary
|footer=More articles...
|subpage=Selected article}}

In this case, the title is "Selected article summary", the article summaries are located under Portal:Topic/Selected article, there are 5 articles (named Portal:Topic/Selected article/1 to Portal:Topic/Selected article/5), and the footer (link to Portal:Topic/Selected article) is "More articles...".

The random selection sections require some support documents which need to be created first:

Document Portal:Topic/Selections/Layout (used to format the content of the section box)

{{#if:{{{image}}}|<div style='float:left;margin-right:1em'>[[Image:{{{image}}}|100px|{{{caption}}}]]

{| class='noprint' width='100%'  border='0' style='padding: 0; margin: 0; background-color:transparent'
| ||
 <div style='text-align:right;margin-right:10px;margin-bottom:4px;'>
'''[[{{{link}}}|Read more...]]'''
 </div >

== Layout template ==

Document Portal:Topic/Selections (used to show and manage documents in the section)

== Usage ==
The template used for the creation of these sub-pages is located at [[{{FULLPAGENAME}}/Layout]]
# Select an existing article to add
# Copy format text from [[{{FULLPAGENAME}}/Layout]]
# Add a new Selected article to the next available subpage by clicking its red link
# Paste format text then fill in image and caption, if any, text (summary of article), and article link
# Update "max=" to new total for its {{tl|Random portal component}} on the main portal page.

{{Numbered subpages}}


At this point, you can add your documents to the list in Portal:Topic/Selections by following the instructions at the top of the page. By default, there are 50 available articles. This can be changed by editing the {{Numbered subpages}} template.

See also Edit