How to Wiki

From War in the Realm Wiki
Revision as of 00:04, 4 February 2024 by Steve (talk | contribs) (→‎Uploading and Using Images)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Here I'll go over how to edit a MediaWiki and some other stuff. For a more comprehensive guide, see the official MediaWiki User's Guide.

Creating and Editing Pages

Creating Pages

To create a page, first go to that nonexistant page. This can be done from the search bar in the top-right or by clicking a red link somewhere on another page. Once there, just click "create this page" and

If it says you don't have permission to create a page or to edit, let me (Steve) know.

Creating a Redirect Page

To create a redirect page, have the page's text be only #REDIRECT [[Example]], where Example is the title of the page you want to redirect to.

Editing Pages

To edit an existing page, click the "Edit" button in the top-right (to the left of the search bar).

Formatting

For more information about formatting text in this wiki editor, see Help:Formatting in MediaWiki's User's Guide.

To make text italicized, put two apostrophes on either side of the text.

For example, ''example'' becomes example.

To make text bold, put three apostrophes on either side of the text. The first time the title of a page appears in the first sentence is usually bold.

For example, '''example''' becomes example.

Links

To create a link to another page on this wiki, use two square brackets around the title of the page you are linking to.

For example, [[Stak]] becomes Stak.

To change the text of the link, between the square brackets first put the title of the page you want to link to, then a vertical pipe character (|), then the text you want to display.

For example, [[Stak|Cool Dude]] becomes Cool Dude.

To create a link to an external page away from this wiki, between single square brackets, put the URL you want to link to, then a space ( ), then the text you want to display.

For example, [https://breadsandwich.net/heroesforhirewiki/index.php?title=Omerók Omerók on ''Heroes for Hire Wiki''] becomes Omerók on Heroes for Hire Wiki.

To create a link to something like a category or image without including that in the page, make a regular wiki link but use a colon (:) before the page name.

For example, [[:Category:NPCs]] becomes Category:NPCs.

Headings

To organize a page into different sections you can use headings. You can create a heading by putting (on its own line) 2 to 6 equals signs on either side of the text you want the heading to be. The table of contents at the top of the page is automatically generated by these headings.

Headings go up to 6 levels deep. This section has ==Creating and Editing Pages==, ===Formatting===, and ====Headings====, to give an example of headings level 2 through 4.

Level 5 Heading

Above is an example of a level 5 heading.

Level 6 Heading

Above is an example of a level 6 heading. Note that while headings of level 4 through 6 look the same in-text, they are have a hierarchy in the table of contents at the top of the page.

Infoboxes

Stak
Born1665 ADW
OccupationAdventurer
Years active1669-1672 ADW
EraAge of Adventure
OrganizationLike-Minded Individuals
Height2 ft 3 in (69 cm)

Those boxes full of info that are usually in the upper-right of a wiki page are called infoboxes. You can create them using templates.

To create an infobox, simple go to the template page linked below and copy the blank template to your page. Then fill out the various parameters to put the info in the infobox. And fields you leave out or leave blank or remove will not be included in the infobox.

For example,


{{Infobox person
| name               = Stak
| birth_date         = 1665 ADW
| birth_place        = 
| height             = 2 ft 3 in 
| occupation         = Adventurer
| years_active       = 1669-1672 ADW
| era                = [[Age of Adventure]]
| organization       = [[Like-Minded Individuals]]
| known_for          = 
| notable_works      = 
}}
 

becomes the infobox you see to the right.

List of Infoboxes on this Wiki

Below is a non-exhaustive list of Wikipedia infoboxes that are usable on this wiki. I may have forgotten some.

Uploading and Using Images

Uploading Images

To upload an image, go to Special:Upload.

VERY SUPER IMPORTANT NOTE: Please only upload images you own. Art you have made or art you have commissioned. Do NOT upload images you find on the internet that you don't own!

You will be prompted on that page to give the uploaded file a Destination filename and a Description. For the file name, you can use any special characters you can use in a Wiki page title (including spaces) so make it something descriptive. Leave the file extension. For the description, give a brief description of the image and credit the artist.

Images on Pages

Stak at level 17.
Stak at level 17. Art by Steve.

To include an image in a page, simply create a link to that image. This will include the image at full size on the page, though, and usually you will want to use a thumbnail instead. Luckily, there are plenty of options for displaying images.

If you include |thumb in the image link, it will display at thumbnail size on the page rather than full size. You can also use something like |500px to set a specific size.

If you include |alt=Example text in the image link, it will use Example text as the alt text (what you see on mouseover or if using a screen reader) of the image.

If you include |Example text in the image link, a vertical pipe followed by text that doesn't match any specific option, it will use Example text as the caption below the image.

For example, [[File:Stak.png|thumb|alt=Stak at level 17.|Stak at level 17. Art by [[User:Steve|Steve]].]] becomes the image you see to the right.

Images in Infoboxes

Stak
Stak jumping from an explosion, wielding two throwing knives.
Stak at level 17.
Art by Steve.

Some infoboxes (such as Infobox person) have a field for an image. Put only the filename of the image in this field.

For example,


{{Infobox person
| name               = Stak
| image              = Stak (crop).png
| landscape          = <!-- yes, if wide image, otherwise leave blank -->
| alt                = Stak jumping from an explosion, wielding two throwing knives.
| caption            = Stak at level 17.<br>Art by [[User:Steve|Steve]].
}}
 

becomes the infobox you see to the right.

Categories

To include a page in a category, simply link that category at the bottom of the page.

For example, [[Category:NPCs]] at the bottom of the page will include the page in Category:NPCs.

Fun Pages

Here are some fun pages to visit while wiki editing.

  • Special:LonelyPages lists pages that exist but aren't linked to anywhere on the wiki.
  • Special:WantedPages lists pages that are linked to on the wiki, but don't yet exist. Many of these are linked to from Infobox template documentation, so a lot of them are junk, but you can still see some actually wanted pages in there if you dig through it.
  • Special:LongPages and Special:ShortPages list pages by length, longest-to-shortest or shortest-to-longest.