MediaWiki talk:Dir: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(System message for optimization)
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== System message for optimization ==
== System message for optimization ==
I began to notice that optimization is very important to people. I have already proposed the creation of [[MediaWiki:Lang]] for a fairly strong boost to optimization. However, there are also simpler and smaller options to implement.


I began to notice that optimization is very important to people. I have already proposed the creation of MediaWiki:Lang for a fairly strong boost to optimization. However, there are also simpler and smaller options to implement.
The site currently uses the {{T|Text-dir}} template to check in which direction the site is now. Alternatively, you can create a Dir message that will output an {{Code|ltr}} (left-ro-right) or {{Code|rtl}} (right-to-left) value.
 
The site currently uses the {{Tl|Text-dir}} template to check in which direction the site is now. Alternatively, you can create a Dir message that will output an ltr (left-ro-right) or rtl (right-to-left) value.


I’ve tried to simplify the Text-dir template as much as possible, but it still loads the pages more than if it were an interface message, especially when it’s used multiple times on the same page.  
I’ve tried to simplify the Text-dir template as much as possible, but it still loads the pages more than if it were an interface message, especially when it’s used multiple times on the same page.  
Line 10: Line 9:


Contents of these pages: {{Code|rtl}}
Contents of these pages: {{Code|rtl}}
* [[MediaWiki:Dir/aeb]]
* [[MediaWiki:Dir/aeb]]
* [[MediaWiki:Dir/aeb-arab]]
* [[MediaWiki:Dir/aeb-arab]]
Line 48: Line 46:


Contents of these pages: {{Code|ltr}}
Contents of these pages: {{Code|ltr}}
* [[MediaWiki:Dir]]
* [[MediaWiki:Dir]]
* [[MediaWiki:Dir/en]]
* [[MediaWiki:Dir/en]]
All other ltr pages do not need to be created; they will all take the value from the main interface message. --[[User:Max34|Max34]] ([[User talk:Max34|talk]]) 06:35, 18 June 2024 (PDT)
 
All other {{Code|ltr}} pages do not need to be created; they will all take the value from the main interface message. [[User:Max34|Max34]] ([[User talk:Max34|talk]]) 06:35, 18 June 2024 (PDT)

Latest revision as of 04:36, 5 October 2025

System message for optimization

I began to notice that optimization is very important to people. I have already proposed the creation of MediaWiki:Lang for a fairly strong boost to optimization. However, there are also simpler and smaller options to implement.

The site currently uses the {{Text-dir}} template to check in which direction the site is now. Alternatively, you can create a Dir message that will output an ltr (left-ro-right) or rtl (right-to-left) value.

I’ve tried to simplify the Text-dir template as much as possible, but it still loads the pages more than if it were an interface message, especially when it’s used multiple times on the same page.

I will leave here a list of rtl and ltr that you just need to create for everything to work, whether to add it or not is up to you.

Contents of these pages: rtl

Contents of these pages: ltr

All other ltr pages do not need to be created; they will all take the value from the main interface message. Max34 (talk) 06:35, 18 June 2024 (PDT)