Template:Lsw/doc

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

Usage
One parameter format displays the Wikipedia link with a leading w:
 * generates
 * generates

Two parameter format displays the Wikipedia link as a native link (no leading w: displayed):
 * generates Wikiversity link
 * generates Wikipedia link
 * If the Wikiversity page "Unknown" were to be created, Wikipedia Unknown was 's previous function.