Difference between revisions of "Template:WhatLinksHere"

From NeoDex
Jump to navigation Jump to search
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly><center>[[Special:WhatLinksHere/{{{type1}}}{{PAGENAME}}|{{#switch: {{{type2}}}| 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>Use:
<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:


<code><nowiki>{{WhatLinksHere|type='''1'''}}</nowiki></code>
To easily show what pages link to another particular page, standard for most templates.


*1:
<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|type1=Template:|type2=Template}}
{{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:

>Pages that use this template<


(The above is just this page's example. While it does work, the one to be 'officially' added to this page is below)

>Pages that use this template<