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
(merge notes from definity-systems)
(→‎NavFrame & Sortable Tables: Use new native https://www.mediawiki.org/wiki/Manual:Collapsible_elements)
Line 282: Line 282:
  
 
=== NavFrame & Sortable Tables ===
 
=== NavFrame & Sortable Tables ===
 +
Use new native https://www.mediawiki.org/wiki/Manual:Collapsible_elements
 +
 +
<s>
 
* [[W:Wikipedia:NavFrame]] Collapsible tables with show / hide buttons
 
* [[W:Wikipedia:NavFrame]] Collapsible tables with show / hide buttons
 
** copy [[W:MediaWiki:Common.js]]  into [[MediaWiki:Common.js]]
 
** copy [[W:MediaWiki:Common.js]]  into [[MediaWiki:Common.js]]
Line 368: Line 371:
 
|}
 
|}
 
|}
 
|}
 +
</s>
  
 
===Restrict Patch===
 
===Restrict Patch===

Revision as of 02:18, 27 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}} 6675
  • {{SUBPAGENAME}} WikiAdmin
  • {{SUBPAGENAMEE}} WikiAdmin

Time Dependent

  • {{CURRENTYEAR}} 2024
  • {{CURRENTMONTH}} 03
  • {{CURRENTMONTHNAME}} March
  • {{CURRENTMONTHABBREV}} Mar
  • {{CURRENTMONTHNAMEGEN}} March
  • {{CURRENTWEEK}} 13
  • {{CURRENTDAY}} 28
  • {{CURRENTDAY2}} 28
  • {{CURRENTDAYNAME}} Thursday
  • {{CURRENTDOW}} 4
  • {{CURRENTTIME}} 21:41
  • {{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

Use new native https://www.mediawiki.org/wiki/Manual:Collapsible_elements


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/