Edge Rewrite
// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a21f57beaa13c20a

Jump to content

Module:Multiformat/doc

From Wikipedia, the free encyclopedia
Multiformat
DescriptionFormats multiple numbered arguments and outputs them in order, etc.
Status
Alpha
UpdatedJune 5, 2026 (52 days ago)
Dependencies

Formats multiple numbered arguments and outputs them in order, etc.

This module allows for formatting of multiple numbered arguments together in an output string.

Syntax:

  • Many typical Lua character sequences (i.e. \n) will insert the relevant character into the output.
  • %ARG% is the argument value
  • %ARGNUM% is the argument number'
Custom escape sequences
Sequence Result
\{ {
\} }
\[ [
\] ]
\p |
\e =
\_

Documentation

Package items

multiformat._all( pargs, cargs ) (function)
Main entrypoint for formatting output string with all parameters
Parameters:
pargs The arguments from the template call (table)
cargs The arguments from the module call (table)
cargs.startAll the beginning formatting string sequence (string)
cargs.endAll the ending formatting string sequence (string)
cargs.format the format string (string)
cargs.nowiki Whether the arguments are encased in nowiki tags (boolean)
cargs.empty The message to give if no arguments are specified (string)
Returns: Output to preprocess (string)
multiformat.all( frame ) (function)
Template call
Parameter: frame calling frame (Frame)
Returns: Output wikitext (string)
Usage: {{#invoke:Multiformat|all|startAll=start|endAll=end|format=String with %ARG% to replace with current arguments and %ARGNAME% to replace with name of argument}}
multiformat._named( pargs, cargs ) (function)
Main entrypoint for formatting output string with named parameters only
Parameters:
pargs The arguments from the template call (table)
cargs The arguments from the module call (table)
cargs.startAll the beginning formatting string sequence (string)
cargs.endAll the ending formatting string sequence (string)
cargs.format the format string (string)
cargs.nowiki Whether the arguments are encased in nowiki tags (boolean)
cargs.empty The message to give if no arguments are specified (string)
Returns: Output to preprocess (string)
multiformat.named( frame ) (function)
Template call
Parameter: frame calling frame (Frame)
Returns: Output wikitext (string)
Usage: {{#invoke:Multiformat|named|startAll=start|endAll=end|format=String with %ARG% to replace with current arguments and %ARGNAME% to replace with name of argument}}
multiformat._main( pargs, cargs ) (function)
Main entrypoint for formatting output string
Parameters:
pargs The arguments from the template call (table)
cargs The arguments from the module call (table)
cargs.startAll the beginning formatting string sequence (string)
cargs.endAll the ending formatting string sequence (string)
cargs.format the format string (string)
cargs.firstArg the first numbered argument to begin formatting (number)
cargs.prefix the argument prefix (string)
cargs.suffix the argument suffix (string)
cargs.nowiki Whether the arguments are encased in nowiki tags (boolean)
cargs.empty The message to give if no arguments are specified (string)
Returns: Output to preprocess (string)
multiformat.main( frame ) (function)
Template call
Parameter: frame calling frame (Frame)
Returns: Output wikitext (string)
Usage: {{#invoke:Multiformat|main|startAll=start|endAll=end|format=String with %ARG% to replace with current arguments|firstArg=number of first arg}}
multiformat._nArgs( pargs, cargs ) (function)
Counts the number of arguments which match a particular format
Parameters:
pargs The arguments from the template call (table)
cargs The arguments from the module call (table)
cargs.firstArg the first numbered argument to begin formatting (number)
cargs.prefix the argument prefix (string)
cargs.suffix the argument suffix (string)
cargs.nowiki Whether the arguments are encased in nowiki tags (boolean)
Returns: Number of numbered parameters supplied (number)
multiformat.nArgs( frame ) (function)
Template call
Parameter: frame calling frame (Frame)
Returns: Number of arguments passed (number)
Usage: {{#invoke:Multiformat|nArgs}}

Documentation above is auto generated