General Disclaimer:   (HV) (DC) injury or death hazard,   use at your own risk,   may void warranty.

Difference between revisions of "User:WikiAdmin"

From My wiki
Jump to navigation Jump to search
(ParserFunctions)
(merge notes from definity-systems)
Line 36: Line 36:
 
** [[Template:EMailLinkAccounts]] = {{EMailLinkAccounts}}
 
** [[Template:EMailLinkAccounts]] = {{EMailLinkAccounts}}
 
** [[Template:EMailTextList]]    = {{EMailTextList}}
 
** [[Template:EMailTextList]]    = {{EMailTextList}}
 +
 +
===Menus===
 +
* [[MediaWiki:Sidebar]]  - Main Menu
 +
* [[MediaWiki:Sitenotice]]- Site wide notice
 +
* [[MediaWiki:Anonnotice]] (will supersede Sitenotice for anonymous users)
 +
 +
===Messages===
 +
* [[MediaWiki:Enotif subject]] = {{INT:Enotif subject}}
 +
* [[MediaWiki:Enotif_body]]    = {{INT:Enotif_body}}
 +
 +
===Public Pages===
 +
Pages anonymous (not-logged-in) users may read
 +
* '''[[MediaWiki:WhitelistRead]]'''
 +
* [[MediaWiki:Whitelistedittext]]
 +
* [[MediaWiki:Loginprompt]]
 +
* [[Template:Site Policy]]
 +
 +
===Login Messages===
 +
* [[MediaWiki:Welcomecreation]]
 +
* [[MediaWiki:Loginsuccess]]
 +
* [[MediaWiki:Loginprompt]]
 +
* [[MediaWiki:Logouttext]]
 +
 +
===Wiki Settings===
 +
* http://www.mediawiki.org/wiki/Manual:Configuration_settings_(alphabetical)
 +
* http://www.mediawiki.org/wiki/Manual:Configuration_settings
 +
 +
 +
===Wiki Variables===
 +
Main site URLs
 +
* [[MediaWiki:Foo]]  = {{INT:Foo}}
 +
 +
{|
 +
| valign=top |
 +
====Page Dependent====
 +
* <code><nowiki>{{PAGENAME}}</nowiki></code> {{PAGENAME}}
 +
* <code><nowiki>{{PAGENAMEE}}</nowiki></code> {{PAGENAMEE}}
 +
* <code><nowiki>{{NAMESPACE}}</nowiki></code> {{NAMESPACE}}
 +
* <code><nowiki>{{NAMESPACEE}}</nowiki></code> {{NAMESPACEE}}
 +
* <code><nowiki>{{FULLPAGENAME}}</nowiki></code> {{FULLPAGENAME}}
 +
* <code><nowiki>{{FULLPAGENAMEE}}</nowiki></code> {{FULLPAGENAMEE}}
 +
* <code><nowiki>{{REVISIONID}}</nowiki></code> {{REVISIONID}}
 +
* <code><nowiki>{{SUBPAGENAME}}</nowiki></code> {{SUBPAGENAME}}
 +
* <code><nowiki>{{SUBPAGENAMEE}}</nowiki></code> {{SUBPAGENAMEE}}
 +
| valign=top |
 +
====Time Dependent====
 +
* <code><nowiki>{{CURRENTYEAR}}</nowiki> </code> {{CURRENTYEAR}}
 +
* <code><nowiki>{{CURRENTMONTH}}</nowiki> </code> {{CURRENTMONTH}}
 +
* <code><nowiki>{{CURRENTMONTHNAME}}</nowiki> </code> {{CURRENTMONTHNAME}}
 +
* <code><nowiki>{{CURRENTMONTHABBREV}}</nowiki> </code> {{CURRENTMONTHABBREV}}
 +
* <code><nowiki>{{CURRENTMONTHNAMEGEN}}</nowiki> </code> {{CURRENTMONTHNAMEGEN}}
 +
* <code><nowiki>{{CURRENTWEEK}}</nowiki> </code> {{CURRENTWEEK}}
 +
* <code><nowiki>{{CURRENTDAY}}</nowiki> </code> {{CURRENTDAY}}
 +
* <code><nowiki>{{CURRENTDAY2}}</nowiki> </code> {{CURRENTDAY2}}
 +
* <code><nowiki>{{CURRENTDAYNAME}}</nowiki> </code> {{CURRENTDAYNAME}}
 +
* <code><nowiki>{{CURRENTDOW}}</nowiki> </code> {{CURRENTDOW}}
 +
* <code><nowiki>{{CURRENTTIME}}</nowiki> </code> {{CURRENTTIME}}
 +
* <code><nowiki>{{NUMBEROFARTICLES}}</nowiki> </code> {{NUMBEROFARTICLES}}
 +
* <code><nowiki>{{NUMBEROFFILES}}</nowiki> </code> {{NUMBEROFFILES}}
 +
|}
 +
 +
