Content deleted Content added
m Tagging for WPCHICAGO - step 1 using AWB (10274) |
m Update after template move |
||
Line 789:
OK, you're quite right when you say that certain elements should only be used on article talk pages. It's a trivial thing, but I was thinking that for test banners in other talk namespaces, it would be nice if article/page/whatever was displayed consistantly. Let me try this pagetype thing from another angle:
{{
In this case, even though I've overridden the default Template-Class assessment, pagetype still displays "template". Should pagetype not default to the assessment rather than the namespace? [[User:PC78|PC78]] ([[User talk:PC78|talk]]) 10:17, 14 September 2009 (UTC)
:Ah well. I thought quite hard about how to code this logic. See [[Template:Pagetype/doc]] for all the details. I can't quite remember now, but I think I decided that most demonstration cases (e.g. documentation, test cases) would be in subjectspace, and indeed the behaviour you want is exactly what does happen in any subject space. In normal usage, a file is still a file whatever you class it as, so it seemed to make more sense to say "this file has been rated as A-class" than "this article has been rated as A-class". What your asking for, I think, is for the ''category'' parameter be passed to {{tl|pagetype}} so that it knows if it's "real" or a "demo", and this is probably far too much added complexity for little gain. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 10:56, 14 September 2009 (UTC)
|