Modul:GetParameters/doc
Ini adalah halaman dokumentasi untuk Modul:GetParameters
TemplateStyles' src
attribute must not be empty.
This Lua module is used on many pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
TemplateStyles' src
attribute must not be empty.
Modul nèka ènilai minangka modul beta, tor lasta èyangghuy halè tèghâr. Modul nèka ghi' anyar tor samostèna èyangghuy kelabân mastètè otabâ prajhâtna ka'angghuy mamastè asèlla nyondhuk kelabân pengarebbhânna. |
Usage
beccè'getParameters
beccè'Takes 2 required arguments, frame_args
and arg_list
. Parses a frame's arguments, returning either the provided named arguments in arg_list
if found or the positional parameters instead if not. This is designed to work around the stripping of values that takes place for defined parameters which could be important.
As an example, the calls getParameters({"a", "b", "c"}, {"x", "y"})
and getParameters({x="a", y="b", z="c"}, {"x", "y"})
would both give back {x="a", y="b"}
.
getBoolean
beccè'Takes 1 required argument boolean_str
. Turns the input into a true/false boolean value based on the input. Will error if given anything other than a string or boolean value.
defined
beccè'To be invoked from inside a template instead of a module. Determines if a certain parameter is defined in the parent frame's arguments.