Author Topic: Your name in an article  (Read 11397 times)

Offline Axiomist

  • Retired Staff
  • *
  • Posts: 618
  • Gender: Male
    • View Profile
    • WiKirby
Your name in an article
« on: September 30, 2010, 05:00:48 AM »
Meta Knight has your WiKirby account name somewhere in the article! Moydow and I innovated some wiki code for a feature to personalize WiKirby instead of using "the player", we put your name.

Tell us what you think. Personally, I think it's an incredibly great tool unique to MediaWiki and we'd be sillier to not take advantage of it.

Offline Malake256

  • Metroid Wiki Staff
  • ***
  • Posts: 166
  • Gender: Male
  • It actually glows...
    • View Profile
    • Metroid Wiki Admin
Re: Your name in an article
« Reply #1 on: October 01, 2010, 03:51:19 AM »
For those who don't want to take five mins looking for your name like i did, look on the last line of the Kirby & the Amazing Mirror section. This thing is so freaking amazing haha. I did suggest to have the real name though haha, that'd be funny...
My Weavile Brick Breaks Blisseys :)

Offline dany36

  • "the easily amused have no limits, sir"
  • Zelda Wiki Staff
  • ***
  • Posts: 100
  • Gender: Female
    • View Profile
Re: Your name in an article
« Reply #2 on: October 01, 2010, 04:31:28 AM »
I checked it out and it looks pretty cool in action. Awesome stuff!  ;D

Offline Moydow

  • NIWA Coordinator
  • Forum Administrator
  • *****
  • Posts: 483
    • View Profile
    • Fire Emblem Wiki
Re: Your name in an article
« Reply #3 on: October 01, 2010, 01:59:18 PM »
I did suggest to have the real name though haha, that'd be funny...
It's possible, and the required variable is easily added;
Put this at the bottom of MyVariables.php, inside the curly bracket before the last "return true":

case MAG_USERREALNAME
        $parser
->disableCache();
        
$ret $GLOBALS['wgUser']->mRealName;
        break;

Then add 'USERREALNAME' to the array on the top line. You can change that code to display anything contained in the SQL table 'user'. I tried to make one to display passwords, but it renders as ":B:random letters". :P
NIWA Coordinator

Offline Axiomist

  • Retired Staff
  • *
  • Posts: 618
  • Gender: Male
    • View Profile
    • WiKirby
Re: Your name in an article
« Reply #4 on: October 01, 2010, 07:31:08 PM »
I'm heading to work tonight, but when I get off and have time to test it out backwards and forwards after adding it; I'll do just that. I can't imagine it would be different in any browsers, so the only test I really want to try is what it does without a real name set in preferences.

But anytime I do something in ftp I check it logged in/logged out for both IE and FF just to be sure.

Offline Moydow

  • NIWA Coordinator
  • Forum Administrator
  • *****
  • Posts: 483
    • View Profile
    • Fire Emblem Wiki
