Difference between revisions of "Template:WhatLinksHere"
Jump to navigation
Jump to search
---
---
>Pages that use this template< >Pages that use this template<
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><center>[[Special:WhatLinksHere/{{{ | <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> | ||
Line 10: | Line 18: | ||
Example: | Example: | ||
{{WhatLinksHere| | {{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}} | |||
[[Category:Templates/Helpers]]</noinclude> | [[Category:Templates/Helpers]]</noinclude> |
Latest revision as of 21:34, 6 March 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)