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
(→‎Version 1: showing templates and images...)
(* [https://conwaylife.com/forums/viewtopic.php?f=4&p=87052 Rename Error])
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{TOCright}}
 
{{TOCright}}
  
User Management: [[Special:Userlogin]] - [[Special:Listusers]] - [[Special:Userrights]]
+
* [https://conwaylife.com/forums/viewtopic.php?f=4&p=87052 Rename Error]
  
[[Special:Interwiki]] Management - [http://meta.wikimedia.org/wiki/Help:Interwiki_links Interwiki Help]
+
==User Management==
 +
*[[Special:Userlogin]] - Follow "Create an account" link.
 +
** Supply UserName, Full Name, and Email address, then click on "By email" link.
 +
** Attempt to create the new users initial page, describing who they are.
 +
*[[Special:Listusers]] - List of current users and their rights.
 +
*[[Special:Userrights]] - Change users rights and permissions.
 +
*[[User:WikiAdmin/Preferences]] - New user orientation page.
  
 
==Namespace==
 
==Namespace==
Line 9: Line 15:
 
** [[MediaWiki:Whitelistedittext]]
 
** [[MediaWiki:Whitelistedittext]]
 
** [[MediaWiki:Loginprompt]]
 
** [[MediaWiki:Loginprompt]]
** [[MediaWiki:Sidebar]]
+
** '''[[MediaWiki:Sidebar]]''' - The Main Menu on the left side of all pages.
 +
** '''[[MediaWiki:Sitenotice]]''' - A place to put a notice which appears on all pages.
 +
** [[MediaWiki:Anonnotice]] (will supersede Sitenotice for anonymous users, so don't use)
 
<!-- ** [[MediaWiki:Topbar]] -->
 
<!-- ** [[MediaWiki:Topbar]] -->
 
** [[MediaWiki:Sitetitle]]      = {{INT:Sitetitle}}
 
** [[MediaWiki:Sitetitle]]      = {{INT:Sitetitle}}
 
** [[MediaWiki:Pagetitle]]      = {{INT:Pagetitle}}
 
** [[MediaWiki:Pagetitle]]      = {{INT:Pagetitle}}
 
<!-- ** [[MediaWiki:Wikititlesuffix]] = {{INT:Wikititlesuffix}} -->
 
<!-- ** [[MediaWiki:Wikititlesuffix]] = {{INT:Wikititlesuffix}} -->
 +
** [[MediaWiki:Spamprotectiontext]]
 +
** [[MediaWiki:Common.js]]
 +
** [[MediaWiki:Common.css]]
 +
 +
<!-- /wiki/includes/MagicWords.php -->
 +
<!-- Include pages {{:History}} {{:Mission}} -->
 +
 +
[[Special:Interwiki]] Management - [http://meta.wikimedia.org/wiki/Help:Interwiki_links Interwiki Help]
 +
 +
Use http://www.eaa-phev.org/wiki/index.php?flushcache to flush this servers cache.
 +
 +
* E-mail templates
 +
** [[Template:EMailLinkWebguy]]  = {{EMailLinkWebguy}}
 +
** [[Template:EMailLinkAccounts]] = {{EMailLinkAccounts}}
 +
** [[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 ===
 +
* http://meta.wikimedia.org/wiki/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 ===
 +
* 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 ===
 +
Use new native https://www.mediawiki.org/wiki/Manual:Collapsible_elements
 +
 +
=== Examples === <!--T:8-->
 +
 +
==== Simple ==== <!--T:9-->
 +
</translate>
 +
<!-- overflow:auto; to fix collapsed display, because the toggle link has float:right; -->
 +
<pre>
 +
<div class="toccolours mw-collapsible" style="width:400px; overflow:auto;">
 +
This text is collapsible. {{Lorem}}
 +
</div>
 +
</pre>
 +
 +
<translate>
 +
<!--T:10-->
 +
Result:
 +
</translate>
 +
 +
<!-- overflow:auto; to fix collapsed display, because the toggle link has float:right; -->
 +
<div class="toccolours mw-collapsible" style="width:400px; overflow:auto;">
 +
This text is collapsible. {{Lorem}}
 +
</div>
 +
 +
Using the <code>data-collapsetext</code> and <code>data-expandtext</code> 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:
 +
 +
<pre>
 +
<div class="mw-collapsible" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}">
 +
</pre>
 +
 +
==== Simple with title ====
 +
 +
<pre>
 +
<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>
 +
</pre>
 +
 +
<translate>
 +
<!--T:11-->
 +
Result:
 +
</translate>
 +
 +
<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>
 +
 +
==== 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.
 +
 +
<pre>
 +
{| 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
 +
|}
 +
</pre>
 +
 +
<translate>
 +
<!--T:12-->
 +
Result:
 +
</translate>
 +
 +
{| class="mw-collapsible wikitable"
 +
|+ Caption
 +
! scope="col" | Header 1
 +
! scope="col" | Header 2
 +
|-
 +
| Data 1
 +
| Data 2
 +
|}
 +
 +
{| role="presentation" class="mw-collapsible wikitable"
 +
| Lorem
 +
| ipsum
 +
|-
 +
| dolor
 +
| sit
 +
|}
 +
 +
==== With specified initial state ====
 +
 +
You can add <code>mw-collapsed</code> after <code>mw-collapsible</code> to have the content collapsed by default when you load the page.
 +
 +
To set the initial state as collapsed add "<code>mw-collapsed</code>", such as seen in the following table:
 +
<pre>
 +
{| class="mw-collapsible mw-collapsed wikitable"
 +
! The header || remains visible
 +
|-
 +
| This  content || is hidden
 +
|-
 +
| at first || load time
 +
|}
 +
</pre>
 +
 +
{| class="mw-collapsible mw-collapsed wikitable"
 +
! 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.
 +
 +
<pre>
 +
<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>
 +
</pre>
 +
 +
<translate>
 +
<!--T:13-->
 +
Result:
 +
</translate>
 +
 +
<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>
 +
 +
==== With custom toggle link ====
 +
{{Note|This method is inaccessible and confusing to screenreader users. Avoid using it}}
 +
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 <code>mw-customcollapsible</code> and a corresponding class attribute with prefix <code>mw-customtoggle</code> for the collapsible element and the togglelink respectively. All toggle links with the same suffix will toggle all collapsible elements with the same suffix.
 +
 +
<pre>
 +
<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>
 +
</pre>
 +
 +
<translate>
 +
<!--T:14-->
 +
Result:
 +
</translate>
 +
 +
<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>
 +
 +
==== As part of an infobox ====
 +
You can also use collapsible elements in infoboxes, such as seen in the example on the right.
 +
 +
{| class="infobox"
 +
| colspan="2" | '''My infobox with collapsible info'''
 +
----
 +
|-
 +
! Title
 +
| Sample
 +
|-
 +
! Lorem
 +
| Ipsum
 +
|-
 +
! More info
 +
|<!--
 +
-->
 +
{| class="wikitable mw-collapsible mw-collapsed" style="width:100%; margin:0;"
 +
! Number
 +
! Letter
 +
|-
 +
| 1
 +
| A
 +
|-
 +
| 2
 +
| B
 +
|-
 +
| 3
 +
| C
 +
|}<!--
 +
-->
 +
|}
 +
{{clear}}
 +
 +
==== 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 [http://cannabis.shoutwiki.com/wiki/MediaWiki:Common.css common.css], [http://cannabis.shoutwiki.com/wiki/MediaWiki:Mobile.js mobile.js], and [http://cannabis.shoutwiki.com/wiki/MediaWiki:Mobile.css mobile.css]
 +
 +
<pre>
 +
/* 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;
 +
}
 +
</pre>
  
==Schematics==
 
===Version 2===
 
*  [[Template:PriusPlus Schematics small]]
 
*  [[Template:PriusPlus Schematics]]
 
** [[Template:PriusPlus ControlSchematic]]
 
** [[Template:PriusPlus BatteryTapEmulatorSchematic]]
 
** [[Template:PriusPlus HighPowerSchematic]]
 
** [[Template:PriusPlus CableAssys]]
 
===Version 1===
 
[[Image:EAA-PHEV-PRIUS-HighPowerSchematicV1a 060116.png|thumb|right|High Power Schematic]]
 
[[Image:EAA-PHEV-PRIUS-BatteryTapEmulatorSchematicV1a 060118.png|thumb|right|Battery Tap Emulator]]
 
[[Image:EAA-PHEV-PRIUS-ControlSchematicV1 060118.png|thumb|right|SOC & Control Schematic]]
 
  
** [[Template:EAA-PHEV-Prius-Schematics-small]]
+
<s>
** {{EAA-PHEV-Prius-Schematics-small}}
+
* [[W:Wikipedia:NavFrame]] Collapsible tables with show / hide buttons
** [[Template:EAA-PHEV-Prius-Schematics]]
+
** copy [[W:MediaWiki:Common.js]]  into [[MediaWiki:Common.js]]
** {{EAA-PHEV-Prius-Schematics}}
+
** copy [[W:MediaWiki:Common.css]] into [[MediaWiki:Common.css]]
** [[Template:EAA-PHEV-PRIUS-ControlSchematic]]
+
** ''[[W:MediaWiki:Monobook.css]]'' optional
** {{EAA-PHEV-PRIUS-ControlSchematic}}
+
* http://meta.wikimedia.org/wiki/Help:Sorting
** [[Template:EAA-PHEV-PRIUS-BatteryTapEmulatorSchematic]]
+
----
** {{EAA-PHEV-PRIUS-BatteryTapEmulatorSchematic}}
+
{| class="toccolours collapsible" width="60%" align=right
** [[Template:EAA-PHEV-PRIUS-HighPowerSchematic]]
+
!colspan="2"| Fun with table columns
** {{EAA-PHEV-PRIUS-HighPowerSchematic}}
+
|-
 +
| 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
 +
|}
 +
|}
 +
|}
 +
</s>
  
<!-- /wiki/includes/MagicWords.php -->
+
===Restrict Patch===
<!-- Include pages {{:History}} {{:Mission}} -->
+
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==
 +
per [http://meta.wikimedia.org/wiki/How_to_add_Google_search_to_your_MediaWiki_Search_Results_Page] 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
 +
* [[MediaWiki:Googlesearch]] fix $3 and cleanup?
 +
* [[MediaWiki:Nogomatch]] remove prompt to create page?
 +
* [[MediaWiki:Searchresulttext]] cleanup/clear
 +
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==
 +
[http://www.definity-systems.org/wiki/User:Rjf/HowTo_Notes#Debian_Etch_Subversion_and_Trac 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/

Latest revision as of 07:20, 6 May 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}} 6710
  • {{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}} 12:46
  • {{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

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/