MediaWiki talk:Dir: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(System message for optimization)
 
mNo edit summary
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 {{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.
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 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.  

Revision as of 04:21, 30 September 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)