This is an archive of past discussions about Template:Documentation. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page.
In the spirit of be bold and only after careful testing the Recommendation (above) was implemented taking care to lead with a new line. The differences are here.
which is definately NOT the similar to the empty or space strings. This is no longer the case as I blanked {{Documentation/none}} at 23:33, November 3, 2007 which made it possible for another user to restore the implementation with no reported incidents. – Conrad T. Pino06:12, 6 November 2007 (UTC)
However failure to find an incident report on this talk page doesn't mean one didn't happen. The restore was reverted again by a third user. – Conrad T. Pino06:26, 6 November 2007 (UTC)
Reverted 23:36, November 3, 2007 to 17:20, October 20, 2007 version
Problem report
Re: Template:Documentation reverted 20:51, November 3, 2007
Hi there. I don't understand what problem you were trying to solve at Template:Documentation, but you've broken the template so that it includes too much whitespace at the beginning. See WP:SONG#Infobox Single. As I don't understand the code well enough to fix it, would you mind trying to restore the previous behavior, where such excessive whitespace was not generated. Thanks in advance. --PEJL23:30, 3 November 2007 (UTC)
The above list is not comprehensive but I stop here since visible behaviors become noticable and therefore hopefully corrected soon after discovery. – Conrad T. Pino22:37, 11 November 2007 (UTC)
After the {{Template doc}} transcludes {{Template doc inline}} link was broken the {{Template doc inline}}links page shrank considerably making manual client editing feasable. Few clients still transclude {{Template doc inline}} and most are in User space or are /testcases created for this merge.
This page 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.TemplatesWikipedia:WikiProject TemplatesTemplate:WikiProject TemplatesTemplates
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.
Is it possible to hide templates in the documentation, so that the user sees a ready-made template that will be specified in the documentation? For example: Template link from Kazakh Wiktionary.
This has the template at the bottom, and I tried Help:Transclusion, but nothing worked.
I tried <inlcudeonly> but there is a space that brings the text down. And other templates are attached to it.
Actually no I wanted to hide the infobox or other templates from the documentation. For example, I specified a template with an example in the documentation, but at the end of the documentation is the template itself, I would like to hide it, but if you use <includeonly> then in articles appears a space that interferes. ExampleMurat Karibay (talk) 21:11, 28 January 2025 (UTC)
functionenvFuncs.templateTitle()--[[ -- The template (or module, etc.) title object. -- Messages: -- 'sandbox-subpage' --> 'sandbox' -- 'testcases-subpage' --> 'testcases' --]]localsubjectSpace=env.subjectSpacelocaltitle=env.titlelocalsubpage=title.subpageTextifsubpage==message('sandbox-subpage')orsubpage==message('testcases-subpage')or(subpage==message('doc-subpage')andmw.title.getCurrentTitle().namespace==env.docSpace)thenreturnmw.title.makeTitle(subjectSpace,title.baseText)elsereturnmw.title.makeTitle(subjectSpace,title.text)endend
This will make the doc environment behave correctly, giving the actual template name on the doc page rather than the name of the "doc" subpage. Aasim (話す) 00:17, 10 March 2025 (UTC)
In mobile but not desktop view, there is no space between Documentation and the first link: for example I see
Documentation[view] [edit] [history] [purge]
instead of
Documentation [view] [edit] [history] [purge]
This is true both on the mobile webpage and in the Android app, but the desktop view is fine. Using |heading=Documentation as a workaround produces the correct appearance on mobile, but the extra space is then visible in desktop view. Musiconeologist (talk) 12:35, 21 March 2025 (UTC)
Yes; the icons are unnecessary, and using icons simply for aesthetic appeal gives pages an amateurish look. Whenever possible, icons should be avoided on serious pages unless something needs to be strongly emphasized, which isn't the case here. "Documentation" is just a heading, like any other; it just happens to be in a template and faked for technical reasons. —{admin} Pathoschild 08:40:06, 12 November 2007 (UTC)
...to inform me, for no apparent reason, that there are no testcases and no sandbox (your formatting) for 99% of Wikipedia's templates that will never need such pages (indeed, I disagree with the idea of such pages in the first place; if you want a sandbox, we already have a sandbox)? It looks stupid – Gurch10:52, 13 November 2007 (UTC)
In this case having the extra baggage simplified continued non-admin contribution.
The "...has no sandbox and no testcases for..." contains sandbox testcases edit links supporting rapid creation. Preloading /testcases already occurs, preloading /sandbox is coming. The creating edit links save time and reduce errors. In cases where a /sandbox and /testcases (both) harm then code
{{Documentation|sandbox-testcases=hide}}
I'm open to adding "sandbox=hide" and "testcases=hide" if found useful.
This template's past behavior was display the messge only when both /sandbox and /testcases were present. Today's behvior displays 1 of 4 message variations in the Template or User namespaces. Revisions to this behavior change are best discussed here.
Wikipedia:Template test cases is a how-to guide far from guideline or official policy and worthy continued "I disagree with the idea of such pages in the first place;" discussion preferably on that talk page.
First line below heading displays in part "...is transcluded from /doc. (view | edit | history)" where "/doc", "view", "edit" and "history" are all hyperlinks. Malyctenar proposed removing "view" link as redundant to "/doc" link. I reverted the edit for other reasons but committed to stating reasons. This change is minor and of little consequence. I shall edit it back shortly. – Conrad T. Pino11:37, 14 November 2007 (UTC)
I reverted edit by Malyctenar with summary, "I'm pretty sure people know that clicking on the blue pagename link thingy makes them see it; also no need to test SUBPAGENAME within noinclude of a single template". My revert edit summary was, "have reasons for all; will put on talk or doc within 48 hours; thank you" and I keep that commitment now.
2. The "/sandbox copy / paste solution" to the "{{editprotected}} problem", an evolving solution scheduled for change once consensus for latest {{Template sandbox notice}} becomes clear in time.
3. I honor any general or template specific #switch: layout consenus. I'm ignorant of #switch: layout consenses as I've been corrected for both styles.
4. Comments are idiosyncratic. I'm ignorant here also and seek knowledge of consensus, if any.