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

User:WikiAdmin

From My wiki
Jump to navigation Jump to search

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}} 6710
  • {{SUBPAGENAME}} WikiAdmin
  • {{SUBPAGENAMEE}} WikiAdmin

Time Dependent

  • {{CURRENTYEAR}} 2020
  • {{CURRENTMONTH}} 10
  • {{CURRENTMONTHNAME}} October
  • {{CURRENTMONTHABBREV}} Oct
  • {{CURRENTMONTHNAMEGEN}} October
  • {{CURRENTWEEK}} 43
  • {{CURRENTDAY}} 23
  • {{CURRENTDAY2}} 23
  • {{CURRENTDAYNAME}} Friday
  • {{CURRENTDOW}} 5
  • {{CURRENTTIME}} 05:14
  • {{NUMBEROFARTICLES}} 125
  • {{NUMBEROFFILES}} 638

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

Examples

Simple

</translate>

<div class="toccolours mw-collapsible" style="width:400px; overflow:auto;">
This text is collapsible. {{Lorem}}
</div>

<translate> Result: </translate>

This text is collapsible. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Using the data-collapsetext and data-expandtext attributes one can define a custom text for the toggle labels added by the script. When added in wikitext these could be populated by a localized message like:

<div class="mw-collapsible" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}">

Simple with title

<div class="toccolours mw-collapsible" style="width:400px; overflow:auto;">
<div style="font-weight:bold;line-height:1.6;">Lorem ipsum sample</div>
<div class="mw-collapsible-content">
This text is collapsible. {{Lorem}}
</div></div>

<translate> Result: </translate>

Lorem ipsum sample
This text is collapsible. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Table

A table can be collapsed like any other element. The difference is that part of the table remains visible, even when collapsed. A table with a caption keeps the caption visible. A table without a caption keeps the first row visible.

{| class="mw-collapsible"
|+ Caption
|-
! scope="col" | Header 1
! scope="col" | Header 2
|-
| Data 1
| Data 2
|}

{| role="presentation" class="mw-collapsible"
|-
| Lorem
| ipsum
|-
| dolor
| sit
|}

<translate> Result: </translate>

Caption
Header 1 Header 2
Data 1 Data 2

With specified initial state

You can add mw-collapsed after mw-collapsible to have the content collapsed by default when you load the page.

To set the initial state as collapsed add "mw-collapsed", such as seen in the following table:

{| class="mw-collapsible mw-collapsed wikitable"
! The header || remains visible
|-
| This  content || is hidden
|-
| at first || load time
|}
The Header remains visible
This content is hidden
at first load time

With specified collapsible part

By default, a collapsible non-table element collapses completely.

To keep some content visible, even when collapsed, you can specify which part is the collapsible content.

<div class="toccolours mw-collapsible mw-collapsed">
This text is not collapsible; but the next is collapsible and hidden by default:
<div class="mw-collapsible-content">{{Lorem}}</div>
</div>

<translate> Result: </translate>

This text is not collapsible; but the next is collapsible and hidden by default:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

With custom toggle link

{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}} If you don't want the script to put the default toggle link (whether or not with a custom label) in your element, you can make one of your own. This could reside anywhere inside or outside the collapsible element. Its relationship to the collapsible element is detected by using an ID attribute with the prefix mw-customcollapsible and a corresponding class attribute with prefix mw-customtoggle for the collapsible element and the togglelink respectively. All toggle links with the same suffix will toggle all collapsible elements with the same suffix.

<span class="mw-customtoggle-myDivision">Toggle link</span>
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-myDivision">Toggled text</div>
<span class="mw-customtoggle-myDivision">Additional toggle link</span>
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-myDivision">Additional toggled text</div>

<translate> Result: </translate>

Toggle link

Toggled text

Additional toggle link

Additional toggled text

As part of an infobox

You can also use collapsible elements in infoboxes, such as seen in the example on the right.

My infobox with collapsible info
Title Sample
Lorem Ipsum
More info
Number Letter
1 A
2 B
3 C

Move toggle link to the left

Wide images and long bare URLs in collapsible tables or elements can cause the toggle link to go offscreen to the right when expanded. In cell phones for example. Sometimes it is difficult or impossible to get over to the toggle link to click it and close it. The following CSS puts the toggle link all the way to the left, and leaves a little space between it and the text to its right. The toggle link position does not change as the table or element is expanded or collapsed. Place the CSS in common.css by editing page "Mediawiki:common.css". Also edit mobile.css if you are importing jquery.makeCollapsible into mobile.js. For examples see common.css, mobile.js, and mobile.css

/* Collapsible elements. Toggle-link moved to left.
/* Margin around it adjusted. */

.mw-collapsible span.mw-collapsible-toggle {
    float:left;
    margin-left:0;
    margin-right:1em;
}



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/