Template talk:Namespace of associated page
Latest comment: 18 years ago by Omniplex
{{Namespace of associated page}} gives Template
- This code might be overkill in templates using the new (2006) m:ParserFunctions anyway, because then the following is simpler:
- {{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}|{{SUBJECTSPACE}}|{{TALKSPACE}}}}
- -- Omniplex (w:t) 01:41, 31 May 2006 (UTC)
- I changed it to that.--Patrick 06:38, 31 May 2006 (UTC)
- The hard decision is always "do I want it subst'able or elegant", for some cases of "ifdef" (no else) and "switch" (the template) I'm still undecided what's the best way to go. Your subst= strategy can help, but code like subst={{{subst|}}} is not more elegant. -- Omniplex (w:t) 08:03, 31 May 2006 (UTC)