Template:SNIR: Difference between revisions
From Jenny Everywhere Wiki
No edit summary |
(Not sure how I didn't pick up on this mistake when I made this) |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{#explode:{{#explode:{{#replace:{{#replace:{{da smw|{{{1}}}}}|Series|X.NO.}}|Volume|X.NO.}}|X.NO.|1}}|0}} | <includeonly>{{#switch:{{#explode:{{#explode:{{#replace:{{#replace:{{da smw|{{{1}}}}}|Series|X.NO.}}|Volume|X.NO.}}|X.NO.|1}}||0}} | ||
|One|1=1|Two|2=2|Three|3=3|Four|4=4|Five|5=5|Six|6=6|Seven|7=7|Eight|8=8|Nine|9=9|Ten|10=10|Eleven|11=11|Twelve|12=12|Thirteen|13=13|Fourteen|14=14|Fifteen|15=15|Sixteen|16=16|Seventeen|17=17|Eighteen|18=18|Nineteen|19=19|Twenty|20=20|#default={{#ifeq:{{{1}}}|{{{2}}}|1|{{#iferror:{{#expr:{{#explode:{{da smw|{{{1}}}}}||-1}} + 1}}|<b style=color:red;font-size:1.1em; title='Please define "series number in range".'><u>X</u></b>|{{#explode:{{da smw|{{{1}}}}}||-1}}}}}}}}</includeonly><noinclude>This template is in use at {{tlx|Infobox Story}} only. It calculates the '''series number in range''' based on the name of the series given, on audio story pages. Please do not touch. | |One|1=1|Two|2=2|Three|3=3|Four|4=4|Five|5=5|Six|6=6|Seven|7=7|Eight|8=8|Nine|9=9|Ten|10=10|Eleven|11=11|Twelve|12=12|Thirteen|13=13|Fourteen|14=14|Fifteen|15=15|Sixteen|16=16|Seventeen|17=17|Eighteen|18=18|Nineteen|19=19|Twenty|20=20|#default={{#ifeq:{{{1}}}|{{{2}}}|1|{{#iferror:{{#expr:{{#explode:{{da smw|{{{1}}}}}||-1}} + 1}}|<b style=color:red;font-size:1.1em; title='Please define "series number in range".'><u>X</u></b>|{{#explode:{{da smw|{{{1}}}}}||-1}}}}}}}}</includeonly><noinclude>This template is in use at {{tlx|Infobox Story}} only. It calculates the '''series number in range''' based on the name of the series given, on audio story pages. Please do not touch. | ||
[[Category:Coding utility templates]]</noinclude> | [[Category:Coding utility templates]]</noinclude> |
Revision as of 03:00, 25 August 2021
This template is in use at {{Infobox Story}} only. It calculates the series number in range based on the name of the series given, on audio story pages. Please do not touch.