Template:Alliance time graph/doc

This template displays a horizontal graph representing a nation's total time in CN with each alliance occupying a part of the graph proportional to the time spent in that alliance. It currently supports up to ten alliances, but more can easily be added.

Code
Explanation: width, float, and title are optional parameters; they default to 50%, left, and "Relative Time In Each Alliance," respectively. They can be omitted if not changed. All other parameters are required. Parameter nationage is the age of your nation in days; the easiest way to do this is date, where date can be written out or shortened (use mm/dd/yyyy for best results); use date difference for a deleted nation. The allianceX, daysX, and colorX parameters are the details for each alliance's block. E.g. alliance1 is the name of the first alliance you were/are in (it displays as hovertext on that alliance's block in the graph), days1 is the number of days you were a member (use seniority if it is your current alliance or date difference if not, though it is better to put a raw number of days for former alliances), and color1 is the color in which you want that alliance's block to be displayed (can be named colors or hex codes including the "#"). Repeat these parameters as desired.