Z16186

{
    "Z1K1": "Z2",
    "Z2K1": {
        "Z1K1": "Z6",
        "Z6K1": "Z16186"
    },
    "Z2K2": {
        "Z1K1": "Z14",
        "Z14K1": "Z16185",
        "Z14K3": {
            "Z1K1": "Z16",
            "Z16K1": "Z600",
            "Z16K2": "function Z16185( Z16185K1 )\r\n\r\n{\r\n\r\n function spell_block(x)\r\n {\r\n  var integers = [\"\", \"wa'\", \"cha'\", \"wej\", \"loS\", \"vagh\", \"jav\", \"Soch\", \"chorgh\", \"Hut\"];\r\n  var teens = [\"wa'maH wa'\", \"wa'maH cha'\", \"wa'maH wej\", \"wa'maH loS\", \"wa'maH vagh\", \"wa'maH jav\", \"wa'maH Soch\", \"wa'maH chorgh\", \"wa'maH Hut\"];\r\n  var tys = [\"\", \"wa'maH\", \"cha'maH\", \"wejmaH\", \"loSmaH\", \"vaghmaH\", \"javmaH\", \"SochmaH\", \"chorghmaH\", \"HutmaH\"]\r\n  \r\n  var hundreds_spelling = \"\", tens_and_ones_spelling = \"\", tens_spelling = \"\", ones_spelling = \"\";\r\n  var hundreds = x / 100n;\r\n  if(hundreds != 0n) {hundreds_spelling = integers[hundreds] + \"vatlh\";}\r\n  \r\n  var tens_and_ones = x % 100n;\r\n  if(tens_and_ones \u003E= 11n \u0026\u0026 tens_and_ones \u003C=19n) {tens_and_ones_spelling = teens[tens_and_ones-11n];}\r\n  else\r\n  {\r\n   var tens = tens_and_ones / 10n;\r\n   var ones = tens_and_ones % 10n;\r\n   if (tens != 0n) {tens_spelling = tys[tens];}\r\n   if (ones != 0n) {ones_spelling = integers[ones];}\r\n   \r\n   if(tens_spelling != \"\" \u0026\u0026 ones_spelling != \"\")\r\n    {tens_and_ones_spelling = tens_spelling + \" \" + ones_spelling;}\r\n   else if(tens_spelling != \"\" \u0026\u0026 ones_spelling == \"\")\r\n    {tens_and_ones_spelling = tens_spelling;}\r\n   else if(tens_spelling == \"\" \u0026\u0026 ones_spelling != \"\")\r\n    {tens_and_ones_spelling = ones_spelling;}\r\n   else {}\r\n  }\r\n  \r\n  if(hundreds_spelling != \"\" \u0026\u0026 tens_and_ones_spelling != \"\")\r\n   {return hundreds_spelling + \" \" + tens_and_ones_spelling;}\r\n  else {return hundreds_spelling + tens_and_ones_spelling;}\r\n }\r\n\r\n var x = Z16185K1;\r\n \r\n var blocks_names = [\"\", \"SaD\", \"'uy'\", \"Saghan\", \"SaDSaghan\"]\r\n var blocks_spelling = [];\r\n \r\n if(x == 0n) {blocks_spelling.push(\"pagh\");}\r\n else if (x \u003E 999999999999999n)\r\n { Wikifunctions.Error(\"Z28307\",[String(x),\"999999999999999\",\"tlh\"]); }\r\n else\r\n {\r\n  var x_remainder = x;\r\n  for(var i=0; i!=blocks_names.length; i++)\r\n  {\r\n   var cur_block = x_remainder % 1000n;\r\n   x_remainder = x_remainder / 1000n;\r\n   var cur_block_spelling = spell_block(cur_block);\r\n   if(cur_block_spelling != \"\")\r\n    {blocks_spelling.push(cur_block_spelling + (blocks_names[i]==\"\" ? \"\" : (\" \"+blocks_names[i]) ) );}\r\n  }\r\n }\r\n \r\n var tens_and_ones = x % 100n;\r\n var tens = tens_and_ones / 10n;\r\n var ones = tens_and_ones % 10n;\r\n \r\n return blocks_spelling.reverse().join(\" \");\r\n}"
        }
    },
    "Z2K3": {
        "Z1K1": "Z12",
        "Z12K1": [
            "Z11",
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1430",
                "Z11K2": "Klingonische Kardinalzahl in JavaScript"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1002",
                "Z11K2": "Klingon cardinal, javascript"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1004",
                "Z11K2": "cardinal en klingon, en JavaScript"
            }
        ]
    },
    "Z2K4": {
        "Z1K1": "Z32",
        "Z32K1": [
            "Z31"
        ]
    },
    "Z2K5": {
        "Z1K1": "Z12",
        "Z12K1": [
            "Z11"
        ]
    }
}