Шаблон:TestLinks — различия между версиями
Blinnna (обсуждение | вклад) (Новая: <includeonly>{{#ifexist: Category:{{{pagename|{{PAGENAME}}}}}{{#ifeq: {{{pagename|}}}|{{{purpose|}}}||{{#if: {{{purpose|}}}|_{{{purpose}}}|}}}}_{{{link|}}}||{{LinksEdit| linktemp={{{lin...) |
Художник (обсуждение | вклад) м |
||
Строка 1: | Строка 1: | ||
− | <includeonly>{{#ifexist: | + | <includeonly>{{#ifexist:Категория:{{{pagename|{{PAGENAME}}}}}{{#ifeq: {{{pagename|}}}|{{{purpose|}}}||{{#if: {{{purpose|}}}|_{{{purpose}}}|}}}}_{{{link|}}}||{{LinksEdit| |
linktemp={{{linktemp|}}}| | linktemp={{{linktemp|}}}| | ||
pagename={{{pagename|}}}| | pagename={{{pagename|}}}| | ||
Строка 34: | Строка 34: | ||
link=(NPC Type)| | link=(NPC Type)| | ||
purpose={{{purpose|Quest}}}| | purpose={{{purpose|Quest}}}| | ||
− | generic=[[ | + | generic=[[Категория:NPC Types]]| |
}}</pre> | }}</pre> | ||
Версия 15:37, 22 мая 2008
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=[[Категория: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.
Полезные ссылки: | Все шаблоны | Information Templates | Class Templates |
---|