Topic on User talk:Ecclytennysmithylove

Please use the magicwords PAGENAME, ROOTPAGENAME, and SUBPAGENAME in page categories

4
Robkelk (talkcontribs)

Hi! I reverted your change to Rush'n Attack because you changed "Category:{ {PAGENAME} }" (without the spaces) to "Category:Rush'n Attack". This is a bad thing, please don't do it.

As to why it's a bad thing:

Let's imagine that Alice makes a page for the CBC Summer Replacement Show "Back in Time for Dinner" and punctuates the name "Back, in Time for Dinner". She adds the category "Back, in Time for Dinner" to the page.

Bob notices that's the wrong punctuation, moves the page to "Back in Time, for Dinner", and adds the category "Back in Time, for Dinner" to the page.

Carol notices the page, moves it to its correct punctuation "Back in Time for Dinner", and adds the category "Back in Time for Dinner" to the page.

The page now has three categories, two of which are redundant. Somebody needs to clean up the page.

If, instead, Alice had added the category "{ {PAGENAME} }" without the spaces, then the page category would have changed automatically each time the page was moved, and it would never have had the duplicate and triplicate categories.

As for the particular magicwords: PAGENAME inserts the name of the page; ROOTPAGENAME inserts the partial name of the page up but not including the first slash, and SUBPAGENAME inserts the partial name of the page beginning immediately after the final slash and continuing to the end of the name.

For example, consider the page Avatar (film)/Headscratchers/Navi

  • PAGENAME = Avatar (film)/Headscratchers/Navi
  • ROOTPAGENAME = Avatar (film)
  • SUBPAGENAME = Navi
Ecclytennysmithylove (talkcontribs)

My apologies. I'll stop doing that from now on.

Robkelk (talkcontribs)

Thanks.

Ecclytennysmithylove (talkcontribs)

Your welcome.