Template:ISO 4217/code/format: Difference between revisions

Content deleted Content added
No edit summary
m Protected "Template:ISO 4217/code/format": High-risk template or module: 654 transclusions (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite))
 
(44 intermediate revisions by one other user not shown)
Line 1:
|={{#if:{{{inputformat|}}}|<!--
{{#switch:{{{value|}}}<!-- correct code OR 'None' OR <blank> -->
-->|{{#if:{{#switch:{{{value|}}}<!--
|=
-->|None={{#switch:{{{format|}}}|option-none={{{value|}}}}}
|{{#if:{{{input-code|}}}<!-- input is not an ok-code, so analyse for 'None' and ISOcat
|#default={{{value|}}}
-->|{{#if:{{ISO 4217/code-none|iso-code={{{input-code|}}}}}<!-- check None-option:
}}<!--
-->|{{yesno|{{Str find word|source=option-none|orwords={{{format|}}}}}<!--
 
-->|yes={{{input-code|}}}<!-- 'None'=allowed so return the input string
errortext handling:
-->|no=<!--'none' not allowed so return blank; CAT-N-->{{#if:{{{ISO4217-cat|}}}|{{ISO 4217/maintenance-category|main-sort=NONE|template-sort=&#x20;ISOcat-N<nowiki>*</nowiki>}}}}}}<!--
-->{{#if:{{#switch:{{{value|}}}
-->|<!--bad code so return blank; CAT-C-->{{#if:{{{ISO4217-cat|}}}|{{ISO 4217/maintenance-category|main-sort=CODE|template-sort=&#x20;ISOcat-C<nowiki>*</nowiki>}}}}<!--
|={{#if:{{{input|}}}|_ERR1_}}<!-- input did not lead to correct code so error -->
-->}}<!--
|None={{#ifeq:{{{format|}}}|option-none||_ERR2_}}<!-- None not accepted so error -->
-->|<!-- input-code=blank so no error to detect; return blank
}}|_ERR21_<!--
-->{{{errortext|}}}<!--}
|{{{value|}}}<!-- no format, so return plain value (is an ok code OR blank) -->
-->{{yesno|{{{IBcat|}}}|yes={{main other|1=[[Category:Pages using Infobox currency with ISO code to check|code]]|2=[[:Category:Pages using Infobox currency with ISO code to check|IBcat:<nowiki>C*</nowiki>]]}}}}<!--
-->}}<!--
 
--><noinclude>{{yesno|{{{IBcat|}}}|yes={{#switch:{{{value|}}}
|={{#if:{{{input|}}}|<!--
-->{{main other|1=[[Category:Pages using Infobox currency with ISO code to check|code]]|2=[[:Category:Pages using Infobox currency with ISO code to check|IBcat:<nowiki>C*</nowiki>]]}} }}
|none={{#switch:{{{format|}}}|option-none=|#default=<!--
-->{{main other|1=[[Category:Pages using Infobox currency with ISO code to check|code]]|2=[[:Category:Pages using Infobox currency with ISO code to check|IBcat:<nowiki>C*</nowiki>]]}} }}
|#default=}}}}<!--
 
-->{{#if:{{{errortext|}}}|{{#switch:{{{value|}}}
|={{#if:{{{input|}}}|{{{errortext|}}}}}
|none={{#switch:{{{format|}}}|option-none=|#default={{{errortext|}}}}}
|#default=}}}}</noinclude><noinclude>
 
<!-- {{main other|1=[[Category:Pages using Infobox currency with ISO code to check|*]]|2=[[:Category:Pages using Infobox currency with ISO code to check]]}} -->
 
</noinclude>