وحدة: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|China}} |
China | 443b | {main} |
خطأ: الوظيفة "main" غير موجودة. | 128b |
{{flagcountry|China}} |
الصين | 577b | {main} |
الصين | 128b |
{{flagdeco|China}} |
452b | {main} |
107b | ||
{{flagicon|China}} |
548b | {main} |
117b | ||
{{flag+link|History of|China}} |
China | 663b | {main} |
الصين | 139b |