Template:TOCnestright/testcases

example of parameter appendinside usage
 * This page is part of a "How-To" illustration, and not a current article.
 * TOCnestright


 * This page (shown in part below) as the first long term use of the appendinside capability of the TOCnestright template to nest pictures tight against an infobox. The first use was in a FAC article ca. early November of 2007 overloaded with images and also with a bit of WP:OWN by its "regular editor" (ahem), and stood for only two-three hours. Shrug.


 * Background
 * The page was "discovered" overburdened by images in the upper text area, including the two relocated under the tableof contents, both of which had been floated to the left side, causing text to flow between them and the infobox. Per WP:MOS, "pinching" text between two images is something that should be avoided, so the template author took the time to correct the position by using the append feature of the template an extension, as it were.


 * The code generating the effects below:

 {SNIP, SNIP} ... His parents were Sigismund III Vasa (1566-1632) and Constance of Austria Habsburg (1588-1631).

Royal titles
magnus dux Lithuaniae, Russie, Prussiae, Masoviae, Samogitiae, Livoniae, Smolenscie, Severiae, Czernichoviaeque; nec non Suecorum, Gothorum, Vandalorumque haereditarius rex, etc.'' {SNIP, SNIP}
 * Official titles in Latin: ''Ioannes Casimirus, Dei Gratia rex Poloniae,


 * &mdash; Original page and edit at 00:55, 7 November 2007.


 * For other monarchs with similar names, please see John of Poland.

John II Casimir (Jan II Kazimierz Waza; Johann II. Kasimir Wasa; March 22, 1609 – December 6, 1672) was King and Grand Duke of the Polish-Lithuanian Commonwealth, and Duke of Opole in Upper Silesia. His parents were Sigismund III Vasa (1566-1632) and Constance of Austria Habsburg (1588-1631).

Royal titles

 * Official titles in Latin: Ioannes Casimirus, Dei Gratia rex Poloniae, magnus dux Lithuaniae, Russie, Prussiae, Masoviae, Samogitiae, Livoniae, Smolenscie, Severiae, Czernichoviaeque; nec non Suecorum, Gothorum, Vandalorumque haereditarius rex, etc.


 * English translation: John Casimir, by God's grace King of Poland, Grand Duke of Lithuania, Ruthenia, Prussia, Masovia, Samogitia, Livonia, Smolensk, Severia and, Chernihiv; and also hereditary King of the Swedes, Goths and Vandals.

Biography
His father Sigismund, grandson of Gustav I of Sweden, had in 1592 succeeded his own father to the Swedish throne, only to be deposed in 1599 by his uncle, Charles IX of Sweden. This led to a long-standing feud wherein the Polish kings of the House of Vasa claimed the Swedish throne, resulting in the Polish-Swedish War of 1600-1629. Poland and Sweden were also on opposite sides in the Thirty Years' War (1618-1648), although in that war Poland for the most part avoided taking part in any major military actions.

John Casimir for most of his life remained in the shadow of his brother, Władysław IV Waza. He had few friends among the Polish nobility (szlachta), as he openly sympathized with Austria and showed disregard and contempt for Polish culture. Unfriendly, secretive, dividing his time between lavish partying and religious contemplation, and disliking politics, he did not have a strong power base nor influence at the Polish court. He did display talent as a military commander, showing his abilities in the Smolensk War against Muscovy (1633). Between 1632 and 1635, Władysław IV sought to enhance his brother's influence by negotiating a marriage for John Casimir to Christina of Sweden, then to an Italian princess, but to no avail. In 1635 John Casimir undertook a diplomatic mission to Vienna, which he abandoned to join the army of the Holy Roman Empire and fight against the French. After his regiment was defeated in battle, he spent a year living lavishly at the Viennese court.

In 1636 he returned to the Polish-Lithuanian Commonwealth and fell in love with Baroness Guldentern, but his desire to marry her was thwarted by King Władysław. In return, Władysław attempted to make him the sovereign of Courland, but this was vetoed by the Commonwealth parliament (Sejm). Taking offence at this, John Casimir in 1638 left for Spain to become Viceroy of Portugal, but was captured by French agents and imprisoned by order of Cardinal Richelieu until 1640. He was then freed by a diplomatic mission of the Voivod of Smolensk, Aleksander Gosiewski.

In 1641 John Casimir decided to become a Jesuit. In 1642 he again left the Polish-Lithuanian Commonwealth, accompanying his sister to Germany. In 1643 he joined the Jesuits, against vocal opposition from King Władysław, causing a diplomatic rift between the Commonwealth and the Pope. John Casimir was made a cardinal, but in December 1646, finding himself unsuited to ecclesiastical life, he returned to Poland. In October 1647 he resigned as cardinal to stand in elections for the Polish throne. He attempted to gain the support of the Habsburgs and marry an Austrian princess.

In 1648 John Casimir was elected to succeed his half-brother on the Polish throne. The reign of the last of the Vasas in the Polish-Lithuanian Commonwealth would be dominated by the Russo-Polish War (1654-1667), followed by the war with Sweden ("The Deluge"), the scene for which had been set by the Commonwealth's two previous Vasa kings. During the Deluge, nearly all of Poland was captured by the Swedes, who, though unable to retain most of their conquests and forced to retreat, had fairly devastated the entire country.

In 1660 John II Casimir was forced to renounce his claim to the Swedish throne and acknowledge Swedish sovereignty over Livonia and the city of Riga.

John Casimir had married his brother's widow, Mary Louise of Mantua (Polish: Maria Ludwika), who was a major support to the depression-prone King. Maria Ludwika died in 1667.

On September 16, 1668, John II Casimir abdicated the Polish-Lithuanian throne, and returned to France, where he joined the Jesuits and became abbot of St. Martin's monastery in Nevers. He died in 1672.

Legacy
John Casimir left no surviving children. All his brothers and sisters having predeceased him without surviving issue, he was the last of the line of Bona Sforza. With him, all the legitimate issue of Alfonso II of Naples died out. His heir in Ferrante I of Naples and in the Brienne succession was his distant cousin, Henry de La Tremoille, Prince of Talmond and Taranto, the heir-general of Federigo di Aragona (second son of Ferrante I and Isabella of Taranto), who also was the heir-general of Federigo's first wife, Anne of Savoy.

John Casimir was, after his brother, the head of the genealogical line of St.Bridget of Sweden, descending in primogeniture from Bridget's sister. After his death, the headship was inherited by his second cousin, the already-abdicated Christina I of Sweden.

{SNIP, SNIP}