Misplaced Pages

Module:Params/doc/link to the code

Article snapshot taken from[REDACTED] with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Module:Params | doc

This is an old revision of this page, as edited by Grufo (talk | contribs) at 09:27, 1 October 2024 (Update the line numbers). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Revision as of 09:27, 1 October 2024 by Grufo (talk | contribs) (Update the line numbers)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff) Template documentation[view] [edit] [history] [purge]

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}}squeezing
  • {{module:params/doc/link to the code|cutting|Lorem ipsum}}Lorem ipsum

Complete list of the links generated

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:

grep -n '^library.\|^static_iface.' params.lua | sed 's/\(library\|static_iface\)\(\.\|\\|\s*=\s*function\s*(\+)//g;s/^\(\+\):\(.\+\)$/		| \2 = L-\1/g'
The above documentation is transcluded from Module:Params/doc/link to the code/doc. (edit | history)
Editors can experiment in this module's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this module.
Module:Params/doc/link to the code Add topic