Editing
Template:ISO 4217/code/doc
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Not in mainspace== :{{as of|1 Nov 2022}} ===code-is-obsolete=== * {{tiw|ISO 4217/code-is-obsolete}} returns ISO withdrawal-date or blank. * {{tiw|ISO 4217/code-is-obsolete/calc}} returns ISO withdrawal-date or blank. :{{para|iso-code, is-obsolete}} :{{tla|ISO 4217/code/testcases|/testcases}} ====The logic==== :{{para|iso-code}}, determines from ISO 4217. Thew code can be ambiguous. :{{para|is-obsolete}}: yes/no (T/F), blank='unknown' :{{tlx|yesno}} is applied: {{para|is-obsolete|no, false}}={{code|no}} (not obsolete, so ''active''), {{para|is-obsolete|''<any text>''}} is {{code|yes}} (''obsolete'') {| class="wikitable" |- ! colspan="5" | Currency is obsolete? |- ! colspan="2" rowspan="2" | ! colspan="3" | {{para|is-obsolete|T/F/unk}} |- ! T=obs{{nobold|1=<sub style="float:right;"> 01</sub>}} ! F=act{{nobold|1=<sub style="float:right;"> 02</sub>}} ! unk{{nobold|1=<sub style="float:right;"> 03</sub>}} |- ! rowspan="5" | code<br/>{{para|1=iso-code|2=<br/>ABC/unk}}<br/>→{{code|T/F/ambig/unk}} |- !T=obs{{nobold|1=<sub style="float:right;"> 10</sub>}} |{{green|OBS}}<sub style="float:right;"> 11</sub> |{{nay}}→{{green|''ACT''}}<sub style="float:right;"> 12</sub> |{{green|OBS}}<sub style="float:right;"> 13</sub> |- !F=act{{nobold|1=<sub style="float:right;"> 20</sub>}} |{{nay}}→{{green|''OBS''}}<sub style="float:right;"> 21</sub> |{{green|ACT}}<sub style="float:right;"> 22</sub> |{{green|ACT}}<sub style="float:right;"> 23</sub> |- !ambig{{nobold|1=<sub style="float:right;"> 30</sub>}} |{{green|OBS}}<sub style="float:right;"> 31</sub> |{{green|ACT}}<sub style="float:right;"> 32</sub> |{{green|ACT}} <small>(''default'')</small><sub style="float:right;"> 33</sub> |- !unk{{nobold|1=<sub style="float:right;"> 40</sub>}} |{{green|OBS}}<sub style="float:right;"> 41</sub> |{{green|ACT}}<sub style="float:right;"> 42</sub> |{{green|ACT}} <small>(''default'')</small><sub style="float:right;"> 43</sub> |} * {{nay}} Contradicting situation: Obsolete vs. Active. By default {{para|code-priority|{{green|no}}}}, so {{para|is-obsolete|T/F}} decides. ====Contradiction solving==== Two situations imply a contradiction: the ISO-status contradicts the entered {{para|is-obsolete}} status. This may occur when an infobox covers more than one currency. The default handling is: ''{{para|is-obsolete}}'' takes precedence. By setting {{para|1=code-priority|2={{purple|yes}}}} gives ISO code prority (result opposite). This does ''not'' resolve the contradiction. {| class="wikitable" |- ! colspan="4" | Currency is obsolete? |- ! colspan="4" | {{para|code-priority|no}} {{nobold|1=(default)}} |- ! colspan="2" rowspan="2" | ! colspan="3" | {{para|is-obsolete|T/F/unk}} |- ! T=obs{{nobold|1=<sub style="float:right;"> 01</sub>}} ! F=act{{nobold|1=<sub style="float:right;"> 02</sub>}} |- ! rowspan="3" | code<br/>{{para|1=iso-code|2=...}}<br/>→{{code|T/F/...}} |- !T=obs{{nobold|1=<sub style="float:right;"> 10</sub>}} |{{green|OBS}}<sub style="float:right;"> 11</sub> |{{nay}}→{{green|''ACT''}}<sub style="float:right;"> 12</sub> |- !F=act{{nobold|1=<sub style="float:right;"> 20</sub>}} |{{nay}}→{{green|''OBS''}}<sub style="float:right;"> 21</sub> |{{green|ACT}}<sub style="float:right;"> 22</sub> |} {| class="wikitable" |- ! colspan="2" | {{para|code-priority|yes}} |- | |{{nay}}→{{purple|''OBS''}}<sub style="float:right;"> 12</sub> |- |{{nay}}→{{purple|''ACT''}}<sub style="float:right;"> 21</sub> | |} '''Returns:''' when Obsolete, a text; when ''Active'', no text (blank). On can apply this as <code><nowiki>{{#if:{{code-is-obsolete|...}}|Obsolete|Active}}</nowiki></code>. The returntext is: :When obsolete: 1. the {{para|is-obsolete|anytext}}; 2. the {{para|withdrawal-date}}, 3. {{para|obs-text|...}}, 4. "{{code|OBS}}" :When active: 1. {{para|act-text|...}} 2. <blank> :Note that, by entering a ''blank'' {{para|obs-text|}}, the returntext ''will'' be a blank (so, same as default actual returntext!) {{para|obs-text}}, {{para|act-text}} ''overwrites''. ;In {{tlx|Infobox currency}} :For {{para|obsolete}}, {{para|obsolete}} of the infobox is used: {{para|1=obsolete|2=<nowiki>{{{obsolete|}}}</nowiki>}} ====Examples==== :{{para|iso-code}}, {{para|is-obsolete}} :USD, active * USD >{{ISO 4217/code-to-withdrawal-date|iso-code=USD}}< :ATS, Austria shilling - withdrawn * ATS >{{ISO 4217/code-to-withdrawal-date|iso-code=ATS}}< :PEN, PERU Nuevo Sol (ambivalent so wsdate needed) * PEN >{{ISO 4217/code-to-withdrawal-date|iso-code=PEN}}< -- defaults to Active :FOO, not a code * FOO >{{ISO 4217/code-to-withdrawal-date|iso-code=FOO}}< :"None", not a code * noNe >{{ISO 4217/code-to-withdrawal-date|iso-code=noNe}}< :blank * >{{ISO 4217/code-to-withdrawal-date|iso-code=}}< ===code-entity-list=== * {{tiw|ISO 4217/code-entity-list}} <small>( {{tla|ISO 4217/code-count/demo|../demo}}{{middot}}{{edit|Template:ISO 4217/code-count/demo}} )</small> {{ISO 4217/code-count/demo|iso-code=PEN}} {{ISO 4217/code-count/demo|iso-code=COU}} {{ISO 4217/code-count/demo|iso-code=EUR}} {{ISO 4217/code-count/demo|iso-code=ATS}} {{ISO 4217/code-count/demo|iso-code=USD}} ;edge {{ISO 4217/code-count/demo|iso-code=ZZZ}} {{ISO 4217/code-count/demo|iso-code=}} ===code-count=== * {{tiw|ISO 4217/code-count}} <pre> {{ISO 4217/code-count|iso-code=|list=}} </pre> :{{para|list, iso-code|L1, ..., L123}} :Number of "XYZ" code repetition per list, and over all tyhree lsits. There are 304 unique codes, repetitions make 450 different lines (code, List, entity, end-date can be repeated). :Intended for checking and listformatting only (no new information). See {{slink||code-entity-list}} for demo === code-to-qid === * {{tiw|ISO 4217/code-to-qid}} ::{{tl|ISO 4217/code-to-qid/format}} <pre> {{ISO 4217/code-to-qid|iso-code=|format=}} </pre> :{{para|format|plain, wl, wl-info, <blank>}} :{{Property|P498}}, ~265, {{as of|08:58, 13 November 2022 (UTC)}}
Summary:
Please note that all contributions to IDU Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
IDU Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
To edit this page, please answer the question that appears below (
more info
):
Who is the wiki admin
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information