Bureaucrats, content-moderator, emailconfirmed, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Administrators, threadmoderator
85,404
edits
Line 11: | Line 11: | ||
Other wikis use something similar to this template. [[memoryalpha:Memory Alpha|Memory Alpha]], for instance uses a template with exactly the same name. However, our {{tl|w}} is a bit different to [[memoryalpha:template:w]], in that it defaults to the name of the page if you don't add your own variable name. In essence, Memory Alpha use {{tl|w}} to do not only what this one does, but also what {{tl|wikipediainfo}} does. The default value of the second variable in this template is the value of ''first'' variable — not the name of the page on which you're working. That's why :<code><nowiki>{{w|London}}</nowiki></code> renders {{w|London}}. | Other wikis use something similar to this template. [[memoryalpha:Memory Alpha|Memory Alpha]], for instance uses a template with exactly the same name. However, our {{tl|w}} is a bit different to [[memoryalpha:template:w]], in that it defaults to the name of the page if you don't add your own variable name. In essence, Memory Alpha use {{tl|w}} to do not only what this one does, but also what {{tl|wikipediainfo}} does. The default value of the second variable in this template is the value of ''first'' variable — not the name of the page on which you're working. That's why :<code><nowiki>{{w|London}}</nowiki></code> renders {{w|London}}. | ||
For those interested in technical details, ''our'' template is actually delivering the following code: <code><nowiki>[[wikipedia:London|London]]</nowiki></code> In other iterations of this template around Wikia, it might instead be delivering ''this'' code: <code><nowiki>[[wikipedia:London|{{PAGENAME}}]]</nowiki></code>, which is sometimes a very different thing. | For those interested in technical details, when you type <code><nowiki>{{w|London}}</nowiki></code>, ''our'' template is actually delivering the following code: <code><nowiki>[[wikipedia:London|London]]</nowiki></code>. | ||
In ''other'' iterations of this template around Wikia, it might instead be delivering ''this'' code: <code><nowiki>[[wikipedia:London|{{PAGENAME}}]]</nowiki></code>, which is sometimes a very different thing. |
edits