== Licenses ==
 +
 +
* [[w:Image_copyright_tags#Creative_Commons_Licenses]]
 +
*http://www.gnu.org/licenses/license-list.html#OtherLicenses - GNU General Public License
 +
** http://www.gnu.org/copyleft/fdl.html - GNU Free Documentation License
 +
** http://creativecommons.org/licenses/by-sa/2.0/legalcode - Creative Commons Attribution-Sharealike 2.0 license
 +
** http://artlibre.org/licence/lalgb.html - Free Art License
 +
* In accordance with Title 17 U. S. C. Section 107, any copyrighted work in this message is distributed under fair use without profit or payment to those who have expressed a prior interest in receiving the included information for nonprofit research and educational purposes only. Ref. http://www.law.cornell.edu/uscode/17/107.shtml
 +
 +
 +
== Interwiki ==
 +
 +
** [[Special:Interwiki]] [http://meta.wikimedia.org/wiki/Help:Interwiki_links] [http://meta.wikimedia.org/wiki/Special_page_to_work_with_the_interwiki_table]
 +
w http://en.wikipedia.org/wiki/$1
 +
WikiPedia http://en.wikipedia.org/wiki/$1
 +
DigiKey http://www.digikey.com/scripts/DkSearch/dksus.dll?KeywordSearch&Keywords=$1
 +
SEVA_Maillist http://www.seattleeva.org/maillist/?show=$1
 +
EAA-PHEV_Maillist http://www.seattleeva.org/maillist/eaa-phev.html?show=$1
 +
EVDL_Maillist http://www.seattleeva.org/maillist/evdl/?show=$1
 +
CalCars_Maillist http://www.seattleeva.org/maillist/calcars-news/?show=$1
 +
Gridable_Maillist http://www.seattleeva.org/maillist/gridable-hybrids/?show=$1
 +
PriusPlus_Maillist http://www.seattleeva.org/maillist/priusplus/?show=$1
 +
SEVA http://www.seattleeva.org/index.php?title=$1
 +
EAA-PHEV http://www.eaa-phev.org/index.php?title=$1
 +
Definity http://www.definity-systems.net/index.php?title=$1
 +
CMC http://coinmarketcap.com/currencies/$1
 +
Set ''$wgEnableScaryTranscluding = true;'' for the ability to Transclude interwiki links ie:<nowiki>{{:T3:835}}</nowiki>
 +
 +
== Extensions==
 +
* http://meta.wikimedia.org/wiki/MediaWiki_extensions
 +
* http://meta.wikimedia.org/wiki/Category:MediaWiki_extensions
 +
Extentensions with examples of installation steps and LocalSettings.php lines are enabled.
 +
 +
$wgRawHtml = true;
 +
$wgAutoblockExpiry=0; # Set autoblock to 0 seconds in order to disable it.
 +
http://meta.wikimedia.org/wiki/RequireCategory
 +
 +
=== Flash ===
 +
* http://meta.wikimedia.org/wiki/Flash_Video_extension
 +
include('extensions/Flash.php');
 +
 +
=== WikiSpell ===
 +
* http://meta.wikimedia.org/wiki/Wikispelling
 +
# From http://collaborate.extension.org/wiki/WikiSpeller
 +
include_once('extensions/WikiSpeller/WikiSpeller.php');
 +
 +
=== References ===
 +
* http://meta.wikimedia.org/wiki/Cite.php
 +
require_once("$IP/extensions/Cite.php");
 +
 +
* Useage: To embed a reference
 +
** <nowiki>Article body text and assertions <ref>Reference for assertion and http://some.links.net</ref></nowiki><ref>Example Reference per http://meta.wikimedia.org/wiki/Cite.php</ref>
 +
* Useage: To list all the references later in the article.
 +
** <nowiki><references/></nowiki>
 +
<references/>
  
 
=== ParserFunctions ===
 
=== ParserFunctions ===
Line 54: Line 170:
 
  in LocalSettings.php add require_once ("$IP/extensions/StringFunctions/StringFunctions.php");
 
  in LocalSettings.php add require_once ("$IP/extensions/StringFunctions/StringFunctions.php");
 
  * https://www.mediawiki.org/wiki/Extension:LoopFunctions#Installation
 
  * https://www.mediawiki.org/wiki/Extension:LoopFunctions#Installation
 +
 +
=== TeX Editor ===
 +
* http://meta.wikimedia.org/wiki/TeX_Editor
 +
$ sudo apt-get install tex4ht
 +
$ sudo apt-get install dvipng
 +
$ sudo apt-get install tetex-extra
 +
$ sudo apt-get install cjk-latex
 +
$ sudo apt-get install ocaml-native-compilers
 +
''$ sudo apt-get install ocaml-tools''
 +
''$ sudo apt-get install ocaml-source''
 +
''$ sudo apt-get install ocamlweb''
 +
$ in math folder run make
 +
in ../LocalSettings.php set wgUseTeX = true;
 +
create required pages per instruction at meta.
 +
 +
=== Renameuser ===
 +
* http://meta.wikimedia.org/wiki/Permissions_extension
 +
# enables renaming of wiki usernames by sysops
 +
require_once( "$IP/extensions/SpecialRenameuser.php" );
 +
 +
=== CheckUser ===
 +
* http://meta.wikimedia.org/wiki/Checkuser
 +
# Manually visit [[Special:CheckUser]]
 +
require_once('extensions/CheckUser.php');
 +
$wgGroupPermissions['sysop']['checkuser']    = true;
 +
 +
=== Extensions to consider ===
 +
''' DynamicPageList '''
 +
http://www.mediawiki.org/wiki/Extension:DynamicPageList
 +
 +
''' LinkedImage '''
 +
http://meta.wikimedia.org/wiki/LinkedImage
 +
 +
''' WYSIWYG Editor '''
 +
http://meta.wikimedia.org/wiki/WYSIWYG_editor
 +
 +
''' BackLinks '''
 +
http://meta.wikimedia.org/wiki/BackLinksFunctions
 +
 +
''' Graphical Category Browser '''
 +
http://meta.wikimedia.org/wiki/Graphical_Category_Browser
 +
 +
''' MenuTabs '''
 +
http://meta.wikimedia.org/wiki/MenuTabs
 +
 +
''' ImageMap '''
 +
http://meta.wikimedia.org/wiki/ImageMap_Extension
 +
 +
''' TemplateTable '''
 +
http://meta.wikimedia.org/wiki/TemplateTable_extension
 +
 +
''' TabbedData Tables '''
 +
http://meta.wikimedia.org/wiki/TabbedData_extension
 +
 +
''' Inline SVG '''
 +
http://meta.wikimedia.org/wiki/Inline_SVG_extension
 +
 +
''' Poll '''
 +
http://meta.wikimedia.org/wiki/Poll
 +
 +
''' Quizzes '''
 +
http://meta.wikimedia.org/wiki/Quizzes
 +
 +
''' Email Link '''
 +
http://meta.wikimedia.org/wiki/Email_Link
 +
 +
''' Category Extras '''
 +
http://meta.wikimedia.org/wiki/User:Mrenoch/CategoryExtras
 +
 +
''' Data '''
 +
http://meta.wikimedia.org/wiki/Data_Extension
 +
 +
''' EasyTimeline '''
 +
http://meta.wikimedia.org/wiki/EasyTimeline
 +
 +
''' Flowchart '''
 +
http://meta.wikimedia.org/wiki/Flowchart
 +
 +
''' Tasks '''
 +
http://meta.wikimedia.org/wiki/Tasks_extension
 +
 +
''' SpecialUserScore '''
 +
http://meta.wikimedia.org/wiki/SpecialUserScore
 +
 +
''' NagiosStatus '''
 +
http://meta.wikimedia.org/wiki/NagiosStatus
 +
 +
''' RSS into Wiki '''
 +
http://meta.wikimedia.org/wiki/RSS_into_Wiki
 +
 +
''' QISSingleSignOn & Integration '''
 +
* http://meta.wikimedia.org/wiki/QISSingleSignOn
 +
* http://meta.wikimedia.org/wiki/Category:Integration
 +
 +
==Customizations==
 +
Changes made outside the revision control of the wiki, to the filesystem.
 +
* http://meta.wikimedia.org/wiki/MediaWiki_localization#Create_a_patch
 +
cd to the root of the target for changes, then diff original against target
 +
-r  --recursive (Recursively compare any subdirectories found.)
 +
-u  -U NUM  --unified[=NUM] (Output NUM (default 3) lines of unified context.)
 +
-N  --new-file (Treat absent files as empty.)
 +
<s>-e  --ed (Output an ed script.)</s>
 +
<s>-n  --rcs (Output an RCS format diff.)</s>
 +
Create a patch (Recurse, +-.patch format, Create new files)
 +
$ diff -ruN ../orig/ . > ../new.patch
 +
The replace the "../orig/" path with  a more descriptive "/tmp/app-feature-version/"
 +
Then apply the patch by cd-ing to the root of the target directory and running
 +
$ patch -p0 < app-feature-version.patch
 +
Check for files that did not get patched properly:
 +
$ find . | grep .rej
 +
 +
=== NavFrame & Sortable Tables ===
 +
* [[W:Wikipedia:NavFrame]] Collapsible tables with show / hide buttons
 +
** copy [[W:MediaWiki:Common.js]]  into [[MediaWiki:Common.js]]
 +
** copy [[W:MediaWiki:Common.css]] into [[MediaWiki:Common.css]]
 +
** ''[[W:MediaWiki:Monobook.css]]'' optional
 +
* http://meta.wikimedia.org/wiki/Help:Sorting
 +
----
 +
{| class="toccolours collapsible" width="60%" align=right
 +
!colspan="2"| Fun with table columns
 +
|-
 +
| Column 1 || Column 2
 +
|}
 +
{{clear}}
 +
----
 +
{| class="toccolours collapsible collapsed" width=60% align=center
 +
|-
 +
! colspan="2" | This table will always initially collapse
 +
|-
 +
| Column 1 || Column 2
 +
|}
 +
{{clear}}
 +
----
 +
<div class="NavFrame" style="border-style:none; width: 60%">
 +
<div class="NavFrame" style="border-style:none;">
 +
<div class="NavHead" style="background:#F8EABA;text-align:left;">'''{{{1|Header}}}'''</div>
 +
<div class="NavContent" style="background-color:white;border:1px solid #c0c090;padding:5px;text-align:left;">
 +
Content
 +
</div></div></div>
 +
----
 +
<div class="NavFrame">
 +
<div class="NavHead">[... This is the title of your collapsible content ...]</div>
 +
<div class="NavContent">
 +
[... The content you want to hide goes here ...]
 +
</div>
 +
</div>
 +
----
 +
{|class="wikitable sortable"
 +
!Sorting using nbsps, works on IE but not on Firefox
 +
!Name
 +
|-
 +
|100.3 FM
 +
|Third
 +
|-
 +
|&nbsp;89.5 FM
 +
|First
 +
|-
 +
|107.3 FM
 +
|Fourth
 +
|-
 +
|&nbsp;95.3 FM
 +
|Second
 +
|}
 +
----
 +
{|
 +
!initially expanded!!initially collapsed
 +
|-
 +
|
 +
{|class="collapsible"
 +
!numbers
 +
|-
 +
|
 +
{|class="wikitable sortable"
 +
!name!!number
 +
|-
 +
|a||123
 +
|-
 +
|b||6
 +
|-
 +
|c||45
 +
|}
 +
|}
 +
|
 +
{|class="collapsible collapsed"
 +
!numbers
 +
|-
 +
|
 +
{|class="wikitable sortable"
 +
!name!!number
 +
|-
 +
|a||123
 +
|-
 +
|b||6
 +
|-
 +
|c||45
 +
|}
 +
|}
 +
|}
 +
 +
===Restrict Patch===
 +
See http://meta.wikimedia.org/wiki/Page_access_restriction_with_MediaWiki
 +
 +
=== WhitelistRead ===
 +
$wgWhitelistRead = array ("Main Page", "Special:Userlogin" );
 +
* '''[[MediaWiki:WhitelistRead]]'''
 +
The first line not ending with ]] stops the list of matches.
 +
To use this namespace add the following to includes/Title.php
 +
/** some pages are explicitly allowed */
 +
+ $lines = explode( "]]\n", wfMsgForContent( 'WhitelistRead' ) );
 +
+ foreach ($lines as $line) {
 +
+ $line = trim($line, '* [[');
 +
+ $wgWhitelistRead[] .= $line;
 +
+ }
 +
$name = $this->getPrefixedText();
 +
 +
===Custom Logo===
 +
Created a custom logo.
 +
#$wgLogo            = "$wgStylePath/common/images/wiki.png";
 +
$wgLogo            = "$wgStylePath/common/images/dpwiki.png";
 +
 +
===Menu Modifications===
 +
* Added support for anchor links to the sidebar function
 +
* Added Topbar function to includes/Skin.php & includes/SkinTemplate.php
 +
* Added Topbar to skins/MonoBook.php so editors can see it.
 +
* Added '''[[Special:Recentchanges|Rescentchanges]]''' and '''[[Special:Randompage|Randompage]]''' to the toolbox.
 +
** line 174 in skins/MonoBook.php added above ''special items'' to the array.
 +
 +
* Nested menus are working in MonoBook and CologneBlue based skins...
 +
** Changes made to includes/Skin.php, skins/MonoBook.php, skins/CologneBlue.php, skins/common/cologneblue.css, skins/monobook/main.css, and custom skin.
 +
** [http://bugzilla.wikimedia.org/show_bug.cgi?id=3597 Nested menus request]
 +
 +
===Default Skin===
 +
LocalSettings.php
 +
$wgDefaultSkin = 'dpskin31';
 +
* DPSkin11 is based on MonoBook
 +
* DPSkin21 is based on CologneBlue
 +
* DPSkin31 is based on CologneBlue
 +
* MonoBook is modified to show topbar on the side. ''Fix DPSkin11 do do this''
 +
  
 
==Search Enhancements==
 
==Search Enhancements==
Line 94: Line 449:
 
To this
 
To this
 
  . "&nbsp&nbsp<input type='submit' name=\"searchx\" value=\"" . htmlspecialchars( wfMsg( "Go" ) ) . "\" /></form>";
 
  . "&nbsp&nbsp<input type='submit' name=\"searchx\" value=\"" . htmlspecialchars( wfMsg( "Go" ) ) . "\" /></form>";
 +
 +
====min word length====
 +
mysql
 +
> show variables like 'ft_min_word_len%';
  
 
==SVN and Trac Management==
 
==SVN and Trac Management==

Revision as of 01:09, 20 April 2020


User Management

Namespace


Special:Interwiki Management - Interwiki Help

Use http://www.eaa-phev.org/wiki/index.php?flushcache to flush this servers cache.

Menus

Messages

$WATCHINGUSERNAME, see $PAGETITLE_URL for the current version.

$NEWPAGE

Editor's summary: $PAGESUMMARY $PAGEMINOREDIT

Contact the editor: mail: $PAGEEDITOR_EMAIL wiki: $PAGEEDITOR_WIKI

There will be no other notifications in case of further changes unless you visit this page. You could also reset the notification flags for all your watched pages on your watchlist.

            Your friendly My wiki notification system

-- To change your watchlist settings, visit https://www.eaa-phev.org/wiki/Special:Watchlist/edit

Feedback and further assistance: https://www.eaa-phev.org/wiki/Https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents

Public Pages

Pages anonymous (not-logged-in) users may read

Login Messages

Wiki Settings


Wiki Variables

Main site URLs

Page Dependent

  • {{PAGENAME}} WikiAdmin
  • {{PAGENAMEE}} WikiAdmin
  • {{NAMESPACE}} User
  • {{NAMESPACEE}} User
  • {{FULLPAGENAME}} User:WikiAdmin
  • {{FULLPAGENAMEE}} User:WikiAdmin
  • {{REVISIONID}} 6664
  • {{SUBPAGENAME}} WikiAdmin
  • {{SUBPAGENAMEE}} WikiAdmin

Time Dependent

  • {{CURRENTYEAR}} 2021
  • {{CURRENTMONTH}} 04
  • {{CURRENTMONTHNAME}} April
  • {{CURRENTMONTHABBREV}} Apr
  • {{CURRENTMONTHNAMEGEN}} April
  • {{CURRENTWEEK}} 15
  • {{CURRENTDAY}} 16
  • {{CURRENTDAY2}} 16
  • {{CURRENTDAYNAME}} Friday
  • {{CURRENTDOW}} 5
  • {{CURRENTTIME}} 23:45
  • {{NUMBEROFARTICLES}} 125
  • {{NUMBEROFFILES}} 640

Licenses


Interwiki

w 			http://en.wikipedia.org/wiki/$1
WikiPedia		http://en.wikipedia.org/wiki/$1
DigiKey 		http://www.digikey.com/scripts/DkSearch/dksus.dll?KeywordSearch&Keywords=$1
SEVA_Maillist 		http://www.seattleeva.org/maillist/?show=$1
EAA-PHEV_Maillist 	http://www.seattleeva.org/maillist/eaa-phev.html?show=$1
EVDL_Maillist 		http://www.seattleeva.org/maillist/evdl/?show=$1
CalCars_Maillist 	http://www.seattleeva.org/maillist/calcars-news/?show=$1
Gridable_Maillist 	http://www.seattleeva.org/maillist/gridable-hybrids/?show=$1
PriusPlus_Maillist 	http://www.seattleeva.org/maillist/priusplus/?show=$1
SEVA 			http://www.seattleeva.org/index.php?title=$1
EAA-PHEV 		http://www.eaa-phev.org/index.php?title=$1
Definity 		http://www.definity-systems.net/index.php?title=$1
CMC			http://coinmarketcap.com/currencies/$1

Set $wgEnableScaryTranscluding = true; for the ability to Transclude interwiki links ie:{{:T3:835}}

Extensions

Extentensions with examples of installation steps and LocalSettings.php lines are enabled.

$wgRawHtml = true;
$wgAutoblockExpiry=0; # Set autoblock to 0 seconds in order to disable it.
http://meta.wikimedia.org/wiki/RequireCategory

Flash

include('extensions/Flash.php');

WikiSpell

# From http://collaborate.extension.org/wiki/WikiSpeller
include_once('extensions/WikiSpeller/WikiSpeller.php');

References

require_once("$IP/extensions/Cite.php");
  • Useage: To embed a reference
  • Useage: To list all the references later in the article.
    • <references/>

<references/>

ParserFunctions

* http://meta.wikimedia.org/wiki/Help:Calculation
add extensions/ParserFunctions/Expr.php
add extensions/ParserFunctions/ParserFunctions.php
in LocalSettings.php add require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );
* http://meta.wikimedia.org/wiki/MathStatFunctions
add extensions/MathStatFunctions/MathStatFunctions.php
add extensions/MathStatFunctions/MathStatFunctions.i18n.php
in LocalSettings.php add require_once( "$IP/extensions/MathStatFunctions/MathStatFunctions.php" );
* http://meta.wikimedia.org/wiki/VariablesExtension
add extensions/Variables/Variables.php
in LocalSettings.php add require_once( "$IP/extensions/Variables/Variables.php" );
* http://meta.wikimedia.org/wiki/StringFunctions
add extensions/StringFunctions/StringFunctions.php
in LocalSettings.php add require_once ("$IP/extensions/StringFunctions/StringFunctions.php");
* https://www.mediawiki.org/wiki/Extension:LoopFunctions#Installation

TeX Editor

$ sudo apt-get install tex4ht
$ sudo apt-get install dvipng
$ sudo apt-get install tetex-extra
$ sudo apt-get install cjk-latex
$ sudo apt-get install ocaml-native-compilers
$ sudo apt-get install ocaml-tools
$ sudo apt-get install ocaml-source
$ sudo apt-get install ocamlweb
$ in math folder run make
in ../LocalSettings.php set wgUseTeX = true;
create required pages per instruction at meta.

Renameuser

# enables renaming of wiki usernames by sysops
require_once( "$IP/extensions/SpecialRenameuser.php" );

CheckUser

# Manually visit Special:CheckUser
require_once('extensions/CheckUser.php');
$wgGroupPermissions['sysop']['checkuser']     = true;

Extensions to consider

DynamicPageList http://www.mediawiki.org/wiki/Extension:DynamicPageList

LinkedImage http://meta.wikimedia.org/wiki/LinkedImage

WYSIWYG Editor http://meta.wikimedia.org/wiki/WYSIWYG_editor

BackLinks http://meta.wikimedia.org/wiki/BackLinksFunctions

Graphical Category Browser http://meta.wikimedia.org/wiki/Graphical_Category_Browser

MenuTabs http://meta.wikimedia.org/wiki/MenuTabs

ImageMap http://meta.wikimedia.org/wiki/ImageMap_Extension

TemplateTable http://meta.wikimedia.org/wiki/TemplateTable_extension

TabbedData Tables http://meta.wikimedia.org/wiki/TabbedData_extension

Inline SVG http://meta.wikimedia.org/wiki/Inline_SVG_extension

Poll http://meta.wikimedia.org/wiki/Poll

Quizzes http://meta.wikimedia.org/wiki/Quizzes

Email Link http://meta.wikimedia.org/wiki/Email_Link

Category Extras http://meta.wikimedia.org/wiki/User:Mrenoch/CategoryExtras

Data http://meta.wikimedia.org/wiki/Data_Extension

EasyTimeline http://meta.wikimedia.org/wiki/EasyTimeline

Flowchart http://meta.wikimedia.org/wiki/Flowchart

Tasks http://meta.wikimedia.org/wiki/Tasks_extension

SpecialUserScore http://meta.wikimedia.org/wiki/SpecialUserScore

NagiosStatus http://meta.wikimedia.org/wiki/NagiosStatus

RSS into Wiki http://meta.wikimedia.org/wiki/RSS_into_Wiki

QISSingleSignOn & Integration

Customizations

Changes made outside the revision control of the wiki, to the filesystem.

cd to the root of the target for changes, then diff original against target

-r  --recursive (Recursively compare any subdirectories found.)
-u  -U NUM  --unified[=NUM] (Output NUM (default 3) lines of unified context.)
-N  --new-file (Treat absent files as empty.)
-e  --ed (Output an ed script.)
-n  --rcs (Output an RCS format diff.)
Create a patch (Recurse, +-.patch format, Create new files)
$ diff -ruN ../orig/ . > ../new.patch
The replace the "../orig/" path with  a more descriptive "/tmp/app-feature-version/"
Then apply the patch by cd-ing to the root of the target directory and running
$ patch -p0 < app-feature-version.patch
Check for files that did not get patched properly:
$ find . | grep .rej

NavFrame & Sortable Tables


Fun with table columns
Column 1 Column 2




Sorting using nbsps, works on IE but not on Firefox Name
100.3 FM Third
 89.5 FM First
107.3 FM Fourth
 95.3 FM Second

initially expanded initially collapsed
numbers
name number
a 123
b 6
c 45

Restrict Patch

See http://meta.wikimedia.org/wiki/Page_access_restriction_with_MediaWiki

WhitelistRead

$wgWhitelistRead = array ("Main Page", "Special:Userlogin" );
The first line not ending with ]] stops the list of matches.
To use this namespace add the following to includes/Title.php
			/** some pages are explicitly allowed */
