Template:Resratio/doc

{ "description": "This template is employed by Template:resrow to achieve consistent nomenclature for aspect ratios. It works differently with one and two parameters. This has been moved from Template:ratio to free up the name of the Ratio template for more versatile purposes.", "params": { "1": {  "label": "ratio or width", "description": "If it is the only parameter provided, a float number or a ratio of two integers with colon in between without spaces. Otherwise, the larger of both dimensions in pixels.", "type": "string", "required": true, "aliases": ["x"] }, "2": {    "label": "height", "description": "The smaller of both dimensions in pixels", "type": "number", "required": false, "aliases": ["y"] }, "f": { "label": "float output", "description": "if provided, a float will be returned instead of a string; except when set to a small integer like 9, some values will use a reasonable approximation with that as a denominator", "type": "string", "required": false }, "r": { "label": "ratio", "description": "forced literal output", "type": "string", "required": false } }}