Template:ISO 4217/code/format

This is an old revision of this page, as edited by DePiep (talk | contribs) at 09:28, 1 November 2022. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

_toCHECKforNONE&BADCODE_


{{#if:{{Str find word|source=option-none|orwords={{{format|}}}}} |_OPTNONEyes_{{#if:{{ISO 4217/code-none|iso-code={{{input-code|}}}}} | _isNONE_{{{input-code|}}}|_todoerr&catcheckNONE_}}<!-- --> |={{#if:{{{input-code|}}}|_BADCODEIN_CAT|_BLANKcodeINsoBLANKout_}} }} }} {{#switch:{{{value|}}}<!-- correct code OR 'None' OR <blank> --> |= |None={{#switch:{{{format|}}}|option-none={{{value|}}}}} |#default={{{value|}}} }}<!-- add errortext, ISOcategory IF: -->{{#if:{{#switch:{{{value|}}} |={{#if:{{{input|}}}|_ERR1_}}<!-- input did not lead to correct code so error --> |None={{#ifeq:{{{format|}}}|option-none||_ERR2_}}<!-- None not accepted so error --> }}|<!-- -->{{{errortext|}}}<!-- -->{{yesno|{{{ISOcat|}}}|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|ISOcat:nowiki>C*/nowiki>]]}}}}<!-- -->}} |{ISO 4217/code/format |input={{{iso-code|}}} |format={{{format|}}} |errortext={{{errortext|}}} |ISO4217-cat={{Str find word|source=iso4217-cat|case=no|orwords={{{format|}}}}} |is-none={{ISO 4217/code-none|iso-code={{{iso-code|}}}}} |value=}}