+			$lines = explode( "]]\n", wfMsgForContent( 'WhitelistRead' ) );
+			foreach ($lines as $line) {
+				$line = trim($line, '* [[');
+				$wgWhitelistRead[] .= $line;
+			}
			$name = $this->getPrefixedText();

Created a custom logo.

#$wgLogo             = "$wgStylePath/common/images/wiki.png";
$wgLogo             = "$wgStylePath/common/images/dpwiki.png";

Menu Modifications

  • Added support for anchor links to the sidebar function
  • Added Topbar function to includes/Skin.php & includes/SkinTemplate.php
  • Added Topbar to skins/MonoBook.php so editors can see it.
  • Added Rescentchanges and Randompage to the toolbox.
    • line 174 in skins/MonoBook.php added above special items to the array.
  • Nested menus are working in MonoBook and CologneBlue based skins...
    • Changes made to includes/Skin.php, skins/MonoBook.php, skins/CologneBlue.php, skins/common/cologneblue.css, skins/monobook/main.css, and custom skin.
    • Nested menus request

Default Skin

LocalSettings.php

$wgDefaultSkin = 'dpskin31';
  • DPSkin11 is based on MonoBook
  • DPSkin21 is based on CologneBlue
  • DPSkin31 is based on CologneBlue
  • MonoBook is modified to show topbar on the side. Fix DPSkin11 do do this


