Шаблон:TestLinks — различия между версиями
Художник (обсуждение | вклад) м |
Fuego (обсуждение | вклад) |
||
Строка 27: | Строка 27: | ||
from [[Template:ZoneInformation]]: | from [[Template:ZoneInformation]]: | ||
<pre>{{TestLinks|linktemp=ZoneLinks|pagename={{PAGENAME}}|link=POIs}}</pre> | <pre>{{TestLinks|linktemp=ZoneLinks|pagename={{PAGENAME}}|link=POIs}}</pre> | ||
− | from [ | + | from [[Template:NPCInformation]]: |
<pre>{{TestLinks|linktemp=ZPNPCLinks|pagename={{{zone}}}|link={{{purpose|Quest}}}</pre> | <pre>{{TestLinks|linktemp=ZPNPCLinks|pagename={{{zone}}}|link={{{purpose|Quest}}}</pre> | ||
− | from [ | + | from [[Template:NPCInformation]]: |
<pre>{{TestLinks|linktemp=| | <pre>{{TestLinks|linktemp=| | ||
pagename={{{purpose|Quest}}}| | pagename={{{purpose|Quest}}}| |
Версия 13:38, 11 июня 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 |
---|