Re: Your name in an article
« Reply #5 on: October 01, 2010, 07:46:06 PM »
Without a real name set it just blanks, but {{#if}} and {{#ifexist}} can be used to make a template that defaults to {{CURRENTUSER}} (logged in) or "the player" (logged out). This page shows the coding for that.
NIWA Coordinator

Offline Irockz

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Your name in an article
« Reply #6 on: October 03, 2010, 06:59:00 PM »
brilliant. absolutely brilliant.

Offline Axiomist

  • Retired Staff
  • *
  • Posts: 618
  • Gender: Male
    • View Profile
    • WiKirby
Re: Your name in an article
« Reply #7 on: October 03, 2010, 08:23:05 PM »
Thanks Irockz, I can't believe that feature generated more new accounts than the game give-away :D

I'll try adding your improvised code now Moydow.

Offline Moydow

  • NIWA Coordinator
  • Forum Administrator
  • *****
  • Posts: 483
    • View Profile
    • Fire Emblem Wiki
Re: Your name in an article
« Reply #8 on: October 04, 2010, 02:56:56 AM »
The completed template.

It isn't in any articles yet, but the documentation in that page makes plenty of use of it. :D
NIWA Coordinator

Offline Tina

  • WikiBound Staff
  • ***
  • Posts: 320
  • Gender: Female
    • View Profile
    • WikiBound
Re: Your name in an article
« Reply #9 on: October 04, 2010, 05:21:36 AM »
I like this feature a lot, personally! Using "the player" over and over in articles always felt really funny to me. Although, for guests, when it's just "the player"... since the T is uncapitalized, you can't really use it at the start of a sentence. I'm not sure how you'd fix that though, it seems like a hassle and it'd be easier to just reword the sentence instead. :P (I have a habit of taking the lazy/easy route a lot, though...)

(totally want this on WB)
WikiBound Editor-in-Chief

Offline Moydow

  • NIWA Coordinator
  • Forum Administrator
  • *****
  • Posts: 483
    • View Profile
    • Fire Emblem Wiki
Re: Your name in an article
« Reply #10 on: October 04, 2010, 01:42:17 PM »
Although, for guests, when it's just "the player"... since the T is uncapitalized, you can't really use it at the start of a sentence. I'm not sure how you'd fix that though...
Quite simple really, I can just add an optional parameter using {{#switch}}, so that typing {{RealMe|cap=1}} will capitalise "The player" when used.
NIWA Coordinator

Offline Tina

  • WikiBound Staff
  • ***
  • Posts: 320
  • Gender: Female
    • View Profile
    • WikiBound
Re: Your name in an article
« Reply #11 on: October 04, 2010, 03:19:16 PM »
...Oh. Pfff. I forgot switch statements existed! Silly me.

Also, what about he/she in an article (referring to the player) based on the user's selected gender? That'd be cool, too.
WikiBound Editor-in-Chief

Offline Moydow

  • NIWA Coordinator
  • Forum Administrator
  • *****
  • Posts: 483
    • View Profile
    • Fire Emblem Wiki
Re: Your name in an article
« Reply #12 on: October 04, 2010, 03:32:02 PM »
Also, what about he/she in an article (referring to the player) based on the user's selected gender? That'd be cool, too.
Yeah. We had discussed that, but {{I}} seemed too short for a template. Also, it brings up the issue mentioned here, of how to refer to one of unspecified gender. That needs to be resolved first, although it seems either way, someone will claim that it's wrong. We could use "the player" to avoid this, but that could get repetitive. :|

Edit: Templates updated and working with the new optional parameter.
« Last Edit: October 04, 2010, 06:07:10 PM by Moydow »
NIWA Coordinator

Offline Axiomist

  • Retired Staff
  • *
  • Posts: 618
  • Gender: Male
    • View Profile
    • WiKirby
Re: Your name in an article
« Reply #13 on: October 04, 2010, 07:34:00 PM »
I brought that back up in the talk page, hopefully the personalization tools are an acceptable compromise to those opposed to using "they" and "their". I have no issues with WB using it, I wouldn't think Moydow would. Although it's intended to give WiKirby some spunk, I knew from the start of WiKirby that it would be an experimentation and innovation cradle. And that other friendly wikis could use whatever we conjure with no strings attached.

Things in the works (for other wikis actually) are even more incredible than this set of templates. Of course, I love the element of surprise, so.... no one will know until its ready-except those who know. :p


Offline Moydow

  • NIWA Coordinator
  • Forum Administrator
  • *****
  • Posts: 483
    • View Profile
    • Fire Emblem Wiki
Re: Your name in an article
« Reply #14 on: October 04, 2010, 07:47:43 PM »
I have absolutely no problems with the code being imported. I also perfected one of... those, but it's a secret to everybody. For now. ;)
NIWA Coordinator

Offline Lazor Shroom Midna Freak

  • Jr. Member
  • **
  • Posts: 60
  • Gender: Female
  • Jesus Freak/Pie Shroom/Midna of Darkness
    • View Profile
Re: Your name in an article
« Reply #15 on: October 05, 2010, 05:37:05 PM »
Quote
Adeleine's Paintbrush should note
Squee!  ;D

I joined WiKirby just to  see this. Yup yup.

Offline Axiomist

  • Retired Staff
  • *
  • Posts: 618
  • Gender: Male
    • View Profile
    • WiKirby
Re: Your name in an article
« Reply #16 on: October 05, 2010, 05:50:04 PM »
Thanks! If you want to help get people's name in more articles. This would be a good start

I just searched for "player" to see where it currently could go. But I'm certain there's out-of-universe content we haven't covered such as how Canvas Curse's story involves the player as tho the DS stylus were the magic paintbrush from Drawcia.

Offline Lazor Shroom Midna Freak

  • Jr. Member
  • **
  • Posts: 60
  • Gender: Female
  • Jesus Freak/Pie Shroom/Midna of Darkness
    • View Profile
Re: Your name in an article
« Reply #17 on: October 06, 2010, 01:41:09 AM »
You're welcome! :)

All instances of "the player" in Dedede's article have been replace with {{me}}.