Template talk:Documentation

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
WikiProject Templates  
WikiProject iconThis template (like all templates) is within the scope of WikiProject Templates, a group dedicated to improving the maintenance of Wikipedia's templates. This particular template is especially important to the project because it is used in the maintenance of other templates. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 

Purge button for just-created documentation[edit]

When this template has been added to a page but there appears to be no subpage, the only button displayed is [create]. Often in this situation, the subpage actually does exist but the template page just needs to be purged, so it'd be nice if the purge button was displayed, just as it is when the documentation has been found. {{u|Sdkb}}talk 00:17, 11 February 2021 (UTC)

Mr. Stradivarius, I'm not overly comfortable with Lua. As you seem to be the primary editor of the module, could you help implement this? {{u|Sdkb}}talk 23:06, 11 October 2021 (UTC)
Code-wise this should be enough: Special:Diff/1035088965/1049459408. See also the new test failure of testRenderStartBoxLinksDoesntExist at Module talk:Documentation/testcases.
Is there a consensus for such a change? —⁠andrybak (talk) 23:35, 11 October 2021 (UTC)
@Andrybak, there's WP:SILENT consensus, given that it's not too huge a change. I'll be happy to make it myself if we're confident the technical aspect is sound. I haven't seen that test failure thing before—does that indicate that the technical aspect of the change is sound? {{u|Sdkb}}talk 02:24, 12 October 2021 (UTC)
Sdkb, sorry, I wasn't clear. The test failure is expected – the new sandbox version is outputting the new link, for which a testcase update would be needed.
The change in the output is also visible on the page Template:Documentation/testcases: for Template:Documentation/testcases/nodoc (second box above Template:Documentation/testcases#Notest), the sandbox output has the [purge] link, while the live template (for the same "nodoc" subpage) does not. —⁠andrybak (talk) 03:26, 12 October 2021 (UTC)
As for consensus for this, I don't mind either way. This use case is rare (editors could use Preferences → Gadgets → Appearance → check Add a "Purge" option to the top of the page [...] with keyboard shortcut for purging), but the cost is negligible. —⁠andrybak (talk) 03:32, 12 October 2021 (UTC)
Okay, implemented; thanks for the help! {{u|Sdkb}}talk 04:09, 12 October 2021 (UTC)

Prefill TemplateData[edit]

 You are invited to join the discussion at Wikipedia talk:Template documentation § Including TemplateData. I suggest there that TemplateData should be included in the documentation prefill content. SWinxy (talk) 06:12, 23 November 2021 (UTC)

Preload page missing[edit]

On Module:Documentation/config#L-329 Template:Documentation/preload-filespace gets called but that page doesn't exist. Should it be created? What should its content be? - Klein Muçi (talk) 00:11, 20 December 2021 (UTC)

Deleted a decade ago. I've removed it. Izno (talk) 19:38, 21 December 2021 (UTC)

/sandbox2[edit]

Please can Template:XXXX/sandbox2 and Module:XXXX/sandbox2 be recognised as sandboxes by this template? At the moment it is prompting me to create Module:XXXX/sandbox2/sandbox which is bizarre. Thanks — Martin (MSGJ · talk) 16:35, 13 January 2022 (UTC)

I would not be a fan of such a change. Non-sandbox numbered sandboxes should generally be temporary. Izno (talk) 16:42, 16 January 2022 (UTC)