Difference between revisions of "Template:WhatLinksHere"
Jump to navigation
Jump to search
---
---
>Pages that use this template< >Pages that use this template<
Line 1: | Line 1: | ||
<includeonly><center>[[Special:WhatLinksHere/{{{prefix}}}{{PAGENAME}}|{{#switch: {{{type}}}| template = >Pages that use this template<| page = >What links here<| Template = >Pages that use this template<| Page = >What links here<| #default = >What links here<}}]]</center></includeonly><noinclude> | <includeonly><center>[[Special:WhatLinksHere/{{{prefix}}}{{PAGENAME}}|{{#switch: {{{type}}}| template = >Pages that use this template<| page = >What links here<| Template = >Pages that use this template<| Page = >What links here<| #default = >What links here<}}]]</center></includeonly><noinclude>Purpose: | ||
To easily show what pages link to another particular page, standard for most templates. | |||
* | <center>---</center> | ||
**Page type. If it's a ''template'', put '''template''' in this space. If it's any other page, fill it with '''page''' | |||
Use: | |||
<code><nowiki>{{WhatLinksHere|prefix=Prefix|type=Type}}</nowiki></code> | |||
*Prefix: | |||
**If the page has a prefix, such as '''Talk:''', '''Template''' or '''File:''', then put that in this space. Otherwise, leave it blank. | |||
*Type: | |||
**Page type. If it's a ''template'', put '''template''' in this space. If it's any other page, simply fill it with '''page''' or leave it blank. | |||
<center>---</center> | <center>---</center> | ||
Example: | Example: | ||
{{WhatLinksHere|prefix=Template:|type=template}}<br> | |||
(The above is just this page's example. While it does work, the one to be 'officially' added to this page is below) | |||
{{WhatLinksHere|prefix=Template:|type=template}} | {{WhatLinksHere|prefix=Template:|type=template}} | ||
[[Category:Templates/Helpers]]</noinclude> | [[Category:Templates/Helpers]]</noinclude> |
Revision as of 02:07, 28 February 2014
Purpose:
To easily show what pages link to another particular page, standard for most templates.
Use:
{{WhatLinksHere|prefix=Prefix|type=Type}}
- Prefix:
- If the page has a prefix, such as Talk:, Template or File:, then put that in this space. Otherwise, leave it blank.
- Type:
- Page type. If it's a template, put template in this space. If it's any other page, simply fill it with page or leave it blank.
Example:
(The above is just this page's example. While it does work, the one to be 'officially' added to this page is below)