模板:Category more if exists/doc

维基百科,自由的百科全书
跳转到导航 跳转到搜索

A variant of {{Category more}} which links only to pages which actually exist

用法[编辑]

{{Category more if exists|Spain}} produces:

{{Category more if exists|xyx1234567 this page no exist}} produces:

Multiple link targets[编辑]

{{Category more if exists|Spain|Japan|France}} produces:

{{Category more if exists|Planet G45401|Spain|Xyzabcdefistan|Japan|France}} produces:

{{Category more if exists|Planet G45401|Spain|Xyzabcdefistan|South Qwetryopitania}} produces:

{{Category more if exists|Planet G45401|Xyzabcdefistan}} produces:

模板数据[编辑]

以下是该模板的模板数据,适用于可视化编辑器等工具。

Category more if exists模板数据

<templatedata> { "description": "This templates adds a 'For more information, see ...' statement with a maximum of 5 linked Wiki pages. Each link can be labelled with a user-defined new text. If no label is defined, the link will display with its original page name.", "params": { "1": { "label": "first link", "type": "string", "required": true, "description": "First link to a Wiki page, formatted as 'internal' Wiki-link, f.e. 'WP:WikiProject' or 'articlename'" }, "2": { "label": "second link", "type": "string", "description": "Second link to another Wiki page, same formatting as the first link. Note: 3 more links 3,4,5 can be added manually" } } } </templatedata>

参见[编辑]