Difference between revisions of "MediaWiki Environment"
(→text coloring) |
|||
(55 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | This page is aimed for editors of the | + | This page is aimed for editors of the RFF Wiki. |
It contains important links to the WikiMedia Syntax | It contains important links to the WikiMedia Syntax | ||
Line 59: | Line 59: | ||
## = sublist | ## = sublist | ||
### = subsublist</nowiki> | ### = subsublist</nowiki> | ||
+ | |||
+ | === Text coloring === | ||
+ | |||
+ | Set text color by using | ||
+ | <nowiki><span style="color:#009999"></nowiki> | ||
+ | |||
+ | Set background color by using | ||
+ | <nowiki><span style="background:#00FF00"></nowiki> | ||
+ | |||
+ | Set both by using | ||
+ | <nowiki><span style="color:#FFFFFF; background:#FF69B4"></nowiki> | ||
+ | |||
+ | Combine with other text attributes (e.g. bold) | ||
+ | <nowiki><span style="color:#FFFFFF; font-weight:bold"></nowiki> | ||
+ | |||
+ | {| class="wikitable" border="0" | ||
+ | |+ | ||
+ | !Color | ||
+ | !Hexadecimal | ||
+ | !Color | ||
+ | !Hexadecimal | ||
+ | |- | ||
+ | |black | ||
+ | | style="background:#000000; color:#ffffff; font-family:monospace;" |#000000 | ||
+ | |silver | ||
+ | | style="background:#c0c0c0; color:#000000; font-family:monospace;" |#c0c0c0 | ||
+ | |- | ||
+ | |gray | ||
+ | | style="background:#808080; color:#ffffff; font-family:monospace;" |#808080 | ||
+ | |white | ||
+ | | style="background:#ffffff; color:#000000; font-family:monospace;" |#ffffff | ||
+ | |- | ||
+ | |maroon | ||
+ | | style="background:#800000; color:#ffffff; font-family:monospace;" |#800000 | ||
+ | |red | ||
+ | | style="background:#ff0000; color:#000000; font-family:monospace;" |#ff0000 | ||
+ | |- | ||
+ | |purple | ||
+ | | style="background:#800080; color:#ffffff; font-family:monospace;" |#800080 | ||
+ | |fuchsia | ||
+ | | style="background:#ff00ff; color:#000000; font-family:monospace;" |#ff00ff | ||
+ | |- | ||
+ | |green | ||
+ | | style="background:#008000; color:#ffffff; font-family:monospace;" |'''#008000''' | ||
+ | |lime | ||
+ | | style="background:#00ff00; color:#000000; font-family:monospace;" |#00ff00 | ||
+ | |- | ||
+ | |olive | ||
+ | | style="background:#808000; color:#ffffff; font-family:monospace;" |#808000 | ||
+ | |yellow | ||
+ | | style="background:#ffff00; color:#000000; font-family:monospace;" |#ffff00 | ||
+ | |- | ||
+ | |navy | ||
+ | | style="background:#000080; color:#ffffff; font-family:monospace;" |#000080 | ||
+ | |blue | ||
+ | | style="background:#0000ff; color:#ffffff; font-family:monospace;" |#0000ff | ||
+ | |- | ||
+ | |teal | ||
+ | | style="background:#008080; color:#000000; font-family:monospace;" |#008080 | ||
+ | |aqua | ||
+ | | style="background:#00ffff; color:#000000; font-family:monospace;" |#00ffff | ||
+ | |} | ||
+ | |||
+ | === Include code statements === | ||
+ | |||
+ | <nowiki> | ||
+ | use <nowiki> at the beginning and and </nowiki> at the end of the code statement | ||
+ | </nowiki> | ||
== Tables == | == Tables == | ||
− | see [[https://www.mediawiki.org/wiki/Help:Tables/de]] for details about formatting tables in MediaWiki | + | see [[https://www.mediawiki.org/wiki/Help:Tables/de MediaWiki Tables]] for details about formatting tables in MediaWiki |
== Include Images == | == Include Images == | ||
Line 76: | Line 144: | ||
[[file:filename.png|link=pageName]] – image with interal link to wiki page | [[file:filename.png|link=pageName]] – image with interal link to wiki page | ||
[[file:filename.pnglink=http://xxxx]] – image with external link | [[file:filename.pnglink=http://xxxx]] – image with external link | ||
− | [[file:filename.png|link=]] – image without link | + | [[file:filename.png|link=]] – image without link</nowiki> |
− | </nowiki> | + | |
+ | for this Wiki the following rendering is used: | ||
+ | |||
+ | <nowiki> | ||
+ | [[file:filename.png|border|center|800px|title]]</nowiki> | ||
+ | |||
+ | Upload the image in a larger resolution than 800px. Wiki will render it back to 800px for better presentation. | ||
+ | |||
+ | |||
see also [[https://www.mediawiki.org/wiki/Help:Formatting/de]] | see also [[https://www.mediawiki.org/wiki/Help:Formatting/de]] | ||
+ | |||
+ | == 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 == | == Changing the Sidebar == |
Latest revision as of 09:25, 15 February 2021
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
Contents
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
Text coloring
Set text color by using
<span style="color:#009999">
Set background color by using
<span style="background:#00FF00">
Set both by using
<span style="color:#FFFFFF; background:#FF69B4">
Combine with other text attributes (e.g. bold)
<span style="color:#FFFFFF; font-weight:bold">
Color | Hexadecimal | Color | Hexadecimal |
---|---|---|---|
black | #000000 | silver | #c0c0c0 |
gray | #808080 | white | #ffffff |
maroon | #800000 | red | #ff0000 |
purple | #800080 | fuchsia | #ff00ff |
green | #008000 | lime | #00ff00 |
olive | #808000 | yellow | #ffff00 |
navy | #000080 | blue | #0000ff |
teal | #008080 | aqua | #00ffff |
Include code statements
use <nowiki> at the beginning and and </nowiki> at the end of the code statement
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
for this Wiki the following rendering is used:
[[file:filename.png|border|center|800px|title]]
Upload the image in a larger resolution than 800px. Wiki will render it back to 800px for better presentation.
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