Useful Wiki Commands

From Bilbcraft Wiki
Revision as of 23:44, 4 September 2020 by Danni (talk | contribs) (Added Routemap example.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The wiki has a couple of useful extensions designed to make creating pages a bit easier. For normal formatting, you can use WikiEditor, which should be a bar above the create page. Within that is a help page with the most common formatting commands. A more complete list is at https://www.mediawiki.org/wiki/Help:Formatting

YouTube

To embed YouTube videos, use the command

<youtube>ID of the video here</youtube>

You can find the ID of the video by going into the YouTube page of it. An example URL for a YouTube video might be https://www.youtube.com/watch?v=87Wic25LxSA - the part after v= (87Wic25LxSA) is the ID.

This means <youtube>87Wic25LxSA</youtube> produces:

Width and Height

You can change the width and height of the video box.

  • Width is controlled with width="xxx", where xxx is the number of pixels. The default is 640 pixels.
  • Height is controlled in the same way with height="xxx". The default is 385 pixels.

So the example from above could be:

<youtube width="200" height="120">87Wic25LxSA</youtube>

This produces:

Routemap

Railway templates are done using Routemap. Routemap has many options, so this is only an example.

The main template page is at https://en.wikipedia.org/wiki/Template:Routemap

The main symbols page is at https://commons.wikimedia.org/wiki/BSicon/Catalogue

Below is a version of the East-West Mainline Routemap, along with the code to produce it. This gives a good example of the options available.

East-West Mainline
Vibe City
Bryniau Bedw
Sprucefield
West Plains
Motor West
Kyrias
Central Station
North-South
Subway
Tub
East Plains
Foothills
Purple Penguin
Line
Midlands
{{Routemap
|title=East-West Mainline
|title bg color=#7CFC00
|map=
\\\\KBHFa_lime~~[[Vibe City Station|Vibe City]]
\\\\STR_lime
\\\\STR_lime
\\\\BHF_lime~~[[Bryniau Bedw Station|Bryniau Bedw]]
\\\\STR_lime
\\\\BHF_lime~~[[Sprucefield Station|Sprucefield]]
\\\\STR_lime
\\\\BHF_lime~~[[West Plains Station|West Plains]]
\\\\BHF_lime~~[[Motor West Station|Motor West]]
\\\\BHF_lime~~[[Kyrias Station|Kyrias]]
\\\\STR_lime
BAHN\TRAM\PORTAL\ELYTRA\IHUB~~'''[[Central Station]]'''{{BSsplit|[[North-South Mainline|North-South]]|[[Spawn Subway|Subway]]|bg1=#ff984f|bg2=#ff69ed|align=center}}
\\\\STR_lime
\\\TRAM\BHF_lime~~[[Tub Station|Tub]]
\\\LOGO NYC-T\BHF_lime~~[[East Plains Station|East Plains]]
\\\\BHF_lime~~[[Foothills Station|Foothills]]
\\\\STR_lime
\\\ELYTRA\KINTe_lime~~[[Gentoo Station|Gentoo]] ~~{{BSsplit|[[Purple Penguin Line|<span style="color:white">Purple Penguin</span>]]|[[Purple Penguin Line|<span style="color:white">Line</span>]]|bg1=#aa00aa|bg2=#aa00aa|align=center}}
\\\\STR_lime
\\\\BHF_lime~~[[Midlands Station|Midlands]]
}}