• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.154
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Read parameter name

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]

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.

The above documentation is transcluded from Template:Read parameter name/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Read_parameter_name&oldid=28346"
Last edited on 26 December 2020, at 17:03

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 26 December 2020, at 17:03.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop