Template:Infobox NAX Noble Title: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
mNo edit summary |
No edit summary |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<!-- Template:Infobox NAX | <!-- Template:Infobox NAX Noble Title --> | ||
{| class="infobox" style="width:22em; border:1px solid #aaa; background:#f9f9f9 | <includeonly>{{Nouvelle Alexandrie Article}} | ||
! colspan="2" style="text-align:center; background:#ccccff; font-weight:bold; font-size: | {| class="infobox" style="width:22em; border:1px solid #aaa; background:#f9f9f9; font-size:90%; line-height:1.4em; float:right; clear:right; margin:0 0 1em 1em;" | ||
| | {{#if:{{{title|}}}| | ||
! | ! colspan="2" style="text-align:center; background:#ccccff; font-weight:bold; font-size:120%; padding:0.5em;" {{!}} {{{title}}} | ||
| {{{ | {{!}}- | ||
|}} | |||
! | {{#if:{{{image|}}}| | ||
| {{#if:{{{coat_of_arms|}}}|[[File:{{{coat_of_arms}}}| | {{!}} colspan="2" style="text-align:center; padding:0.5em;" {{!}} [[File:{{{image}}}|{{#if:{{{image_size|}}}|{{{image_size}}}|250px}}]] | ||
{{!}}- | |||
! | |}} | ||
| {{{holder|}}} | {{#if:{{{image_caption|}}}| | ||
{{!}} colspan="2" style="text-align:center; font-size:85%; padding:0 0.5em 0.5em 0.5em;" {{!}} {{{image_caption}}} | |||
! | {{!}}- | ||
| {{{full_name|}}} | |}} | ||
{{#if:{{{coat_of_arms|}}}| | |||
! | {{!}} colspan="2" style="text-align:center; padding:0.5em; background:#f5f5f5;" {{!}} [[File:{{{coat_of_arms}}}|{{#if:{{{coat_size|}}}|{{{coat_size}}}|120px}}]] | ||
| {{{house|}}} | {{!}}- | ||
}} | |||
! | {{#if:{{{coat_caption|}}}| | ||
| {{{style|}}} | {{!}} colspan="2" style="text-align:center; font-size:85%; padding:0 0.5em 0.5em 0.5em; background:#f5f5f5;" {{!}} {{{coat_caption}}} | ||
|- | {{!}}- | ||
! | |}} | ||
| {{{appointed_by|}}} | {{#if:{{{holder|}}}| | ||
! style="text-align:left; padding:0.2em 0.5em; width:40%; background:#e8e8e8;" {{!}} Current holder | |||
! | {{!}} style="padding:0.2em 0.5em;" {{!}} {{{holder}}} | ||
| {{{reign|}}} | {{!}}- | ||
|}} | |||
! | {{#if:{{{full_name|}}}| | ||
| {{{predecessor|}}} | ! style="text-align:left; padding:0.2em 0.5em; background:#e8e8e8;" {{!}} Full name | ||
{{!}} style="padding:0.2em 0.5em;" {{!}} {{{full_name}}} | |||
! | {{!}}- | ||
| {{{successor|}}} | |}} | ||
{{#if:{{{house|}}}| | |||
! | ! style="text-align:left; padding:0.2em 0.5em; background:#e8e8e8;" {{!}} House | ||
| {{{residence|}}} | {{!}} style="padding:0.2em 0.5em;" {{!}} {{{house}}} | ||
{{!}}- | |||
! | |}} | ||
| {{{established|}}} | {{#if:{{{style|}}}| | ||
|- | ! style="text-align:left; padding:0.2em 0.5em; background:#e8e8e8;" {{!}} Style | ||
! | {{!}} style="padding:0.2em 0.5em;" {{!}} {{{style}}} | ||
| {{{notes|}}} | {{!}}- | ||
|}} | |||
{{#if:{{{heir|}}}| | |||
! style="text-align:left; padding:0.2em 0.5em; background:#e8e8e8;" {{!}} Heir apparent | |||
{{!}} style="padding:0.2em 0.5em;" {{!}} {{{heir}}} | |||
{{!}}- | |||
|}} | |||
{{#if:{{{appointed_by|}}}| | |||
! style="text-align:left; padding:0.2em 0.5em; background:#e8e8e8;" {{!}} Appointed by | |||
{{!}} style="padding:0.2em 0.5em;" {{!}} {{{appointed_by}}} | |||
{{!}}- | |||
|}} | |||
{{#if:{{{reign|}}}| | |||
! style="text-align:left; padding:0.2em 0.5em; background:#e8e8e8;" {{!}} Tenure | |||
{{!}} style="padding:0.2em 0.5em;" {{!}} {{{reign}}} | |||
{{!}}- | |||
|}} | |||
{{#if:{{{predecessor|}}}| | |||
! style="text-align:left; padding:0.2em 0.5em; background:#e8e8e8;" {{!}} Predecessor | |||
{{!}} style="padding:0.2em 0.5em;" {{!}} {{{predecessor}}} | |||
{{!}}- | |||
|}} | |||
{{#if:{{{successor|}}}| | |||
! style="text-align:left; padding:0.2em 0.5em; background:#e8e8e8;" {{!}} Successor | |||
{{!}} style="padding:0.2em 0.5em;" {{!}} {{{successor}}} | |||
{{!}}- | |||
|}} | |||
{{#if:{{{residence|}}}| | |||
! style="text-align:left; padding:0.2em 0.5em; background:#e8e8e8;" {{!}} Residence | |||
{{!}} style="padding:0.2em 0.5em;" {{!}} {{{residence}}} | |||
{{!}}- | |||
|}} | |||
{{#if:{{{established|}}}| | |||
! style="text-align:left; padding:0.2em 0.5em; background:#e8e8e8;" {{!}} Established | |||
{{!}} style="padding:0.2em 0.5em;" {{!}} {{{established}}} | |||
{{!}}- | |||
|}} | |||
{{#if:{{{abolished|}}}| | |||
! style="text-align:left; padding:0.2em 0.5em; background:#e8e8e8;" {{!}} Abolished | |||
{{!}} style="padding:0.2em 0.5em;" {{!}} {{{abolished}}} | |||
{{!}}- | |||
|}} | |||
{{#if:{{{notes|}}}| | |||
! style="text-align:left; padding:0.2em 0.5em; background:#e8e8e8;" {{!}} Notes | |||
{{!}} style="padding:0.2em 0.5em;" {{!}} {{{notes}}} | |||
{{!}}- | |||
|}} | |||
|} | |} | ||
[[Category:Nobility of Nouvelle Alexandrie]] | [[Category:Nobility of Nouvelle Alexandrie]] | ||
[[Category:Titles of Nobility of Nouvelle Alexandrie]][[Category:Noble titles]] | [[Category:Titles of Nobility of Nouvelle Alexandrie]] | ||
</includeonly> | [[Category:Noble titles]] | ||
<noinclude> | </includeonly><noinclude> | ||
{{Documentation | {{Documentation | ||
|content = | |content = | ||
This template | This template creates a standard infobox for royal and noble titles in the [[Nobility of Nouvelle Alexandrie]]. The infobox displays both a photograph of the current title holder and the coat of arms associated with the title when both are provided. | ||
== Parameters == | |||
=== Images === | |||
* '''image''' – The file name for a photograph of the current title holder (e.g., "Prince_Julio.jpg") | |||
* '''image_size''' – Optional. Size of the holder's photograph (default: 250px) | |||
* '''image_caption''' – Optional. Caption for the holder's photograph | |||
* '''coat_of_arms''' – The file name of the coat of arms associated with the title | |||
* '''coat_size''' – Optional. Size of the coat of arms (default: 120px) | |||
* '''coat_caption''' – Optional. Caption for the coat of arms | |||
=== Title Information === | |||
* '''title''' – The name of the title (e.g., "Prince of San Luis") | |||
* '''holder''' – The current holder of the title | |||
* '''full_name''' – The full name of the title holder | |||
* '''house''' – The noble house associated with the title | |||
* '''style''' – The formal style of address (e.g., "His/Her Serene Highness") | |||
* '''heir''' – The heir apparent to the title, if applicable | |||
=== Historical Information === | |||
* '''appointed_by''' – The authority that appointed the current holder | |||
* '''reign''' – The period during which the current holder has held the title | |||
* '''predecessor''' – The previous holder of the title | |||
* '''successor''' – The next holder of the title, if known | |||
* '''established''' – The date or era when the title was established | |||
* '''abolished''' – The date the title was abolished, if applicable | |||
* '''residence''' – The principal residence associated with the title | |||
* '''notes''' – Any additional relevant information | |||
== Usage == | |||
All parameters are optional. Only filled parameters will be displayed in the infobox. When both a photograph and coat of arms are provided, the photograph appears first, followed by the coat of arms below it. | |||
=== Blank Template === | |||
<pre> | <pre> | ||
{{Infobox NAX Noble Title | {{Infobox NAX Noble Title | ||
| title = | | title = | ||
| image = | |||
| image_size = | |||
| image_caption = | |||
| coat_of_arms = | | coat_of_arms = | ||
| coat_size = | |||
| coat_caption = | |||
| holder = | | holder = | ||
| full_name = | | full_name = | ||
| house = | | house = | ||
| style = | | style = | ||
| heir = | |||
| appointed_by = | | appointed_by = | ||
| reign = | | reign = | ||
| Line 81: | Line 149: | ||
| residence = | | residence = | ||
| established = | | established = | ||
| abolished = | |||
| notes = | | notes = | ||
}} | }} | ||
</pre> | </pre> | ||
=== | === Example === | ||
{{Infobox NAX Noble Title | |||
| title = Prince of San Luis | |||
| image = Prince_Julio_Portrait.jpg | |||
| image_caption = Prince Julio in 1745 AN | |||
| coat_of_arms = Prince_SanLuis_Arms.png | |||
| coat_caption = Coat of arms of the Prince of San Luis | |||
| holder = Prince Julio | |||
| full_name = Julio Luis Esteban de Gonzaga | |||
| house = [[House of Gonzaga]] | |||
| style = His Serene Highness | |||
| heir = Prince Carlos | |||
| appointed_by = [[King Manco Cápac I]] | |||
| reign = 1690 AN – Present | |||
| predecessor = Prince Alonso | |||
| residence = San Luis Palace | |||
| established = 1500s AN | |||
| notes = The Prince of San Luis is traditionally the first-born son of the reigning monarch. | |||
}} | |||
<pre> | |||
{{Infobox NAX Noble Title | {{Infobox NAX Noble Title | ||
| title = Prince of San Luis | | title = Prince of San Luis | ||
| image = Prince_Julio_Portrait.jpg | |||
| image_caption = Prince Julio in 1745 AN | |||
| coat_of_arms = Prince_SanLuis_Arms.png | | coat_of_arms = Prince_SanLuis_Arms.png | ||
| coat_caption = Coat of arms of the Prince of San Luis | |||
| holder = Prince Julio | | holder = Prince Julio | ||
| full_name = Julio Luis Esteban de Gonzaga | | full_name = Julio Luis Esteban de Gonzaga | ||
| house = House of Gonzaga | | house = [[House of Gonzaga]] | ||
| style = His Serene Highness | | style = His Serene Highness | ||
| appointed_by = King Manco Cápac I | | heir = Prince Carlos | ||
| appointed_by = [[King Manco Cápac I]] | |||
| reign = 1690 AN – Present | | reign = 1690 AN – Present | ||
| predecessor = Prince Alonso | | predecessor = Prince Alonso | ||
| residence = San Luis Palace | | residence = San Luis Palace | ||
| established = 1500s AN | | established = 1500s AN | ||
| notes = The Prince of San Luis is traditionally the first-born son of the reigning monarch. | | notes = The Prince of San Luis is traditionally the first-born son of the reigning monarch. | ||
}} | }} | ||
. | </pre> | ||
=== Example with Only Coat of Arms === | |||
{{Infobox NAX Noble Title | |||
| title = Duke of Santander | |||
| coat_of_arms = Duke_Santander_Arms.png | |||
| holder = Vacant | |||
| house = [[House of Mendoza]] | |||
| style = His Grace | |||
| established = 1623 AN | |||
}} | }} | ||
<pre> | |||
{{Infobox NAX Noble Title | |||
| title = Duke of Santander | |||
| coat_of_arms = Duke_Santander_Arms.png | |||
| holder = Vacant | |||
| house = [[House of Mendoza]] | |||
| style = His Grace | |||
| established = 1623 AN | |||
}} | |||
</pre> | |||
== Notes == | |||
* The template automatically includes the article in nobility-related categories | |||
* Both the photograph and coat of arms will display when both parameters are provided | |||
* Images are centered and responsive | |||
* All fields are optional and only display when populated | |||
* The template is backward-compatible with existing uses | |||
}} | |||
[[Category:Nouvelle Alexandrie templates]] | [[Category:Nouvelle Alexandrie templates]] | ||
[[Category:Nobility of Nouvelle Alexandrie]] | [[Category:Nobility of Nouvelle Alexandrie]] | ||
[[Category:Titles of Nobility of Nouvelle Alexandrie]] | [[Category:Titles of Nobility of Nouvelle Alexandrie]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 23:54, 6 November 2025
This template creates a standard infobox for royal and noble titles in the Nobility of Nouvelle Alexandrie. The infobox displays both a photograph of the current title holder and the coat of arms associated with the title when both are provided.
Parameters
Images
- image – The file name for a photograph of the current title holder (e.g., "Prince_Julio.jpg")
- image_size – Optional. Size of the holder's photograph (default: 250px)
- image_caption – Optional. Caption for the holder's photograph
- coat_of_arms – The file name of the coat of arms associated with the title
- coat_size – Optional. Size of the coat of arms (default: 120px)
- coat_caption – Optional. Caption for the coat of arms
Title Information
- title – The name of the title (e.g., "Prince of San Luis")
- holder – The current holder of the title
- full_name – The full name of the title holder
- house – The noble house associated with the title
- style – The formal style of address (e.g., "His/Her Serene Highness")
- heir – The heir apparent to the title, if applicable
Historical Information
- appointed_by – The authority that appointed the current holder
- reign – The period during which the current holder has held the title
- predecessor – The previous holder of the title
- successor – The next holder of the title, if known
- established – The date or era when the title was established
- abolished – The date the title was abolished, if applicable
- residence – The principal residence associated with the title
- notes – Any additional relevant information
Usage
All parameters are optional. Only filled parameters will be displayed in the infobox. When both a photograph and coat of arms are provided, the photograph appears first, followed by the coat of arms below it.
Blank Template
{{Infobox NAX Noble Title
| title =
| image =
| image_size =
| image_caption =
| coat_of_arms =
| coat_size =
| coat_caption =
| holder =
| full_name =
| house =
| style =
| heir =
| appointed_by =
| reign =
| predecessor =
| successor =
| residence =
| established =
| abolished =
| notes =
}}
Example
| Prince of San Luis | |
|---|---|
| File:Prince Julio Portrait.jpg | |
| Prince Julio in 1745 AN | |
| File:Prince SanLuis Arms.png | |
| Coat of arms of the Prince of San Luis | |
| Current holder | Prince Julio |
| Full name | Julio Luis Esteban de Gonzaga |
| House | House of Gonzaga |
| Style | His Serene Highness |
| Heir apparent | Prince Carlos |
| Appointed by | King Manco Cápac I |
| Tenure | 1690 AN – Present |
| Predecessor | Prince Alonso |
| Residence | San Luis Palace |
| Established | 1500s AN |
| Notes | The Prince of San Luis is traditionally the first-born son of the reigning monarch. |
{{Infobox NAX Noble Title
| title = Prince of San Luis
| image = Prince_Julio_Portrait.jpg
| image_caption = Prince Julio in 1745 AN
| coat_of_arms = Prince_SanLuis_Arms.png
| coat_caption = Coat of arms of the Prince of San Luis
| holder = Prince Julio
| full_name = Julio Luis Esteban de Gonzaga
| house = [[House of Gonzaga]]
| style = His Serene Highness
| heir = Prince Carlos
| appointed_by = [[King Manco Cápac I]]
| reign = 1690 AN – Present
| predecessor = Prince Alonso
| residence = San Luis Palace
| established = 1500s AN
| notes = The Prince of San Luis is traditionally the first-born son of the reigning monarch.
}}
Example with Only Coat of Arms
| Duke of Santander | |
|---|---|
| File:Duke Santander Arms.png | |
| Current holder | Vacant |
| House | House of Mendoza |
| Style | His Grace |
| Established | 1623 AN |
{{Infobox NAX Noble Title
| title = Duke of Santander
| coat_of_arms = Duke_Santander_Arms.png
| holder = Vacant
| house = [[House of Mendoza]]
| style = His Grace
| established = 1623 AN
}}
Notes
- The template automatically includes the article in nobility-related categories
- Both the photograph and coat of arms will display when both parameters are provided
- Images are centered and responsive
- All fields are optional and only display when populated
- The template is backward-compatible with existing uses
| Editors can experiment in this template's sandbox (create) and testcases (create) pages. Subpages of this template. |