Difference between revisions of "Using MediaWiki for organizing your personal website"

From Rasmapedia
Jump to navigation Jump to search
(Created page with " ---- 2. How can I insert images? Insert $wgRawHtml = true; into the file LocalSettings.php in your main MediaWiki directory and the wiki will allow you to insert raw u...")
 
Line 1: Line 1:
 
   
 
   
 
+
  '''How can I insert images?'''
----
 
 
 
  2. How can I insert images?  
 
  
  
 
Insert $wgRawHtml = true; into the file LocalSettings.php in your main MediaWiki directory and the wiki will allow you to insert raw unchecked HTML. However, you must embed your html within the <html>...</html> tags so that MediaWiki can differentiate it.
 
Insert $wgRawHtml = true; into the file LocalSettings.php in your main MediaWiki directory and the wiki will allow you to insert raw unchecked HTML. However, you must embed your html within the <html>...</html> tags so that MediaWiki can differentiate it.
 
----
 
----
Add the following entry to LocalSettings.php file in order to open external links in a new window / tab.
+
 
 +
Add the following entry to LocalSettings.php file in order '''to open external links in a new window / tab.'''
 
  $wgExternalLinkTarget = '_blank';
 
  $wgExternalLinkTarget = '_blank';
  
I asked about this athte help desk.  
+
I asked about this at hte help desk.  
  
 
https://www.mediawiki.org/wiki/Manual_talk:$wgExternalLinkTarget#Can_internal_links_be_made_to_open_in_new_windows%3F
 
https://www.mediawiki.org/wiki/Manual_talk:$wgExternalLinkTarget#Can_internal_links_be_made_to_open_in_new_windows%3F
 
----
 
----
  
1. How can I indent paragraphs?  
+
'''How can I indent paragraphs?'''
  
 
https://www.rasmusen.org/rasmapedia/index.php?title=MediaWiki:Common.css
 
https://www.rasmusen.org/rasmapedia/index.php?title=MediaWiki:Common.css
Line 25: Line 23:
 
----
 
----
  
How can I insert a divider line?  Use 4 dashes
+
'''How can I insert a divider line?''' Use 4 dashes
 +
 
----
 
----
 
+
  '''How can I stop viewers from editing my pages?'''
----
 
How can I change the font?
 
 
 
----
 
How can I make quotations have smaller font?
 
----
 
  How can I stop viewers from editing my pages?  
 
  
 
$wgGroupPermissions['*']['edit'] = false; #anonymous users cannot edit
 
$wgGroupPermissions['*']['edit'] = false; #anonymous users cannot edit
Line 41: Line 33:
 
https://www.mediawiki.org/wiki/Manual:Preventing_access#Restrict_account_creation
 
https://www.mediawiki.org/wiki/Manual:Preventing_access#Restrict_account_creation
 
   
 
   
 
+
----
How can I put in a comment?  
+
'''How can I put in a comment?'''
 +
<pre>
 
<!-- This is a comment -->
 
<!-- This is a comment -->
 +
</pre>
 +
----
 +
'''How can I add to the editing menu so I can do quotations and make quotations be indented with a smaller font?'''
 +
  Use a "template" for this. A template is a file like Template:Quotation that is a page on your wiki. Once you create a page that starts "Template:xxxx",  whenever a page on your wiki has the command {{xxx| here is some text}}, the phrase "here is some text" will be formatted according to whatever commands are on the Template:xxxx page.
  
How can I add to the editing menu so I can do quotations?
 
  
 +
---
  
 
  <pre> and </pre> for multipline preformatted text.  
 
  <pre> and </pre> for multipline preformatted text.  

Revision as of 19:29, 23 September 2020

How can I insert images? 


Insert $wgRawHtml = true; into the file LocalSettings.php in your main MediaWiki directory and the wiki will allow you to insert raw unchecked HTML. However, you must embed your html within the ... tags so that MediaWiki can differentiate it.


Add the following entry to LocalSettings.php file in order to open external links in a new window / tab.

$wgExternalLinkTarget = '_blank';

I asked about this at hte help desk.

https://www.mediawiki.org/wiki/Manual_talk:$wgExternalLinkTarget#Can_internal_links_be_made_to_open_in_new_windows%3F


How can I indent paragraphs? 

https://www.rasmusen.org/rasmapedia/index.php?title=MediaWiki:Common.css

Insert:

 P { text-indent: 2em }
Put  Mediawiki:common.css on your main page, or wherever you  want to use for your administrator page so you can easily find it again. 

How can I insert a divider line? Use 4 dashes


How can I stop viewers from editing my pages? 

$wgGroupPermissions['*']['edit'] = false; #anonymous users cannot edit $wgGroupPermissions['*']['createaccount'] = false; #no new self-registered users

https://www.mediawiki.org/wiki/Manual:Preventing_access#Restrict_account_creation


How can I put in a comment?

<!-- This is a comment -->

How can I add to the editing menu so I can do quotations and make quotations be indented with a smaller font?

 Use a "template" for this. A template is a file like Template:Quotation that is a page on your wiki. Once you create a page that starts "Template:xxxx",  whenever a page on your wiki has the command Template:Xxx, the phrase "here is some text" will be formatted according to whatever commands are on the Template:xxxx page. 


---

 and 

for multipline preformatted text.

http://tmbw.net/wiki/Basic_Wiki_Formatting