This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.
Template talk:Pagenamenopseudo: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Hardvice No edit summary |
imported>Admin No edit summary |
||
| Line 3: | Line 3: | ||
**Graphic Novel is a pseudo-namespace. Heroes Wiki is a true namespace. and if it would make things easier I could make those psuedo-namespaces true namespaces instead. ([[User:Admin|Admin]] 02:39, 18 March 2007 (EDT)) |
**Graphic Novel is a pseudo-namespace. Heroes Wiki is a true namespace. and if it would make things easier I could make those psuedo-namespaces true namespaces instead. ([[User:Admin|Admin]] 02:39, 18 March 2007 (EDT)) |
||
***Hmmm. What would that do to searching? And does it mean more changes to remember the next time you upgrade? In any case, this template will still work, even if some of these get made into real namespaces, because then they'd fall into the default. So whatever works from a maintenance POV works.--[[User:Hardvice|Hardvice]] <small>[[User talk:Hardvice|(talk)]]</small> 02:49, 18 March 2007 (EDT) |
***Hmmm. What would that do to searching? And does it mean more changes to remember the next time you upgrade? In any case, this template will still work, even if some of these get made into real namespaces, because then they'd fall into the default. So whatever works from a maintenance POV works.--[[User:Hardvice|Hardvice]] <small>[[User talk:Hardvice|(talk)]]</small> 02:49, 18 March 2007 (EDT) |
||
**** I can set them to be included in searches by default. No additional changes to remember during next upgrade, either (in fact they release patches for MediaWiki so it's usually pretty easy to upgrade even with modified code). The only downside is that in order to make them real namespaces we have to temporarily rename the articles because if there's overlap between a namespace and articles beginning with that namespace name then they'll be inaccessible. Would only be a one time thing, though, so it doesn't matter too much. Whatever makes things easier for everyone. ([[User:Admin|Admin]] 02:53, 18 March 2007 (EDT)) |
|||
==Namespace Numbers== |
==Namespace Numbers== |
||
How do you know which namespaces are associated with which numbers? Are you just counting down from a dropbox? — [[User:Ryangibsonstewart|<font color=#0147FA>RyanGibsonStewart</font>]] ([[User talk:Ryangibsonstewart|<font color=#0147FA>talk</font>]]) 00:42, 18 March 2007 (EDT) |
How do you know which namespaces are associated with which numbers? Are you just counting down from a dropbox? — [[User:Ryangibsonstewart|<font color=#0147FA>RyanGibsonStewart</font>]] ([[User talk:Ryangibsonstewart|<font color=#0147FA>talk</font>]]) 00:42, 18 March 2007 (EDT) |
||
Revision as of 06:53, 18 March 2007
This template can strip off the pseudonamespace from the value of {{PAGENAME}}. This is useful for templates because "true" namespaces (like Help:) are automatically excluded from {{PAGENAME}}, but pseudonamespaces are not. Right now, it's set up to strip Episode: and Graphic Novel:. What other pseudonamespaces do we need to add to it?--Hardvice (talk) 23:44, 17 March 2007 (EDT)
- Portal:, Theories:, Spoiler:, and Heroes Interactive:. Heroes Wiki: is not a pseudonamespace, I believe, right? — RyanGibsonStewart (talk) 23:58, 17 March 2007 (EDT)
- Graphic Novel is a pseudo-namespace. Heroes Wiki is a true namespace. and if it would make things easier I could make those psuedo-namespaces true namespaces instead. (Admin 02:39, 18 March 2007 (EDT))
- Hmmm. What would that do to searching? And does it mean more changes to remember the next time you upgrade? In any case, this template will still work, even if some of these get made into real namespaces, because then they'd fall into the default. So whatever works from a maintenance POV works.--Hardvice (talk) 02:49, 18 March 2007 (EDT)
- I can set them to be included in searches by default. No additional changes to remember during next upgrade, either (in fact they release patches for MediaWiki so it's usually pretty easy to upgrade even with modified code). The only downside is that in order to make them real namespaces we have to temporarily rename the articles because if there's overlap between a namespace and articles beginning with that namespace name then they'll be inaccessible. Would only be a one time thing, though, so it doesn't matter too much. Whatever makes things easier for everyone. (Admin 02:53, 18 March 2007 (EDT))
- Hmmm. What would that do to searching? And does it mean more changes to remember the next time you upgrade? In any case, this template will still work, even if some of these get made into real namespaces, because then they'd fall into the default. So whatever works from a maintenance POV works.--Hardvice (talk) 02:49, 18 March 2007 (EDT)
- Graphic Novel is a pseudo-namespace. Heroes Wiki is a true namespace. and if it would make things easier I could make those psuedo-namespaces true namespaces instead. (Admin 02:39, 18 March 2007 (EDT))
Namespace Numbers
How do you know which namespaces are associated with which numbers? Are you just counting down from a dropbox? — RyanGibsonStewart (talk) 00:42, 18 March 2007 (EDT)
- They aren't namespace numbers. They're the number of characters to skip. I'm counting on my fingers, actually, which is getting me some odd looks. What the template does:
- First it tests for articles whose titles match the first seven letters of the pseudonamespaces (i.e. an article named "Episode" or "Graphic") and excludes them.
- Then it reads the first seven characters (can't read more than seven because Portal: is only seven long)
- Then it looks for a match
- If it finds it, it truncates the specified number of characters from {{PAGENAME}}. For example, on Portal:Cast, it would skip 7 characters and become "Cast". On Heroes Interactive:The Fix, it would skip 19 characters and become "The Fix".
- If it doesn't find a match, it leaves {{PAGENAME}} as it is. This lets it be used on a mix of articles with and without pseudonamespaces.--Hardvice (talk) 01:09, 18 March 2007 (EDT)
- Oh my goodness, I was going crazy trying to figure out what those numbers meant and how you came up with them. Sheesh ... By the way, you counting on your fingers reminds me of when I took my massage therapy certification test at a testing center--we had to name different muscles, their inserts and attachments, and what actions they performed. I'm such a kinesthetic learner that I would sit there an move my arm back and forth, or my shoulders up and down so I could remember the associated actions--meanwhile the guy next to me is taking the bar exam or a writing text or whatever and is looking at me like I'm crazy...which I am, so it was quite apt. — RyanGibsonStewart (talk) 01:29, 18 March 2007 (EDT)