Difference between revisions of "Template:LeaderInfoBox"
From EncyclopAtys
m |
|||
Line 1: | Line 1: | ||
− | {{#vardefine: | + | {{#vardefine:bg|eff}}{{#vardefine:fg|000}}{{#vardefine:light|9cc}}{{#vardefine:dark|003}}{{#vardefine:base|fff}}<!-- |
− | -->{| class=" | + | --> |
+ | <div style="float:left;margin:2em;top:0;width:30%;border:medium outset #{{#var:dark}}; vertical-align:top;border-radius:1em;background:#{{#var:base}};color:#{{#var:fg}};padding:0;{{#if:{{{left|}}} | margin-left:0; | float:right;margin-right:0; }}"> | ||
+ | <div class="cadre" style="text-align:left; position:relative; left:0; top:0; border:thin outset #{{#var:dark}}; height:2em; border-radius:.5em;margin:.5em;"> | ||
+ | <div style="position:absolute; left:5px; top:-5px;">[[File:{{{icone|R2_scenario_admin.png}}}|38px|link=]]</div> | ||
+ | <div style="position:absolute; left:40px; top:2px;font-size:1.2em; font-weight:bold; text-align:left; color:#000; padding:.15em .4em;">{{3DText|text={{{name|{{PAGENAME}}}}} }}</div> | ||
+ | </div> | ||
+ | <div style="margin:.5em; padding:.5em;"> | ||
+ | {|width="100%" | ||
|- | |- | ||
− | !align="centre" colspan="2" style="background: #{{#var: | + | !align="centre" colspan="2" style="background: #{{#var:bg}}; padding: 0em;height:1em;border:thin outset #{{#var:dark}}; " | {{#if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }} |
|- | |- | ||
! colspan="2" | {{#if: {{{image|}}} | [[Image:{{{image}}}|250px|{{#if: {{{caption|}}} | {{{caption}}} }}]] }} | ! colspan="2" | {{#if: {{{image|}}} | [[Image:{{{image}}}|250px|{{#if: {{{caption|}}} | {{{caption}}} }}]] }} | ||
Line 8: | Line 15: | ||
{{#if: {{{caption|}}} | ! align="centre" colspan="2" {{!}} <small>{{{caption}}}</small> | {{#if: {{{caption|}}} | ! align="centre" colspan="2" {{!}} <small>{{{caption}}}</small> | ||
{{!}}- | }} | {{!}}- | }} | ||
− | |||
− | |||
| | | | ||
|- | |- | ||
− | {{#if: {{{race|}}} | ! align="centre" style="background: #{{#var: | + | {{#if: {{{race|}}} | ! align="centre" style="background: #{{#var:bg}}; padding-left:5px;padding-right:5px;" {{!}} <font color="#{{#var:fg}}">'''Race:'''</font> |
! align="center" {{!}} <small>{{{race}}}</small> | ! align="center" {{!}} <small>{{{race}}}</small> | ||
{{!}}- | }} | {{!}}- | }} | ||
− | {{#if: {{{gender|}}} | ! align="centre" style="background: #{{#var: | + | {{#if: {{{gender|}}} | ! align="centre" style="background: #{{#var:bg}}; padding-left:5px;padding-right:5px;" {{!}} <font color="#{{#var:fg}}">'''Gender:'''</font> |
! align="center" {{!}} <small>{{{gender}}}</small> | ! align="center" {{!}} <small>{{{gender}}}</small> | ||
{{!}}- | }} | {{!}}- | }} | ||
− | !align="centre" colspan="2" style="background: #{{#var: | + | !align="centre" colspan="2" style="background: #{{#var:bg}}; padding: 0px;height:8px;" | |
|- | |- | ||
− | {{#if: {{{reign|}}} | ! align="centre" style="background: #{{#var: | + | {{#if: {{{reign|}}} | ! align="centre" style="background: #{{#var:bg}}; padding-left:5px;padding-right:5px;" {{!}} <font color="#{{#var:fg}}">'''Reign:'''</font> |
! align="center" {{!}} <small>{{{reign}}}</small> | ! align="center" {{!}} <small>{{{reign}}}</small> | ||
{{!}}- | }} | {{!}}- | }} | ||
− | {{#if: {{{predecessor|}}} | ! align="centre" style="background: #{{#var: | + | {{#if: {{{predecessor|}}} | ! align="centre" style="background: #{{#var:bg}}; padding-left:5px;padding-right:5px;" {{!}} <font color="#{{#var:fg}}">'''Predecessor:'''</font> |
! align="center" {{!}} <small>{{{predecessor}}}</small> | ! align="center" {{!}} <small>{{{predecessor}}}</small> | ||
{{!}}- | }} | {{!}}- | }} | ||
− | {{#if: {{{successor|}}} |! align="centre" style="background: #{{#var: | + | {{#if: {{{successor|}}} |! align="centre" style="background: #{{#var:bg}}; padding-left:5px;padding-right:5px;" {{!}} <font color="#{{#var:fg}}">'''Successor:'''</font> |
! align="center" {{!}} <small>{{{successor}}}</small> | ! align="center" {{!}} <small>{{{successor}}}</small> | ||
{{!}}- | }} | {{!}}- | }} | ||
− | !align="centre" colspan="2" style="background: #{{#var: | + | !align="centre" colspan="2" style="background: #{{#var:bg}}; padding: 0px;height:8px;" | |
|- | |- | ||
− | {{#if: {{{spouse|}}} |! align="centre" style="background: #{{#var: | + | {{#if: {{{spouse|}}} |! align="centre" style="background: #{{#var:bg}}; padding-left:5px;padding-right:5px;" {{!}} <font color="#{{#var:fg}}">'''Spouse:'''</font> |
! align="center" {{!}} <small>{{{spouse}}}</small> | ! align="center" {{!}} <small>{{{spouse}}}</small> | ||
{{!}}- | }} | {{!}}- | }} | ||
− | {{#if: {{{house|}}} |! align="centre" style="background: #{{#var: | + | {{#if: {{{house|}}} |! align="centre" style="background: #{{#var:bg}}; padding-left:5px;padding-right:5px;" {{!}} <font color="#{{#var:fg}}">'''House:'''</font> |
! align="center" {{!}} <small>{{{house}}}</small> | ! align="center" {{!}} <small>{{{house}}}</small> | ||
{{!}}- | }} | {{!}}- | }} | ||
− | {{#if: {{{father|}}} |! align="centre" style="background: #{{#var: | + | {{#if: {{{father|}}} |! align="centre" style="background: #{{#var:bg}}; padding-left:5px;padding-right:5px;" {{!}} <font color="#{{#var:fg}}">'''Father:'''</font> |
! align="center" {{!}} <small>{{{father}}}</small> | ! align="center" {{!}} <small>{{{father}}}</small> | ||
{{!}}- | }} | {{!}}- | }} | ||
− | {{#if: {{{mother|}}} |! align="centre" style="background: #{{#var: | + | {{#if: {{{mother|}}} |! align="centre" style="background: #{{#var:bg}}; padding-left:5px;padding-right:5px;" {{!}} <font color="#{{#var:fg}}">'''Mother:'''</font> |
! align="center" {{!}} <small>{{{mother}}}</small> | ! align="center" {{!}} <small>{{{mother}}}</small> | ||
{{!}}- | }} | {{!}}- | }} | ||
− | {{#if: {{{birth_date|}}} |! align="centre" style="background: #{{#var: | + | {{#if: {{{birth_date|}}} |! align="centre" style="background: #{{#var:bg}}; padding-left:5px;padding-right:5px;" {{!}} <font color="#{{#var:fg}}">'''Born:'''</font> |
! align="center" {{!}} <small>{{{birth_date}}} {{#if: {{{birth_place|}}} | <br>{{{birth_place}}} }}</small> | ! align="center" {{!}} <small>{{{birth_date}}} {{#if: {{{birth_place|}}} | <br>{{{birth_place}}} }}</small> | ||
{{!}}- | }} | {{!}}- | }} | ||
− | {{#if: {{{death_date|}}} |! align="centre" style="background: #{{#var: | + | {{#if: {{{death_date|}}} |! align="centre" style="background: #{{#var:bg}}; padding-left:5px;padding-right:5px;" {{!}} <font color="#{{#var:fg}}">'''Died:'''</font> |
! align="center" {{!}} <small>{{{death_date}}}{{#if: {{{death_place|}}} | <br>{{{death_place}}} | }}</small> | ! align="center" {{!}} <small>{{{death_date}}}{{#if: {{{death_place|}}} | <br>{{{death_place}}} | }}</small> | ||
{{!}}- | }} | {{!}}- | }} | ||
− | {{#if: {{{place_of_burial|}}} |! align="centre" style="background: #{{#var: | + | {{#if: {{{place_of_burial|}}} |! align="centre" style="background: #{{#var:bg}}; padding-left:5px;padding-right:5px;" {{!}} <font color="#{{#var:fg}}">'''Burial:'''</font> |
! align="center" {{!}} <small>{{{place_of_burial}}}</small> | ! align="center" {{!}} <small>{{{place_of_burial}}}</small> | ||
{{!}}- | }} | {{!}}- | }} | ||
− | {{#if: {{{religion|}}} |! align="centre" style="background: #{{#var: | + | {{#if: {{{religion|}}} |! align="centre" style="background: #{{#var:bg}}; padding-left:5px;padding-right:5px;" {{!}} <font color="#{{#var:fg}}">'''Religion:'''</font> |
! align="center" {{!}} <small>{{{religion}}}</small> | ! align="center" {{!}} <small>{{{religion}}}</small> | ||
{{!}}- | }} | {{!}}- | }} | ||
− | |}<!-- | + | |}</div></div> |
+ | <noinclude>[[Catégorie:Modèles]]</noinclude> | ||
+ | <!-- | ||
--><noinclude>{{clear}} __NOTOC__ | --><noinclude>{{clear}} __NOTOC__ |
Revision as of 13:37, 23 March 2018
LeaderInfoBox
LeaderInfoBox | |
---|---|
Description
Usage
{{LeaderInfoBox |name = Louis XIV |race = Matis |gender = none |title = [[List of French monarchs|King of France and Navarre]] |image = King_yrkanis_(drawing).png |caption = Louis XIV by [[Hyacinthe Rigaud]] (1701) |reign = 14 May 1643 – 1 September 1715 |predecessor = [[Louis XIII of France|Louis XIII]] |successor = [[Louis XV of France|Louis XV]] |spouse = [[Maria Theresa of Spain]]<br />[[Françoise d'Aubigné, marquise de Maintenon|Françoise d'Aubigné]] |house = [[House of Bourbon]] |father = [[Louis XIII of France]] |mother = [[Anne of Austria]] |birth_date = 1638-9-5 |birth_place = [[Château de Saint-Germain-en-Laye]],<br>[[Saint-Germain-en-Laye]],<br>France |death_date = 1715-09-01 |death_place = [[Palace of Versailles]],<br>[[Versailles (city)|Versailles]],<br>France |place_of_burial = [[Saint Denis Basilica]],<br>[[Saint-Denis]],<br>France |religion = [[Catholicism]] |}}
Non optional parameters
Optional parameters
Example
Historical amber: The Chiefs | |
Louis XIV | |
Louis XIV by Hyacinthe Rigaud (1701) | |
King of France and Navarre | |
Race | Matis |
Gender | none |
Reign | 14 May 1643 – 1 September 1715 |
Predecessor | Louis XIII |
Successor | Louis XV |
Spouse | Maria Theresa of Spain Françoise d'Aubigné |
House | House of Bourbon |
Father | Louis XIII of France |
Mother | Anne of Austria |
Birth date | 1638-9-5 |
Birthplace | Château de Saint-Germain-en-Laye, Saint-Germain-en-Laye, France |
Death date | 1715-09-01 |
Death place | Palace of Versailles, Versailles, France |
Burial | Saint Denis Basilica, Saint-Denis, France |
Religion | Catholicism |