Template:Lsw/doc
This is a documentation subpage for Template:Lsw. It may contain usage information, categories and other content that is not part of the original template page. |
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.
See Also
edit