Search Enhancements

per [3] In includes/SpecialSearch.php there is a function showResults( $term ) which formats and outputs all the search results from a query, near the top add:

$wgOut->addHTML( wfMsg( 'Googlesearch', $term ) ); # add
$wgOut->addWikiText( wfMsg( 'searchresulttext' ) );# above this

In LocalSettings.php

# $wgDisableTextSearch = true;
# $wgSearchForwardUrl = 'http://www.google.com/search?q=$1';
# $wgSearchForwardUrl = 'http://www.google.com/search?q=site%3Adigipen.edu+%22$1';
$wgNamespacesToBeSearchedDefault = array(
-1 => 0,       # Default setting
 0 => 1,       # Main
 1 => 0,       # Main talk
 2 => 0,       # User
 3 => 0,       # User talk
 4 => 1,       # SiteName
 5 => 0,       # SiteName talk
 6 => 1,       # Image
 7 => 0,       # Image talk
 8 => 0,       # MediaWiki
 9 => 0,       # MediaWiki talk
10 => 1,       # Template
11 => 0,       # Template talk
12 => 0,       # Help
13 => 0,       # Help talk
14 => 1,       # Category
15 => 0);      # Category talk

No longer used: Added to skins/DPSkin31.php at about line 407

// Begin New Portions to search more namespaces
$s .= "<input type=\"hidden\" value=\"1\" name=\"ns0\">";  // Main
//$s .= "<input type=\"hidden\" value=\"1\" name=\"ns1\">";  // Talk
$s .= "<input type='hidden' name=\"searchx\" value=\"" . htmlspecialchars( wfMs( "Go" ) ) . "\" />";

