Template:Person: Difference between revisions

From elijah
Jump to navigation Jump to search
No edit summary
No edit summary
Line 74: Line 74:
   </div>
   </div>


   <!-- Body -->
   <!-- Body: two-column layout — data left, image right -->
   <div style="padding: 0.85em 1em 0.9em 1em;">
   <div style="padding: 0.85em 1em 0.9em 1em; display:table; width:100%; box-sizing:border-box;">


     <!-- Image Block -->
     <!-- Left column: all data -->
     {{#if:{{{HasImage|}}}|
     <div style="display:table-cell; vertical-align:top; text-align:left;">
       <div style="float:right; margin: 0 0 0.6em 0.9em;">
 
         [[{{#show: {{{HasImage|}}} |?HasFile |link=none}}|thumb|150px|center|{{{HasName|}}}]]
      <!-- Hebrew / Yiddish Names -->
      {{#if:{{{HasHebName|}}}{{{HasYiddishName|}}}|
        <div style="margin-bottom:0.55em; font-size:0.9em; color:#444;">
          {{#if:{{{HasHebName|}}}|<span style="font-weight:bold; color:#555;">עב׳:</span>&nbsp;<span lang="he" dir="rtl" style="font-size:1.05em;">{{{HasHebName}}}</span>}}
          {{#if:{{{HasHebName|}}}{{{HasYiddishName|}}}|{{#if:{{{HasHebName|}}}|{{#if:{{{HasYiddishName|}}}|&ensp;&bull;&ensp;}}}}}}
          {{#if:{{{HasYiddishName|}}}|<span style="font-weight:bold; color:#555;">יידיש:</span>&nbsp;<span lang="yi" dir="rtl" style="font-size:1.05em;">{{{HasYiddishName}}}</span>}}
        </div>
      }}
 
      <!-- Vital Statistics — always show all four rows -->
       <table style="border-collapse:collapse; font-size:0.88em; margin-bottom:0.55em;">
        <tr>
          <td style="color:#777; padding:0.12em 0.8em 0.12em 0; white-space:nowrap; vertical-align:top; text-align:left;">'''Born'''</td>
          <td style="color:#222; text-align:left;">
            {{#if:{{{HasDateOfBirth|}}}|
              {{{HasDateOfBirth}}}{{#if:{{{HasPlaceOfBirth|}}}|&ensp;·&ensp;[[{{{HasPlaceOfBirth}}}]]}}
            |<span style="color:#bbb;">—</span>}}
          </td>
        </tr>
        <tr>
          <td style="color:#777; padding:0.12em 0.8em 0.12em 0; white-space:nowrap; vertical-align:top; text-align:left;">'''Place of birth'''</td>
          <td style="color:#222; text-align:left;">
            {{#if:{{{HasPlaceOfBirth|}}}|[[{{{HasPlaceOfBirth}}}]]|<span style="color:#bbb;">—</span>}}
          </td>
        </tr>
         <tr>
          <td style="color:#777; padding:0.12em 0.8em 0.12em 0; white-space:nowrap; vertical-align:top; text-align:left;">'''Died'''</td>
          <td style="color:#222; text-align:left;">
            {{#if:{{{HasDateOfDeath|}}}|
              {{{HasDateOfDeath}}}{{#if:{{{HasPlaceOfDeath|}}}|&ensp;·&ensp;[[{{{HasPlaceOfDeath}}}]]}}
            |<span style="color:#bbb;">—</span>}}
          </td>
        </tr>
        <tr>
          <td style="color:#777; padding:0.12em 0.8em 0.12em 0; white-space:nowrap; vertical-align:top; text-align:left;">'''Place of death'''</td>
          <td style="color:#222; text-align:left;">
            {{#if:{{{HasPlaceOfDeath|}}}|[[{{{HasPlaceOfDeath}}}]]|<span style="color:#bbb;">—</span>}}
          </td>
        </tr>
      </table>
 
      <!-- Professional Data -->
      {{#if:{{{HasProfession|}}}|
        <div style="font-size:0.88em; margin-bottom:0.55em; text-align:left;">
          <span style="color:#777;">'''Known for'''</span>&ensp;
          <!-- {{#arraymap:{{{HasProfession|}}}|;|@@|[[Term:@@|@@]]|, }} --> <!-- Auto-links to Term:Namespace -->
          <!--
            We use [[HasProfession::@@]] syntax here.
            This displays the text "@@" (e.g. Rabbi), but clicking it
            searches the wiki for other people with that same property value.
          -->
          {{#arraymap:{{{HasProfession|}}}|;|@@|[[HasProfession::@@]]|, }}
        </div>
      }}
 
      <!-- Related Article -->
      <div style="font-size:0.88em; margin-bottom:0.3em; text-align:left;">
        {{#if:{{{HasArticle|}}}|
          <span style="color:#777;">'''Related Article'''</span>&ensp;[[{{{HasArticle}}}]]
        |
          <span style="color:#aaa; font-style:italic;">No Related Article</span>
        }}
       </div>
       </div>
    }}


    <!-- Hebrew / Yiddish Names -->
      <!-- Bibliography & Encyclopaedia Links -->
    {{#if:{{{HasHebName|}}}{{{HasYiddishName|}}}|
       <div style="font-size:0.88em; margin-bottom:0.3em; text-align:left;">
       <div style="margin-bottom:0.55em; font-size:0.9em; color:#444;">
         {{#if:{{{HasBibLink|}}}|
         {{#if:{{{HasHebName|}}}|<span style="font-weight:bold; color:#555;">עב׳:</span>&nbsp;<span lang="he" dir="rtl" style="font-size:1.05em;">{{{HasHebName}}}</span>}}
          <span style="color:#777;">'''Selected bibliography'''</span>&ensp;[[{{{HasBibLink}}}]]
         {{#if:{{{HasHebName|}}}{{{HasYiddishName|}}}|{{#if:{{{HasHebName|}}}|{{#if:{{{HasYiddishName|}}}|&ensp;&bull;&ensp;}}}}}}
         |
        {{#if:{{{HasYiddishName|}}}|<span style="font-weight:bold; color:#555;">יידיש:</span>&nbsp;<span lang="yi" dir="rtl" style="font-size:1.05em;">{{{HasYiddishName}}}</span>}}
          <span style="color:#aaa; font-style:italic;">No Selected bibliography</span>
        }}
       </div>
       </div>
    }}
       <div style="font-size:0.88em; margin-bottom:0.3em; text-align:left;">
 
         {{#if:{{{HasYIVOLink|}}}|
    <!-- Vital Statistics -->
           <span style="color:#777;">'''YIVO Encyclopedia entry'''</span>&ensp;[[{{{HasYIVOLink}}}]]
    {{#if:{{{HasDateOfBirth|}}}{{{HasDateOfDeath|}}}|
        |
       <table style="border-collapse:collapse; font-size:0.88em; margin-bottom:0.55em; width:100%;">
          <span style="color:#aaa; font-style:italic;">No YIVO Encyclopedia entry</span>
         {{#if:{{{HasDateOfBirth|}}}|
           <tr>
            <td style="color:#777; padding:0.12em 0.6em 0.12em 0; white-space:nowrap; vertical-align:top;">'''Born'''</td>
            <td style="color:#222;">{{{HasDateOfBirth}}}{{#if:{{{HasPlaceOfBirth|}}}|&ensp;·&ensp;[[{{{HasPlaceOfBirth}}}]]}}</td>
          </tr>
         }}
         }}
         {{#if:{{{HasDateOfDeath|}}}|
      </div>
           <tr>
      <div style="font-size:0.88em; margin-bottom:0.55em; text-align:left;">
            <td style="color:#777; padding:0.12em 0.6em 0.12em 0; white-space:nowrap; vertical-align:top;">'''Died'''</td>
         {{#if:{{{HasWikiLink|}}}|
            <td style="color:#222;">{{{HasDateOfDeath}}}{{#if:{{{HasPlaceOfDeath|}}}|&ensp;·&ensp;[[{{{HasPlaceOfDeath}}}]]}}</td>
           <span style="color:#777;">'''Wikipedia entry'''</span>&ensp;[[{{{HasWikiLink}}}]]
          </tr>
        |
          <span style="color:#aaa; font-style:italic;">No Wikipedia entry</span>
         }}
         }}
      </table>
    }}
    <!-- Professional Data -->
    {{#if:{{{HasProfession|}}}|
      <div style="font-size:0.88em; margin-bottom:0.55em;">
        <span style="color:#777;">'''Known for'''</span>&ensp;
        <!-- {{#arraymap:{{{HasProfession|}}}|;|@@|[[Term:@@|@@]]|, }} --> <!-- Auto-links to Term:Namespace -->
        <!--
          We use [[HasProfession::@@]] syntax here.
          This displays the text "@@" (e.g. Rabbi), but clicking it
          searches the wiki for other people with that same property value.
        -->
        {{#arraymap:{{{HasProfession|}}}|;|@@|[[HasProfession::@@]]|, }}
       </div>
       </div>
    }}


    <!-- Related Article -->
      <!-- Other External Links with Validation -->
    <div style="font-size:0.88em; margin-bottom:0.3em;">
      {{#if:{{{HasURL|}}}|
      {{#if:{{{HasArticle|}}}|
        <div style="font-size:0.88em; margin-bottom:0.4em; text-align:left;">
        <span style="color:#777;">'''Related Article'''</span>&ensp;[[{{{HasArticle}}}]]
          <span style="color:#777;">'''External Links'''</span><br/>
      |
          {{#arraymap:{{{HasURL}}}|;|@@|
        <span style="color:#aaa; font-style:italic;">No Related Article</span>
            {{#if: {{#rmatch:@@|^https?://}} | <div style="padding-left:0.6em;">[@@ Link]</div> | <!-- Invalid hidden --> }}
          |}}
        </div>
       }}
       }}
    </div>


    <!-- Bibliography & Encyclopaedia Links -->
      <!-- Identifiers (Crucial for TEI/MARC21 Interop) -->
    <div style="font-size:0.88em; margin-bottom:0.3em;">
      {{#if:{{{HasWikidataID|}}}{{{HasVIAFID|}}}{{{HasMazalID|}}}|
      {{#if:{{{HasBibLink|}}}|
        <div style="
        <span style="color:#777;">'''Selected bibliography'''</span>&ensp;[[{{{HasBibLink}}}]]
          border-top: 1px solid #e4e8ec;
      |
          margin-top: 0.6em;
        <span style="color:#aaa; font-style:italic;">No Selected bibliography</span>
          padding-top: 0.5em;
          font-size: 0.78em;
          color: #888;
          line-height: 1.7;
          text-align: left;
        ">
          {{#if:{{{HasWikidataID|}}}|<span>'''Wikidata:'''&nbsp;[https://www.wikidata.org/wiki/{{{HasWikidataID}}} {{{HasWikidataID}}}]</span>&emsp;}}
          {{#if:{{{HasVIAFID|}}}|<span>'''VIAF:'''&nbsp;[https://viaf.org/viaf/{{{HasVIAFID}}} {{{HasVIAFID}}}]</span>&emsp;}}
          {{#if:{{{HasMazalID|}}}|<span>'''Mazal:'''&nbsp;{{{HasMazalID}}}</span>}}
        </div>
       }}
       }}
     </div>
 
     <div style="font-size:0.88em; margin-bottom:0.3em;">
     </div><!-- /left column -->
       {{#if:{{{HasYIVOLink|}}}|
 
         <span style="color:#777;">'''YIVO Encyclopedia entry'''</span>&ensp;[[{{{HasYIVOLink}}}]]
    <!-- Right column: image or placeholder -->
      |
     <div style="display:table-cell; vertical-align:top; padding-left:1em; width:160px; min-width:160px;">
        <span style="color:#aaa; font-style:italic;">No YIVO Encyclopedia entry</span>
       {{#if:{{{HasImage|}}}|
      }}
         [[{{#show: {{{HasImage|}}} |?HasFile |link=none}}|thumb|150px|center|{{{HasName|}}}]]
    </div>
    <div style="font-size:0.88em; margin-bottom:0.55em;">
      {{#if:{{{HasWikiLink|}}}|
        <span style="color:#777;">'''Wikipedia entry'''</span>&ensp;[[{{{HasWikiLink}}}]]
       |
       |
         <span style="color:#aaa; font-style:italic;">No Wikipedia entry</span>
         <div style="
          width:150px;
          height:180px;
          background:#f0f2f5;
          border:1px dashed #c0c8d0;
          border-radius:4px;
          display:flex;
          align-items:center;
          justify-content:center;
          color:#b0b8c4;
          font-size:0.78em;
          text-align:center;
          line-height:1.4;
          box-sizing:border-box;
          padding:0.5em;
        ">No image<br/>available</div>
       }}
       }}
     </div>
     </div><!-- /right column -->
 
    <!-- Other External Links with Validation -->
    {{#if:{{{HasURL|}}}|
      <div style="font-size:0.88em; margin-bottom:0.4em;">
        <span style="color:#777;">'''External Links'''</span><br/>
        {{#arraymap:{{{HasURL}}}|;|@@|
          {{#if: {{#rmatch:@@|^https?://}} | <div style="padding-left:0.6em;">[@@ Link]</div> | <!-- Invalid hidden --> }}
        |}}
      </div>
    }}
 
    <!-- Identifiers (Crucial for TEI/MARC21 Interop) -->
    {{#if:{{{HasWikidataID|}}}{{{HasVIAFID|}}}{{{HasMazalID|}}}|
      <div style="
        border-top: 1px solid #e4e8ec;
        margin-top: 0.6em;
        padding-top: 0.5em;
        font-size: 0.78em;
        color: #888;
        line-height: 1.7;
      ">
        {{#if:{{{HasWikidataID|}}}|<span>'''Wikidata:'''&nbsp;[https://www.wikidata.org/wiki/{{{HasWikidataID}}} {{{HasWikidataID}}}]</span>&emsp;}}
        {{#if:{{{HasVIAFID|}}}|<span>'''VIAF:'''&nbsp;[https://viaf.org/viaf/{{{HasVIAFID}}} {{{HasVIAFID}}}]</span>&emsp;}}
        {{#if:{{{HasMazalID|}}}|<span>'''Mazal:'''&nbsp;{{{HasMazalID}}}</span>}}
      </div>
    }}


   </div><!-- /body -->
   </div><!-- /body -->

Revision as of 06:35, 31 March 2026



Use this template on Person: pages to describe individual people.

Example:

{{Person
 |HasName=Perl ,Joseph
 |HasHebName=פרל, יוסף
 |HasYiddishName=פערל, יוסף
 |HasType=PublicFigure
 |HasDateOfBirth=1773
 |HasPlaceOfBirth=Community:Lviv
 |HasDateOfDeath=1839
 |HasPlaceOfDeath=Community:Brody
 |HasWikidataID=Q123456
 |HasMazalID=MAZAL-000045
 |HasVIAFID=22945141
 |HasImage=Image:Josef Perl
 |HasArticle=Article:Perl_Joseph
 |HasProfession=Community leader and rabbinical scholar
 |HasExtResources=https://example.org/persons/jacob_ben_moses; https://en.wikipedia.org/wiki/Jacob_ben_Moses
 |HasWikiLink=
 |HasYIVOLink=
 |HasBibLink=
 |HasRelatedEntries=Article:The Jewish Council of Lviv
}}