This Forum has been archived

Visit the new Forums
Forums: Index Help desk Help with my Template
FANDOM's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.

50px-Replacement filing cabinet.svg

Note: This topic has been unedited for 1572 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.

I want to create templates that can switch automatically between languages on Scanime. What I have so far is this. Instead of switching from Dasnk:Pagename to Norsk:Pagename it goes to Norsk:Dansk:Pagename. What can I do about that? I found out that it works fine on my User page. I guess it's because User: is something built in the wiki. Can I do the same with Norsk: and Dansk:? - Takeshi 22:19, 2 March 2007 (UTC)

User: is a namespace. Same with Project:, Talk:, User talk:, etc... You can find a dropdown box of them at w:c:Scanime:Special:Prefixindex. But just because : is in an article dosen't mean that what's before it is a namespace. The best option is for you to request that the Tech Team create a namespace for each of those. Even though the limit is usualy 3, I think that the multilingual point of the wiki is a good enough reason to allow you to have more. Though, you need to make sure that there are no pages in the wiki which start with those prefixes, or else the pages will become inaccesable. Dantman (Talk) 22:42, 2 March 2007 (UTC)
Thank you! Where can I request such things? - Takeshi 22:51, 2 March 2007 (UTC)
I'm not sure if namespaces are the right solution to this. Putting the content in those namespaces will hide it from Special:Newpages and make it harder to link to since you'll always have to prefix links with [[Namespace:]]. Is your aim to have separate pages for each language? Will every article be in all those different languages? If so, is there a benefit to putting them all on the same wiki? Angela talk 23:38, 2 March 2007 (UTC)
You got a point there. I will overthink the matter overnight. Thank you for the responce! - Takeshi 23:41, 2 March 2007 (UTC)
What can work is subpages. You can have Page, and then have subpages in each language, like Page/en Page/no Page/dk, which can be transcluded with tricks like {{{{NAMESPACE}}:{{PAGENAME}}/en}}. See m:Help:Magic words. --Splarka (talk) 03:04, 3 March 2007 (UTC)

Yes, it's no problem to link from an external page or a language disambiguation page, wich I was planing to do. But I can't use that to link between the subpages to one another. I guess I'll have a head page with all the descriptions in different languages and link to sever episode guides and stuff from there. - Takeshi 10:18, 3 March 2007 (UTC)

Actually, subpages is a good idea. – Smiddle 17:22, 3 March 2007 (UTC)

It would take some coding work. But it's possible to save a country code to the session. Have that default to english, or whatever a user has in his/her prefferences. Have an extra GET param (eg: &cc=##) which will modify that value if it's on a list of languages in the wiki. And have that outputed as a MagicWord. In which case You would have a Article, with a Article/en, Article/no, etc... And the main article would basicly have {{/{{CC}}}}, {{CC}} being the MagicWord (of course there would be a better name for it. A sidebar similar to the interlanguage links would basicly always link back to the same page, except they would add the &cc= to the link basicly making it so that Article, could be viewed in multiple languages using the system. And I think it could be done with a very, very simple custom extension. Well, I don't know about the sidebar being as easy though. I'd half to think about that one. If you're going for something really multilingual I mean. Dantman (Talk) 19:35, 3 March 2007 (UTC)

That sounds interisting! I'm not very good at coding though. If it could be done it would be nice to see the outcome.
I will be busy preparing for my trip next week, so you shouldn't expect me to be much online. Just in case someone wonders.
Takeshi 23:25, 5 March 2007 (UTC)
Community content is available under CC-BY-SA unless otherwise noted.