Difference between revisions of "Help:Editing"

From Helminthic Therapy wiki
Jump to: navigation, search
(General notes on editing)
 
Line 7: Line 7:
 
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]
 
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources Localise MediaWiki for your language]
 
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]
 
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam Learn how to combat spam on your wiki]
== Wiki Getting started ==
+
 
 +
== MediaWiki Formatting Help ==
 +
 
 +
* [http://www.mediawiki.org/wiki/Help:Contents MediaWiki Help]
 +
** [http://www.mediawiki.org/wiki/Help:Formatting Formatting Help]
 +
 
 +
* [http://meta.wikimedia.org/wiki/Help:Recent_changes Recent Changes Help]
 +
 
 +
 
 +
== Installed Extensions ==
 +
 
 +
=== PageNotice ===
 +
 
 +
Common page header / footer.
 +
* [[mediawiki:Top-notice-ns-0]] -- Edit common page header notice
 +
* [[mediawiki:Bottom-notice-ns-0]] -- Edit common page footer notice (not currently used)
 +
* [http://www.mediawiki.org/wiki/Extension:PageNotice PageNotice Extension Help]
 +
 
 +
 
 +
=== Google +1 ===
 +
 
 +
6-Jul-2011 Allows you to include Google +1 button in 4 different versions very simply.
 +
* [http://www.mediawiki.org/wiki/Extension:Google_%2B1 Google1 Extension Help]
 +
* [http://www.google.com/intl/en/webmasters/+1/button/index.html Google +1 Info page] | [https://code.google.com/apis/+1button/ Another +1 Info page]
 +
 
 +
With the tag <pre><google1></google1> (same as default Small version)</pre>
 +
* Version 1: <pre><google1 style="1"></google1> (Small version)</pre> 
 +
* Version 2: <pre><google1 style="2"></google1> (Medium version)</pre>
 +
* Version 3: <pre><google1 style="3"></google1> (Standard version)</pre>
 +
* Version 4: <pre><google1 style="4"></google1> (Tall version)</pre>
 +
 
 +
<google1 style="1"></google1>
 +
<google1 style="2"></google1>
 +
<google1 style="3"></google1>
 +
<google1 style="4"></google1>
 +
 
 +
==== Google1_mod.php ====
 +
Notice the Google1.php only allows one +1 per page. So I created a modified version called Google1_mod.php (which is currently running). <br />
 +
The spec says you can put more than one +1 on a page if you use the href="" attribute to specify the associated URL (you can not use an invalid URL or add a bookmark)<br />
 +
In this modified version you can use style=1,2,3,4 same as above or "small", "medium", "standard", or "tall".<br />
 +
''Note:'' Using Google's embedded code pings the Google server so don't be surprised if your page runs a little slower. <br /><br />
 +
The original code always included script. In the modified code if you use href="" then no script is respecified.<br />
 +
If all your google1 code contains href="" then somewhere in the page add the following to invisibly add the google script include
 +
* <pre><google1 style="script"></google1></pre>
 +
 
 +
Examples:
 +
* <pre><google1 style="small" href="http://website.com/page1"></google1></pre>
 +
* <pre><google1 style="medium" href="http://website.com/page2"></google1></pre>
 +
* <pre><google1 style="standard" href="http://website.com/page3"></google1></pre>
 +
* <pre><google1 style="tall" href="http://website.com/page4"></google1></pre>
 +
These do not function 100% because the URLs are fictitious. Google wants real URLs. So normally you would use the link to the .PDF etc next to the +1.<br />
 +
<google1 style="small" href="http://opensourcehelminththerapy.org/mediawiki2/title=Help:Editing001"></google1>
 +
<google1 style="medium" href="http://opensourcehelminththerapy.org/mediawiki2/title=Help:Editing002"></google1>
 +
<google1 style="standard" href="http://opensourcehelminththerapy.org/mediawiki2/title=Help:Editing003"></google1>
 +
<google1 style="tall" href="http://opensourcehelminththerapy.org/mediawiki2/title=Help:Editing004"></google1>
 +
 
 +
* <pre><google1 href="http://website.com/page1"></google1></pre>
 +
* <pre><google1 style="1" href="http://website.com/page1"></google1></pre>
 +
 
 +
<google1 href="http://opensourcehelminththerapy.org/mediawiki2/title=Help:Editing"></google1>
 +
<google1 style="1" href="http://opensourcehelminththerapy.org/mediawiki2/title=Help:Editing"></google1>
 +
 
 +
=== NoTitle ===
 +
 
 +
Put __NOTITLE__ on any pages where you want to hide the title.
 +
* [http://www.mediawiki.org/wiki/Extension:NoTitle NoTitle Extension Help]
 +
 
 +
 
 +
=== EmbedVideo ===
 +
 
 +
Embed web video such as YouTube
 +
 
 +
* [http://www.mediawiki.org/wiki/Extension:EmbedVideoPlus EmbedVideo Extension Help]
 +
 
 +
Example:
 +
{{#ev:youtube|H0tpzODdR0c|200}}
 +
 
 +
== Log of Changers ==
 +
 
 +
<pre>
 +
File: \mediawiki2\LocalSettings.php
 +
 
 +
# monobook is the old Wikipedia skin
 +
$wgDefaultSkin = 'monobook';    # was 'modern'
 +
# this means existing users preferences  are set to monobook as well. Instead remaining on modern.
 +
$wgAllowUserSkin = false; 
 +
 +
## Set page logo
 +
$wgLogo = "wormLogo.png";
 +
 +
## Set site icon
 +
$wgFavicon = "wormLogo.ico";
 +
 
 +
 
 +
# Extension - PageNotice. Create global page header and footers.
 +
# See http://www.mediawiki.org/wiki/Extension:PageNotice
 +
require_once("$IP/extensions/PageNotice/PageNotice.php");
 +
 +
# Extension -  EmbedVideo code. Enable the embedding of videos.
 +
# See http://www.mediawiki.org/wiki/Extension:EmbedVideoPlus
 +
require_once('extensions/EmbedVideo/EmbedVideo.php');
 +
 +
# Extension - NoTitle. Add __NoTitle__ to any page to hide the title.
 +
# See http://www.mediawiki.org/wiki/Extension:NoTitle
 +
require_once("$IP/extensions/NoTitle/NoTitle.php");
 +
 
 +
# Extension - ParserFunctions (use by imported MediaWiki Templates)
 +
# See http://www.mediawiki.org/wiki/Extension:ParserFunctions
 +
require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );
 +
# If you want to use the integrated string function functionality
 +
$wgPFEnableStringFunctions = true;
 +
 
 +
# Extension - GoogleAnalytics
 +
# http://www.mediawiki.org/wiki/Extension:GoogleAnalytics
 +
 
 +
# RWC 14-Mar-2011, Users can no longer create accounts
 +
$wgGroupPermissions['*']['createaccount'] = false;
 +
 
 +
</pre>
 +
 
 +
== Other ==
 +
 
 +
* [[Special:ListUsers/sysop]]

Revision as of 13:46, 21 December 2016

Consult the User's Guide for information on using the wiki software.

Wiki Getting started

MediaWiki Formatting Help


Installed Extensions

PageNotice

Common page header / footer.


Google +1

6-Jul-2011 Allows you to include Google +1 button in 4 different versions very simply.

With the tag

<google1></google1> (same as default Small version)
  • Version 1:
    <google1 style="1"></google1> (Small version)
  • Version 2:
    <google1 style="2"></google1> (Medium version)
  • Version 3:
    <google1 style="3"></google1> (Standard version)
  • Version 4:
    <google1 style="4"></google1> (Tall version)

<google1 style="1"></google1> <google1 style="2"></google1> <google1 style="3"></google1> <google1 style="4"></google1>

Google1_mod.php

Notice the Google1.php only allows one +1 per page. So I created a modified version called Google1_mod.php (which is currently running).
The spec says you can put more than one +1 on a page if you use the href="" attribute to specify the associated URL (you can not use an invalid URL or add a bookmark)
In this modified version you can use style=1,2,3,4 same as above or "small", "medium", "standard", or "tall".
Note: Using Google's embedded code pings the Google server so don't be surprised if your page runs a little slower.

The original code always included script. In the modified code if you use href="" then no script is respecified.
If all your google1 code contains href="" then somewhere in the page add the following to invisibly add the google script include

  • <google1 style="script"></google1>

Examples:

  • <google1 style="small" href="http://website.com/page1"></google1>
  • <google1 style="medium" href="http://website.com/page2"></google1>
  • <google1 style="standard" href="http://website.com/page3"></google1>
  • <google1 style="tall" href="http://website.com/page4"></google1>

These do not function 100% because the URLs are fictitious. Google wants real URLs. So normally you would use the link to the .PDF etc next to the +1.
<google1 style="small" href="http://opensourcehelminththerapy.org/mediawiki2/title=Help:Editing001"></google1> <google1 style="medium" href="http://opensourcehelminththerapy.org/mediawiki2/title=Help:Editing002"></google1> <google1 style="standard" href="http://opensourcehelminththerapy.org/mediawiki2/title=Help:Editing003"></google1> <google1 style="tall" href="http://opensourcehelminththerapy.org/mediawiki2/title=Help:Editing004"></google1>

  • <google1 href="http://website.com/page1"></google1>
  • <google1 style="1" href="http://website.com/page1"></google1>

<google1 href="http://opensourcehelminththerapy.org/mediawiki2/title=Help:Editing"></google1> <google1 style="1" href="http://opensourcehelminththerapy.org/mediawiki2/title=Help:Editing"></google1>

NoTitle

Put __NOTITLE__ on any pages where you want to hide the title.


EmbedVideo

Embed web video such as YouTube

Example:

Log of Changers

File: \mediawiki2\LocalSettings.php

# monobook is the old Wikipedia skin
$wgDefaultSkin = 'monobook';    # was 'modern'
# this means existing users preferences  are set to monobook as well. Instead remaining on modern.
$wgAllowUserSkin = false;  
		
## Set page logo
$wgLogo = "wormLogo.png";
		
## Set site icon
$wgFavicon = "wormLogo.ico";


# Extension - PageNotice. Create global page header and footers.
# See http://www.mediawiki.org/wiki/Extension:PageNotice 
require_once("$IP/extensions/PageNotice/PageNotice.php");
		
# Extension -  EmbedVideo code. Enable the embedding of videos.
# See http://www.mediawiki.org/wiki/Extension:EmbedVideoPlus 
require_once('extensions/EmbedVideo/EmbedVideo.php');
		
# Extension - NoTitle. Add __NoTitle__ to any page to hide the title.
# See http://www.mediawiki.org/wiki/Extension:NoTitle
require_once("$IP/extensions/NoTitle/NoTitle.php");

# Extension - ParserFunctions (use by imported MediaWiki Templates)
# See http://www.mediawiki.org/wiki/Extension:ParserFunctions
require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );
# If you want to use the integrated string function functionality
$wgPFEnableStringFunctions = true;

# Extension - GoogleAnalytics
# http://www.mediawiki.org/wiki/Extension:GoogleAnalytics

# RWC 14-Mar-2011, Users can no longer create accounts
$wgGroupPermissions['*']['createaccount'] = false;

Other