Template:Party cell/sandbox

< Template:Party cell

style="background: linear-gradient(to right, parameter 1 should be a party name. 0.5em, transparent 0.5em); padding-left: 0.7em; "

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

Example: {{Party cell|1=Democratic|2=left|3=top}}.

<templatedata> { "params": { "1": { "label": "Party", "description": "Political party", "example": "Federalist", "required": true, "type": "string" }, "2": { "label": "Side", "description": "Which side the color bar is placed on", "example": "left", "suggestedvalues": [ "left", "right" ], "default": "left", "type": "string" }, "3": { "label": "Position", "description": "Used only for politicians who switch parties", "example": "top", "suggestedvalues": [ "top", "middle", "bottom" ], "default": "empty", "type": "string" } }, "description": "This template is used to format table cells with a sidebar of a political party color.", "format": "inline" } </templatedata>