Template:Lsw
[[w:{{{1}}}]]
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
editOne parameter format displays the Wikipedia link with a leading w:
- {{lsw|Colloquium}} generates Colloquium
- {{lsw|Unknown}} generates w:Unknown
Two parameter format displays the Wikipedia link as a native link (no leading w: displayed):
- {{lsw|Colloquium|}} generates Wikiversity link Colloquium
- {{lsw|Unknown|}} generates Wikipedia link Unknown
- If the Wikiversity page "Unknown" were to be created, Wikipedia Unknown was {{lsw|Unknown|}}'s previous function.