i think lots of people here had browsed this site www.wikihow.com. i have several technical question about the site,dos anybody can give me some trains of thought :)
1)i saw "Create page" link url was implemented as "http://www.wikihow.com/index.php?action=edit&rex=4%22,here "rex" le seems a additional customized parameter, why use this additional url parameter? how to "Create page" by this way?
2) while clicked "create page",in next new page, has several textarea to input "Introduction"、"steps"、"tips" etc separately. MediaWiki just has one textarea to add content。how to customize edit page like that?
3)while clicked "discuss this page" will goto http://www.wikihow.com/Discussion:Cook-Food, we can find here has a new namespace "Discussion"。and in this page,top area of page lists all discussion and bottom placed a textarea to add discussion。it's very convenient for user to check and add topics。 in standard mediawiki,discussion page just lists topics,should click"+" again to add topic, wikihow style is a better choice, how to do?
thanks in advance!
wind sun
Hi wind sun,
I'm the engineer at wikiHow and should be able to help you, thanks for your interest.
Don't worry about the rex parameter, it doesn't have any affect on the page creation page. You can download a copy of our source code here:
http://www.wikihow.com/x/wikihow-1.6.tar.gz
It contains all our modifications to Mediawiki. For the page creation page, check out includes/EditPageWrapper.php, all it does is extend EditPage.php and splits an article into the separate parts (intro, steps, tips, warnings, etc) and then glues it back together again before saving. To make sure that the 'edit' action uses this page instead of EditPage.php, check out the changes to includes/Wiki.php at around line 383.
For the discussion namespace, I renamed the usual Talk namespace in Namespaces.php, Discussion sounded more intuitive to us. For the form at the bottom of each talk page, check out skins/WikiHowSkin.php, there's a function called getTalkPostForm() which sets up the form on talk pages and posts to a special page located at includes/SpecialPostcomment.php.
The code really needs to be cleaned up at some point, so sorry for any mess.
Let me know if you have any questions! Travis
On 10/16/06, 孙国君 cdexs@hotmail.com wrote:
i think lots of people here had browsed this site www.wikihow.com. i have several technical question about the site,dos anybody can give me some trains of thought :)
1)i saw "Create page" link url was implemented as "http://www.wikihow.com/index.php?action=edit&rex=4%22,here "rex" le seems a additional customized parameter, why use this additional url parameter? how to "Create page" by this way?
- while clicked "create page",in next new page, has several textarea to input "Introduction"、"steps"、"tips" etc separately. MediaWiki just has one textarea to add content。how to customize edit page like that?
3)while clicked "discuss this page" will goto http://www.wikihow.com/Discussion:Cook-Food, we can find here has a new namespace "Discussion"。and in this page,top area of page lists all discussion and bottom placed a textarea to add discussion。it's very convenient for user to check and add topics。 in standard mediawiki,discussion page just lists topics,should click"+" again to add topic, wikihow style is a better choice, how to do?
thanks in advance!
wind sun _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
hi Travis, Very very thanks for ur replication when i confused, and thanks for ur contribution with mediawiki.i had got ur code. i think ur(wikihow) thinking is a edification for wiki's application, hope you will have a great future!
very thanks
----- Original Message ----- From: "Travis Derouin" travis@wikihow.com To: "Wikimedia developers" wikitech-l@wikimedia.org Sent: Wednesday, October 18, 2006 8:27 PM Subject: Re: [Wikitech-l] How to implement 'wikihow' web style??
Hi wind sun,
I'm the engineer at wikiHow and should be able to help you, thanks for your interest.
Don't worry about the rex parameter, it doesn't have any affect on the page creation page. You can download a copy of our source code here:
http://www.wikihow.com/x/wikihow-1.6.tar.gz
It contains all our modifications to Mediawiki. For the page creation page, check out includes/EditPageWrapper.php, all it does is extend EditPage.php and splits an article into the separate parts (intro, steps, tips, warnings, etc) and then glues it back together again before saving. To make sure that the 'edit' action uses this page instead of EditPage.php, check out the changes to includes/Wiki.php at around line 383.
For the discussion namespace, I renamed the usual Talk namespace in Namespaces.php, Discussion sounded more intuitive to us. For the form at the bottom of each talk page, check out skins/WikiHowSkin.php, there's a function called getTalkPostForm() which sets up the form on talk pages and posts to a special page located at includes/SpecialPostcomment.php.
The code really needs to be cleaned up at some point, so sorry for any mess.
Let me know if you have any questions! Travis
On 10/16/06, 孙国君 cdexs@hotmail.com wrote:
i think lots of people here had browsed this site www.wikihow.com. i have several technical question about the site,dos anybody can give me some trains of thought :)
1)i saw "Create page" link url was implemented as "http://www.wikihow.com/index.php?action=edit&rex=4%22,here "rex" le seems a additional customized parameter, why use this additional url parameter? how to "Create page" by this way?
- while clicked "create page",in next new page, has several textarea to input "Introduction"、"steps"、"tips" etc separately. MediaWiki just has one textarea to add content。how to customize edit page like that?
3)while clicked "discuss this page" will goto http://www.wikihow.com/Discussion:Cook-Food, we can find here has a new namespace "Discussion"。and in this page,top area of page lists all discussion and bottom placed a textarea to add discussion。it's very convenient for user to check and add topics。 in standard mediawiki,discussion page just lists topics,should click"+" again to add topic, wikihow style is a better choice, how to do?
thanks in advance!
wind sun _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
On Mon, 2006-16-10 at 20:22 +0800, 孙国君 wrote:
i think lots of people here had browsed this site www.wikihow.com. i have several technical question about the site,dos anybody can give me some trains of thought :)
I know that Travis Derouin, the tech lead on wikiHow, has made a lot of customizations for the site. None of what you asked about is possible with vanilla MediaWiki, as far as I know. Maybe you can ask Travis about it?
~Evan
hi Evan, thanks for ur reply, i had got valuable replication from Travis, if u interest also, check the maillist to get the article about.
----- Original Message ----- From: "Evan Prodromou" evan@prodromou.name To: "Wikimedia developers" wikitech-l@wikimedia.org Cc: "Travis Derouin" tderouin@gmail.com Sent: Thursday, October 19, 2006 3:07 AM Subject: Re: [Wikitech-l] How to implement 'wikihow' web style??
On Mon, 2006-16-10 at 20:22 +0800, 孙国君 wrote:
i think lots of people here had browsed this site www.wikihow.com. i have several technical question about the site,dos anybody can give me some trains of thought :)
I know that Travis Derouin, the tech lead on wikiHow, has made a lot of customizations for the site. None of what you asked about is possible with vanilla MediaWiki, as far as I know. Maybe you can ask Travis about it?
~Evan
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org