Template:Read parameter name/doc

From MOASSpedia
< Template:Read parameter name
Revision as of 17:02, 26 December 2020 by Wikipedia>MSGJ (update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

This template will read the contents of a template to extract the name of a parameter. It uses Module:Page to obtain the content of a template, then Module:String to search for the relevant string and return the parameter required.

Example

Template:WikiProject Doctor Who contains the definition |tf 1={{{Torchwood-task-force|}}}

Calling the following

{{Read parameter name|template=WikiProject Doctor Who|tf 1}}

returns

Credits

The code for this template was kindly provided by User:RexxS.