Template:Read parameter name/doc

From MOASSpedia
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.