Last modified on 17 December 2012, at 09:56

Template:Lw

[[w:{{{1}}}]]

Template documentation[edit] [history] [purge]

This template creates conditional Wikibook / Wikipedia links. If the given Wikibook article exists, the link will appear as a link to the native Wikibook article. If the given Wikibook article does not exist, the template displays a Wikipedia link with the same name instead.

UsageEdit

One parameter format displays the Wiki link with a leading w:


Two parameter format displays the Wiki link as a native link (no leading w: displayed):

  • {{lw|Cookbook:recipes|}} generates Wikibook link Cookbook:recipes
  • {{lw|Unknown|}} generates Wikipedia link Unknown
  • If the Wikibook page "Unknown" were to be created, Wikipedia Unknown was {{lw|Unknown|}}'s previous function.