Anonymous user
Template:Country showdata: Difference between revisions
Changed {{Str right}} to Lua pattern replacement; finally removed templatename param (see Template talk:Country data#Testing 1–2–3)
No edit summary |
(Changed {{Str right}} to Lua pattern replacement; finally removed templatename param (see Template talk:Country data#Testing 1–2–3)) |
||
Line 80:
{{#if: {{{flag alias-naval|}}} |
This template includes a naval ensign flag variant that can be used with [[Template:Navy]]:
* <code><nowiki>{{navy|</nowiki>{{
* <code><nowiki>{{flagicon|</nowiki>{{
| {{#if: {{{link alias-naval|}}} |
This nation's naval ensign is the same as its national flag, so [[Template:Navy]] produces the following:
* <code><nowiki>{{navy|</nowiki>{{
}}}}
{{#if: {{{flag alias-air force|}}} |
This template includes an air force ensign flag variant that can be used with [[Template:Air force]]:
* <code><nowiki>{{air force|</nowiki>{{
* <code><nowiki>{{flagicon|</nowiki>{{
| {{#if: {{{link alias-air force|}}} |
This nation's air force ensign is the same as its national flag, so [[Template:Air force]] produces the following:
* <code><nowiki>{{air force|</nowiki>{{
}}}}
{{#if: {{{flag alias-army|}}} |
This template includes an army ensign flag variant that can be used with [[Template:Army]]:
* <code><nowiki>{{army|</nowiki>{{
* <code><nowiki>{{flagicon|</nowiki>{{
| {{#if: {{{link alias-army|}}} |
This nation's army ensign is the same as its national flag, so [[Template:Army]] produces the following:
* <code><nowiki>{{army|</nowiki>{{
}}}} }}
{{#if: {{{redir1|}}} |
Line 116:
}}
===Example usage===
* <code><nowiki>{{flag|</nowiki>{{
* <code><nowiki>{{flagicon|</nowiki>{{
-->{{#if: {{{shortname alias|}}} |
* <code><nowiki>{{flagcountry|</nowiki>{{
{{#if: {{{var1|}}} |
====Using a flag variant====
* <code><nowiki>{{flag|</nowiki>{{
* <code><nowiki>{{flagicon|</nowiki>{{
}}
{{#if: {{{redir1|}}} |
Line 170:
{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|<!--
-->{{#ifeq:{{SUBPAGENAME}}|sandbox|<!--
-->[[Category:Country data template sandboxes|{{{cat|{{
-->{{#ifexist:{{FULLPAGENAME}}/doc|<!--
-->[[Category:Country data templates with documentation subpage|{{{cat|{{
-->[[Category:Uncategorized country data templates|{{{cat|{{
-->}}<!--
-->{{#if:{{{size|}}}|[[Category:Country data templates with distinct default size|{{{cat|{{
-->}}<!--
-->[[Category:All country data templates|{{{cat|{{
-->{{#if:{{{shortname alias|}}}|<!--
-->[[Category:Country data templates with distinct shortname|{{{cat|{{
-->}}<!--
-->{{#ifeq:{{PAGENAME}}|Country data {{{alias}}}||<!--
-->{{#ifeq:{{PAGENAME}}|Country data {{{shortname alias}}}||<!--
-->[[Category:Country data templates with distinct template name|{{{cat|{{
-->}}<!--
-->}}<!--
-->{{#if:{{{flag alias|}}}||<!--
-->[[Category:Country data templates without flag alias|{{
-->}}<!--
-->}}<!--
|