I'm designing a "skill repository" for a corporate management team to know who has expertise in some task. Instead of designing a custom SQL database, I've been trying to use a wiki to allow them to log on and edit their user page, which should contain a list of skills and associated ratings.
I've set up a sample user page, but it's proven too complicated for them to copy the wikiText from the sample and paste it into their own user page. Is there a way to inject my wikiText into the user page space in the database when they create an account? The primary functionality I'm looking for is: A) when they open their user page, they see the sample text [not an edit box] and; B) they can edit the skill set and add numbers representing skill level on their individual user page [excludes templates].
Any thoughts on good extensions/workarounds would be greatly appreciated.
Thanks!
Nancy Dailey
Reading your post I obviously first thought of templates. Can't you use an infobox style template and give parameters like |skill=advanced or is that something you wanted to avoid?
On 8/6/07, Nancy Dailey nancy@drnancydailey.com wrote:
I'm designing a "skill repository" for a corporate management team to know who has expertise in some task. Instead of designing a custom SQL database, I've been trying to use a wiki to allow them to log on and edit their user page, which should contain a list of skills and associated ratings.
I've set up a sample user page, but it's proven too complicated for them to copy the wikiText from the sample and paste it into their own user page. Is there a way to inject my wikiText into the user page space in the database when they create an account? The primary functionality I'm looking for is: A) when they open their user page, they see the sample text [not an edit box] and; B) they can edit the skill set and add numbers representing skill level on their individual user page [excludes templates].
Any thoughts on good extensions/workarounds would be greatly appreciated.
Thanks!
Nancy Dailey _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
For the first bit of your message, you could try the extension at http://www.mediawiki.org/wiki/Extension:BoilerplateSelection - personally I haven't used it but I haven't needed to. There's also Extension:InputBox which has a preload option which, again, I've never used that bit of it.
On 8/6/07, Nancy Dailey nancy@drnancydailey.com wrote:
I'm designing a "skill repository" for a corporate management team to know who has expertise in some task. Instead of designing a custom SQL database, I've been trying to use a wiki to allow them to log on and edit their user page, which should contain a list of skills and associated ratings.
I've set up a sample user page, but it's proven too complicated for them to copy the wikiText from the sample and paste it into their own user page. Is there a way to inject my wikiText into the user page space in the database when they create an account? The primary functionality I'm looking for is: A) when they open their user page, they see the sample text [not an edit box] and; B) they can edit the skill set and add numbers representing skill level on their individual user page [excludes templates].
Any thoughts on good extensions/workarounds would be greatly appreciated.
Thanks!
Nancy Dailey _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
I think this could be done with some minimal modification of the PagesOnDemand extension or, as Gary suggests, the BoilerplateSelection extension. I think PagesOnDemand might be a bit closer, since I think BoilerplateSelection takes the user to an edit page, while PagesOnDemand takes them to a formatted page as if it was always there. You'd have to write an extension that hooks into PagesOnDemand, but I think it would be very easy to adapt the sample.
Jim On Aug 6, 2007, at 12:41 PM, Nancy Dailey wrote:
I'm designing a "skill repository" for a corporate management team to know who has expertise in some task. Instead of designing a custom SQL database, I've been trying to use a wiki to allow them to log on and edit their user page, which should contain a list of skills and associated ratings.
I've set up a sample user page, but it's proven too complicated for them to copy the wikiText from the sample and paste it into their own user page. Is there a way to inject my wikiText into the user page space in the database when they create an account? The primary functionality I'm looking for is: A) when they open their user page, they see the sample text [not an edit box] and; B) they can edit the skill set and add numbers representing skill level on their individual user page [excludes templates].
Any thoughts on good extensions/workarounds would be greatly appreciated.
Thanks!
Nancy Dailey _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://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
Thank you. BoilerplateSelection would work but since it takes the user to an edit page so early in the use of the wiki, it overwhelms them. My experience using wikis inside business organizations is that form is far more important than function to get them to early adopt use of wikis as a productivity/team building tool. I will try to modify PagesOnDemand. Thank you so much for your help! Nancy ----- Original Message ----- From: Jim Hu To: MediaWiki announcements and site admin list Sent: Tuesday, August 07, 2007 12:20 AM Subject: Re: [Mediawiki-l] User page formatting
I think this could be done with some minimal modification of the PagesOnDemand extension or, as Gary suggests, the BoilerplateSelection extension. I think PagesOnDemand might be a bit closer, since I think BoilerplateSelection takes the user to an edit page, while PagesOnDemand takes them to a formatted page as if it was always there. You'd have to write an extension that hooks into PagesOnDemand, but I think it would be very easy to adapt the sample.
Jim On Aug 6, 2007, at 12:41 PM, Nancy Dailey wrote:
I'm designing a "skill repository" for a corporate management team to know who has expertise in some task. Instead of designing a custom SQL database, I've been trying to use a wiki to allow them to log on and edit their user page, which should contain a list of skills and associated ratings.
I've set up a sample user page, but it's proven too complicated for them to copy the wikiText from the sample and paste it into their own user page. Is there a way to inject my wikiText into the user page space in the database when they create an account? The primary functionality I'm looking for is: A) when they open their user page, they see the sample text [not an edit box] and; B) they can edit the skill set and add numbers representing skill level on their individual user page [excludes templates].
Any thoughts on good extensions/workarounds would be greatly appreciated.
Thanks!
Nancy Dailey _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://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
I might take a crack at it too. I'll post code if I come up with something.
On Aug 7, 2007, at 6:31 AM, Nancy Dailey wrote:
Thank you. BoilerplateSelection would work but since it takes the user to an edit page so early in the use of the wiki, it overwhelms them. My experience using wikis inside business organizations is that form is far more important than function to get them to early adopt use of wikis as a productivity/team building tool. I will try to modify PagesOnDemand. Thank you so much for your help! Nancy ----- Original Message ----- From: Jim Hu To: MediaWiki announcements and site admin list Sent: Tuesday, August 07, 2007 12:20 AM Subject: Re: [Mediawiki-l] User page formatting
I think this could be done with some minimal modification of the PagesOnDemand extension or, as Gary suggests, the BoilerplateSelection extension. I think PagesOnDemand might be a bit closer, since I think BoilerplateSelection takes the user to an edit page, while PagesOnDemand takes them to a formatted page as if it was always there. You'd have to write an extension that hooks into PagesOnDemand, but I think it would be very easy to adapt the sample.
Jim On Aug 6, 2007, at 12:41 PM, Nancy Dailey wrote:
I'm designing a "skill repository" for a corporate management team to know who has expertise in some task. Instead of designing a custom SQL database, I've been trying to use a wiki to allow them to log on and edit their user page, which should contain a list of skills and associated ratings.
I've set up a sample user page, but it's proven too complicated for them to copy the wikiText from the sample and paste it into their own user page. Is there a way to inject my wikiText into the user page space in the database when they create an account? The primary functionality I'm looking for is: A) when they open their user page, they see the sample text [not an edit box] and; B) they can edit the skill set and add numbers representing skill level on their individual user page [excludes templates].
Any thoughts on good extensions/workarounds would be greatly appreciated.
Thanks!
Nancy Dailey _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://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 mailing list MediaWiki-l@lists.wikimedia.org http://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
Try this!
<?php /* * UserPageOnDemand.php - An extension 'module' for the PagesOnDemand extension. * @author Jim Hu (jimhu@tamu.edu) * @version 0.1 * @copyright Copyright (C) 2007 Jim Hu * @license The MIT License - http://www.opensource.org/licenses/mit- license.php */
if ( ! defined( 'MEDIAWIKI' ) ) die();
# Credits $wgExtensionCredits['other'][] = array( 'name'=>'UserPageOnDemand', 'author'=>'Jim Hu <jimhu@tamu.edu>', 'description'=>'Demo for PagesOnDemand mechanism for generating User pages from template on demand.', 'version'=>'0.1' );
# Register hooks ('PagesOnDemand' hook is provided by the PagesOnDemand extension). $wgHooks['PagesOnDemand'][] = 'wfLoadUserPageOnDemand';
/** * Loads a demo page if the title matches a particular pattern. * @param Title title The Title to check or create. */ function wfLoadUserPageOnDemand( $title, $article ){
# Short-circuit if $title isn't in the MAIN namespace or doesn't match the DEMO pattern. if ( $title->getNamespace() != NS_USER) { return true; } $template = Revision::newFromTitle(Title::makeTitle(NS_TEMPLATE, 'User_page_template')); if (! $template){ $text = "Can't find template page Template:User_page_template"; }else{ $text = $template->getText(); #strip out noinclude sections $text = preg_replace( '/<noinclude>.*?</noinclude>/s', '', $text ); } # Create the User page's new text - could be more complicated, but this is just a demo
# Create the Article, supplying the new text $article = new Article($title); $article->doEdit( $text, 'Create user page from template via PagesOnDemand', EDIT_NEW | EDIT_FORCE_BOT );
# All done (returning false to kill PoD's wfRunHooks stack) return false; } ?>
On Aug 7, 2007, at 6:31 AM, Nancy Dailey wrote:
Thank you. BoilerplateSelection would work but since it takes the user to an edit page so early in the use of the wiki, it overwhelms them. My experience using wikis inside business organizations is that form is far more important than function to get them to early adopt use of wikis as a productivity/team building tool. I will try to modify PagesOnDemand. Thank you so much for your help! Nancy
<snip>
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
Still has all those nasty 'regular experssions' (I love the term regular expressions .. not sure what is so regular about them <G>)
DSig David Tod Sigafoos | SANMAR Corporation PICK Guy 206-770-5585 davesigafoos@sanmar.com
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Jim Hu Sent: Tuesday, August 07, 2007 6:29 To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] User page formatting
Try this!
<?php /* * UserPageOnDemand.php - An extension 'module' for the PagesOnDemand extension. * @author Jim Hu (jimhu@tamu.edu) * @version 0.1 * @copyright Copyright (C) 2007 Jim Hu * @license The MIT License - http://www.opensource.org/licenses/mit- license.php */
if ( ! defined( 'MEDIAWIKI' ) ) die();
# Credits $wgExtensionCredits['other'][] = array( 'name'=>'UserPageOnDemand', 'author'=>'Jim Hu <jimhu@tamu.edu>', 'description'=>'Demo for PagesOnDemand mechanism for generating User pages from template on demand.', 'version'=>'0.1' );
# Register hooks ('PagesOnDemand' hook is provided by the PagesOnDemand extension). $wgHooks['PagesOnDemand'][] = 'wfLoadUserPageOnDemand';
/** * Loads a demo page if the title matches a particular pattern. * @param Title title The Title to check or create. */ function wfLoadUserPageOnDemand( $title, $article ){
# Short-circuit if $title isn't in the MAIN namespace or doesn't
match the DEMO pattern. if ( $title->getNamespace() != NS_USER) { return true; } $template = Revision::newFromTitle(Title::makeTitle(NS_TEMPLATE, 'User_page_template')); if (! $template){ $text = "Can't find template page Template:User_page_template"; }else{ $text = $template->getText(); #strip out noinclude sections $text = preg_replace( '/<noinclude>.*?</noinclude>/s', '',
$text ); } # Create the User page's new text - could be more complicated, but this is just a demo
# Create the Article, supplying the new text $article = new Article($title); $article->doEdit( $text, 'Create user page from template via PagesOnDemand', EDIT_NEW | EDIT_FORCE_BOT );
# All done (returning false to kill PoD's wfRunHooks stack) return false; } ?>
On Aug 7, 2007, at 6:31 AM, Nancy Dailey wrote:
Thank you. BoilerplateSelection would work but since it takes the user to an edit page so early in the use of the wiki, it overwhelms them. My experience using wikis inside business organizations is that form is far more important than function to get them to early adopt use of wikis as a productivity/team building tool. I will try to modify PagesOnDemand. Thank you so much for your help! Nancy
<snip>
===================================== 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 mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
The problem with creating a page then taking them to a view stage is that you can get lots of pages created that you really don't want.
In this case, since the page is a user page, it's pretty easy to test whether it's the user's own page - that way it only gets created when the person themselves visit their own page for the first time.
-- Jim
On 8/7/07, Dave Sigafoos davesigafoos@sanmar.com wrote:
Still has all those nasty 'regular experssions' (I love the term regular expressions .. not sure what is so regular about them <G>)
DSig David Tod Sigafoos | SANMAR Corporation PICK Guy 206-770-5585 davesigafoos@sanmar.com
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Jim Hu Sent: Tuesday, August 07, 2007 6:29 To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] User page formatting
Try this!
<?php /* * UserPageOnDemand.php - An extension 'module' for the PagesOnDemand extension. * @author Jim Hu (jimhu@tamu.edu) * @version 0.1 * @copyright Copyright (C) 2007 Jim Hu * @license The MIT License - http://www.opensource.org/licenses/mit- license.php */ if ( ! defined( 'MEDIAWIKI' ) ) die(); # Credits $wgExtensionCredits['other'][] = array( 'name'=>'UserPageOnDemand', 'author'=>'Jim Hu <jimhu@tamu.edu>', 'description'=>'Demo for PagesOnDemand mechanism for generating User pages from template on demand.', 'version'=>'0.1' ); # Register hooks ('PagesOnDemand' hook is provided by the PagesOnDemand extension). $wgHooks['PagesOnDemand'][] = 'wfLoadUserPageOnDemand'; /** * Loads a demo page if the title matches a particular pattern. * @param Title title The Title to check or create. */ function wfLoadUserPageOnDemand( $title, $article ){ # Short-circuit if $title isn't in the MAIN namespace or doesn't match the DEMO pattern. if ( $title->getNamespace() != NS_USER) { return true; } $template = Revision::newFromTitle(Title::makeTitle(NS_TEMPLATE, 'User_page_template')); if (! $template){ $text = "Can't find template page Template:User_page_template"; }else{ $text = $template->getText(); #strip out noinclude sections $text = preg_replace( '/<noinclude>.*?<\/noinclude>/s', '', $text ); } # Create the User page's new text - could be more complicated, but this is just a demo # Create the Article, supplying the new text $article = new Article($title); $article->doEdit( $text, 'Create user page from template via PagesOnDemand', EDIT_NEW | EDIT_FORCE_BOT ); # All done (returning false to kill PoD's wfRunHooks stack) return false; } ?>
On Aug 7, 2007, at 6:31 AM, Nancy Dailey wrote:
Thank you. BoilerplateSelection would work but since it takes the user to an edit page so early in the use of the wiki, it overwhelms them. My experience using wikis inside business organizations is that form is far more important than function to get them to early adopt use of wikis as a productivity/team building tool. I will try to modify PagesOnDemand. Thank you so much for your help! Nancy
<snip>
===================================== 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 mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
The problem with creating a page then taking them to a view stage is that you can get lots of pages created that you really don't want.
In a business environment it is easier to limit edit access so the poor user doesn't get overwhelmed <G> of course it doesn't always work (at least in my experience )
DSig David Tod Sigafoos | SANMAR Corporation
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Nancy Dailey Sent: Tuesday, August 07, 2007 4:32 To: MediaWiki-l@lists.wikimedia.org Subject: Re: [Mediawiki-l] User page formatting
Thank you. BoilerplateSelection would work but since it takes the user to an edit page so early in the use of the wiki, it overwhelms them. My experience using wikis inside business organizations is that form is far more important than function to get them to early adopt use of wikis as a productivity/team building tool. I will try to modify PagesOnDemand. Thank you so much for your help! Nancy ----- Original Message ----- From: Jim Hu To: MediaWiki announcements and site admin list Sent: Tuesday, August 07, 2007 12:20 AM Subject: Re: [Mediawiki-l] User page formatting
I think this could be done with some minimal modification of the PagesOnDemand extension or, as Gary suggests, the BoilerplateSelection extension. I think PagesOnDemand might be a bit
closer, since I think BoilerplateSelection takes the user to an edit page, while PagesOnDemand takes them to a formatted page as if it was
always there. You'd have to write an extension that hooks into PagesOnDemand, but I think it would be very easy to adapt the sample.
Jim On Aug 6, 2007, at 12:41 PM, Nancy Dailey wrote:
I'm designing a "skill repository" for a corporate management team to know who has expertise in some task. Instead of designing a custom SQL database, I've been trying to use a wiki to allow them to log on and edit their user page, which should contain a list of skills and associated ratings.
I've set up a sample user page, but it's proven too complicated for
them to copy the wikiText from the sample and paste it into their own user page. Is there a way to inject my wikiText into the user page space in the database when they create an account? The primary functionality I'm looking for is: A) when they open their user page, they see the sample text [not an edit box] and; B) they
can edit the skill set and add numbers representing skill level on their individual user page [excludes templates].
Any thoughts on good extensions/workarounds would be greatly appreciated.
Thanks!
Nancy Dailey _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://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 mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org