[Home]TextFormattingRules

MeatballWiki | RecentChanges | Random Page | Indices | Categories

Translations

Simple editing is one of the major benefits of using a wiki. Users can edit pages without knowing HTML, and still use many formatting features of HTML. Most wikis define a set of formatting rules to convert plain text into HTML. Some wikis (like this one) also allow some HTML "tags", like <b>, <i>, and <pre> within a page. (Some wikis use raw HTML instead of special formatting rules.)

CategoryTextMarkup

Overview

The following text is an overview of the text formatting rules in effect on this wiki, MeatballWiki. The [text formatting rules] for other UseMod wikis may differ.

See the TextFormattingExamples for examples without all the explanatory text. To try these rules for yourself, please feel free to edit the SandBox page. To see how any page is formatted, just follow the link "Edit text of this page" at the bottom of the page. The "Preview" button on the editing page may also be helpful for finding formatting errors before saving.

The text on this page is PrimarilyPublicDomain


Basic Text Formatting:

Most text does not require any special changes for wiki form. A few basic rules are:


Raw HTML is disabled

Note that MeatballWiki does not allow raw html in the pages. The following code will therefore not produce the expected result:

<nowiki><html><a href="http://www.gnu.org/">gnu</a></html> </nowiki>

Result:

<html><a href="http://www.gnu.org/">gnu</a></html>

There are some exceptions to this no html rule detailed below.


Bold and Italic Text:

To mark text as bold or italic, you can use the HTML <b> and <i> tags. For example:

Sample <b>bold</b>, <i>italic</i>, and <b><i>bold+italic</i></b>.

looks like:

Sample bold, italic, and bold+italic.

Note that UseModWiki (like most Wikis) processes pages line-by-line, so if you want three bold lines of text, you will need to use three separate <b>...</b> tags. Also note that unclosed or unmatched tags are not removed from the page.

UseModWiki also implements the old "quote style" of text formatting, which is used on several wikis. Briefly:

''Two single quotes are italics'',
'''three single quotes are bold''',
'''''five single quotes are bold and italic.'''''

looks like:

Two single quotes are italics, three single quotes are bold, five single quotes are bold and italic.

The "quote style" formatting is often confusing, especially when multiple bold and italic sections are mixed on a line. It may eventually be removed from UseModWiki.


Wiki links

You can link to a page by removing the spaces between two or more words, and starting each word with a capital letter. For instance, WikiName and TextFormattingExamples are samples of page links.

Non-existing pages, like SampleUndefinedPage?, will be displayed with a question-mark for a link. The question mark link indicates the page doesn't exist yet -- follow the link to create and edit the page. [The sample page used here is a special example page -- you can't define it.]


URL links

Write the URL: http://meatballwiki.org/wiki/SandBox

Result: http://meatballwiki.org/wiki/SandBox

In nearly all cases trailing punctuation is ignored, so you can safely make links like https://www.usemod.org/, without the trailing comma being part of the link.

If the URL itself is long and ugly, you could use a bracketed link.


Bracketed Links

Just enclose a URL with square brackets.

The URL will be replaced with a number. Note that is often considered bad style to replace the name of something (book, author, paper, web site) with the reference in square brackets.

Deprecated Example
You can read more about this in [1].

If you can't read it out loud, don't write it. Use the active voice, instead.

Example
If you are interested in Free Software, check the Philosophy section on the GNU site [1].

Custom Text and Punctuation Links

Just follow the URL inside the square brackets with the text you want to act as the link, like this: [http://www.yahoo.com/ Yahoo Search Engine]


Targeted Links

To place a link anchor in a page use "[#anchor]" (without the quotation marks) which can be referred to with any of the linking methods, per the examples below. You can not use the minus or hypen character (i.e. "-") in the anchor name, e.g. "[#N888_7_2_1]" works ok, while "[#N888-7-2-1]" does not, evidenced non-escaped here->[#N888-7-2-1].


Inline images:

Write the URL to the image: https://www.usemod.org/wiki.gif

Result:

These file types are recognized: gif, jpg, png, bmp and jpeg


InterWiki links

Check the InterMap (http://meatballwiki.org/intermap.txt). All the prefixes on the intermap can be used to link to pages on other wikis. Just write the prefix, a colon, and the name of the page on the other wiki like this: UseMod:InterWiki

Result: UseMod:InterWiki


ISBN links

Just write the ISBN Number, like this: ISBN 0-471-25311-1

Result: ISBN 0-471-25311-1 (alternate, search)


Avoiding links

If you want to avoid linking, enclose the text with nowiki tags, like this: <nowiki>InterWiki</nowiki>

Result: InterWiki

You can separate links from adjacent text with spaces or the special "" (two double-quotes) delimiter, like this: UseModWiki""s

Result: UseModWikis

The "" delimiter is not displayed -- it is useful for cases like plural forms of page links (such as UseModWikis).


Lists:

Simple lists:

* Text for a bulleted list item.
* Text for another bulleted list item.
* Text for a third bulleted list item.
** Text for second-level list.
*** Text for third level, etc.

...which looks like:

Numbered lists:

# Text for a numbered list item.
# Text for another numbered list item.
# Text for a third numbered list item.
## Text for second-level list.
### Text for third level, etc.

...which looks like:

  1. Text for a numbered list item.
  2. Text for another numbered list item.
  3. Text for a third numbered list item.
    1. Text for second-level list.
      1. Text for third level, etc.

Definition lists

Terms with indented definitions: [without a blank line between term and definition]

;Term One:Definition for One (indented)
;Term Two:Definition for Two (indented)
;Term Three:Definition for Three (indented)
;;Term (indented):Definition (indented two levels)
;;;Term (indented twice):Definition (indented to third level)

...which looks like:

Term One
Definition for One (indented)
Term Two
Definition for Two (indented)
Term Three
Definition for Three (indented)
Term (indented)
Definition (indented two levels)
Term (indented twice)
Definition (indented to third level)


Indented Text:

Simple indented text:

: Paragraph to be indented (quote-block)
:: Paragraph indented more
::: Paragraph indented to third level

...which looks like:

Paragraph to be indented (quote-block)
Paragraph indented more
Paragraph indented to third level


Preformatted Text

Individual lines can be displayed as preformatted (fixed-width or "typewriter"-font) text by placing one or more spaces at the start of the line. Other wiki formatting (like links) will be applied to this kind of preformatted text.

Alternatively, multi-line sections can be marked as pre-formatted text with all other formatting suppressed by surrounding the text section with lines starting with <pre> (to start pre-formatted text), and </pre> (to end preformatted text). The <pre> and </pre> tags are not displayed. Wiki links and other formatting is not done within a <pre> formatted section. (If you want wiki formatting, use spaces at the start of the line instead of the <pre> and </pre> tags.)

For instance:

Pre-formatted section here.  No other link
   or format processing
is done on pre-formatted sections.
For instance, UseModWiki is not a link here, and '''this is not bold'''.

and:

   This is the starting-spaces version of
   preformatted text.  Note that links like
   UseModWiki still work and bolding works.



Miscellaneous rules:


Discussion

MeatballWiki | RecentChanges | Random Page | Indices | Categories
Edit text of this page | View other revisions
Search: