MediaWiki: Difference between revisions

From Yggenyk
Jump to navigation Jump to search
No edit summary
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
==MediaWiki til andre formater==
* [https://www.mediawiki.org/wiki/Publishing_from_MediaWiki#Built-in_methods_of_exporting_data_via_the_interface Publishing from MediaWiki]
==Broken links==
* [http://www.brokenlinkcheck.com Brokenlinkcheck]
==Menu system==
* [http://www.yggenyk.dk/wiki/MediaWiki:SidebarTree Edit sidebar]
* [http://www.yggenyk.dk/wiki/index.php?title=MediaWiki:Common.js&action=edit Common.js select selected page in Sidebar menu]
* [https://www.mediawiki.org/wiki/Extension:TreeAndMenu Extension:TreeAndMenu]
* [http://www.yggenyk.dk/wiki/index.php?title=MediaWiki:Common.js&action=edit Maintenance scripts]
* [https://www. Upragrading versionmediawiki.org/wiki/Manual:Upgrading]
tp://www.mediawiki.org/wiki/Manual:RefreshLinks.php Manual:refreshLinks.php]
php maintenance/refreshLinks.php
==Web Page Analyzers==
[http://www.seowebpageanalyzer.com/ SEO Web Page Analyzer]
==Mobile Android...==
* [https://github.com/hcatlin/wikimedia-mobile#readme wikimedia-mobile]
==Fixes==
====Silverlight extension====
Javascript error handler removed otherwise we can't edit and login
====Google Maps'''====
* [http://www.mediawiki.org/wiki/Extension_talk:Google_Maps#FIXED_in_the_latest_releases_9.2F29.2F09 FIXED in the latest releases 9/29/09]
Edit the file GoogleMaps.body.php
Change this line:
      function render16 ( $pContent, $pArgv, &$pParser ) {
to
      function render16 ( $pContent, $pArgv, $pParser ) {
It seems to be a PHP5.3 side effect. The error you get after upgrading to the newest stuff is:
====Extension:Add HTML Meta and Title====
Changed
function renderSEO( $text, $params = array(), &$parser ) {
=>
function renderSEO( $text, $params = array(), $parser ) {
Changed
$new_title .= ", $content";
=>
$new_title .= " - $content";
====MetaKeywordsTag====
Changed
function renderMetaKeywordsTag( $text, $params = array(), &$parser ) {
=>
function renderMetaKeywordsTag( $text, $params = array(), $parser ) {
==New server==
[http://www.mediawiki.org/wiki/TurnKey_MediaWiki TurnKey MediaWiki]
* [http://www.mediawiki.org/wiki/Manual:Moving_a_wiki Manual:Moving a wiki]
* [http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki Manual:Backing up a wiki]
* [http://www.mediawiki.org/wiki/Manual:Upgrading Manual:Upgrading]
* [http://www.mediawiki.org/wiki/Manual:Installation_requirements Manual:Installation requirements]
* [http://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Ubuntu This guide is to help other users manually install MediaWiki on an Ubuntu server installation using primarily Terminal commands.]
* [http://www.mediawiki.org/wiki/Manual:Short_URL/Apache_Rewrite_rules Manual:Short URL/Apache Rewrite rules]
* [http://httpd.apache.org/docs/1.3/sections.html Apache - How Directory, Location and Files sections work]
* [http://www.mediawiki.org/wiki/Database Mediawiki database layout]
php.ini:
memory_limit = 512M
post_max_size = 200M
upload_max_filesize = 200M
Restart Apache afterwards??
* [http://www.mediawiki.org/wiki/Extension:Google_Analytics Extension:Google Analytics]
Turnkey
* [http://www.turnkeylinux.org/docs/importing-your-previous-mediawiki-tkmw Importing a previous mediawiki into TKMW]
==TODO==
Test response tiden med:
* [http://apm.mywebcheck.com/ Apica WebPerformance Free]
Test jævnligt med http://tools.pingdom.com/fpt/ at siderne loader på ca. 2 sek.
http://www.websiteoptimization.com/ Web Page Analyzer - 0.98 - from Website Optimization Free Website Performance Tool and Web Page Speed Analysis]
* skins/gumax/headbg.jpg manglede og gav lange loadtider. Den vises ikke og burde derfor måske fjernes fra main.css
* Det kan også være andre ting kan fjernes
*  skins/GuMax.php  echo date("F j, Y, l") ?> Date taget ud på grund af cache. Hvis det kan laves med clientscript så skal den ind igen
http://www.blog.concept-i.dk/adwords-landingssider/ Langsomme sider giver højere klikpris (lavere)]
Mest besøgte hjemmesider
Mest besøgte hjemmesider
* [http://www.fdim.dk/ FDIM - Foreningen af Danske InternetMedier]
* [http://www.fdim.dk/ FDIM - Foreningen af Danske InternetMedier]
==Hide pages==
* [http://www.mediawiki.org/wiki/Extension:Hidden_pages Extension:Hidden pages]
==Search==
* [http://www.searchtools.com/analysis/mediawiki-search/index-mediawiki-search-stinks.html Why MediaWiki Site Search Stinks]


==Purge Cache TAB==
==Purge Cache TAB==
Line 103: Line 207:
* [http://meta.wikimedia.org/wiki/Help:ParserFunctions Help:ParserFunctions]
* [http://meta.wikimedia.org/wiki/Help:ParserFunctions Help:ParserFunctions]


==Different tiools for converting documents to mediawiki markup==
==Different tools for converting documents to mediawiki markup==
* [http://openwetware.org/wiki/Converting_documents_to_mediawiki_markup Converting documents to mediawiki markup]
* [http://openwetware.org/wiki/Converting_documents_to_mediawiki_markup Converting documents to mediawiki markup]


Line 137: Line 241:
Use this Article to edit the Navigation Menu [[NavTree]]<br>
Use this Article to edit the Navigation Menu [[NavTree]]<br>
Use this Article to edit the Navigation Menu Tree item [[Template:NavCat]]
Use this Article to edit the Navigation Menu Tree item [[Template:NavCat]]
{{NavCat3|GPS}}


{{#tree:
{{#tree:
Line 203: Line 309:
* [http://search.msn.com/docs/submit.aspx Microsofts submit a site page - here you can try to (re)submit your page if it is not indexed]
* [http://search.msn.com/docs/submit.aspx Microsofts submit a site page - here you can try to (re)submit your page if it is not indexed]
* [https://siteexplorer.search.yahoo.com/mysites Yahoo mysites]
* [https://siteexplorer.search.yahoo.com/mysites Yahoo mysites]
==Web speed==
* [http://tools.pingdom.com/fpt/ Pingdom Tools - Smart tool til at teste hvor lang tid det tager at loade en webside]


==Site Maps==
==Site Maps==
Create new sitemap for Yggenyk.dk
Create new sitemap for Yggenyk.dk
# Klik på dette link [[Special:GoogleSitemap&limit=1000&offset=0]] (den laver en ny xml fil straks!)
# Klik på dette link [[Special:GoogleSitemap&limit=1000&offset=0]] (den laver en ny xml fil straks!)
 
Slet derefter cachen og go til http://www.xml-sitemaps.com/ og generer en ny sitemap. Det laver også en ny cache.
Hvis der skal eksluderes noget gøres det i wiki\includes\SpecialGoogleSitemap.php som automatisk fjerner ting som '''Sandbox''', '''MediaWiki''', '''Kogebog''' og '''Image:''', '''Templates:''', '''NavTree''', '''NavTreeTest''', '''NavCat''' og '''Categories:''' undtagen '''Danske sider''' og '''English pages'''.
Hvis der skal eksluderes noget gøres det i wiki\includes\SpecialGoogleSitemap.php som automatisk fjerner ting som '''Sandbox''', '''MediaWiki''', '''Kogebog''' og '''Image:''', '''Templates:''', '''NavTree''', '''NavTreeTest''', '''NavCat''' og '''Categories:''' undtagen '''Danske sider''' og '''English pages'''.
Den er også ændret så den indekserer 500 sider.
Den er også ændret så den indekserer 500 sider.

Latest revision as of 06:05, 9 January 2017

MediaWiki til andre formater

Broken links

Menu system



tp://www.mediawiki.org/wiki/Manual:RefreshLinks.php Manual:refreshLinks.php] php maintenance/refreshLinks.php



Web Page Analyzers

SEO Web Page Analyzer

Mobile Android...

Fixes

Silverlight extension

Javascript error handler removed otherwise we can't edit and login

Google Maps

Edit the file GoogleMaps.body.php

Change this line:

     function render16 ( $pContent, $pArgv, &$pParser ) {

to

     function render16 ( $pContent, $pArgv, $pParser ) {

It seems to be a PHP5.3 side effect. The error you get after upgrading to the newest stuff is:

Extension:Add HTML Meta and Title

Changed

function renderSEO( $text, $params = array(), &$parser ) {

=>

function renderSEO( $text, $params = array(), $parser ) {

Changed

$new_title .= ", $content";

=>

$new_title .= " - $content";

MetaKeywordsTag

Changed

function renderMetaKeywordsTag( $text, $params = array(), &$parser ) {

=>

function renderMetaKeywordsTag( $text, $params = array(), $parser ) {

New server

TurnKey MediaWiki

php.ini:

memory_limit = 512M
post_max_size = 200M
upload_max_filesize = 200M
Restart Apache afterwards??

Turnkey

TODO

Test response tiden med:

Test jævnligt med http://tools.pingdom.com/fpt/ at siderne loader på ca. 2 sek. http://www.websiteoptimization.com/ Web Page Analyzer - 0.98 - from Website Optimization Free Website Performance Tool and Web Page Speed Analysis]

  • skins/gumax/headbg.jpg manglede og gav lange loadtider. Den vises ikke og burde derfor måske fjernes fra main.css
  • Det kan også være andre ting kan fjernes
  • skins/GuMax.php echo date("F j, Y, l") ?> Date taget ud på grund af cache. Hvis det kan laves med clientscript så skal den ind igen

http://www.blog.concept-i.dk/adwords-landingssider/ Langsomme sider giver højere klikpris (lavere)]

Mest besøgte hjemmesider

Hide pages

Search

Purge Cache TAB

http://www.mediawiki.org/wiki/File_cache

Optimering og overvågning


Benchmark Tools

The script is used by Free-Webhosts.com to compare the web server speeds of free PHP web hosting providers.

Click here to run: http://www.yggenyk.dk/wiki/php-benchmark.php

  • 21. Marts 2008 09:15 her fungerer serveren fint
Lowest time: 35 ms , Highest time : 38 ms
Average of all 12 times: 36 ms
Average of middle 10 times: 35 ms

URL's som C# og C++

Ledige domænenavne

  • domaintips.dk
  • www.digitalliving.dk
  • www.ctrl-g.dk
  • www.centeroftheworld.dk

Er taget

  • www.digitallife.dk
  • www.galaxy.dk

Gadgets

Disse er vist ikke nødvendige

Getting started !

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

How do I customize the navigation bar?

The contents of the navigation bar which appears to the left of each page using the Monobook skin are determined by the MediaWiki:Sidebar page. For information on customising these, please see Manual:Navigation bar.

This is removed from my navigation bar

    • portal-url|portal
    • currentevents-url|currentevents
    • recentchanges-url|recentchanges
    • randompage-url|randompage
    • helppage|help
    • sitesupport-url|sitesupport

Editing

Magic Words

Table of contents

General

This is a list of conversion tools and plugins for editing.

Pictures and images

Tables

Templates

Different tools for converting documents to mediawiki markup

Skins

Pages with nice look


Læs mere her DPL Manual DPL Manual

Returning page itself - Search for DynamicPageList "treeview" categories "current page"
Indeed, DPL always skips the page containing the DPL statement itself. Older versions which returned this page led to undesirable situations, to loops and to unwanted results. Maybe it could be made configurable because it depends on the discipline and design of the authors who write dpl scripts whether it seems acceptable (or even better as you pose) to include self references in the result.

You can easily comment the line out which blocks self references. 217.111.20.10 11:41, 12 June 2007 (CEST)

I can understand that there might be technical issues involving loops and such, but I can't imagine that the typical situation is where one would want to explicitly exclude the current page. It seems like it'd be easy to remove the current page using nottitlematch=MediaWiki but there is no way to do the reverse and to include the current page. I don't know which line to comment out in the code and I'd rather not do it if there other issues like infinite loops. By the way, the application that I need this for is for a way to auto-summarize a page. At the top of a page, I want to auto generate a summary of the templates being used from that page. So moving the summary to a different page is not an option for this purpose. In the main source code file (the really large one ;-) there is a comment which explicitly says : "block recursion". You can try to comment out the if statement that immediately follows. If you want a list of templates being called from the current page you might want to have a look into the mediawiki source code. When you edit a file these templates (including those which are indirectly referenced) are shown by the mediawiki software. So there must be a functionality to calculate that list... But I don' t think it can be done without programming. Gero 18:26, 13 June 2007 (CEST)

Skin template is saved in /wiki/skins/gumax/gumax_main.css
For font and css help see: http://www.pageresource.com/dhtml/csstut8.htm

Use this Article to edit the Navigation Menu NavTree
Use this Article to edit the Navigation Menu Tree item Template:NavCat

{{#categorytree:GPS|onlyroot=on|mode=pages|style=background-color:white; width:100%;margin-top: 0.0ex;margin-bottom: 0.0ex;}}


Arrow-closed.png Arrow-open.png Blank.gif Doc3.gif Doc4.gif Doc-icon.gif File icon.gif Folder opn sml blu.gif Folder opn sml grn.gif Folder opn sml pur.gif Folder opn sml red.gif Folder opn sml yel.gif Folder sml blu.gif Folder sml grn.gif Folder sml pur.gif Folder sml red.gif Folder sml yel.gif Lastnode.gif Minus.gif Node.gif Plus.gif Vertline.gif

Google Extensions

Extensions

Search engine Crawler detection

Search engine settings

Web speed

Site Maps

Create new sitemap for Yggenyk.dk

  1. Klik på dette link Special:GoogleSitemap&limit=1000&offset=0 (den laver en ny xml fil straks!)

Slet derefter cachen og go til http://www.xml-sitemaps.com/ og generer en ny sitemap. Det laver også en ny cache. Hvis der skal eksluderes noget gøres det i wiki\includes\SpecialGoogleSitemap.php som automatisk fjerner ting som Sandbox, MediaWiki, Kogebog og Image:, Templates:, NavTree, NavTreeTest, NavCat og Categories: undtagen Danske sider og English pages. Den er også ændret så den indekserer 500 sider.

Here you can read about how to avoid Google scanning all special pages with robot.txt

Se hvordan man burde kunne skjule historien på billedsider (jeg har prøvet, men så kan logged in users heller ikke se den). Her er også et eksempel på hvordan man laver en sitemap. Og andet...


Verify your html with W3C tools

Adsense tips

Optimering mod søgemaskiner

Google Analytics

Google Maps

Extension tag for adding <meta> keywords to the document header

Dette er sakset fra en anden side

If you are using Wordpress, use this handy sitemap generator. This plugin generates a Google Sitemaps compliant sitemap of your WordPress blog.

A free tool that will crawl a website and generate a ROR Sitemap up to 1,000 URLs for every search engines, not just Google

Kan ikke finde ud af hvad den ikke skal scanne This tool creates a sitemap as defined by Google™ for a website.

Google beta sitemap generator

Free Online Sitemap Generator that will build Site Maps online (XML, ROR, Text, HTML)

Nice short url's

I got the short/pretty url's working by following the description from:

I have one.com as host, and the section Solution without alias works on one.com. Below is my modified version showing how I added pretty url's to http://www.yggenyk.dk

My site http://www.yggenyk.dk is in ~/web_root/wiki

Using this .htaccess in my http://www.yggenyk.dk directory, I was able to use short URLs and the redirection.

My Main_Page is renamed to Home. If your's is called Main_Page replace Home with Main_Page below.

My site is hosted at one.com.

In ~/web_root/.htaccess

RewriteEngine On
#Redirect http://yggenyk.dk to http://www.yggenyk.dk
RewriteCond %{HTTP_HOST} ^yggenyk.dk
RewriteRule ^(.*)$ http://www.yggenyk.dk/$1 [r=301,L]
RedirectMatch ^/$ http://www.yggenyk.dk/wiki
RewriteCond %{REQUEST_URI} ^/wiki$
RewriteRule ^(.*) /wiki/index.php?title=Home [L]

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^wiki/(.*) wiki/index.php?title=$1 [PT,L,QSA]

In ~/web_root/wiki/LocalSettings.php

$wgServer = "http://www.yggenyk.dk";
$wgArticlePath = "/wiki/$1";

If you want to know more about URL rewriting read here:

Pæne korte url's

Rename Main page

Display any page, say, the main page. Then go to the URL in your browser's URL input line and replace the text "Main_Page" with "Mediawiki:mainpage". It should look like: http://www.yggenyk.dk/index.php?title=MediaWiki:Mainpage

Then click the "go" button (or hit "enter" on your keyboard) to display that page. You can then click the edit tab... (actually, if you just click on the link I just pasted here to your wiki, that will do it too).

Aside: This is one way to create a new page as well - just replace the displayed page name with the name of a new page and try to display that - MediaWiki will show a that the page doesn't exist and offer to let you edit that to create it.

Opening external links in a new window

Backup

AdSense

Printing

Printable version

Printable version

How to Embed FLV Video in MediaWiki

id=siteTree