Template talk:MultiPage

From Valve Developer Community
Jump to: navigation, search
Icon-message-48px.png
Welcome to Template talk:MultiPage!
This is the start of the MultiPage 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.

Uselang vs Subpage

ERR
Empty.png
Pee0:00, 16 February 2023 (UTC)(edited)
I don’t understand why this template is designed to link to some strange “uselang” page rather than a language subpage as documented. Also, if it was done as documented, why is English a subpage of an English title main page? Just curious. Great work on the template, and general site maintenance, by the way, we’ve needed it.
ERR
Empty.png
Max_345:58, 16 February 2023 (UTC+4)
uselang is just an interface language setting, not a link. There is also a {{uselang}} template on the site, which allows you to determine which interface language the user has. When opening a page that uses {{MultiPage}}, a user will see this page in the language of his interface, if this article is of course translated into it. If not, it will display a small message about this and show the English version of the article. The English language also has its own subpage, because if you put the text in the main article, you won’t be able to remove it to replace it with the translated article.

For example, this method will remove the need for suffixes in all links. The language subpages will be exclusively technical pages that will already be displayed on the target page, depending on the interface language specified in the user settings.

So far, this template is not fully completed, so some things may not be very convenient right now. At the moment, there is an idea to add instead of an edit button, a small drop-down list with all the necessary buttons to work with pages (edit, purge, etc.).

