• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Get parameter

  • Template
  • Talk
  • Language
  • Watch
  • Edit
Template documentation[view] [edit] [history] [purge]
Shortcut
  • {{get argTemplate:Get arg}}
This template uses Lua:
  • Module:Page (sandbox)
  • Module:String (sandbox)
  • Module:Expand wikitext

This template fetches a parameter value from a template call on a specified page: {{Get parameter | x | y | z}} gets parameter x from the call of template y on page z. It's an alternate implementation of {{Template parameter value}}, which while it doesn't work (and will likely produce garbage) if the page the parameter value is being fetched from contains more than a call to the template specified and some <noinclude>d values, it can, on the other hand, handle piped links and other more complicated wikitext that {{template parameter value}} can't handle.

E.g.:

  • {{get parameter|inventors|Infobox instrument|Template:Infobox saxophone}} → Adolphe Sax
The above documentation is transcluded from Template:Get parameter/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Get_parameter&oldid=1236432968"
Last edited on 24 July 2024, at 17:37

Languages

    • العربية
    • Ελληνικά
    • فارسی
    • 한국어
    • Bahasa Melayu
    • සිංහල
    • Slovenščina
    • တႆး
    • ไทย
    • Tiếng Việt
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 24 July 2024, at 17:37 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop