MediaWiki Environment

From RFF Wiki
Revision as of 13:33, 10 February 2021 by Dsc (talk | contribs) (Include code statements)
Jump to: navigation, search

This page is aimed for editors of the RFF Wiki. It contains important links to the WikiMedia Syntax

Further information can be found at the MediaWiki page: https://www.mediawiki.org/wiki/MediaWiki


Linking

Internal Linking

enter the following statement in your text

[[chapter name]]

If the article already exists, a link is added in blue color. if the article does not exist, a link is added in red color. If you click on the link the editor to create a new article appears. Edit the new article and save. If you want to show an alternative text for the article link

[[page name|alternative title]]

Internal Link to chapter in article

Use the following syntax

[[article name#chapter name]]
or
[[article name#chapter name|alternative text]]

External Link

Pure URL: just write the URL e.g. www.wikipedia.org

If you want to add an alternative text use the following syntax:

[URL alternative text] e.g. [www.tsga.eu TSGA]

For further details see https://de.wikipedia.org/wiki/Hilfe:Links

Headings

Addition sections (headings) to a page by using the following syntax

== heading 1 ==
=== heading 2 ===
==== heading 3 ====

Table of content is added automatically when more than 3 headings/sections

Text formatting

''text'' = kursiv
'''text''' = fett
'''''text''''' = fett + kursiv
---- = horizontal line
* = Bulletpoint List
** = Subbullet
*** = Subsubbullet
# = Numbered List
## = sublist
### = subsublist

Include code statements

use <nowiki> at the beginning and and at the end of the code statement </nowiki>

Tables

see [MediaWiki Tables] for details about formatting tables in MediaWiki

Include Images

First upload the image as .jpg or .png file by using the menu entry Upload file on the right

Adding the image to a page

[[file:filename.png]] – add image
[[file:filename.png|title]] – add image with title in a small popup remark
[[file:filename.png|border]] – add image with a small grey border
[[file:filename.png|frame]] – add image with a frame including the title at the bottom left of the frame
[[file:filename.png|center]] – image centered, right = image aligned right, standard alignment is left
[[file:filename.png|link=pageName]] – image with interal link to wiki page
[[file:filename.pnglink=http://xxxx]] – image with external link
[[file:filename.png|link=]] – image without link

see also [[1]]

Add an Infobox

The infobox is located on the top right of a page. It is a regular table with specific style attributes. Only one infobox can be displayed per page.


{| style="float:right;border:1px solid black;background-color:#EDEDED;width: 50%"

| this is the title of the infobox

| -

| this is the text of the infobox

|}

Changing the Sidebar

Edit the sidebar on this page: [[2]] You have to be logged in as a user with administrator rights.

see MediaWiki Syntax for Side Bar

Adding new user to MediaWiki

use the php script createAndPromote.php to add a new user, change the password or add a user to a user group

Syntax see MediaWiki createAndPromote.php

run the script on the server in the directory ../../var/www/html/mediawiki_tsga/maintenance