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

Content deleted Content added
m check logic identifiers debugging
Tags: Undo Reverted
m Protected "Template:ISO 4217/code/format": High-risk template or module: 654 transclusions (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite))
 
(8 intermediate revisions by one other user not shown)
Line 1:
{{#if:{{{format|}}}
|{{#if:{{{value|}}}<!--
-->|_11.VALok_{{{value|}}}
|{{#if:{{{input-code|}}}<!-- input is not an ok-code, so analyse for 'None' and ISOcat
|_12.valBLANKsoCHECKforNONE&BADCODE_<!--
-->|{{#if:{{ISO 4217/code-none|iso-code={{{input-code|}}}}}<!-- check None-option:
-->|_21.ZZZorNONEcheck{{#if:yesno|{{ISOStr 4217/codefind word|source=option-none|iso-codeorwords={{{input-codeformat|}}}}}<!--
-->|_51.CODEisNONE>yes={{{input-code|}}}<_{{#if:{{Str!-- find'None'=allowed so return word|source=option-none|orwords={{{format|}}}}}the input string
-->|no=<!--'none' not allowed so return blank; CAT-N-->{{#if:{{{ISO4217-cat|}}}|{{ISO 4217/maintenance-category|main-sort=72.NONE|template-sort=52.&#x20;ISOcat-N<nowiki>*</nowiki>}}}}}}<!--
|71.NONEallowedOK_{{{input-code|}}}
-->|<!--bad code so return blank; CAT-C-->{{#if:{{{ISO4217-cat|}}}|{{ISO 4217/maintenance-category|main-sort=52.CODE|template-sort=52.&#x20;ISOcat-C<nowiki>*</nowiki>}}}}<!--
|72._NONEnotallowsTOCAT_<!--
-->}}}}<!--
-->{{ISO 4217/maintenance-category|main-sort=72.NONE|template-sort=52.ISOcat-N<nowiki>*</nowiki>}}<!--
-->|<!-- input-code=blank so no error to detect; return blank
-->}}}}
|_52.NOTnoneBADCODEtoCAT>{{{input-code|}}}<_<!--
|{{{value|}}}<!-- no format, so return plain ok-value or(is an ok code OR blank) -->
-->{{ISO 4217/maintenance-category|main-sort=52.CODE|template-sort=52.ISOcat-C<nowiki>*</nowiki>}}<!--
-->}}
|_22.BLANKin._<!-- blank input do return blank
-->}}}}
|{{{value|}}}<!-- no format, so return plain ok-value or blank -->
}}