Hello,
I know how to add a new namespace, that's OK. But I'd like this namespace behave like categories : if I call MyNamespace:Foobar, if this page doesn't exist, I'd like to display an automatically generated content, for instance <my_extension>blabla</my_extension>
I don't want to display a list of articles as if it were a category, I'd like to know the way to generate automatic content for non-existing (or all) pages in this namespace.
salut http://www.mediawiki.org/wiki/Extension:Boilerplate ? @+
----- Original Message ----- From: "Sylvain Machefert" iubito@gmail.com To: "MediaWiki announcements and site admin list" mediawiki-l@lists.wikimedia.org Sent: Monday, March 17, 2008 6:40 PM Subject: [Mediawiki-l] how to create a custom namespace with special content(like categories) ?
Hello,
I know how to add a new namespace, that's OK. But I'd like this namespace behave like categories : if I call MyNamespace:Foobar, if this page doesn't exist, I'd like to display an automatically generated content, for instance <my_extension>blabla</my_extension>
I don't want to display a list of articles as if it were a category, I'd like to know the way to generate automatic content for non-existing (or all) pages in this namespace.
-- Sylvain Machefert http://www.tousauxbalkans.net http://iubito.free.fr/blog/ _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-- No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 16/03/2008 10:34
Merci but that's not what I want. Boilerplate, as I understand write a predefine content in the textbox when editing a new page.
I want the same behaviour than categories : go to Category:Portnawak (a name that doesn't exist) in your wiki, you don't see the edit form, but you see the list of subcategories and articles, if there are. In my namespace I want to replace this content (titles, lists of subcaterogies/pages) by another one (title + call to an extension).
2008/3/17, Dr JFBurté burtejf@orange.fr:
salut http://www.mediawiki.org/wiki/Extension:Boilerplate ? @+
----- Original Message ----- From: "Sylvain Machefert" iubito@gmail.com To: "MediaWiki announcements and site admin list" mediawiki-l@lists.wikimedia.org Sent: Monday, March 17, 2008 6:40 PM Subject: [Mediawiki-l] how to create a custom namespace with special content(like categories) ?
Hello,
I know how to add a new namespace, that's OK. But I'd like this namespace behave like categories : if I call MyNamespace:Foobar, if this page doesn't exist, I'd like to display an automatically generated content, for instance <my_extension>blabla</my_extension>
I don't want to display a list of articles as if it were a category, I'd like to know the way to generate automatic content for non-existing (or all) pages in this namespace.
-- Sylvain Machefert http://www.tousauxbalkans.net http://iubito.free.fr/blog/
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-- No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 16/03/2008 10:34
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
It may not be what you want either, but in SplitCategoryPage.php we should have a place where we fake this inside the regular Category namespace. The syntax becomes Category:PseudoNamespace:PageTitle. An article then inserts into the page table as Pseudonamespace:PageTitle, and the code finds the prefix via a regex and change the tab from "Category" to Pseudonamespace, and changes the text for the subcategory and article counts.
Examples:
http://ecoliwiki.net/colipedia/index.php/Txn_unit:lacZYA
http://ecoliwiki.net/colipedia/index.php/Complex:aspartate_kinase_I
HOWEVER...Note that these are redirects to pages that still have the Category: prefix. It would be really nice to be able to avoid having to make the redirects as separate pages.
Jim
On Mar 17, 2008, at 2:29 PM, Sylvain Machefert wrote:
Merci but that's not what I want. Boilerplate, as I understand write a predefine content in the textbox when editing a new page.
I want the same behaviour than categories : go to Category:Portnawak (a name that doesn't exist) in your wiki, you don't see the edit form, but you see the list of subcategories and articles, if there are. In my namespace I want to replace this content (titles, lists of subcaterogies/pages) by another one (title + call to an extension).
2008/3/17, Dr JFBurté burtejf@orange.fr:
salut http://www.mediawiki.org/wiki/Extension:Boilerplate ? @+
----- Original Message ----- From: "Sylvain Machefert" iubito@gmail.com To: "MediaWiki announcements and site admin list" mediawiki-l@lists.wikimedia.org Sent: Monday, March 17, 2008 6:40 PM Subject: [Mediawiki-l] how to create a custom namespace with special content(like categories) ?
Hello,
I know how to add a new namespace, that's OK. But I'd like this namespace behave like categories : if I call MyNamespace:Foobar, if this page doesn't exist, I'd like to display an automatically generated content, for instance <my_extension>blabla</my_extension>
I don't want to display a list of articles as if it were a category, I'd like to know the way to generate automatic content for non- existing (or all) pages in this namespace.
-- Sylvain Machefert http://www.tousauxbalkans.net http://iubito.free.fr/blog/
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-- No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.7/1331 - Release Date: 16/03/2008 10:34
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
-- Sylvain Machefert http://www.tousauxbalkans.net http://iubito.free.fr/blog/ _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
mediawiki-l@lists.wikimedia.org