Jump to content

This is an archive of the Fandomstuck Wiki (fandomstuck.fandom.com), rebuilt from a full-history export taken in 2021 after the wiki was shut down. Page text and edit history are complete. Images weren't part of the export; the 216 of 1,045 that the Wayback Machine had captured were recovered, most of them as small thumbnails.

MediaWiki:Api-help-templatedparams

From Fandomstuck Wiki

Templated parameters support cases where an API module needs a value for each value of some other parameter. For example, if there were an API module to request fruit, it might have a parameter fruits to specify which fruits are being requested and a templated parameter {fruit}-quantity to specify how many of each fruit to request. An API client that wants 1 apple, 5 bananas, and 20 strawberries could then make a request like fruits=apples|bananas|strawberries&apples-quantity=1&bananas-quantity=5&strawberries-quantity=20.