Editing basics

From The PigiWiki
Jump to: navigation, search

This page is for quick and dirty tips on frequent tasks. More detailed information can be found at Help:Editing. The syntax for infoboxen can be found at Template:Infobox/doc

Contents

Infoboxen

Sample infobox:

All infoboxen start with this basic setup (placed at the top of the edit box):

{{Infobox


}}

Individual lines are then added between the curly braces

|label1 = NAME OF YOUR LABEL
|data1 = DATA FOR ASSOCIATED LABEL
|label2 = NAME 2
|data2 = DATA 2

You can also include headers to create subsections in the infobox, however, header numbers can not be the same as label/data numbers, or the label/data will not show up.

For example, using this setup will cause the header to display, but not the label/data

|header1 = Header
|label1 = Label
|data1 = Data

On the other hand,this setup will display everything as intended.

|header1 = Header
|label2 = Label
|data2 = Data

Linking

Providing a link to another page within our own wiki is:

[[nameofpage]]

Providing an external link is the same, but use a full URL:

[http://url.com]

(note, only 1 set of square brackets is used, and there is no pipe (|) between the link and the displayed text with an external link)

Naming a link:

[[nameofpage|Name Displayed]]

or

[http://externallink.com Name Displayed]

(note, only 1 set of square brackets is used, and there is no pipe (|) between the link and the displayed text with an external link)

Linking an image that you have uploaded to this wiki:

[[image:image.ext]]

Using an image to link to another page:

[[image:image.ext|link=pageonourwiki]]

or

[[image:image.ext|link=http://externallink.com]]

To include mouseover(hover) text for a link, surround the text of the link with

<span title="hover text>LINK TEXT</span>

eg: Main Page