Template:LinkCatIfExists/doc

来自Local Chinese Wikipedia
imported>BigBullfrog2020年12月18日 (五) 08:36的版本 建立内容为“{{NoteTA|G1=MediaWiki}}{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata…”的新页面)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转到导航 跳转到搜索

This is a simple helper template, to be used in other templates. It displays a link to a category if that category exists; otherwise it just displays plaintext.

Optional display text may be added as a second parameter.

使用方法[编辑]

{{LinkCatIfExists|CategoryName|OptionalDisplayText}}

Simple usage
{{LinkCatIfExists|CategoryName}}
Examples:
With optional display text
{{LinkCatIfExists|CategoryName|DisplayText}}
Examples:

另见[编辑]