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

Content deleted Content added
No edit summary
Tag: Reverted
m check logic identifiers debugging
Tags: Undo Reverted
Line 1:
{{#if:{{{format|}}}
|{{#if:{{{value|}}}<!--
-->|_11.VALok_{{{value|}}}
|_12.valBLANKsoCHECKforNONE&BADCODE_<!--
|{{#if:{{{input-code|}}}<!-- input is not an ok-code, so analyse for 'None' and ISOcat.
-->|{{#if:{{ISO 4217/code-none|iso-code={{{input-code|}}}}}<!-- check None-option:
-->|_21.ZZZorNONEcheck{{#if:{{StrISO find word|source=option4217/code-none|orwordsiso-code={{{formatinput-code|}}}}}<!--
-->|_51.CODEisNONE>{{{input-code|}}}<!--_{{#if:{{Str 'None'=allowedfind so return the input stringword|source=option-none|orwords={{{format|}}}}}
|71.NONEallowedOK_{{{input-code|}}}
-->|<!--CAT-->{{ISO 4217/maintenance-category|main-sort=NONE|template-sort=&#x20;ISOcat-N<nowiki>*</nowiki>}}}}<!--
--> |72._NONEnotallowsTOCAT_<!--CAT
-->{{ISO 4217/maintenance-category|main-sort=CODE72.NONE|template-sort=&#x20;52.ISOcat-CN<nowiki>*</nowiki>}}<!--
-->}}
|_52.NOTnoneBADCODEtoCAT>{{{input-code|}}}<_<!--
|<!-- input-code=blank so return blank
-->|<!--CAT -->{{ISO 4217/maintenance-category|main-sort=NONE52.CODE|template-sort=&#x20;52.ISOcat-NC<nowiki>*</nowiki>}}}}<!--
-->}}
|_22.BLANKin._<!-- blank input-code=blank sodo return blank
-->}}}}
|{{{value|}}}<!-- no format, so return plain ok-value (is an ok code ORor blank) -->
}}