Also change this

. "&nbsp&nbsp<input type='submit' name=\"fulltext\" value=\"" . htmlspecialchars( wfMsg( "Go" ) ) . "\" /></form>";

To this

. "&nbsp&nbsp<input type='submit' name=\"searchx\" value=\"" . htmlspecialchars( wfMsg( "Go" ) ) . "\" /></form>";

min word length

mysql

> show variables like 'ft_min_word_len%';

SVN and Trac Management

full notes at definity-systems.org

Etch Packages Subversion 1.1.4 and Trac 0.8.1

$ sudo apt-get install subversion subversion-tools
! libsvn-ruby1.8
+ db4.2-util libconfig-inifiles-perl libneon24 libsvn0
+ python2.3-subversion subversion subversion-tools
$ sudo apt-get install trac enscript
! gv postscript-viewer lpr libapache2-mod-python
!!python-egenix-mxdatetime python-setuptools
+ enscript libsqlite0 python-clearsilver python-sqlite
+ python2.3-clearsilver python2.3-sqlite trac
$ sudo apt-get install python-mysqldb
! python-egenix-mxdatetime python2.3-egenix-mxdatetime
+ python-mysqldb python2.3-mysqldb
$ sudo apt-get install libapache2-svn
$ sudo apt-get install libapache2-mod-python
+ libapache2-mod-python libapache2-mod-python2.3
$ sudo apt-get install python-setuptools
+ python-setuptools python2.3-dev python2.3-setuptools
$ sudo apt-get install python-clearsilver

