Revision as of 12:48, 27 May 2024 editGrufo (talk | contribs)Extended confirmed users4,609 edits →Updating the list: New section← Previous edit | Revision as of 08:43, 31 May 2024 edit undoGrufo (talk | contribs)Extended confirmed users4,609 edits Update the documentationNext edit → | ||
Line 21: | Line 21: | ||
* <code>{{module:params/doc/link to the code|rotating}}</code> | * <code>{{module:params/doc/link to the code|rotating}}</code> | ||
* <code>{{module:params/doc/link to the code|sorting_sequential_values}}</code> | * <code>{{module:params/doc/link to the code|sorting_sequential_values}}</code> | ||
* <code>{{module:params/doc/link to the code|imposing}}</code> | |||
* <code>{{module:params/doc/link to the code|discarding}}</code> | |||
* <code>{{module:params/doc/link to the code|with_name_matching}}</code> | * <code>{{module:params/doc/link to the code|with_name_matching}}</code> | ||
* <code>{{module:params/doc/link to the code|with_name_not_matching}}</code> | * <code>{{module:params/doc/link to the code|with_name_not_matching}}</code> | ||
Line 52: | Line 54: | ||
After each update in the code of ] the list of line numbers stored in this template needs to be updated. If you use ] or other ] operating systems you can do that automatically by launching: | After each update in the code of ] the list of line numbers stored in this template needs to be updated. If you use ] or other ] operating systems you can do that automatically by launching: | ||
<syntaxhighlight lang="sh">cat params.lua | grep -n '^library.\|^ |
<syntaxhighlight lang="sh">cat params.lua | grep -n '^library.\|^static_iface.' | sed 's/\(library\|static_iface\)\(\.\|\\|\s*=\s*function(\+)//g;s/^\(\+\):\(.\+\)$/ | \2 = L-\1/g'</syntaxhighlight> | ||
<includeonly>{{Sandbox other|| | <includeonly>{{Sandbox other|| |
Revision as of 08:43, 31 May 2024
This is a helper template for the documentation of Module:Params that creates a link to the line in the Lua code where a function or a modifier is declared.
Usage
{{module:params/doc/link to the code|squeezing}}
{{module:params/doc/link to the code|cutting|Lorem ipsum}}
Complete list of the links generated
sequential
non-sequential
all_sorted
setting
squeezing
filling_the_gaps
clearing
cutting
cropping
purging
backpurging
rotating
sorting_sequential_values
imposing
discarding
with_name_matching
with_name_not_matching
with_value_matching
with_value_not_matching
trimming_values
mapping_by_calling
mapping_by_invoking
mapping_blindly_by_calling
mapping_blindly_by_invoking
renaming_blindly_by_calling
renaming_blindly_by_invoking
count
concat_and_call
concat_and_invoke
concat_and_magic
value_of
list
list_values
for_each
call_for_each
invoke_for_each
magic_for_each
call_for_each_value
invoke_for_each_value
magic_for_each_value
call_for_each_group
self
Updating the list
After each update in the code of Module:Params the list of line numbers stored in this template needs to be updated. If you use GNU or other Unix-like operating systems you can do that automatically by launching:
cat params.lua | grep -n '^library.\|^static_iface.' | sed 's/\(library\|static_iface\)\(\.\|\\|\s*=\s*function(\+)//g;s/^\(\+\):\(.\+\)$/ | \2 = L-\1/g'