Difference between revisions of "Template:Infobox pharaoh"

From blackwiki
Jump to navigation Jump to search
imported>Joshua Issac
m (Documentation moved to /doc.)
imported>Jonesey95
(Fix too small font per MOS:FONTSIZE.)
 
(35 intermediate revisions by 16 users not shown)
Line 1: Line 1:
{| class="infobox" style="float:right;margin:0 0 1em 1em;font-size:90%;clear:right;width: 23em" cellspacing="5"
+
<includeonly>{{Infobox
!colspan="5" style="background: #f1f1de; text-align: center; font-size: larger;" | '''{{{Name}}}'''
+
| bodyclass = vcard nowraplinks
|-
+
| bodystyle = font-size:90%;width:24.44em<!--(90% of 24.44em ≈ 22.0em)-->;
{{#if: {{{Alt|<noinclude>-</noinclude>}}} |
+
 
!colspan="5" style="text-align: center; font-size: smaller;" {{!}} '''{{{Alt}}}'''
+
<!------------------ Headings, image ---------------------->
}}
+
| aboveclass = fn
|-
+
| abovestyle = background:#decd87;font-size:130%;
{{#if: {{{Image|<noinclude>-</noinclude>}}} |  
+
| above = {{{Name|{{{name}}}}}}
{{!}} colspan="5" style="text-align: center;" {{!}} <span class="photo">[[Image:{{{Image}}}|{{{ImageSize|150}}}px|{{{Caption|}}}]]</span>
+
 
{{!}}-
+
| subheaderclass = nickname
}}
+
| subheader = {{{Alt|{{{alt_name|}}}}}}
{{#if: {{{Caption|<noinclude>-</noinclude>}}} |
+
 
{{!}} colspan="5" style="text-align: center;" {{!}} ''{{{Caption}}}''
+
| imageclass = photo
{{!}}-
+
| image = {{#invoke:InfoboxImage|InfoboxImage |image={{{Image|{{{image|}}}}}} |size={{{ImageSize|{{{image_size|}}}}}} |sizedefault=frameless |upright=1 |alt={{{Image_alt|{{{image_alt|}}}}}} |title={{{Caption|{{{caption|}}}}}} }}
}}
+
| caption = {{{Caption|{{{caption|}}}}}}
|-
+
 
<!-------------------Dates ruled/Dynasty/Predecessor/Successor------------------------>
+
<!-------------------- Info fields ------------------------>
!colspan="5" style="background: #f1f1de; text-align: center;" {{!}} '''{{{Role|[[Pharaoh]] of [[ancient Egypt|Egypt]]}}}'''
+
| headerstyle = background:#decd87;font-size:105%;
|-
+
| labelstyle = padding-right:0.65em<!--(to ensure sufficient gap between any (long/unwrapped) label and subsequent data on the same line)-->
{{#if: {{{Reign|<noinclude>-</noinclude>}}} |
+
 
{{!}} style="vertical-align: top; text-align: right;" {{!}} '''[[Egyptian chronology|Reign]]'''
+
| header1 = {{#if:{{{role|}}} |{{{role}}} |[[Pharaoh]] <!--where else?: of [[Ancient Egypt|Egypt]]-->}}
{{!}} colspan="3" style="text-align: left;" {{!}} {{{Reign}}},&nbsp; {{#if: {{{Dynasty|<noinclude>-</noinclude>}}} |{{{Dynasty}}}}}
+
 
{{!}}-
+
| label2  = [[Egyptian chronology|Reign]]
}}
+
|  data2  = {{#if:{{{Reign|{{{reign|}}}}}} |{{{Reign|{{{reign}}}}}} {{#if:{{{Dynasty|{{{dynasty|}}}}}}|<span class="org">({{{Dynasty|{{{dynasty}}}}}})</span>}} }}
|-
+
 
{{#if: {{{Coregency|<noinclude>-</noinclude>}}} |
+
| label3  = [[Coregency]]
{{!}} style="vertical-align: top; text-align: right;" {{!}} '''[[Coregency]]'''
+
|  data3  = {{{Coregency|{{{coregency|}}}}}}
{{!}} colspan="3" style="text-align: left;" {{!}} {{{Coregency}}}
+
 
{{!}}-
+
| label4  = Predecessor
}}
+
|  data4  = {{{Predecessor|{{{predecessor|}}}}}}  
|-
+
 
{{#if: {{{Predecessor|<noinclude>-</noinclude>}}} |
+
| label5  = Successor
{{!}} style="vertical-align: top; text-align: right;" {{!}} '''Predecessor'''
+
|  data5  = {{{Successor|{{{successor|}}}}}}  
{{!}} colspan="3" style="text-align: left;" {{!}} {{{Predecessor}}}
+
 
}}
+
<!------------------- Royal titulary ---------------------->
|-
+
| data6  =
{{#if: {{{Successor|<noinclude>-</noinclude>}}} |
+
{{Hidden
{{!}} style="vertical-align: top; text-align: right;" {{!}} '''Successor'''
+
  | style = width:100%;margin:0;border:0;padding:0;
{{!}} colspan="3" style="text-align: left;" {{!}} {{{Successor}}}
+
  | headerstyle = background:#decd87;padding:0.1em; {{#if:{{{titulary_notes|{{{notes|}}}}}} | |display:block;margin-bottom:0.3em;}}
}}
+
  | header = {{bigger|[[Ancient Egyptian royal titulary|Royal titulary]]}}<!--(resized here rather than via headerstyle otherwise [show/hide] link also resized)-->
|-
+
  | contentstyle = border-bottom:2px solid #decd87;
<!--------------------Royal Titulary------------------------>
+
  | content =
!colspan="5" {{!}}
+
    {{Sidebar |bodystyle={{subsidebar bodystyle}} |navbar=off
{{hidden| headercss = background: #f1f1de;| header ='''[[Ancient Egyptian royal titulary|Royal titulary]]'''| content =
+
      |basestyle=background:#e9deaf; |contentclass=nowrap |contentstyle=padding-top:0.2em;padding-bottom:0.8em;
{{#if: {{{Notes|<noinclude>-</noinclude>}}}|<center>''{{{Notes}}}''</center>}}
+
      | content1 = {{#if:{{{titulary_notes|{{{notes|}}}}}} |''{{{titulary_notes|{{{notes|}}}}}}''}}
{{#if: {{{Prenomen|<noinclude>-</noinclude>}}}|<center>'''[[Ancient Egyptian royal titulary#Throne name (praenomen)|Prenomen]]''':&nbsp;{{{Prenomen}}}</center>}}
+
 
{{#if: {{{PrenomenHiero|<noinclude>-</noinclude>}}} |<center>{{Pharaoh Infobox Prenomen|Prenomen={{{PrenomenHiero}}}|}} </center>}}
+
      | heading2 = {{#if:{{{Prenomen|{{{prenomen|}}}}}} |[[Ancient Egyptian royal titulary#Throne name (praenomen)|Prenomen &nbsp;(Praenomen)]]}}
{{#if: {{{Nomen|<noinclude>-</noinclude>}}} |<center>'''[[Ancient Egyptian royal titulary|Nomen]]''':&nbsp;{{{Nomen}}}</center>}}
+
      | content2 = {{#if:{{{Prenomen|{{{prenomen|}}}}}} |
{{#if: {{{NomenHiero|<noinclude>-</noinclude>}}} |<center>{{Pharaoh Infobox Nomen|Nomen={{{NomenHiero}}}|}} </center>}}
+
          <table width="100%">
{{#if: {{{Horus|<noinclude>-</noinclude>}}} |<center>'''[[Ancient Egyptian royal titulary#Horus name|Horus name]]''':&nbsp;{{{Horus}}}</center>}}
+
          {{#if:{{{prenomen_translation|}}} |<tr><td style="font-size:125%;">'''''{{{Prenomen|{{{prenomen}}}}}}'''''</td></tr> <tr><td>"{{{prenomen_translation}}}"&thinsp;{{{prenomen_translation_ref|}}}</td></tr> |<tr><td>{{{Prenomen|{{{prenomen}}}}}}</td></tr>}}
{{#if: {{{HorusHiero|<noinclude>-</noinclude>}}} |<center>{{Pharaoh Infobox Serekh|Horus={{{HorusHiero}}}||prefix={{{HorusPrefix|<hiero>G5</hiero>}}} }} </center>}}
+
          {{#if:{{{PrenomenHiero|{{{prenomen_hiero|}}}}}} |<tr><td class="center"> {{Infobox pharaoh/Prenomen |Prenomen={{{PrenomenHiero|{{{prenomen_hiero}}}}}}}} </td></tr>}}
{{#if: {{{Nebty|<noinclude>-</noinclude>}}} |<center>'''[[Ancient Egyptian royal titulary#Nebty ("two ladies") name|Nebty name]]''':&nbsp;{{{Nebty}}}</center>}}
+
          </table> }}
{{#if: {{{NebtyHiero|<noinclude>-</noinclude>}}} |<center>{{Pharaoh Infobox Nebty|Nebty={{{NebtyHiero}}}}} </center>}}
+
 
{{#if: {{{Golden|<noinclude>-</noinclude>}}} |<center>'''[[Ancient Egyptian royal titulary#Horus of Gold|Golden Horus]]''':&nbsp;{{{Golden}}}</center>}}
+
      | heading3 = {{#if:{{{Nomen|{{{nomen|}}}}}} |[[Ancient Egyptian royal titulary|Nomen]]}}
{{#if: {{{GoldenHiero|<noinclude>-</noinclude>}}} |<center>{{Pharaoh Infobox Golden|Golden={{{GoldenHiero}}}|}} </center>}}
+
      | content3 = {{#if:{{{Nomen|{{{nomen|}}}}}} |
----}}<!--/hidden-->
+
          <table width="100%">
|-
+
          {{#if:{{{nomen_translation|}}} |<tr><td style="font-size:125%;">'''''{{{Nomen|{{{nomen}}}}}}'''''</td></tr> <tr><td>"{{{nomen_translation}}}"&thinsp;{{{nomen_translation_ref|}}}</td></tr> |<tr><td>{{{Nomen|{{{nomen|}}}}}}</td></tr>}}
<!--!colspan="5" style="border-top: 1px solid #ddd; text-align: center;" {{!}}-->
+
          {{#if:{{{NomenHiero|{{{nomen_hiero|}}}}}} |<tr><td class="center"> {{Infobox pharaoh/Nomen |Nomen={{{NomenHiero|{{{nomen_hiero}}}}}}}} </td></tr>}}
|-
+
          </table> }}
<!------------------Personal Data----------------------->
+
 
{{#if: {{{Spouse|<noinclude>-</noinclude>}}} |
+
      | heading4 = {{#if:{{{Horus|{{{horus|}}}}}} |[[Ancient Egyptian royal titulary#Horus name|Horus name]]}}
{{!}} style="vertical-align: top; text-align: right;" {{!}} '''Consort(s)'''
+
      | content4 = {{#if:{{{Horus|{{{horus|}}}}}} |
{{!}} colspan="5" style="text-align: left;" {{!}} {{{Spouse}}}
+
          <table width="100%">
{{!}}-
+
          {{#if:{{{horus_translation|}}} |<tr><td style="font-size:125%;">'''''{{{Horus|{{{horus}}}}}}'''''</td></tr> <tr><td>"{{{horus_translation}}}"&thinsp;{{{horus_translation_ref|}}}</td></tr> |<tr><td>{{{Horus|{{{horus|}}}}}}</td></tr>}}
}}
+
          {{#if:{{{HorusHiero|{{{horus_hiero|}}}}}} |<tr><td class="center"> {{Infobox pharaoh/Serekh |prefix={{#if:{{{horus_prefix|}}}|{{{horus_prefix}}}|<hiero>G5</hiero>}} |Horus={{{HorusHiero|{{{horus_hiero}}}}}}}} </td></tr>}}
|-
+
          </table> }}
{{#if: {{{Children|<noinclude>-</noinclude>}}} |
+
 
{{!}} style="vertical-align: top; text-align: right;" {{!}} '''Children'''
+
      | heading5 = {{#if:{{{Nebty|{{{nebty|}}}}}} |[[Ancient Egyptian royal titulary#Nebty ("two ladies") name|Nebty name]]}}
{{!}} colspan="3" style="text-align: left;" {{!}} {{{Children}}}
+
      | content5 = {{#if:{{{Nebty|{{{nebty|}}}}}} |
{{!}}-
+
          <table width="100%">
}}
+
          {{#if:{{{nebty_translation|}}} |<tr><td style="font-size:125%;">'''''{{{Nebty|{{{nebty|}}}}}}'''''</td></tr> <tr><td>"{{{nebty_translation}}}"&thinsp;{{{nebty_translation_ref|}}}</td></tr> |<tr><td>{{{Nebty|{{{nebty|}}}}}}</td></tr>}}
|-
+
          {{#if:{{{NebtyHiero|{{{nebty_hiero|}}}}}} |<tr><td class="center"> {{Infobox pharaoh/Nebty |Nebty={{{NebtyHiero|{{{nebty_hiero}}}}}}}} </td></tr>}}
<!-- this is left for backwards compatibility -->
+
          </table> }}
{{#if: {{{Issue|<noinclude>-</noinclude>}}} |
+
 
{{!}} style="vertical-align: top; text-align: right;" {{!}} '''Children'''
+
      | heading6 = {{#if:{{{Golden|{{{golden|}}}}}} |[[Ancient Egyptian royal titulary#Horus of Gold|Golden Horus]]}}
{{!}} colspan="3" style="text-align: left;" {{!}} {{{Issue}}}
+
      | content6 = {{#if:{{{Golden|{{{golden|}}}}}} |
{{!}}-
+
          <table width="100%">
}}
+
          {{#if:{{{golden_translation|}}} |<tr><td style="font-size:125%;">'''''{{{Golden|{{{golden}}}}}}'''''</td></tr> <tr><td>"{{{golden_translation}}}"&thinsp;{{{golden_translation_ref|}}}</td></tr> |<tr><td>{{{Golden|{{{golden}}}}}}</td></tr>}}
|-
+
          {{#if:{{{GoldenHiero|{{{golden_hiero|}}}}}} |<tr><td class="center"> {{Infobox pharaoh/Golden |Golden={{{GoldenHiero|{{{golden_hiero}}}}}}}} </td></tr>}}
{{#if: {{{Father|<noinclude>-</noinclude>}}} |
+
          </table> }}
{{!}} style="vertical-align: top; text-align: right;" {{!}} '''Father'''
+
}}  }}
{{!}} colspan="3" style="text-align: left;" {{!}} {{{Father}}}
+
 
{{!}}-
+
<!---------------- Info fields (cont'd) ------------------->
}}
+
| label7  = Consort{{#if:{{{spouses|{{{consorts|}}}}}}|s}}
|-
+
|  data7  = {{#if:{{{spouses|{{{consorts|}}}}}}|{{{spouses|{{{consorts|}}}}}}|{{{Spouse|{{{spouse|{{{consort|}}}}}}}}}}}
{{#if: {{{Mother|<noinclude>-</noinclude>}}} |
+
 
{{!}} style="vertical-align: top; text-align: right;" {{!}} '''Mother'''
+
| label8  = Children
{{!}} colspan="3" style="text-align: left;" {{!}} {{{Mother}}}
+
|  data8  = {{{Children|{{{children|}}}}}}
{{!}}-
+
 
}}
+
| label9  = Father
|-
+
|  data9  = {{{Father|{{{father|}}}}}}
{{#if: {{{Born|<noinclude>-</noinclude>}}} |
+
 
{{!}} style="vertical-align: top; text-align: right;" {{!}} '''Born'''
+
| label10 = Mother
{{!}} colspan="3" style="text-align: left;" {{!}} {{{Born}}}
+
|  data10 = {{{Mother|{{{mother|}}}}}}
{{!}}-
+
 
}}
+
| label11 = Born
|-
+
|  data11 = {{if empty|{{{Born|}}}|{{br separated entries|{{{birth_date|}}}|{{{birth_place|}}}}}}}
{{#if: {{{Died|<noinclude>-</noinclude>}}} |
+
 
{{!}} style="vertical-align: top; text-align: right;" {{!}} '''Died'''
+
| label12 = Died
{{!}} colspan="3" style="text-align: left;" {{!}} {{{Died}}}
+
|  data12 = {{if empty|{{{Died|}}}|{{br separated entries|{{{death_date|}}}|{{{death_place|}}}}}}}
{{!}}-
+
 
}}
+
| label13 = Burial
|-
+
|  data13 = {{{Burial|{{{burial|}}}}}}
{{#if: {{{Burial|<noinclude>-</noinclude>}}} |
+
 
{{!}} style="vertical-align: top; text-align: right;" {{!}} '''Burial'''
+
| label14 = Monuments
{{!}} colspan="3" style="text-align: left;" {{!}} {{{Burial}}}
+
|  data14 = {{{Monuments|{{{monuments|}}}}}}
{{!}}-
+
 
}}
+
}}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox pharaoh with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox pharaoh]] with unknown parameter "_VALUE_"|ignoreblank=y| Alt | alt_name | birth_date | birth_place | Born | burial | Burial | caption | Caption | children | Children | consort | consorts | coregency | Coregency | death_date | death_place | Died | dynasty | Dynasty | father | Father | golden | Golden | golden_hiero | golden_translation | golden_translation_ref | GoldenHiero | horus | Horus | horus_hiero | horus_prefix | horus_translation | horus_translation_ref | HorusHiero | image | Image | image_alt | Image_alt | image_size | ImageSize | monuments | Monuments | mother | Mother | name | Name | nebty | Nebty | nebty_hiero | nebty_translation | nebty_translation_ref | NebtyHiero | nomen | Nomen | nomen_hiero | nomen_translation | nomen_translation_ref | NomenHiero | notes | predecessor | Predecessor | prenomen | Prenomen | prenomen_hiero | prenomen_translation | prenomen_translation_ref | PrenomenHiero | reign | Reign | role | spouse | Spouse | spouses | successor | Successor | titulary_notes }}<noinclude>{{Documentation}}</noinclude>
|-
 
{{#if: {{{Monuments|<noinclude>-</noinclude>}}} |
 
{{!}} style="vertical-align: top; text-align: right;" {{!}} '''Monuments'''
 
{{!}} colspan="3" style="text-align: left;" {{!}} {{{Monuments}}}
 
{{!}}-
 
}}
 
|}<noinclude>
 
<br clear="all">
 
{{documentation}}
 
</noinclude}}
 

Latest revision as of 02:51, 20 February 2020

Template documentation[view] [edit] [history] [purge]
  1. redirect Template:Parameter names example

Usage

This template is designed to display information about an Egyptian pharaoh, including their names in hieroglyphs.

Other than name, all parameters listed below are optional. To see a near-full example of the template's use within the encyclopedia, visit Ramesses II.

Full syntax

{{Infobox pharaoh
| name           =
| alt_name       =
| image          =
| image_alt      =
| caption        =
| role           =  <!-- Defaults to: [[Pharaoh]] -->
| reign          =
| coregency      =
| predecessor    =
| successor      =

| notes          =
| prenomen       =
| prenomen_hiero =
| nomen          =
| nomen_hiero    =
| horus          =
| horus_prefix   =  <!-- Defaults to: <hiero>G5</hiero> -->
| horus_hiero    =
| nebty          =
| nebty_hiero    =
| golden         =
| golden_hiero   =

| spouse         =
| children       =
| dynasty        =
| father         =
| mother         =
| birth_date     =
| birth_place    = <!-- if known, otherwise omit -->
| death_date     =
| death_place    = <!-- if known, otherwise omit -->
| burial         =
| monuments      =
}}

Parameters

All optional other than name.

Parameter Function
name Name by which pharaoh commonly known
alt_name Alternative names
image Infobox image (headshot, if possible)
image_alt Alternative text for the image
caption Caption for the image
align Template's position: left, center or right
nomen Pharaoh's nomen; use <hiero>...</hiero> format, followed by transliteration, followed by translation
pronomen Pharaoh's pronomen (see above)
golden Pharaoh's Golden Horus name
nebty Pharaoh's Nebty name
horus Pharaoh's Horus
reign Dates of pharaoh's reign (use alternatives, if known)
predecessor Name of pharaoh's predecessor
successor Name of pharaoh's successor
consorts or consort
spouses or spouse
Names of pharaoh's consorts/spouses
children Names of pharaoh's children
dynasty Name of pharaoh's dynasty
coregency coregency (if applicable)
father Name of pharah's father (if known)
mother Name of pharah's mother (if known)
birth_date Year of pharaoh's birth
birth_place Place of pharaoh's birth (if known)
death_date Year of pharaoh's death
death_place Place of pharaoh's death (if known)
burial Place where pharaoh buried and/or pharaoh's tomb/body found
monuments Names of any significant monuments dedicated to the pharaoh
role Defaults to "Pharaoh"
golden_hiero Pharaoh's hieroglyphic Golden Horus name (see above)
nebty_hiero Pharaoh's hieroglyphic Nebty name (see above)
horus_hiero Pharaoh's hieroglyphic Horus (see above)

Microformat

Template:UF-hcard-person

Tracking categories

Ancient Egypt templates

Sidebars

Other templates