Template:WNW

From Wikiversity

Jump to: navigation, search
This version
is common to all sites except Wikinews, where is must return a type void.
Note: Hidden content.

version at-a-glance

Ver: A -- Wikiversity -- drop ":" from "n:" prefix, siteprefix handling is inconsistent on toleration of double "::" generations. FrankB 16:27, 9 July 2008 (UTC)


This is a register macro
that might alternatively be stated as {{#ifeq:{{SITENAME}}|Wikinews|{{void}}|n}} :where 'n:' or ":" is the "needs" 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 Wikinews (The different version), this template has the effect of replacing the full url version [[n: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.


Similar templates at English sister projects [edit]
Wikipedia-logo.png wpd Wikipedia WNW
Commons-logo.svg cms Commons WNW
Wikibooks-logo.svg wbk Wikibooks WNW
Wikinews-logo.svg wnw Wikinews WNW
Wikispecies-logo.svg wsp Wikispecies WNW
Wikiversity-logo.svg wvy Wikiversity WNW