Help:Basic Formatting: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
 
Line 150: Line 150:


{{Template:EditHelpMenu}}
{{Template:EditHelpMenu}}
[[Category:Help]]

Latest revision as of 06:32, 5 May 2011

This page is for assisting in basic formatting of text on wiki pages.

Boldness and Italics

Boldness can be performed simply by using three apostrophes on each side of the text you wish to boldify. For example,

'''This is bold text'''

becomes This is bold text


Italics can be perfomed by using two apostrophes on either side of the text you wish to italicise. For example,

''This is italicised text''

becomes This is italicised text.


Naturally, these two can be combined:

'''''This is bold and italicised'''''

becomes This is bold and italicised.


In order to print something like multiple apostrophes or tildes (without wiki interpreting), use the nowiki tag: <nowiki> Here are five apostrophes in a row '''''without bold italics'''''. </nowiki>

Signatures

Users can leave timestamped signatures to identify themselves. Three tildes (~~~) inserts the user's name, four tildes (~~~~) inserts the user's name with a timestamp, and five tildes (~~~~~) gives just a timestamp with no name. You can also insert your signature with timestamp from edit screen toolbar (second button from the right).

Signatures should be used on all talk pages. In addition, at least Suggestions, Mobile Phone Mast and Revive Point pages require their use. On other pages signatures should not be used.

Headings and Subheadings

Put a heading on a separate row with an equals signs on each side:

=Major Section Title=

in order to create a section heading. Use additional equals signs to create smaller and smaller subheadings.

For example,

====This is just a minor subheading.====

creates:

This is just a minor subheading.

A Table of Contents is generated automatically from the headings. It will appear if there is more than a few sections on the page. See Help:Magic Words for more information on Table of Contents.

Line Breaks

Paragraphs are identified in wikicode by the simple expedient of leaving a blank line between paragraphs. This has the side effect that two lines of text without a blank line between them will remain on the same line on-screen. Also, <br /> can be used to force a line break (but not a paragraph break) at any time within a paragraph, though you shouldn't need to use this much.

Horizontal Lines

A horizontal line can be created by adding four dashes in a row on a separate line.

This code in the edit window:

----

creates this horizontal line:


(Equivalently, the XHTML code <hr /> also creates a horizontal line.)

Also, the largest two section headers automatically create a horizontal line immediately below the heading title.

Indenting

A colon (:) indents a line or paragraph. A newline starts a new paragraph.

Indenting is often used for discussion on talk pages. It helps keep the different comments by people easier to read and sort through. We use 1 colon to indent once, use 2 colons to indent twice, 3 colons to indent 3 times, and so on.

:Indented once
::Indented twice
:::Indented a third time
Indented once
Indented twice
Indented a third time

Re

A common practice on the suggestion page is for the author of a suggestion to reply to another user's vote or comment. The method to which this is done is:

#:'''Re:'''

The hash is there to continue the number count, the colon is there to indent and skip that line for counting purposes, and the Re is to denote that it is a reply to the above post.

It is generally accepted that only one author Re is allowed per vote, and the user's are also allowed one Re as well, but only to the author's Re. ie:

  1. Kill - I think this is a terrible suggestion. It will totally unbalance gameplay! -- unhappy user
    Re: How do you think it will unbalance gameplay? We went through everything on the talk page here -- suggestionsAreCool
    Re: Because I can only go into police stations. Non-free running characters are nerfed bigtime. -- unhappy user
  2. Kill - Yeah totally disagree. I want my guns to be useful! -- trigger happy user

Quoting

The blockquote command will indent both margins when needed instead of the left margin only as the colon does. Usually used for quoting, ie:

<blockquote>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum ultricies metus.
</blockquote>

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum ultricies metus.


You can also use the quote temaplate instead of the HTML tags. Usually best if it needs to stand out:

{{quote|Dux Ducis|I like Pancakes!!}}
Dux Ducis said:
I like Pancakes!!


Each method should be used in the best way, ie a page that has lots of text would be best of with the template.

HTML and XHTML tags

What's the difference?

Background

HTML is an interpreted language that is currently used to write web pages. HTML is now considered deprecated by the W3C, and is strongly discouraged. XHTML is a revised version of HTML, designed to counter problems within the HTML standard.

Compatability and Future Proofing

Older browsers will rarely have issues with XHTML, but the same cannot be said of any browser in regards to regular HTML; the flaws within the original HTML specifications left too much room for ambiguity and both can, and often have been, misinterpreted.

The primary reason behind the stated strong preference for wikimarkup over either HTML or XHTML is future proofing. As stated earlier, HTML is deprecated and discouraged. One can imagine that backwards compatability with aging and defunct standards may eventually be discarded in order to reduce the size and complexity of browsers.

At present, wikimarkup can be likened to "shorthand" of XHTML, but will presumably take advantage of the capabilities of XML when it becomes reasonable. Therefore, it is strongly advised that wherever possible, wikimarkup should be used instead of HTML or XHTML.

Non-exhaustive List of HTML and XHTML Tags

Some more useful HTML formatting codes are as follows:

  • Using <tt></tt> and <code></code> to put items in typewriter font. These tags are often synonymous, but not in every case. The <code></code> tag is actually intended to delineate program source code from other text.
  • Using <s></s> or <strike></strike> to strikethrough text.
  • Using <u></u> to underline text.
  • Using <span style="font-variant:small-caps"></span> to put text in small caps. Technically, this is using XHTML and CSS.
  • Using <sup></sup> and <sub></sub> to make text Superscript and subscript respectively.
  • As mentioned previously, <br /> generates a line break. Use blank lines wherever possible, try to use the <br /> tag as a last resort.
  • As mentioned previously <hr /> will generate a horizontal line. Again, use <hr /> as a last resort.


Editing Help
Basic Editing

Advanced Editing

Advanced Timesavers

Page Tricks

Communicating your Edits

Miscellaneous

Policies and Guidelines
Guidelines

Policy Documents