Difference between revisions of "Template:Hiero/2cartouche"

From blackwiki
Jump to navigation Jump to search
imported>Rursus
(testing)
imported>Thumperward
(reimplement as a sub-class of {{{hiero}}. pretty horrific hack, but it works)
Line 1: Line 1:
<!--This table template produces two cartouches for an Egyptian pharaoh's praenomen and nomen. The parameters that can be set are align=left/right, era=sets the colour scheme, name=name in English of the pharaoh, praenomen=hieroglyphs of the pharaoh's praenomen with 'hiero' tags, nomen=hieroglyphs of the pharaoh's nomen with 'hiero' tags.-->
+
{{ hiero
{|cellpadding="0" cellspacing="0" align="{{{align}}}" style="margin: 5px; border:2px solid {{hiero/{{{era}}}/bordercolour}};"
+
| 1    = {{{name}}}
!style="border-bottom:2px solid {{hiero/{{{era}}}/bordercolour}}; background:{{hiero/{{{era}}}/bgcolour}}; padding:5px; text-align:center;"|{{{name}}} <br> in [[Egyptian hieroglyph|hieroglyphs]]
+
| 2    =
|-
+
<table>
|style="text-align:center;text-valign:middle;padding:5px;background: white;"|''praenomen'' or throne name
+
<tr>
|-
+
<td style="text-align:center;text-valign:middle;padding:4px 10px;background: white;">
|style="text-align:center;text-valign:middle;padding:4px 10px;background: white;"|
 
 
   <!--This table surrounds the praenomen-->
 
   <!--This table surrounds the praenomen-->
   {|border="0" cellspacing="0" cellpadding="0" align="center"
+
   <table border="0" cellspacing="0" cellpadding="0" align="center">
   |[[Image:Hiero_Ca1.svg]]
+
   <tr>
   |
+
  <td>[[Image:Hiero_Ca1.svg]]</td>
 +
   <td>
 
     <!--This table includes the horizontal lines and hieroglyphs of the praenomen-->
 
     <!--This table includes the horizontal lines and hieroglyphs of the praenomen-->
     {|border="0" cellspacing="0" cellpadding="0"
+
     <table border="0" cellspacing="0" cellpadding="0">
     |height="2px" bgcolor="black"|
+
    <tr>
     |-
+
     <td height="2px" bgcolor="black"></td>
     |height="45" style="padding: 0px 0px 0px 0px;"|{{{praenomen}}}
+
     </tr><tr>
     |-
+
     <td height="45" style="padding: 0px 0px 0px 0px;">{{{praenomen}}}</td>
     |height="2px" bgcolor="black"|
+
     </tr><tr>
     |}
+
     <td height="2px" bgcolor="black"></td>
   |
+
     </table>
   |align="center" valign="middle"|[[Image:Hiero_Ca2.svg]]
+
   </td>
   |}
+
   <td align="center" valign="middle">[[Image:Hiero_Ca2.svg]]</td>
|
+
  </tr>
|-
+
   </table>
|style="text-align:center;text-valign:middle;padding:5px;background: white;"|''nomen'' or birth name
+
</td>
|-
+
</tr><tr>
|style="text-align:center;text-valign:middle;padding:4px 10px 10px 10px;background: white;"|
+
<td style="text-align:center;text-valign:middle;padding:5px;background: white;">''praenomen'' or throne name</td>
 +
</tr><tr>
 +
<td style="text-align:center;text-valign:middle;padding:4px 10px 10px 10px;background: white;">
 
   <!--This table surrounds the nomen-->
 
   <!--This table surrounds the nomen-->
   {|border="0" cellspacing="0" cellpadding="0" align="center"
+
   <table border="0" cellspacing="0" cellpadding="0" align="center">
   |[[Image:Hiero_Ca1.svg]]
+
   <tr>
   |
+
  <td>[[Image:Hiero_Ca1.svg]]</td>
 +
   <td>
 
     <!--This table includes the horizontal lines and hieroglyphs of the nomen-->
 
     <!--This table includes the horizontal lines and hieroglyphs of the nomen-->
     {|border="0" cellspacing="0" cellpadding="0"
+
     <table border="0" cellspacing="0" cellpadding="0">
     |height="2px" bgcolor="black"|
+
     <tr>
     |-
+
    <td height="2px" bgcolor="black"></td>
     |height="45" style="padding: 0px 0px 0px 0px;"|{{{nomen}}}
+
     </tr><tr>
     |-
+
     <td height="45" style="padding: 0px 0px 0px 0px;">{{{nomen}}}</td>
     |height="2px" bgcolor="black"|
+
     </tr><tr>
     |}
+
     <td height="2px" bgcolor="black"></td>
   |
+
    </tr>
   |align="center" valign="middle"|[[Image:Hiero_Ca2.svg]]
+
     </table>
   |}
+
   </td>
|
+
   <td align="center" valign="middle">[[Image:Hiero_Ca2.svg]]</td>
|}
+
   </tr>
 +
  </table>
 +
</td>
 +
</tr><tr>
 +
<td style="text-align:center;text-valign:middle;padding:5px;background: white;">''nomen'' or birth name</td>
 +
</tr>
 +
</table>
 +
| era  = {{{era|default}}}
 +
| style = {{{style|}}}
 +
}}

Revision as of 10:41, 5 October 2011

Hiero Ca1.svg
{{{praenomen}}}
Hiero Ca2.svg
praenomen or throne name
Hiero Ca1.svg
{{{nomen}}}
Hiero Ca2.svg
nomen or birth name
{{{name}}}
in hieroglyphs