Template:Infobox NAX Noble Title: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
|}} | |}} | ||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}| | ||
{{!}} colspan="2" style="text-align:center; padding:0.5em;" {{!}} [[File:{{{image}}}|{{#if:{{{image_size|}}}|{{{image_size}}}|250px}} | {{!}} colspan="2" style="text-align:center; padding:0.5em;" {{!}} [[File:{{{image}}}|{{#if:{{{image_size|}}}|{{{image_size}}}|250px}}]] | ||
{{!}}- | {{!}}- | ||
|}} | |}} | ||
| Line 15: | Line 15: | ||
|}} | |}} | ||
{{#if:{{{coat_of_arms|}}}| | {{#if:{{{coat_of_arms|}}}| | ||
{{!}} colspan="2" style="text-align:center; padding:0.5em; background:# | {{!}} colspan="2" style="text-align:center; padding:0.5em; background:#f5f5f5;" {{!}} [[File:{{{coat_of_arms}}}|{{#if:{{{coat_size|}}}|{{{coat_size}}}|120px}}]] | ||
{{!}}- | {{!}}- | ||
}} | |||
{{#if:{{{coat_caption|}}}| | {{#if:{{{coat_caption|}}}| | ||
{{!}} colspan="2" style="text-align:center; font-size:85%; padding:0 0.5em 0.5em 0.5em; background:# | {{!}} colspan="2" style="text-align:center; font-size:85%; padding:0 0.5em 0.5em 0.5em; background:#f5f5f5;" {{!}} {{{coat_caption}}} | ||
{{!}}- | {{!}}- | ||
|}} | |}} | ||
| Line 94: | Line 94: | ||
{{Documentation | {{Documentation | ||
|content = | |content = | ||
This template creates a standard infobox for royal and noble titles in the [[Nobility of Nouvelle Alexandrie]]. The infobox | 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 == | == Parameters == | ||
| Line 126: | Line 126: | ||
== Usage == | == Usage == | ||
All parameters are optional. Only filled parameters will be displayed in the infobox. | 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 === | === Blank Template === | ||
| Line 169: | Line 169: | ||
| 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> | <pre> | ||
{{Infobox NAX Noble Title | {{Infobox NAX Noble Title | ||
| Line 189: | Line 189: | ||
| 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> | </pre> | ||
| Line 198: | Line 217: | ||
== Notes == | == Notes == | ||
* The template automatically includes the article in nobility-related categories | * 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 | * Images are centered and responsive | ||
* All fields are optional and only display when populated | * All fields are optional and only display when populated | ||
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. |