Template talk:Documentation
This is the talk page for discussing improvements to the Documentation template. |
|
Archives: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10Auto-archiving period: 90 days |
Template:Documentation is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
To help centralise discussions and keep related topics together, all talk pages of subtemplates, and Module talk:Documentation, redirect here |
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
|
Text has been copied to or from this page; see the list below. The source pages now serve to provide attribution for the content in the destination pages and must not be deleted as long as the copies exist. For attribution and to access older versions of the copied text, please see the history links below. |
Template-protected edit request on 19 March 2024 Spelling/grammar/punctuation/typographical correction Suggestion
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
The a in ”Northern Sami” should be changed with an á, because it’s the proper way of spelling the language’s name. Thatpulpetti (talk) 01:11, 19 March 2024 (UTC)
- Not done: this is the talk page for discussing improvements to the template
{{Documentation}}
. Please make your request at the talk page for the article concerned. * Pppery * it has begun... 01:14, 19 March 2024 (UTC)
Link to run test cases
[edit]On module sandboxes, there is a message "See also the companion subpage for test cases (run)." and the "run" is a link to the talk page of the test cases, where the tests are executed. (I don't know where this message is produced because it does not seem to come from Template:Template sandbox notice.) I would like to propose that the run link be added to this module to appear next to the link to test cases, at the end of the documentation. — Martin (MSGJ · talk) 11:19, 4 April 2024 (UTC)
- @MSGJ, this already displays for me on modules in the metadata box (aka "the end of the documentation" box):
Editors can experiment in this module's sandbox (edit | diff) and testcases (edit | run) pages.
? Izno (talk) 21:26, 28 April 2024 (UTC)- Yes, I realised this later. I think I was looking at a module which had testcases in Module talk namespace but no unit tests in Module namespace. And the "run" link is not displayed in this case — Martin (MSGJ · talk) 07:46, 29 April 2024 (UTC)
Template-protected edit request on 11 April 2024
[edit]This edit request to Module:Documentation has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please add the following lines to the top of the module:
local makeInvokeFunc = require("Module:MakeInvokeFunc")(p)
And then remove the explicit function definition for makeInvokeFunc
from the module at line 94.
I created that module because it actually has a lot of potential for utility across modules. If an admin could also protect Module:MakeInvokeFunc to be template or full protected then it would address the concerns of "high risk". Awesome Aasim 19:00, 11 April 2024 (UTC)
- Pause for now because there is one more thing I realize this module needs. Awesome Aasim 19:10, 11 April 2024 (UTC)
- Okay reopening, but with modifications. Also do the same with
local message = require("Module:Message")(cfg)
. These helper functions can be quite useful in other modules which is why I pulled them out. Also protect afterword. Awesome Aasim 22:56, 11 April 2024 (UTC)- Aren't you the same person who claimed only a few weeks ago that this module should never need to be edited? Anyway, I think this request simply makes things more complicated for no apparent benefit, so deactivating. There's no harm in a 15-line function that has never changed in years being duplicated in a few places. On top of that it isn't really that genericizable in the first place since each module uses a slightly different version to handle things like wrapper templates, whether to trim whitespace, etc. that vary from template to template. Deactivating. * Pppery * it has begun... 02:37, 15 April 2024 (UTC)
- Okay reopening, but with modifications. Also do the same with
Discussion at Template talk:High-use
[edit]You are invited to join the discussion at Template talk:High-use § Linking to Help:Template from documentation of templates. —andrybak (talk) 19:53, 27 June 2024 (UTC)