Template talk:Doc

From Valve Developer Community
Jump to: navigation, search
Icon-message-48px.png
Welcome to Template talk:Doc!
This is the start of the Doc discussion page.

To add a new message, click on "Add Topic/Reply" button below, and set the "Subject".
To add a Reply, do the same as above, but leave the "Subject" blank.

Default Language

Icon-user.png
Empty.png
Popcorn18:26, 23 January 2023 (UTC)
I really like the language bar with the flags of all available docs at the top right, but what I really don't like is that the doc language defaults to the client's language even though a doc in the client's language does not exist. It even becomes ridiculous when the page uses {{doc|nolang=1}}, such that you get a non-existent doc and you don't even get the languages bar to switch to english. Please fix?
ERR
Empty.png
Max_3423:39, 23 January 2023 (UTC+4)
Fixed. Actually, I was just thinking about doing this. The thing is, I'm currently working on another template that will probably get rid of 90% of the mess with languages, both in templates and documentation. If everything works, the {{{suf}}} parameter will no longer be needed anywhere. And I also removed the nolang parameter. I don't even remember why I added it.
ERR
Empty.png
DaKang2335:52, 24 January 2023 (UTC+8)
There is a problem that the template can't load the documentation of default language when the translations don't exist and using the {{{content}}} parameter. Please add support for the parameter.

The buttons and message box can not work correctly

ERR
Empty.png
DaKang23319:36, 21 February 2023 (UTC+8)(edited)
There is a problem in the template that when your language is English, the Creating button on the right top and an empty message box before the documentation will be displayed whether the documentation exists.
ERR
Empty.png
DaKang23323:55, 21 February 2023 (UTC+8)
Unless move the English documentation to …/doc/en.
ERR
Empty.png
DaKang2330:17, 22 February 2023 (UTC+8)
The problem has solved by adding new parameter, {{{default-none}}} to {{uselang}}.
ERR
Empty.png
Max_3420:28, 21 February 2023 (UTC+4)
It was worth just rolling back the change from {{uilang}} to {{uselang}}. In any case, this is not important, since it is planned to switch from this template to the original template {{documentation}}. Everything will work differently in it, so there will be no need for the {{{default-none}}} parameter in {{uselang}}.
Icon-user.png
Empty.png
Amicdict18:43, 4 April 2023 (UTC)
Any changes in plans?
ERR
Empty.png
DaKang2332:18, 9 April 2023 (UTC+8)
The new design of {{Doc}} looks good. But it will take some time to make these changes.

Icon-Bug.pngBug:Extra slash "/" on "Template:(Page)/doc/" does not exist.

ERR
Empty.png
leonidakarlach21:35, 29 August 2023 (UTC+7)
See image below.
Bug-Doc-template.png
Beside, docs page that are created with "/doc/" instead of "/doc", example: Template:YouTube/doc/ instead of Template:YouTube/doc would cause the {{Doc/subpage}} (documentation subpage) notice to not show up at all, unless it is "doc", without slash after it.
ERR
Empty.png
DaKang2331:24, 30 August 2023 (UTC+8)
That's related to its working principle. {{Doc/subpage}} will try to check if the {{SUBPAGENAME}} is doc, or language suffixes (en, eo, de, ...). about, preload are also valid value.
  • If {{SUBPAGENAME}} is valid value, {{Doc/subpage}} will display the notice.
  • If it is not, the template will display nothing.
ERR
Empty.png
DaKang2331:43, 30 August 2023 (UTC+8)(edited)
As for the message box with a slash after the link, that may be a bug. You can use the button "Create" to the right top to create page.
ERR
Empty.png
DaKang2332:22, 30 August 2023 (UTC+8)
The bug should be fixed now. I have changed the parameter {{{pref}}} of {{Uselang}}.
ERR
Empty.png
leonidakarlach18:36, 30 August 2023 (UTC+7)
Yea it's looking good now.