Template:Country showdata: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>SiBr4
Changed {{Str right}} to Lua pattern replacement; finally removed templatename param (see Template talk:Country data#Testing 1–2–3)
meta>Illegitimate Barrister
→‎top: added Marines
Line 93: Line 93:
This nation's air force ensign is the same as its national flag, so [[Template:Air force]] produces the following:
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>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>}}</nowiki></code> → {{air force|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}
* <code><nowiki>{{air force|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>}}</nowiki></code> → {{air force|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}
}}}}
{{#if: {{{flag alias-marines|}}} |
This template includes a marine ensign flag variant that can be used with [[Template:Marines]]:
* <code><nowiki>{{marines|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>}}</nowiki></code> → {{marines|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}
* <code><nowiki>{{flagicon|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>|marines}}</nowiki></code> → {{flagicon|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}|marines}}
| {{#if: {{{link alias-marines|}}} |
This nation's marine ensign is the same as its national flag, so [[Template:Marines]] produces the following:
* <code><nowiki>{{marines|</nowiki>{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}<nowiki>}}</nowiki></code> → {{marines|{{#invoke:String|replace|{{PAGENAME}}|^%w+ data |||false}}}}
}}}}
}}}}
{{#if: {{{flag alias-army|}}} |
{{#if: {{{flag alias-army|}}} |

Revision as of 06:45, 12 February 2018