Template talk:Documentation#Module:Documentation ready to deploy

{{talk header}}

{{permprot}}

{{central|text=all talk pages of subtemplates, and Module talk:Documentation, redirect here}}

{{WikiProject banner shell|

{{WikiProject Templates|template_for_template_maintenance=y}}

}}

{{copied|from1=Template:Documentation|from_oldid1=948472454|to1=:incubator:Template:Wp/nod/Documentation|to_diff1=4237152

|from2=Template:Documentation|from_oldid2=948472454|to2=:incubator:Template:Wp/nod/documentation|to_diff2=4237211

|from3=Module:Documentation/config|from_oldid3=729280654|to3=:incubator:Module:Wp/nod/Documentation/config|to_diff3=4237079}}

{{User:MiszaBot/config

| algo = old(90d)

| archive = Template talk:Documentation/Archive %(counter)d

| counter = 10

| maxarchivesize = 150K

| archiveheader = {{Automatic archive navigator}}

| minthreadstoarchive = 1

| minthreadsleft = 4

}}

Hiding templates in documentation

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: [https://kk.wiktionary.org/wiki/%D2%AE%D0%BB%D0%B3%D1%96:%D0%A1%D0%B5%D0%BF%D1%82%D0%B5%D1%83 Template link from Kazakh Wiktionary].

This has the template at the bottom, and I tried Help:Transclusion, but nothing worked.

I tried but there is a space that brings the text down. And other templates are attached to it.

The same problem:

https://kk.wikipedia.org/wiki/Үлгі:Аралас_стильдегі_жауынгер Murat Karibay (talk) 17:23, 24 January 2025 (UTC)

: Template documentation generally displays a sample ready-made template. See the documentation for Infobox person. Is that what you were looking for? — GhostInTheMachine talk to me 20:53, 24 January 2025 (UTC)

::Actually no I wanted to hide the infobox or other templates from the documentation. For example, I specified a template with an [https://kk.wiktionary.org/wiki/%D2%AE%D0%BB%D0%B3%D1%96:%D0%A1%D0%B5%D0%BF%D1%82%D0%B5%D1%83 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 then in articles appears a space that interferes. Example Murat Karibay (talk) 21:11, 28 January 2025 (UTC)

::: Murat Karibay, see Template:Human history for an example of not seeing the template below or above the documentation. Two notes:

:::# On English Wikipedia, by convention, the code of the template goes first, then the documentation in a {{tag|noinclude}} block

:::# It's important to have zero line breaks between {{tag|includeonly}} and {{tag|noinclude}}.

:::Here's the relevant bit of wikitext of Template:Human history for reference:

:::

}}

{{documentation|content=

::: The closing tag }} and are the last pieces of wikitext of the template itself. and {{documentation are the first lines of the documentation's wikitext. There is zero whitespace between the two. For more details, see {{section link|Wikipedia:Template documentation#Put documentation in the template}}. —⁠andrybak (talk) 23:31, 28 January 2025 (UTC)

::::Thanks, that helped. But there are spaces down when viewing from a smartphone browser.thumb Murat Karibay (talk) 16:03, 30 January 2025 (UTC)

"[[:T:DOC]]" listed at [[Wikipedia:Redirects for discussion|Redirects for discussion]]

30px

The redirect [//en.wikipedia.org/w/index.php?title=T:DOC&redirect=no 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 {{section link|1=Wikipedia:Redirects for discussion/Log/2025 February 13#T:DOC}} until a consensus is reached. Utopes (talk / cont) 13:14, 13 February 2025 (UTC)

Template-protected edit request on 10 March 2025

{{edit template-protected|Module:Documentation|answered=yes}}

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)

:{{complete2}}. P.I. Ellsworth , ed. put'er there 03:39, 12 March 2025 (UTC)

Heading displays wrongly in mobile view

In mobile but not desktop view, there is no space between Documentation and the first link: for example I see

:Documentation{{bracket|view}} {{bracket|edit}} {{bracket|history}} {{bracket|purge}}

instead of

:Documentation {{bracket|view}} {{bracket|edit}} {{bracket|history}} {{bracket|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)