Initializing projects

More subversion access examples here: http://www.andrewpangborn.com/blog/index.php?/archives/2-SVN-Administration-Fun.html

Manage user access to projects

$ sudo joe /var/www/eaa-phev.org/svn/projects/authz

Manage permissions within trac

sudo trac-admin $tb/$p permission list

Initializing a svn repository & trac project:

p=test_team_one
sb=/var/www/eaa-phev.org/svn/projects
tb=/var/www/eaa-phev.org/trac/projects
tt=/usr/share/trac/templates
sudo svnadmin create "$sb/$p" --fs-type fsfs
sudo chown -R www-data:www-data "$sb/$p"
sudo trac-admin $tb/$p initenv $p sqlite:db/trac.db svn $sb/$p $tt
sudo chown -R www-data:www-data "$tb/$p"
sudo trac-admin $tb/$p permission remove anonymous "TICKET_CREATE" "TICKET_MODIFY" "WIKI_CREATE" "WIKI_MODIFY"
sudo trac-admin $tb/$p permission add authenticated TRAC_ADMIN
echo edit $tb/$p/conf/trac.ini replacing http:\/\/trac.edgewall.com\/ with https:\/\/trac.eaa-phev.org\/projects\/$p
echo edit $tb/$p/conf/trac.ini adding google urchin tracker to footer
#sudo trac-admin $tb/$p initenv $p sqlite:db/trac.db svn $sb/$p $tt #v9+
#sed -i s/http:\/\/trac.edgewall.com\//https:\/\/trac.eaa-phev.org\/projects\/$p $tb/$p/conf/trac.ini

The latest documentation can also always be found on the project website: http://projects.edgewall.com/trac/