Is there a way to disable the ugly automated columns of a category page - and have pages listed in a single column instead? :
http://www.crewscut.com/index.php?title=Kategori:Kulturelle_netv%C3%A6rk
Is there a way to disable the automated aphabetical titles (A, B, C etc) and just show the list in alphabetical order without any subtitles? On wikipedia, the titles and colums are probably practical - but they seems overdue for categories on our wiki, with smaller numbers of pages in categories.
Regards, Morten :-)
-- Crews Cut Community http://www.crewscut.com
Morten Blaabjerg Dronningensgade 4B, DK-5000 Odense C. Tlf. +45 65 90 60 88
Morten Blaabjerg wrote:
Is there a way to disable the ugly automated columns of a category page
- and have pages listed in a single column instead? :
Find the calls to formatList() in CategoryPage.php and change the cutoff value used for the single/triple column mode determination.
-- brion vibber (brion @ pobox.com)
Hi -
I'm new to the list and new to wikimedia. Sorry if this is a simple question - but I've read through the online documentation and can't seem to find any info about this.
I recently installed 1.4b6 "out of the box" and am trying to figure out a way to make it easy for my users to create new articles.
On en.wikipedia.org, if a user searches for something but there is no match, "create an article with this title" and "put up a request for it" links show up on the results page.
But on my installation, there is no easy way (that I've been able to find) to create new articles other than the direct-URL method.
Is there any way to turn this on somewhere, or do I need to do custom coding?
Thanks!
- Tor
Make this link on your main page [[Create new article]]. On that page explain how to create a link to a new article by either creating a link to it or fiddling with the url (that is done by replacing the string after "title=")
Fred
From: Tor Kinlok tor@superman.ws Reply-To: MediaWiki announcements and site admin list mediawiki-l@Wikimedia.org Date: Sun, 13 Feb 2005 09:18:58 -0500 To: MediaWiki announcements and site admin list mediawiki-l@Wikimedia.org Subject: [Mediawiki-l] creating new articles
Hi -
I'm new to the list and new to wikimedia. Sorry if this is a simple question - but I've read through the online documentation and can't seem to find any info about this.
I recently installed 1.4b6 "out of the box" and am trying to figure out a way to make it easy for my users to create new articles.
On en.wikipedia.org, if a user searches for something but there is no match, "create an article with this title" and "put up a request for it" links show up on the results page.
But on my installation, there is no easy way (that I've been able to find) to create new articles other than the direct-URL method.
Is there any way to turn this on somewhere, or do I need to do custom coding?
Thanks!
- Tor
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Sorry this is more a php, maybe mySQL, question: (again), but...
I'm working on the php module to manually create a batch of new articles by using an INSERT query to add records to the "cur" table in mySQL. The text that I'm starting these new articles with contains a pair of Extension Tags, and the slash in the End Tag is giving me trouble. I'm guessing that I need to escape it, but can't figure out how to. I've tried a backslash, and 1-3 slashes in front. I either get the text string truncated at the slash, or everything passes through, can't get the single slash by itself: I tried experimenting with the addslashes function, but either didn't do it right or it isn't the solution. Here's the snippet.
$theText = '<1905GazetteerProtParishTable>'.$town.'</1905GazetteerProtParishTable>';
and here's the essential parts of the function that it's in: (would appreciate any help with bad coding, I know just enough php to be dangerous. In particular, is " ! " the correct negation operator: if (!($row2 = mysql_fetch_array($result2))) is this the best way to test for a null text value: if ($town <> "") and is anything obviously wrong with the construction of the last (INSERT) sql query?
TIA, James =======================================================
function makeJurisdictionArticles( $input ) //$input = Kreis ("county") { ( db connection logic here)
$query = "SELECT JurisProt FROM Gazetteer1905 WHERE Kreis LIKE '".$theKreis."'"." GROUP BY JurisProt ORDER BY JurisProt ASC"; $output = ""; // in case I output some debugging to calling routine. $result = mysql_query($query); while($row = mysql_fetch_array($result)) //for each Protestant church town { $town = $row['JurisProt']; // extract the town name of the Protestant parish if ($town <> "") { $theTitle = 'Protestant_parish_of_'.spaces2underscores($town); // title of the new article will be...
$query2 = "SELECT cur_title FROM cur WHERE cur_title LIKE '".$theTitle."'";
$result2 = mysql_query($query2); if (!($row2 = mysql_fetch_array($result2))) // if no article with this title exists yet... { $theText = '<1905GazetteerProtParishTable>'.$town.'</1905GazetteerProtParishTable>'; $theText .= '<br>Parish began ????, split off from ?????'; echo($theText); // debug $query3 = 'INSERT INTO cur (cur_namespace, cur_title, cur_text, cur_user, cur_user_text, cur_timestamp, cur_random) VALUES ("0", "'.$theTitle.'", "'.$theText.'", "1", "WikiSysop", UNIX_TIMESTAMP( ) , RAND( ))'; $result3 = mysql_query ($query3); } } } return $output; // (if debugging) }
Looks like my code was mostly working, but the debugging displays were misleading me. Anywhooo, it seems to be working well enough now, although I had to deal with converting German special characters for the article titles: one way for the link display, and a second way for the actual title used and the link itself.
Now the database generates lists of articles related to the main article and if those sub-articles don't exist yet, it creates them, putting a standard bit of text, modified by the article title, including another Extension tag that pulls data out of the database for the sub-article.
With 40 main articles and an average of 50 sub-articles, that saves me having to manually copy and paste the starter text into 2000 new articles. (And there will probably be more main articles in the future, up to 10-200x these first 40.)
James
Tor Kinlok tor@superman.ws wrote:
On en.wikipedia.org, if a user searches for something but there is no match, "create an article with this title" and "put up a request for it" links show up on the results page.
But on my installation, there is no easy way (that I've been able to find) to create new articles other than the direct-URL method.
Is there any way to turn this on somewhere, or do I need to do custom coding?
What you see on en: is done by editing [[MediaWiki:Nogomatch]]. See how en: does it: http://en.wikipedia.org/wiki/MediaWiki:Nogomatch
*Muke!
Thanks Fred and Muke, works great.
- Tor
Brion,
Could I do the same thing in MW 1.3.x? I couldn't find CategoryPage.php.
Thanks. -- John
Brion Vibber wrote:
Morten Blaabjerg wrote:
Is there a way to disable the ugly automated columns of a category page
- and have pages listed in a single column instead? :
Find the calls to formatList() in CategoryPage.php and change the cutoff value used for the single/triple column mode determination.
-- brion vibber (brion @ pobox.com)
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
John Yu wrote:
Brion,
Could I do the same thing in MW 1.3.x? I couldn't find CategoryPage.php.
In 1.3 the category page functions may not have been split off from the monolithic place they were before. Check Article.php and Parser.php among others.
-- brion vibber (brion @ pobox.com)
Different category question: I've stolen and modified the {{category note}} Template found on Meta.
It makes a lovely info box on the right, and my main article text wraps up against it nicely.
Unfortunately, the actual category list doesn't start until past the bottom of the {{category note}} info box.
I saw your answer, and thought "Ah, change it to a single column, and all will be well!" But alas, not.
I also found the code that causes the category list to be offset, but when I took it out, the category list *overlaid* the info box.
Is there a way to coax the category list into wrapping nicely around the info box?
Didn't think so. :-(
Example: http://www.IslandSeeds.org/wiki/Category:Stub
On 17 Feb 2005, at 14:21, Brion Vibber wrote:
John Yu wrote:
Brion,
Could I do the same thing in MW 1.3.x? I couldn't find CategoryPage.php.
In 1.3 the category page functions may not have been split off from the monolithic place they were before. Check Article.php and Parser.php among others.
-- brion vibber (brion @ pobox.com) _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
:::: Never do anything against conscience -- even if the state demands it. -- Albert Einstein :::: Jan Steinman http://www.IslandSeeds.org
On Sat, 12 Feb 2005, Morten Blaabjerg wrote:
Is there a way to disable the ugly automated columns of a category page
- and have pages listed in a single column instead? :
it would be good to have css-classes for the different elements of the category page and maybe a surrounding <div>. this would allow to make this page look a bit nicer.
christof
mediawiki-l@lists.wikimedia.org