Jump to content

Module:Params/doc/link to the code/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Grufo (talk | contribs) at 00:48, 29 June 2025 (Complete list of the links generated: Update the list). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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

[edit]
  • {{module:params/doc/link to the code|squeezing}}squeezing
  • {{module:params/doc/link to the code|cutting|Lorem ipsum}}Lorem ipsum
[edit]
  1. sequential
  2. non-sequential
  3. all_sorted
  4. reassorted
  5. setting
  6. squeezing
  7. filling_the_gaps
  8. clearing
  9. cutting
  10. cropping
  11. purging
  12. backpurging
  13. rotating
  14. sorting_sequential_values
  15. imposing
  16. providing
  17. discarding
  18. excluding_non-numeric_names
  19. excluding_numeric_names
  20. with_name_matching
  21. with_name_not_matching
  22. with_value_matching
  23. with_value_not_matching
  24. trimming_values
  25. converting_values_to_lowercase
  26. converting_values_to_uppercase
  27. mapping_by_calling
  28. mapping_by_invoking
  29. mapping_by_magic
  30. mapping_by_replacing
  31. mapping_by_mixing
  32. converting_names_to_lowercase
  33. converting_names_to_uppercase
  34. renaming_by_calling
  35. renaming_by_invoking
  36. renaming_by_magic
  37. renaming_by_replacing
  38. renaming_by_mixing
  39. grouping_by_calling
  40. parsing
  41. reinterpreting
  42. mixing_names_and_values
  43. combining_by_calling
  44. snapshotting
  45. remembering
  46. entering_substack
  47. pulling
  48. detaching_substack
  49. leaving_substack
  50. merging_substack
  51. flushing
  52. count
  53. concat_and_call
  54. concat_and_invoke
  55. concat_and_magic
  56. value_of
  57. list
  58. list_values
  59. coins
  60. unique_coins
  61. for_each
  62. call_for_each
  63. invoke_for_each
  64. magic_for_each
  65. call_for_each_value
  66. invoke_for_each_value
  67. magic_for_each_value
  68. call_for_each_group
  69. new
  70. self

Updating the list

[edit]

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:

grep -n '^library.\|^static_iface.' params.lua | sed 's/\(library\|static_iface\)\(\.\|\['\''\)\|'\''\]\|\s*=\s*function\s*([^)]\+)//g;s/^\([0-9]\+\):\(.\+\)$/		| \2 = L-\1/g'