Template:WDY

From The Sonic Eats Rings Museum
Revision as of 11:30, 7 November 2008 by SoNick (talk | contribs) (New page: <includeonly>{{#ifeq:{{SITENAME}}|Wiktionary|<!--void type, do nothing-->|wikt:}}</includeonly><noinclude>{{macroregister usage|diffsite=Wiktionary|abbrev=wikt:|sitename=Wiktionary|ineligi...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

(edit  links)


This version is common to all sites except Wiktionary
Note: Hidden content. This is common usage for a number of templates.

This is a register macro that might alternatively be stated as:

{{#ifeq:{{SITENAME}}|Wiktionary|{{void}}|wikt: }}
where 'wikt:' is the definition on all other English language sister projects. It's purpose is to simplify local output code and avoid precisely that sort of #ifeq: code statement in working templates.
Locally on Wiktionary (The different version), this template has the effect of replacing the full url version [[wikt:Some page name|Some page name]] with a local wikilink version which will then reveal bad links (redlinks) if a page does not exist.
This is used in a number of templates as a sub-template for that reason, especially those needing interwiki portability.

This different method of implementation has instead a hardcoded different fixed value on and off Wikipedia when accessed by the identical template and so allows portable template coding.