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: 3 months ![]() |
![]() | 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 centralize 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. |
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.
The same problem: https://kk.wikipedia.orghttps://demo.azizisearch.com/lite/wikipedia/page/Үлгі:Аралас_стильдегі_жауынгер Murat Karibay (talk) 17:23, 24 January 2025 (UTC)
<noinclude>...</noinclude>
block<includeonly>...</includeonly>
and <noinclude>...</noinclude>
.}}</includeonly><noinclude>
{{documentation|content=
}}
and </includeonly>
are the last pieces of wikitext of the template itself. <noinclude>
and {{documentation
are the first lines of the documentation's wikitext. There is zero whitespace between the two. For more details, see Wikipedia:Template documentation § Put documentation in the template. —andrybak (talk) 23:31, 28 January 2025 (UTC)
The redirect T:DOC has been listed at redirects for discussion to determine whether its use and function meets the redirect guidelines. Readers of this page are welcome to comment on this redirect at Wikipedia:Redirects for discussion/Log/2025 February 13 § T:DOC until a consensus is reached. Utopes (talk / cont) 13:14, 13 February 2025 (UTC)
![]() | This edit request to Module:Documentation has been answered. Set the |answered= parameter to no to reactivate your request. |
On line 229, please change the function to this:
function envFuncs.templateTitle()
--[[
-- The template (or module, etc.) title object.
-- Messages:
-- 'sandbox-subpage' --> 'sandbox'
-- 'testcases-subpage' --> 'testcases'
--]]
local subjectSpace = env.subjectSpace
local title = env.title
local subpage = title.subpageText
if subpage == message('sandbox-subpage') or subpage == message('testcases-subpage') or (subpage == message('doc-subpage') and mw.title.getCurrentTitle().namespace == env.docSpace) then
return mw.title.makeTitle(subjectSpace, title.baseText)
else
return mw.title.makeTitle(subjectSpace, title.text)
end
end
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
instead of
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)