PartioWiki:Interwiki
Tämä sivu on englanniksi, jotta se tukisi myös muilla kielillä toteutettuja partiowikejä. This page is in English, so our foreign friends could use this information with their own scoutwikies.
Disclamer
These instructions has been written only experience from PartioWiki. Check the Versions of this mediawiki. The operating system is Debian.
Interwiki
Interwiki is way to link different sites without posting the actual URLs. By default Mediawiki installation come with interwiki table. So you should be able to link like this: meatball:InterWiki what links to http://www.usemod.com/cgi-bin/mb.pl?InterWiki
Now to add new scoutwikis to your interwiki table do this:
Copy interwiki maintenance sql-script to different name, so it will not destroy when you upgrade your mediawiki
wiki@PW:/www/wiki.partio/htdocs$ cd maintenance/
wiki@PW:/www/wiki.partio/htdocs/maintenance$ cp interwiki.sql scoutinterwiki.sql
Append new interwiki prefixes with the site URLs
scoutinterwiki.sql
should look like this:
-- Based more or less on the public interwiki map from MeatballWiki -- Default interwiki prefixes... REPLACE INTO /*$wgDBprefix*/interwiki (iw_prefix,iw_url,iw_local) VALUES ('abbenormal','http://www.ourpla.net/cgi-bin/pikie.cgi?$1',0), ('zwiki','http://www.zwiki.org/$1',0), -- Many lines removed for this wikipage, do not delete from actual file. ('partiowiki','http://wiki.partio.net/$1',0), ('scoutpedia','http://www.scoutpedia.nl/index.php/$1',0), ('scoutpedia.com','http://www.scoutpedia.com/index.php/$1',0), ('scout-o-wiki','http://scout-o-wiki.de/index.php/$1',0), ('gondi-online','http://www.gondi-online.de/index.php/$1',0), ('pfadiwiki','http://www.pfadiwiki.ch/index.php/$1',0), ('wikiroca','http://wiki.larocadelconsejo.net/index.php?title=$1',0), ('schlauesbuch','http://www.schlauesbuch.de/wiki/$1',0), ('scoutwiki.nl','http://scoutwiki.nl/wiki/$1',0), ('scoutaid','http://scoutaid.patrickleibold.de/sub.content.php?cid=$1',0), ('roexploratori','http://www.roexploratori.ro/tiki/tiki-index.php?page=$1',0), ('scoutopedia','http://www.scoutopedia.net/index.php?title=$1',0);
This file should be the same in every scoutwikies! Please modify to you comfort!
Check your databasename, dbuser, dbpassword
LocalSettings.php
has all of those.
wiki@PW:/www/wiki.partio/htdocs/maintenance$ cd .. wiki@PW:/www/wiki.partio/htdocs$ cat LocalSettings.php | grep wgDB $wgDBserver = "localhost"; $wgDBname = "pwdatabase"; $wgDBuser = "pwdbuser"; $wgDBpassword = "hI1N80S"; $wgDBprefix = ""; $wgDBmysql4 = true; $wgDBmysql5 = false;
Run the SQL script, so those interwiki-prefixes will be stored into database
Do it mysql..
wiki@rissa:/services/www/wiki.partio.net/htdocs$ mysql -u pwdbuser -p pwdatabase Enter password: Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 192778 to server version: 4.0.24_Debian-10sarge2-log Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> \. maintenance/scoutinterwiki.sql Query OK, 370 rows affected (0.08 sec) Records: 185 Duplicates: 185 Warnings: 0 mysql> \q Bye wiki@PW:/www/wiki.partio/htdocs$
Now you should be able to link [[partiowiki:B-P]].
The interwiki part is done.
Language link
To make language links, we have to tell what interwiki prefix is used to language links, and what is the corresponing "display name".
That is done with the languages/Names.php
languages/Names.php
should look like this:
<?php /** * @package MediaWiki * @subpackage Language */ /* private */ $wgLanguageNames = array( 'aa' => 'Afar', # Afar 'zu' => 'isiZulu', # Zulu #Many lines removed for this wikipage, do not delete from actual file. 'scoutopedia' => 'Ranskaksi', #scoutopedia.net 'scoutpedia' => 'Hollanniksi', #scoutpedia.nl 'scoutpedia.com' => 'English-BSA', #scoutpedia.com 'scout-o-wiki' => 'German 1', 'gondi-online' => 'German 2', 'pfadiwiki' => 'German-Swiss', 'wikiroca' => 'Spanish', 'schlauesbuch' => 'German 3', 'scoutwiki.nl' => 'Dutch 2', 'scoutaid' => 'German 4', 'roexploratori' => 'Romanian' ); ?>
This file should be the same in every scoutwikies! Please modify to you comfort!
And you are all done. Now you should be able to create language links with [[partiowiki:B-P]] and normal interwiki links with [[:partiowiki:B-P]].