tiresize
Privateunrated
Content
52 lines{embed(color):#edf798}
{=(comment):Converts R if used, into lowercase, and replaces r with a slash. This allows users to use either 235/85/16, 235/85R16 or 235/85r16 formatting.}
{=(largs):{lower:{args}}}
{=(jargs):{join():{largs}}}
{=(size):{replace(r,/):{jargs}}}
{=(comment):seperates user input into their respective sections for use in math blocks below.}
{=(width):{size(1):/}}
{=(height):{size(2):/}}
{=(wheel):{size(3):/}}
{=(comment):Calculates tire size from mm into inches.}
{=(cw):{m:{width}/25.4}}
{=(ch):{m:({cw}*0.{height})*2+{wheel}}}
{=(comment):takes the converted sizes, and rounds to the nearest tenth. This had to be seperate, as the above math block requires un-rounded numbers to get correct final conversion.}
{=(th):{m:round(({ch})*10)/10}}
{=(tw):{m:round(({cw})*10)/10}}
{=(comment):Checks to make sure only numbers were used in user input.}
{=(sisp1):{replace(/, ):{size}}}
{=(sisp2):{join():{sisp1}}}
{=(alphchk):{if({sisp2}=={m:trunc({sisp2}/1)}):yes|{if({sisp2}=={m:{sisp2}/1}):yes|no}}}
{=(comment):Checks to make sure format from user matches metric tire size format.}
{=(widthch):{index($&):{replace(, ):{width}} $&}}
{=(wichk):{if({widthch}==3):yes|no}}
{=(heightch):{index($&):{replace(, ):{height}} $&}}
{=(hchk):{if({heightch}==2):yes|no}}
{=(wheelch):{index($&):{replace(, ):{wheel}} $&}}
{=(whchk):{if({wheelch}==2):yes|no}}
{=(comment):The final error check, checks to see if any of above "checks" have failed, if no fails found, sends converted size. If any fails are found, sends the error message.}
{=(errorchk):{all({wichk}==yes|{hchk}==yes|{whchk}==yes|{alphchk}==yes):pass|error}}
{=(comment):Error message, and non-error output messages for embed fields}
{=(error):Please make sure you entered tire size correctly.
*ex: 235/85R16, or 235/85/16*}
{=(pass):Converting from {size}
**Tire Height:** {th}"
**Tire Width:** {tw}"
**Wheel Size:** {wheel}"}
{=(title):{if({errorchk}==pass):Tire Size Converter|Tire Size Converter: Error!}}
{=(thumb):{if({errorchk}==pass):https://i.imgur.com/lZBmJED.png?1|https://i.imgur.com/7mD1lHe.png}}
{=(desc):{if({errorchk}==pass):{pass}|{error}}}
{=(footer):{if({errorchk}==pass):sizes will vary with each manufacturer|Please try again.}}Embed
1 line{"color": 5198940, "title": "{title}", "footer": {"text": "{footer}"}, "thumbnail": {"url": "{thumb}"}, "description": "{desc}"}Raw JSON
{
"id": 228039,
"created_at": "2022-04-26T10:36:40.946Z",
"tag_name": "tiresize",
"nsfw": false,
"owner_id": "196498508784730113",
"uses": 192,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "638162546708316171",
"sharer": "196498508784730113",
"content": "{embed(color):#edf798}\n\n{=(comment):Converts R if used, into lowercase, and replaces r with a slash. This allows users to use either 235/85/16, 235/85R16 or 235/85r16 formatting.}\n{=(largs):{lower:{args}}}\n{=(jargs):{join():{largs}}}\n{=(size):{replace(r,/):{jargs}}}\n\n{=(comment):seperates user input into their respective sections for use in math blocks below.}\n{=(width):{size(1):/}}\n{=(height):{size(2):/}}\n{=(wheel):{size(3):/}}\n\n{=(comment):Calculates tire size from mm into inches.}\n{=(cw):{m:{width}/25.4}}\n{=(ch):{m:({cw}*0.{height})*2+{wheel}}}\n\n{=(comment):takes the converted sizes, and rounds to the nearest tenth. This had to be seperate, as the above math block requires un-rounded numbers to get correct final conversion.}\n{=(th):{m:round(({ch})*10)/10}}\n{=(tw):{m:round(({cw})*10)/10}}\n\n{=(comment):Checks to make sure only numbers were used in user input.}\n{=(sisp1):{replace(/, ):{size}}}\n{=(sisp2):{join():{sisp1}}}\n{=(alphchk):{if({sisp2}=={m:trunc({sisp2}/1)}):yes|{if({sisp2}=={m:{sisp2}/1}):yes|no}}}\n\n{=(comment):Checks to make sure format from user matches metric tire size format.}\n{=(widthch):{index($&):{replace(, ):{width}} $&}}\n{=(wichk):{if({widthch}==3):yes|no}}\n\n{=(heightch):{index($&):{replace(, ):{height}} $&}}\n{=(hchk):{if({heightch}==2):yes|no}}\n\n{=(wheelch):{index($&):{replace(, ):{wheel}} $&}}\n{=(whchk):{if({wheelch}==2):yes|no}}\n\n{=(comment):The final error check, checks to see if any of above \"checks\" have failed, if no fails found, sends converted size. If any fails are found, sends the error message.}\n{=(errorchk):{all({wichk}==yes|{hchk}==yes|{whchk}==yes|{alphchk}==yes):pass|error}}\n\n{=(comment):Error message, and non-error output messages for embed fields}\n{=(error):Please make sure you entered tire size correctly. \n*ex: 235/85R16, or 235/85/16*}\n\n{=(pass):Converting from {size}\n\n**Tire Height:** {th}\"\n**Tire Width:** {tw}\"\n**Wheel Size:** {wheel}\"}\n\n{=(title):{if({errorchk}==pass):Tire Size Converter|Tire Size Converter: Error!}}\n{=(thumb):{if({errorchk}==pass):https://i.imgur.com/lZBmJED.png?1|https://i.imgur.com/7mD1lHe.png}}\n{=(desc):{if({errorchk}==pass):{pass}|{error}}}\n{=(footer):{if({errorchk}==pass):sizes will vary with each manufacturer|Please try again.}}",
"embed": "{\"color\": 5198940, \"title\": \"{title}\", \"footer\": {\"text\": \"{footer}\"}, \"thumbnail\": {\"url\": \"{thumb}\"}, \"description\": \"{desc}\"}",
"last_fetched": "2026-10-20T21:48:35.731Z"
}