وحدة:Flag/شرح
هذه صفحة توثيق لوحدة:Flag
![]() | This module is rated as beta, and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected. |
Lua-native alternative to popular flag templates. Can be used to reduce post-expand include size of pages with lots of templates, since it avoids calling multilevel templates.
Usage
تعديل- {{flag}} → {main}
- {{flagcountry}} → {main}
- {{flagdeco}} → {main}
- {{flagicon}} → {main}
- {{flag+link}} → {main}
Examples
تعديلTemplate | Module | ||||
---|---|---|---|---|---|
Code | Output | PEIS | Code | Output | PEIS |
{{flag|الصين}} |
الصين
|
443b | {main} |
الصين | 128b |
{{flagcountry|الصين}} |
الصين | 577b | {main} |
الصين | 128b |
{{flagdeco|الصين}} |
452b | {main} |
107b | ||
{{flagicon|الصين}} |
548b | {main} |
117b | ||
{{flag+link|History of|الصين}} |
الصين | 663b | {main} |
الصين | 139b |