User:DavidJCobb/Template Sandbox/What Links Here experiment/Actual Example

From ZeldaChaos
Jump to: navigation, search


This template allows you to get a list of pages that call it, indexed by parameter.

E.x. to see what pages call this template with the first unnamed parameter set to Foobar, check the What links here entry for Actual Example/value:Foobar.

To see what pages call this template without specifying the first unnamed parameter, check the What links here entry for Actual Example/undefined.

Technical Explanation

This template simply includes a non-existent article whose name is generated from the first unnamed parameter it receives. The inclusion is done within <includeonly> tags, so the template itself is not on the non-existent article's What links here entry.

Uses

This is primarily useful when developing extensions using some form of advanced logic.

Note

If this template is moved or copied to another location, its code must be updated and the new location must be added.

Example:
User:DavidJCobb/Template Sandbox/What Links Here experiment/Actual Example/value:TEST
List of pages that call this template with the first unnamed parameter equal to TEST

Personal tools
Namespaces

Variants
Actions
Glitches
Navigation
Affiliates
Toolbox
Google AdSense