[Mediawiki-l] Custom Namespace Categories

Sylvain Machefert iubito at gmail.com
Tue Sep 9 20:38:56 UTC 2008


Hello,

As John Spikowksi, I'd like to create my own namespaces which act as if they
were categories, images, medias. (i.e. extend built-in namespaces)

For namespace which would acts like Image: I'd like to custom the
automatically generated Image:Xyz.gif page, for example Mp3:Myfile.mp3 would
display id3 info and a flash player, QBasic:MySourceCode.bas will syntax
highlight the file in quick basic.
For the QBasic_Category and xyz_Category, they will display and act as
categories, but with another namespace numer.

The big advantage :
- the search and queries (in special page) can be performed on specified
namespaces
- on wiki with user right access per namespace, I can restrict some
images/files to granted user, and let Image: namespace for public visitors.
etc...

2008/9/9, John Spikowski <support at allbasic.info>:
>
> List,
>
> I have setup Mediawiki for the www.AllBasic.Info site and I created custom
> name spaces for each Basic language. I'm having a problem defining or
> understanding how to create categories specific to each language name
> space.
>
> This is what I have defined so far.
>
> ## ProvideX
> $wgExtraNamespaces[100] = "PX";
> $wgExtraNamespaces[101] = "PX_talk";
> $wgContentNamespaces[] = 100;
>
> ## FreeBasic
> $wgExtraNamespaces[102] = "FB";
> $wgExtraNamespaces[103] = "FB_talk";
> $wgContentNamespaces[] = 102;
>
> ## Gambas
> $wgExtraNamespaces[104] = "GB";
> $wgExtraNamespaces[105] = "GB_talk";
> $wgContentNamespaces[] = 104;
>
> ## Visual Basic
> $wgExtraNamespaces[106] = "VB";
> $wgExtraNamespaces[107] = "VB_talk";
> $wgContentNamespaces[] = 106;
>
> ## PureBasic
> $wgExtraNamespaces[108] = "PB";
> $wgExtraNamespaces[109] = "PB_talk";
> $wgContentNamespaces[] = 108;
>
> ## REALbasic
> $wgExtraNamespaces[110] = "RB";
> $wgExtraNamespaces[111] = "RB_talk";
> $wgContentNamespaces[] = 110;
>
> ## ScriptBasic
> $wgExtraNamespaces[112] = "SB";
> $wgExtraNamespaces[113] = "SB_talk";
> $wgContentNamespaces[] = 112;
>
> ## thinBASIC
> $wgExtraNamespaces[114] = "TB";
> $wgExtraNamespaces[115] = "TB_talk";
> $wgContentNamespaces[] = 114;
>
> ## HotBasic
> $wgExtraNamespaces[116] = "HB";
> $wgExtraNamespaces[117] = "HB_talk";
> $wgContentNamespaces[] = 116;
>
> ## EBasic
> $wgExtraNamespaces[118] = "EB";
> $wgExtraNamespaces[119] = "EB_talk";
> $wgContentNamespaces[] = 118;
>
> ## Category Namespaces
> $wgExtraNamespaces[120] = "PX_Category";
> $wgExtraNamespaces[121] = "FB_Category";
> $wgExtraNamespaces[122] = "GB_Category";
> $wgExtraNamespaces[123] = "VB_Category";
> $wgExtraNamespaces[124] = "PB_Category";
> $wgExtraNamespaces[125] = "RB_Category";
> $wgExtraNamespaces[126] = "SB_Category";
> $wgExtraNamespaces[127] = "TB_Category";
> $wgExtraNamespaces[128] = "HB_Category";
> $wgExtraNamespaces[129] = "EB_Category";
>
> If I have a page named "SB:STRING()" and want to assign it to the "SB
> Category:String Functions" category, everything is grouped under "S" due to
> the language name space.
>
> I searched till for hours trying to find the solution to this and nothing.
>
> If anyone could shed some light on using categories that are unique to name
> spaces, I would be very grateful. My wiki project is on hold till this gets
> resolved.
>
>
> Thanks !
>
> John
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>



-- 
Sylvain Machefert

Tous aux Balkans !
http://www.tousauxbalkans.net


More information about the MediaWiki-l mailing list