ແມ່ແບບ:Normalwraplink
Appearance
NOTE: This template has confusing behaviour, poor incomplete documentation, and produces invalid wikitext in some cases.
The template is a way of creating optional links based on whether the target exists or not.
It is presently used in {{culture of region}}, as that template uses the logic in question so many times that transcluding it every time would lead to cluttered code.
Usage
[ດັດແກ້]{{linkexist|page|linktext|alternative}}
If alternative
is specified, the template will link to that title. Otherwise, the template will link to page
if it exists. linktext
, if specified, will be the label for the link (or unlinked output).
Examples
[ດັດແກ້]{{linkexist|History of Ghana}}
{{linkexist|History of Ghana|History}}
{{linkexist|History of Ghana|History|Culture of Ghana}}
See also
[ດັດແກ້]ຄູ່ມືການໃຊ້ງານທີ່ສະແດງຂ້າງເທິງນີ້ແມ່ນດຶງມາຈາກ ແມ່ແບບ:Normalwraplink/doc (ແກ້ | ປະຫວັດ) ຜູ້ຂຽນສາມາດທຳການທົດລອງໄດ້ທີ່ກະບະຊາຍ (ສ້າງ | ຄັດລອກ) ແລະຊຸດທົດສອບ (ສ້າງ) ຂອງແມ່ແບບນີ້ ກະລຸນາເພິ່ມໝວດໃສ່ໜ້າຍ່ອຍ /doc ໜ້າຍ່ອຍຂອງແມ່ແບບນີ້ |