MediaWiki: Difference between revisions
No edit summary |
|||
(11 intermediate revisions by the same user not shown) | |||
Line 32: | Line 32: | ||
What doesn't kill you can wound you pretty hard and should be avoided! |
What doesn't kill you can wound you pretty hard and should be avoided! |
||
</blockquote> |
</blockquote> |
||
=== Faking Checkmarks === |
|||
{| class="wikitable" |
|||
|+ Faking Checkmarks |
|||
|- |
|||
! !! Column 1 !! Column 2 !! Column 3 |
|||
|- |
|||
| Row 1 || <span style="color: Green"> √ </span> || <span style="color: Red"> x </span> || ? |
|||
|- |
|||
|} |
|||
<pre> |
|||
<span style="color: Green"> &radic; </span> |
|||
<span style="color: Red"> x </span> |
|||
? |
|||
</pre> |
|||
=== /index.php/Main_Page ParseError from line 1813 of /usr/share/mediawiki/includes/user/User.php: syntax error, unexpected 'else' (T_ELSE) === |
=== /index.php/Main_Page ParseError from line 1813 of /usr/share/mediawiki/includes/user/User.php: syntax error, unexpected 'else' (T_ELSE) === |
||
Line 53: | Line 70: | ||
1812 // } |
1812 // } |
||
1813 } else { |
1813 } else { |
||
=== Skin for Mobile Phones === |
|||
If you change the default skin to "Timeless" your site will be usable from mobile phones without any other changes. |
|||
LocalSettings.php, search for "wgDefaultSkin", the line will probably look like |
|||
$wgDefaultSkin = "vector"; |
|||
Change it to |
|||
wfLoadSkin("Timeless"); |
|||
$wgDefaultSkin = "Timeless"; |
|||
Reload your apache |
|||
/etc/init.d/apache2 reload |
|||
Visit your page with the normal browser and your mobile phone. |
|||
It WILL look differently but that is the price you pay for not having to install any add-ons or manually change a lot of things. |
|||
=== Horizontal line === |
|||
This: |
|||
---- |
|||
produces this: |
|||
---- |
|||
Simple, right? |
|||
I read the above and thought, does this "Simple, right?" sound condescending? Perhaps, depending on the mood of the reader. I don't care about your mood but just wanted to say that I made that comment because I was happy it was so easy :-) |
|||
=== Strike through === |
|||
<pre> |
|||
<s> IT IS TRUE!!! </s> |
|||
</pre> |
|||
<s> IT IS TRUE!!! </s> |
|||
=== Forbidden === |
|||
You don't have permission to access this resource. |
|||
I had a page with a '?' in the title ("name of the page"). |
|||
It worked a long time, then - one day - it stopped working. |
|||
I only got 404 - forbidden when I tried to access that page. |
|||
In my case the not working link was: |
|||
http://wiki.andreas-duffner.de/index.php/Deciding_which_Source_Management_Tool_to_use%3F |
|||
But you can still access the content of the site with: |
|||
http://wiki.andreas-duffner.de/index.php?action=edit&title=Deciding_which_Source_Management_Tool_to_use%3F |
|||
and then create a new page without special characters in the page name and just copy/paste from the original. |
|||
=== Definitions === |
|||
These things are a gift from above. Or from the developers of Mediawiki. |
|||
==== use it really for definitions ==== |
|||
<pre> |
|||
; What this is about |
|||
: Line one |
|||
: Line two |
|||
: and so on |
|||
; The other thing we have to tell you about |
|||
: Line one |
|||
</pre> |
|||
; What this is about |
|||
: Line one |
|||
: Line two |
|||
: and so on |
|||
; The other thing we have to tell you about |
|||
: Line one |
|||
==== use it for other things, there are many possibilities ==== |
|||
<pre> |
|||
; Person A |
|||
: Good day! |
|||
; Person B |
|||
: Good day to you too! |
|||
; Person A |
|||
: Have a nice day! |
|||
</pre> |
|||
; Person A |
|||
: Good day! |
|||
; Person B |
|||
: Good day to you too! |
|||
; Person A |
|||
: Have a nice day! |
Latest revision as of 14:58, 25 October 2024
Original Help Page
https://www.mediawiki.org/wiki/Help:Formatting
Colored Text
<span style="color: Red"> This is a colored text. </span>
This is a colored text.
Quote
<blockquote style="background-color: lightgrey; border: solid thin grey;"> This is a test and not a test but it is a test!<br/> What doesn't kill you can wound you pretty hard and should be avoided! </blockquote>
This is a test and not a test but it is a test!
What doesn't kill you can wound you pretty hard and should be avoided!
<blockquote style="background-color: lightgrey; border: solid thin grey;text-align: center;"> This is a test and not a test but it is a test!<br/> What doesn't kill you can wound you pretty hard and should be avoided! </blockquote>
This is a test and not a test but it is a test!
What doesn't kill you can wound you pretty hard and should be avoided!
Faking Checkmarks
Column 1 | Column 2 | Column 3 | |
---|---|---|---|
Row 1 | √ | x | ? |
<span style="color: Green"> √ </span> <span style="color: Red"> x </span> ?
from: https://www.mediawiki.org/wiki/Topic:Up0s3t815a9ovwoi
change
1808 } else { 1809 // limits for logged-in users 1810 if ( isset( $limits['user'] ) ) { 1811 $userLimit = $limits['user']; 1812 } 1813 } else {
to
1808 } elseif ( isset( $limits['user'] ) ) { 1809 1810 1811 $userLimit = $limits['user']; 1812 // } 1813 } else {
Skin for Mobile Phones
If you change the default skin to "Timeless" your site will be usable from mobile phones without any other changes.
LocalSettings.php, search for "wgDefaultSkin", the line will probably look like
$wgDefaultSkin = "vector";
Change it to
wfLoadSkin("Timeless"); $wgDefaultSkin = "Timeless";
Reload your apache
/etc/init.d/apache2 reload
Visit your page with the normal browser and your mobile phone. It WILL look differently but that is the price you pay for not having to install any add-ons or manually change a lot of things.
Horizontal line
This:
----
produces this:
Simple, right?
I read the above and thought, does this "Simple, right?" sound condescending? Perhaps, depending on the mood of the reader. I don't care about your mood but just wanted to say that I made that comment because I was happy it was so easy :-)
Strike through
<s> IT IS TRUE!!! </s>
IT IS TRUE!!!
Forbidden
You don't have permission to access this resource.
I had a page with a '?' in the title ("name of the page"). It worked a long time, then - one day - it stopped working. I only got 404 - forbidden when I tried to access that page.
In my case the not working link was:
http://wiki.andreas-duffner.de/index.php/Deciding_which_Source_Management_Tool_to_use%3F
But you can still access the content of the site with:
http://wiki.andreas-duffner.de/index.php?action=edit&title=Deciding_which_Source_Management_Tool_to_use%3F
and then create a new page without special characters in the page name and just copy/paste from the original.
Definitions
These things are a gift from above. Or from the developers of Mediawiki.
use it really for definitions
; What this is about : Line one : Line two : and so on ; The other thing we have to tell you about : Line one
- What this is about
- Line one
- Line two
- and so on
- The other thing we have to tell you about
- Line one
use it for other things, there are many possibilities
; Person A : Good day! ; Person B : Good day to you too! ; Person A : Have a nice day!
- Person A
- Good day!
- Person B
- Good day to you too!
- Person A
- Have a nice day!