Шаблон:TestLinks

Версия от 07:23, 17 мая 2008; Blinnna (обсуждение | вклад) (Новая: <includeonly>{{#ifexist: Category:{{{pagename|{{PAGENAME}}}}}{{#ifeq: {{{pagename|}}}|{{{purpose|}}}||{{#if: {{{purpose|}}}|_{{{purpose}}}|}}}}_{{{link|}}}||{{LinksEdit| linktemp={{{lin...)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)

Parameters

linktemp The name of the template that handles the linking for this category type. This can be blank (see generic)
pagename The {{PAGENAME}} of the page that called this template
link The category page type. The category page name is formed by pagename plus link
purpose used in the NPC tree. Precedes link, if defined
generic if linktemp is blank, this had better not be! Use this in place of a constructed call in LinksEdit!

Examples

from Template:ZoneInformation:

{{TestLinks|linktemp=ZoneLinks|pagename={{PAGENAME}}|link=POIs}}

from [{Template:NPCInformation]]:

{{TestLinks|linktemp=ZPNPCLinks|pagename={{{zone}}}|link={{{purpose|Quest}}}

from [{Template:NPCInformation]]:

{{TestLinks|linktemp=|
 pagename={{{purpose|Quest}}}|
 link=(NPC Type)|
 purpose={{{purpose|Quest}}}|
 generic=[[Category:NPC Types]]|
}}

See Also

This template is used by the following templates:

This template uses the following sub-templates:

Ultimately, I hope to expand this template to handle category redlink warnings for ALL category trees.

This is a sub-template, used by other templates, and is NOT intended for use by users!
Полезные ссылки: Все шаблоны Information Templates Class Templates

Parameters

linktemp The name of the template that handles the linking for this category type. This can be blank (see generic)
pagename The {{PAGENAME}} of the page that called this template
link The category page type. The category page name is formed by pagename plus link
purpose used in the NPC tree. Precedes link, if defined
generic if linktemp is blank, this had better not be! Use this in place of a constructed call in LinksEdit!

Examples

from Template:ZoneInformation:

{{TestLinks|linktemp=ZoneLinks|pagename={{PAGENAME}}|link=POIs}}

from [{Template:NPCInformation]]:

{{TestLinks|linktemp=ZPNPCLinks|pagename={{{zone}}}|link={{{purpose|Quest}}}

from [{Template:NPCInformation]]:

{{TestLinks|linktemp=|
 pagename={{{purpose|Quest}}}|
 link=(NPC Type)|
 purpose={{{purpose|Quest}}}|
 generic=[[Category:NPC Types]]|
}}

See Also

This template is used by the following templates:

This template uses the following sub-templates:

Ultimately, I hope to expand this template to handle category redlink warnings for ALL category trees.

This is a sub-template, used by other templates, and is NOT intended for use by users!
Полезные ссылки: Все шаблоны Information Templates Class Templates