<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
  <channel>
    <title>#emperor posts — Ben Crowder</title>
    <link>https://bencrowder.net/blog/tag/emperor/</link>
    <atom:link href="https://bencrowder.net/blog/tag/emperor/feed/" rel="self" />
    <description>Feed for blog posts tagged with #emperor.</description>
    <lastBuildDate>Fri, 17 Apr 2026 23:19:59 GMT</lastBuildDate>
    <language>en-US</language>
    <generator>https://bencrowder.net/</generator>

    <item>
      <title>Emperor</title>
      <link>https://bencrowder.net/blog/2010/emperor/</link>
      <guid isPermaLink="true">https://bencrowder.net/blog/2010/emperor/</guid>
      <pubDate>Wed, 03 Nov 2010 12:00:00 GMT</pubDate>
      <dc:creator><![CDATA[Ben Crowder]]></dc:creator>
      <description><![CDATA[<script src="https://bencrowder.net/js/emperor.js" type="application/javascript"></script>
<p>When blogging about genealogy, it’s nice to be able to easily embed pedigree charts in your posts. I realized yesterday that it would be pretty easy to write a script to do just that. It’s called <a href="https://bencrowder.net/coding/emperor/">Emperor</a>. Here’s a live demo:</p>
<h3>Two-generation</h3>
<div class="emperor-pedigree">
    * John Doe | b. 1850
    ** Father: Richard Doe |
    ** Mother: Maria Taylor | b. 1825
</div>
<h4>The code</h4>
<pre><code>&amp;lt;div class="emperor-pedigree"&amp;gt;
    * John Doe | b. 1850
    ** Father: Richard Doe |
    ** Mother: Maria Taylor | b. 1825
&amp;lt;/div&amp;gt;
</code></pre>
<h3>Three-generation</h3>
<div class="emperor-pedigree">
    * Samuel Smith | 1823&ndash;1825
    ** Nicholas Smith | 1800&ndash;1824
    *** Frederick Smith | 1773&ndash;1812
    *** Annabelle Hansen | b. 1770s?
    ** Irene Yolen | 1825&ndash;?
    *** Grandmother: Caroline Eastman | 1801&ndash;1899
</div>
<h4>The code</h4>
<pre><code>&amp;lt;div class="emperor-pedigree"&amp;gt;
    * Samuel Smith | 1823&amp;amp;ndash;1825
    ** Nicholas Smith | 1800&amp;amp;ndash;1824
    *** Frederick Smith | 1773&amp;amp;ndash;1812
    *** Annabelle Hansen | b. 1770s?
    ** Irene Yolen | 1825&amp;amp;ndash;?
    *** Grandmother: Caroline Eastman | 1801&amp;amp;ndash;1899
&amp;lt;/div&amp;gt;
</code></pre>
<h3>Family pedigree</h3>
<div class="emperor-pedigree">
    * Mark Goldman &<br/> Evelyn Washburn | Jackie (b. 1935)
    ** Stephen Goldman &<br/> Anne Rhys | Gary (b. 1899) | Ned (b. 1902) | Maggie (b. 1903) | Tanner (b. 1903) | Richard Goldman (b. 1908) | Mark Goldman (b. 1913)
    ** Robert Washburn &<br/> Zanny Holdmann | Evelyn (b. 1915) | Lawrence (b. 1917)
</div>
<h4>The code</h4>
<pre><code>&amp;lt;div class="emperor-pedigree"&amp;gt;
    * Mark Goldman &amp;amp;&amp;lt;br/&amp;gt; Evelyn Washburn | Jackie (b. 1935)
    ** Stephen Goldman &amp;amp;&amp;lt;br/&amp;gt; Anne Rhys | Gary (b. 1899) |
        Ned (b. 1902) | Maggie (b. 1903) | Tanner (b. 1903) |
        Richard Goldman (b. 1908) | Mark Goldman (b. 1913)
    ** Robert Washburn &amp;amp;&amp;lt;br/&amp;gt; Zanny Holdmann | Evelyn (b. 1915) |
        Lawrence (b. 1917)
&amp;lt;/div&amp;gt;
</code></pre>
<h3>Notes</h3>
<p>If you’re reading this in a feed reader, it won’t look all that impressive. (That’s one of the downsides to doing it via Javascript instead of server-side.) Here’s an image showing what it looks like (from the sample page, included with the source):</p>
<figure><img src="https://cdn.bencrowder.net/images/2010/11/emperor.png" alt="" title="emperor" /></figure>
<p>The code (on <a href="http://github.com/bencrowder/emperor">Github</a>) comes with instructions on using it. (Just upload the <code>emperor.js</code> file to your server, link to it in your head, and put your pedigree charts in a div with <code>class="emperor-pedigree"</code>.) Oh, and you can style the pedigrees with CSS. There are still some <a href="https://github.com/bencrowder/emperor/issues">issues</a> to be resolved, but it’s fully armed and operational.</p><hr class="feed-extra" style="margin-top: 48pt;" /><p class="feed-extra feed-mail"><a href="mailto:ben.crowder@gmail.com?subject=Re%3A%20Emperor">Reply via email</a></p>]]></description>
    </item>
    
  </channel>
</rss>
