Template:OTHERSITE
From Wikipedia, the free encyclopedia
- Note: Hidden content.
- This is a register macro template defining a local value particular to Wikipedia
- that value is substituted for template logic that might alternatively be stated as
{{#ifeq:{{SITENAME}}|Some sister site|{{void}}|W:}}
and is in fact a sub-template of other templates.
This is frequently a more elegant and less cumbersome means of implementation, that eliminates many if-then-else parser function situations in interwiki capable templates, and is especially valuable within #switch and other #if-then-else blocks of code.
- On Wikimedia Commons
this register holds the value of the Wikipedia prefix 'W:'
- On Wikipedia
this register holds the value of a null... ':', enabling interwiki templates to show local redlinks, instead of always being cast as a fullurl type of link as local use of [[w:Pagename|Pagname]] would otherwise generate... hiding and masking an error or bad link.
This different method of implementation has instead a hardcoded different fixed value on and off the current sister site when accessed by the identical template on various sisters. This implementation avoids multiple usages of #ifeq: SITENAME testing, by substituting a locally defined value which correctly settles the issue involved in the main (usually an interwiki type of linking) template logic.
Similar templates at English sister projects [edit] | |||
---|---|---|---|
mta | Meta-wiki | OTHERSITE | |
wpd | Wikipedia | OTHERSITE | |
cms | Commons | OTHERSITE | |
wsp | Wikispecies | OTHERSITE | |
wvy | Wikiversity | OTHERSITE |
- Related register macros
- (these defined one way on home site, as an appropriate prefix or sitename interpretable to Wikimedia Foundation software off that site)
- Template:WBK - wikibooks
- Template:CMS - commons
- Template:MTA - meta
- Template:WPD - wikipedia
- Template:WSP - wikispecies
- Template:WVY - Wikiversity