This template is a simple way of creating optional links based on whether the target exists or not.

It is presently used in {{văn hoá theo khu vực}}, as that template uses the logic in question so many times that transcluding it every time would lead to cluttered code.

Cách sử dụng sửa

{{listexist|page|linktext|alternative}}

If alternative is specified, the template will link to that article. Otherwise, the template will link to page if it exists. linktext, if specified, will be the label for the link (or unlinked output).

Ví dụ sửa

{{linkexist|Lịch sử Trung Quốc}}

[[Lịch sử Trung Quốc|]]

{{linkexist|Lịch sử Trung Quốc|Lịch sử}}

Lịch sử

{{linkexist|Lịch sử Trung Quốc|Lịch sử|Văn hóa Trung Quốc}}

Lịch sử

Xem thêm sửa