OOC:Wiki Tips

From Alternate Heresy 2014
Jump to: navigation, search

This Section contains some useful bits of code for enhancing your pages.

Basic Formating

Text formatting markup

Description

You type

You get

Character (inline) formatting – applies anywhere

Italic text

''  
italic ''

italic

Bold text

''' 
bold '''

bold

Bold and italic

'''''bold & italic '''''

bold & italic

Strike text

<strike>  
strike text  </strike>

strike text

Escape wiki markup

<nowiki> 
no ''markup'' </nowiki>

no ''markup''

Horizontal rule

 
Text before 
----

Text after 

Text before


Text after

Bullet list

  

* Start each line
* with an [[Wikipedia:asterisk|asterisk]] (*).
** More asterisks give deeper
*** and deeper levels.
* Line breaks <br />don't break levels.
*** But jumping levels creates empty space.
Any other start ends the list.
 
  • Start each line
  • with an asterisk (*).
    • More asterisks give deeper
      • and deeper levels.
  • Line breaks
    don't break levels.
      • But jumping levels creates empty space.

Any other start ends the list.

Numbered list

  

# Start each line
# with a [[Wikipedia:Number_sign|number sign]] (#).
## More number signs give deeper
### and deeper
### levels.
# Line breaks <br />don't break levels.
### But jumping levels creates empty space.
# Blank lines


# end the list and start another.
Any other start also
ends the list.
 


  1. Start each line
  2. with a number sign (#).
    1. More number signs give deeper
      1. and deeper
      2. levels.
  3. Line breaks
    don't break levels.
      1. But jumping levels creates empty space.
  4. Blank lines


  1. end the list and start another.

Any other start also ends the list.

Definition list

  

;item 1
: definition 1
;item 2
: definition 2-1
: definition 2-2
 


item 1
definition 1
item 2
definition 2-1
definition 2-2

Indent text

  

: Single indent
:: Double indent
::::: Multiple indent
 

Single indent
Double indent
Multiple indent

Mixture of different types of list

  

# one
# two
#* two point one
#* two point two
# three
#; three item one
#: three def one
# four
#: four def one
#: this looks like a continuation
#: and is often used
#: instead <br />of <nowiki><br /></nowiki>
# five
## five sub 1
### five sub 1 sub 1
## five sub 2
 

  1. one
  2. two
    • two point one
    • two point two
  3. three
    three item one
    three def one
  4. four
    four def one
    this looks like a continuation
    and is often used
    instead
    of <br />
  5. five
    1. five sub 1
      1. five sub 1 sub 1
    2. five sub 2

Paragraphs

MediaWiki ignores single line breaks. To start a new paragraph, leave an empty line. You can force a line break within a paragraph with the HTML tag <br>.

Picture Boxes

Picture boxes are templates that can be used to insert images in to articles on a consistant way

Picture Box

Insert the following code and fill in the infomation:

{{Picture Box
|Image= Name of Image file you uploaded using the upload file option on the left
|Text= Caption to go under image
}}

So the following code:

{{Picture Box
|Image= Smiley.png
|Text= This is a smiley face
}}
Smiley.png
This is a smiley face
Produces this:










Left Picture Box

Insert the following code and fill in the infomation:

{{Picture Box Left
|Image= Name of Image file you uploaded using the upload file option on the left
|Text= Caption to go under image
}}

So the following code:

{{Picture Box Left
|Image= Smiley.png
|Text= This is a smiley face
}}

Produces this:

Smiley.png
This is a smiley face












Big Picture Box

Insert the following code and fill in the infomation:

{{Picture Box Big
|Image= Name of Image file you uploaded using the upload file option on the left
|Text= Caption to go under image
}}

So the following code:

{{Picture Box Big
|Image= Smiley.png
|Text= This is a smiley face
}}

Produces this:

Smiley.png
This is a smiley face

Box Outs

These are useful for including additional infomation, along side your text

Left Hand Text Box

Insert the following code and fill in the infomation:

{{Left Box
|Title= Box Title
|Text= Text to include (note can include normal wiki markup, for link etc)
}}

So the following code:

{{Left Box
|Title= Left Hand Text Box
|Text= This is a text box that is aligned to the left hand side, so that your main article will go next to it.
}}

Produces this:

Left Hand Text Box
This is a text box that is aligned to the left hand side, so that your main article will go next to it.






Right Hand Text Box

Insert the following code and fill in the infomation:

{{Right Box
|Title= Box Title
|Text= Text to include (note can include normal wiki markup, for link etc)
}}

So the following code:

{{Right Box
|Title= Right Hand Text Box
|Text= This is a text box that is aligned to the Right hand side, so that your main article will go next to it.
}}

Produces this:

Right Hand Text Box
This is a text box that is aligned to the Right hand side, so that your main article will go next to it.