ERR
Empty.png
Pee21:30, 22 February 2023 (UTC)
Looking into it, it’s pretty difficult and counterintuitive to temporarily modify the entire page, and it makes it difficult to edit. I think you’d be better off simply linking to language subpages as the wiki currently does (including English, though), but still automatically translate the main page.
ERR
Empty.png
Max_341:48, 23 February 2023 (UTC+4)
You can access any language subpage using the drop-down list (Icon-translate.png), and to edit the language subpage without going to it, there is a pencil button for this, it immediately switches to editing the language subpage that is currently displayed relative to the interface language. So far, this whole idea may not seem the most convenient, but that’s because it’s not yet complete. The idea of ​​using language subpages as the main ones is not considered, since this is exactly what we are trying to get away from. It is planned to add a separate kind of flags directly on the language subpages so that you can switch between them without using the main page.
ERR
Empty.png
Pee22:09, 22 February 2023 (UTC)
Why avoid subpages? it seems that nothing gets accomplished by avoiding them, other than requiring a second UI menu, and changing the UI language for the duration that someone’s on a page.
ERR
Empty.png
Max_342:30, 23 February 2023 (UTC+4)
Avoiding language subpages as the main ones will eliminate any need to add language code to links on pages. Since there is a one main page, you can link to it from all languages, for example [[Page]]. In the case of subpages, you will have to add the language code for each language individually, for example [[Page/es]], [[Page/ja]], etc. It will also help to better sort these pages into categories, as language subpages won’t be counted, meaning there won’t be a need for hundreds of variations of the same category for different languages. Also, this method will simplify some things, for example, you don’t have to use the {{sdktools}} template on all language subpages, for example Hammer++ pages, you can simply place it on the final page at the end and it will be displayed in any interface language on this page.
Icon-user.png
Empty.png
Amicdict15:55, 1 April 2023 (UTC)
I agree with your reasoning, but why use an / for the subpage instead of the
?
ERR
Empty.png
Max_3422:24, 1 April 2023 (UTC+4)
MediaWiki (what this wiki is based on) does not know how to work with colons, but it knows how to work with slashes. If text separation worked on this wiki, relative to the selected character (in MediaWiki it is called {{#explode:}}), then switching to slashes would not be necessary.

Adding Esperanto as a language

Icon-user.png
Empty.png
Amicdict21:42, 31 March 2023 (UTC)
I will only make bare minimum and schematic changes, so if they need to be reversed, it won’t take long.

Mi faros nur minimajn kaj planecajn ŝanĝojn en okazo de ebla reversiĝo do tiu ago ne estos tro atentantan.

Pri Esperanto / About Esperanto: https://lernu.net/esperanto.

Mess

Icon-user.png
Empty.png
Xandros16:31, 3 April 2023 (UTC)
I also want to discuss this thing. Right now editing this wiki page is much more work – you need to click on more interactive elements just to get to the editing. And when you finish editing, results do not appear on a main page – you have to click “Purge” in order to update things. This is really inconvenient and why – just to have a localized help? It is a well established norm to have a technical documentation in English only (since English is the international language), so why bother with localization? This is not a Wikipedia – this is a technical documentation! To code things you need to know English anyway.

Also this method of localization presents a big problem: data separation. One language page can add information, that will not be transferred to other localized pages automatically. Right now the other page (chineese or whatever zh stands for) hasn’t been updated and i doubt it ever will. Documentation needs to stay a documentation, that is, have one exact data set without the need for others to transfer data between pages. Otherwise, people will stick to the most complete version (which is English right now) and multipage functionality will become just a major annoyance (which it is right now).

So, is it really worth the complications to have a localization mechanism that violates the main requirement of the documentation – to be accurate? I fail to see the real usefulness of the change.

ERR
Empty.png
Max_341:54, 4 April 2023 (UTC+4)
I agree about the inconvenience of switching to editing. I think this problem can be partially solved by making the edit button as a separate one, so that you do not have to open the drop-down list every time.

I have already explained most of the reasons why this way is better here. But the main ones are: almost complete elimination of work with suffixes in links/templates, titles of articles and categories (no more links like [[Page:es]] on the Spanish page, only [[Page]] everywhere and no more hundreds of thousands of categories and templates in different languages); the ability to use, for example, {{sdktools}} on all pages, specifying it only on the main one.

What about data separation is that it has always existed. If you have edited an English page, pages in other languages ​​will not be edited by themselves. A huge number of pages in other languages ​​have not been updated for a long time and this template has nothing to do with it. On the other hand, if this template helps to fix… I think I have an idea how to at least partially correct this situation. The idea is quite complex, so it may not be possible to implement it on this wiki, but it’s worth a try. I will try to do something about it soon.

Icon-user.png
Empty.png
Amicdict22:32, 3 April 2023 (UTC)
It is a well established norm to have a technical documentation in English only (since English is the international language), so why bother with localization?

Except this isn’t even true; many large projects have translations for technical documentation. Also, acting like English is the “international language” is straight up Anglocentrism (and to begin with the internet and tech industry is heavily Anglocentric). See: https://thepolyglotfiles.com/2018/10/29/should-english-be-the-official-language-of-the-world for more info.

To code things you need to know English anyway.

The only reason for this is because most developer tools are only developed for English speakers, which is again a result of Anglocentrism. There are already programming languages with foreign languages.

We bother with localization so that other people can play. Now of course, the way localization was handled (from the start) on this wiki is IMO just horrible. The best solution (if one wanted to use English as a base) would have to been to do what Wikipedia does: Setup different subdomains for each language and to default to English.

Icon-user.png
Empty.png
Xandros2:21, 4 April 2023 (UTC)
Sorry, i didn’t noticed how my message has been transferred here (no notification on e-mail either).
Except this isn’t even true; many large projects have translations for technical documentation.

The key word here is LARGE. And by LARGE i mean projects/organizations that have both money and resources to maintain the documentation in several languages. They do not outsource it to a wiki and say “here, translate it yourself”. And while i understand your political view on things, i disagree with English being a problem (even though English is not my native language).

But that is not the point. My point was mainly about the inconvenience this mechanism is providing without actually being useful. In my opinion machine translation with user corrections would be much better, than turning documentation into a Wikipedia clone.

If this feature is not going away, is there any way to at least get rid of the requirement to manually purge the main page? Because people do not visit localized pages – they are usually satisfied with what they already see on the root page (which is outdated, unless you purge it manually). Also a good idea would be locking the ability to edit the main page, so people cannot accidentally edit it. Otherwise – i can live with having to press 2 links instead of one.

ERR
UserAvatarFrame-THE OWL.png
THE OWL18:42, 4 April 2023 (UTC+7)(edited)
And when you finish editing, results do not appear on a main page – you have to click “Purge” in order to update things.

We sacrifice the convenience of editors for the convenience of users. If it’s so lazy for you to press two additional buttons, then this is not our problem. As soon as it becomes possible to get rid of them without losing functionality, we will do it.

To code things you need to know English anyway.

I didn’t know that when I make a map, I do coding {{Emoji|eyes}}.

When did it become so called and since when should I use English if I have a native language that I initially understand better? Also, there are many people who do not know English for various reasons and who want to read the correct translation. Translation software cannot satisfy the desire of such people to the fullest.

Also this method of localization presents a big problem: data separation.

This is a problem for any wiki. Wikipedia also does not shine with articles perfectly translated into all languages. There are hundreds or even thousands of garbage pages on it. That is why there are templates that allow you to find such articles and correct them. Btw, doesn’t {{Lang}} have this problem? It creates a ton of useless links, categories, articles and much more that we have to delete, which is what {{MultiPage}} will help us with.

Icon-user.png
Empty.png
Amicdict16:33, 4 April 2023 (UTC)
The key word here is LARGE. And by LARGE i mean projects/organizations that have both money and resources to maintain the documentation in several languages.

Like Valve? https://levvvel.com/valve-statistics.

Btw, doesn’t {{Lang}} have this problem? It creates a ton of useless links, categories, articles…

Ugh, no? What useless stuff does it create exactly? And how is {{MultiPage}} any different?

Like, for example of useless stuff: Why have an {{Emoji}} template, when Unicode Emojis already have existed for years in UTF-8? (This site already uses UTF-8 btw!) Not many Pages even use it.

Icon-user.png
Empty.png
Xandros17:32, 4 April 2023 (UTC)
We sacrifice the convenience of editors for the convenience of users. If it’s so lazy for you to press two additional buttons, then this is not our problem.

I was talking about convenience of the user here! I am not lazy to click buttons – there are NO instructions for new editors like “Please, press this button to refresh the cache after you finished your editing”. And had to learn to do it the hard way, which is why i feel irritated. And, in my opinion, users suffer too because of that – somebody changes something and forgets to refresh the cache. In the end users lose more than editors.

As soon as it becomes possible to get rid of them without losing functionality, we will do it.

Thank you, that was all i wanted to hear. Just that, without any personal attacks. I have no further questions – have a nice day, everyone.

ERR
UserAvatarFrame-THE OWL.png
THE OWL1:28, 5 April 2023 (UTC+7)(edited)
Ugh, no? What useless stuff does it create exactly?

Thanks to {{Lang}}, we have language categories, language links, suffixes in templates and many other things that we need to remove. I wasn’t speaking literally when I called {{Lang}} the creator of all these problems. This template is one of the parts of this deprecated page translation system, which gave rise to the Main Page:de, Category:Level Design:zh, |suf=de and much more.

It seems that I said a lot without thinking about it for a long time, while I was hurriedly going to leave. Basically, I said what I wanted, but not in the way I wanted it.

Like, for example of useless stuff: Why have an {{Emoji}} template, when Unicode Emojis already have existed for years in UTF-8?

I don’t consider them useless and that’s why:

  • The emoji design will be the same for all OS;
  • They work on Windows XP, Windows 7 and other systems that generally do not support modern emojis, since they do not have the right font.
I am not lazy to click buttons – there are NO instructions for new editors like “Please, press this button to refresh the cache after you finished your editing”. And had to learn to do it the hard way, which is why i feel irritated.

Oh, sorry about that. A lot of work has been done recently. At the moment there is not enough free time to write good documentation for newly created heavy templates {{Emoji|confused}}.

Icon-user.png
Empty.png
Amicdict22:15, 4 April 2023 (UTC)
Thanks to {{Lang}}, we have language categories, language links, suffixes in templates and many other things that we need to remove. I wasn’t speaking literally when I called {{Lang}} the creator of all these problems. This template is one of the parts of this deprecated page translation system, which gave rise to the Main Page:de, Category:Level Design:zh, |suf=de and much more.

So why even mention {{Lang}} then? Also, there wasn’t much discussion on the translation method to begin with, leading the method to be unrefined.

I don’t consider them useless and that’s why:
  • The emoji design will be the same for all OS;
  • They work on Windows XP, Windows 7 and other systems that generally do not support modern emojis, since they do not have the right font.

The same can be said for UTF-8 Emojis. e.g 😀😃😄

Icon-user.png
Empty.png
Xandros18:17, 6 April 2023 (UTC)
A lot of work has been done recently. At the moment there is not enough free time to write good documentation for newly created heavy templates {{Emoji|confused}}.

I understand. Is there anything i can do to help improve the situation? Maybe play with the template somewhere and document it somewhere?

ERR
UserAvatarFrame-THE OWL.png
THE OWL1:30, 8 April 2023 (UTC+7)(edited)
It’s hard to say, Xandros. I’ll mention one of the problems below, but otherwise, I can only say that here you are free to do what you want. Some of us may have taken the path of cleaning up this wiki, but no one is going to restrict other editors yet.
Maybe play with the template somewhere and document it somewhere?

We need a page in the Valve Developer Community namespace that briefly and clearly describes the entire process of managing the user’s page, as well as the process of communicating with other users.

Actually, there are quite a few problems with the documentation of various heavy templates, but I can’t say for sure yet what should be improved right now, and what can wait. Probably in the future I will somehow add editor requests to the main page for such cases, but for now this is not a priority.
ERR
Empty.png
DaKang2338:23, 8 April 2023 (UTC+8)
There is a instruction page about translating in Valve Developer Community namespace, which is Valve Developer Community:Alternative Languages. This page should be improved to indicate others how to do translations with the new translation templates.

Short pages with MultiPage are listed under Special:ShortPages

See 31. (hist) ‎VPK ‎[13 bytes] for example.

Lxm6 (talk) 19:51, 10 April 2023 (PDT)

Translations appear along with English versions

See Special:PrefixIndex/trigger for example.

Lxm6 (talk) 19:55, 10 April 2023 (PDT)

Where are the page action strings located?

ERR
224
SirYodaJedi15:01, 31 May 2023 (UTC)
I want to change the intimidating “Purge this page” (which sounds like you’re deleting the page’s contents) with the much less threatening and more accurate “Purge Cache”.
ERR
Empty.png
Max_3420:47, 31 May 2023 (UTC+4)
Instead of this text, template uses {{int:<message>}} (short for interface). These are system messages which, in most cases, are translated into all possible languages ​​(a list of all messages can be found at Special:AllMessages). In the case of “Purge this page”, this is {{int:confirm-purge-title}}. In fact, it really should be replaced with a manual translation, since in other languages this text is too long, for example in Polish.

removal of base page from the English category

ERR
Empty.png
Pee0:11, 13 September 2023 (UTC)
It doesn't make sense for Category:English to always be on the base page. The English subpage is already in that category, and it doesn't let us identify uncategorized pages via Special:UncategorizedPages. I think it makes sense to only place the base page in the english category when {{{no-english-subpage}}} is 1.

Multipage breaking Editor?

Icon-user.png
Empty.png
Phoenixwhitefire20005:35, 17 November 2023 (UTC)
On the page for func_physbox, if I try to edit it, the Edit text window shows up as just "\{\{Multipage\}\} \[\[Category:Physics\]\]" and none of the actual content. Trying to add any text above the MultiPage puts it at the top of the page, anything after it putting text at the bottom, but there's seemingly no way to edit the content of the page itself. The only reason I can think for this is that MultiPage inlines the page content from somewhere else, but it's not really doing a good job of explaining how I could contribute to it.
ERR
Empty.png
DaKang23316:36, 18 November 2023 (UTC+8)
The editor isn't broken, because the {{MultiPage}} will load the corresponding language subpages based on the UI language. Actually, the content of the page is from the language subpages. So you need to edit the language subpage instead of editing the main page. Then, you should purge the main page and your contributions will take effect.
So how to edit the language subpages? This can be easy to do by clicking the edit button on the right top (Icon-edit.png). Then, you will be redirected to the editing UI interface of the corresponding language subpage. After saving your contributions, you can see a message box at the beginning of the page, and there's a blue button in it, which is written "Purge the base" (Purge the base). Click it and purge the main page, and then your work is done.

Incredibly bizarre bug

ERR
Empty.png
Wisdurm15:52, 7 January 2024 (UTC+2)
At the beginning of the article for Item_healthcharger and Item_suitcharger (and probably other pages as well), it just has the name of the page as text at the beginning? From some testing it seems multipage adds this. I'm not sure what causes it, as there's no extra parameters or anything. Maybe some recent updates caused this?
ERR
UserAvatarFrame-NOUG4AT.png
Noug4at21:25, 7 January 2024 (UTC+7:30)
Reason of this {{langsp|item healthcharger}}, it's should be title. {{langsp|title=item healthcharger}} or on main page {{multipage|title=item_healthcharger}} if name of page is same for different languages. Or just delete it.