Template:Person: Difference between revisions

From elijah
Jump to navigation Jump to search
No edit summary
No edit summary
Line 47: Line 47:
     VISUAL DISPLAY (THE CARD)
     VISUAL DISPLAY (THE CARD)
     ========================================================== -->
     ========================================================== -->
<div class="person-card" style="border:1px solid #ccc; background:#f9f9f9; padding:1em; display:flow-root; box-shadow: 2px 2px 5px rgba(0,0,0,0.1);">
<div class="person-card" style="
  font-family: Georgia, 'Times New Roman', serif;
  border: 1px solid #c8d0d8;
  border-radius: 6px;
  background: #ffffff;
  max-width: 480px;
  float: right;
  margin: 0 0 1.2em 1.5em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  overflow: hidden;
  display: flow-root;
">


   <!-- Card Header -->
   <!-- Image Block -->
   <div style="
   {{#if:{{{HasImage|}}}|
    background: linear-gradient(135deg, #2c3e50 0%, #3d5166 100%);
     <div style="float:right; margin-left:1em; max-width:200px;">
    color: #ffffff;
       [[{{#show: {{{HasImage|}}} |?HasFile |link=none}}|thumb|200px|center|{{{HasName|}}}]]
    padding: 0.75em 1em 0.6em 1em;
  ">
     <div style="font-size:1.25em; font-weight:bold; letter-spacing:0.02em; line-height:1.2;">
       {{{HasName|{{PAGENAME}}}}}
     </div>
     </div>
  }}
    {{#if:{{{HasAltName|}}}|
      <div style="font-size:0.82em; opacity:0.80; margin-top:0.2em;">{{{HasAltName}}}</div>
    }}
  </div>


   <!-- Header -->
   <!-- Body -->
   <h2 style="margin-top:0;">{{{HasName|{{PAGENAME}}}}}</h2>
   <div style="padding: 0.85em 1em 0.9em 1em;">
 
  <div class="person-data">
  <!-- Names -->
  {{#if:{{{HasHebName|}}}{{{HasYiddishName|}}}|
    <p>
    {{#if:{{{HasHebName|}}}|'''Hebrew:''' <span lang="he" dir="rtl">{{{HasHebName}}}</span> &bull; }}
    {{#if:{{{HasYiddishName|}}}|'''Yiddish:''' <span lang="yi" dir="rtl">{{{HasYiddishName}}}</span>}}
    </p>
  }}


  <!-- Vital Statistics -->
    <!-- Image Block -->
  <ul>
     {{#if:{{{HasImage|}}}|
     {{#if:{{{HasDateOfBirth|}}}|<li>'''Born:''' {{{HasDateOfBirth}}}{{#if:{{{HasPlaceOfBirth|}}}| in [[{{{HasPlaceOfBirth}}}]]}}</li>}}
      <div style="float:right; margin: 0 0 0.6em 0.9em;">
    {{#if:{{{HasDateOfDeath|}}}|<li>'''Died:''' {{{HasDateOfDeath}}}{{#if:{{{HasPlaceOfDeath|}}}| in [[{{{HasPlaceOfDeath}}}]]}}</li>}}
        [[{{#show: {{{HasImage|}}} |?HasFile |link=none}}|thumb|150px|center|{{{HasName|}}}]]
  </ul>
      </div>
    }}


  <!-- Professional Data -->
    <!-- Hebrew / Yiddish Names -->
  {{#if:{{{HasProfession|}}}|
    {{#if:{{{HasHebName|}}}{{{HasYiddishName|}}}|
    '''Known for:'''
      <div style="margin-bottom:0.55em; font-size:0.9em; color:#444;">
    <!-- {{#arraymap:{{{HasProfession|}}}|;|@@|[[Term:@@|@@]]|, }} --> <!-- Auto-links to Term:Namespace -->
        {{#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;}}}}}}
      We use [[HasProfession::@@]] syntax here.  
        {{#if:{{{HasYiddishName|}}}|<span style="font-weight:bold; color:#555;">יידיש:</span>&nbsp;<span lang="yi" dir="rtl" style="font-size:1.05em;">{{{HasYiddishName}}}</span>}}
      This displays the text "@@" (e.g. Rabbi), but clicking it
      </div>
      searches the wiki for other people with that same property value.
    }}
    -->
    {{#arraymap:{{{HasProfession|}}}|;|@@|[[HasProfession::@@]]|, }}


     <br/>
     <!-- Vital Statistics -->
  }}
    {{#if:{{{HasDateOfBirth|}}}{{{HasDateOfDeath|}}}|
      <table style="border-collapse:collapse; font-size:0.88em; margin-bottom:0.55em; width:100%;">
        {{#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|}}}|
          <tr>
            <td style="color:#777; padding:0.12em 0.6em 0.12em 0; white-space:nowrap; vertical-align:top;">'''Died'''</td>
            <td style="color:#222;">{{{HasDateOfDeath}}}{{#if:{{{HasPlaceOfDeath|}}}|&ensp;·&ensp;[[{{{HasPlaceOfDeath}}}]]}}</td>
          </tr>
        }}
      </table>
    }}


    <!-- Professional Data -->
  {{#if:{{{HasArticle|}}}|'''Related Article:''' [[{{{HasArticle}}}]] | '''No Related Article''' <br/>}}
    {{#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>
    }}


  <!-- Identifiers (Crucial for TEI/MARC21 Interop) -->
    <!-- Related Article -->
  {{#if:{{{HasWikidataID|}}}{{{HasVIAFID|}}}{{{HasMazalID|}}}|
     <div style="font-size:0.88em; margin-bottom:0.3em;">
     <hr style="margin:0.5em 0; border:0; border-top:1px dashed #ccc;"/>
      {{#if:{{{HasArticle|}}}|
    <small style="color:#666;">
        <span style="color:#777;">'''Related Article'''</span>&ensp;[[{{{HasArticle}}}]]
    {{#if:{{{HasWikidataID|}}}|'''Wikidata:''' [https://www.wikidata.org/wiki/{{{HasWikidataID}}} {{{HasWikidataID}}}] &bull; }}
      |
    {{#if:{{{HasVIAFID|}}}|'''VIAF:''' [https://viaf.org/viaf/{{{HasVIAFID}}} {{{HasVIAFID}}}] &bull; }}
        <span style="color:#aaa; font-style:italic;">No Related Article</span>
    {{#if:{{{HasMazalID|}}}|'''Mazal ID:''' {{{HasMazalID}}}}}
      }}
    </small>
    </div>
    <br/>
  }}
 
  {{#if:{{{HasBibLink|}}}|'''Selected bibliography:'''[[{{{HasBibLink}}}]] |'''No Selected bibliography''' <br/>}}
  {{#if:{{{HasYIVOLink|}}}|'''YIVO Encyclopedia entry:'''[[{{{HasYIVOLink}}}]] |'''No YIVO Encyclopedia entry''' <br/>}}
  {{#if:{{{HasWikiLink|}}}|'''Wikipedia entry:'''[[{{{HasWikiLink}}}]] |'''No Wikipedia entry''' <br/>}}


    <!-- Bibliography & Encyclopaedia Links -->
    <div style="font-size:0.88em; margin-bottom:0.3em;">
      {{#if:{{{HasBibLink|}}}|
        <span style="color:#777;">'''Selected bibliography'''</span>&ensp;[[{{{HasBibLink}}}]]
      |
        <span style="color:#aaa; font-style:italic;">No Selected bibliography</span>
      }}
    </div>
    <div style="font-size:0.88em; margin-bottom:0.3em;">
      {{#if:{{{HasYIVOLink|}}}|
        <span style="color:#777;">'''YIVO Encyclopedia entry'''</span>&ensp;[[{{{HasYIVOLink}}}]]
      |
        <span style="color:#aaa; font-style:italic;">No YIVO Encyclopedia entry</span>
      }}
    </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>


<!-- Other External Links with Validation -->
    <!-- Other External Links with Validation -->
  {{#if:{{{HasRelatedEntries|}}}|
    {{#if:{{{HasURL|}}}|
    '''Related Entries:'''<br/>
      <div style="font-size:0.88em; margin-bottom:0.4em;">
    {{#arraymap:{{{HasRelatedEntries}}}|;|@@|
        <span style="color:#777;">'''External Links'''</span><br/>
    |<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>
    }}


   <!-- Other External Links with Validation -->
   </div><!-- /body -->
  {{#if:{{{HasExtResources|}}}|
    '''External Links:'''<br/>
    {{#arraymap:{{{HasExtResources}}}|;|@@|
      {{#if: {{#rmatch:@@|^https?://}} | [@@ Link] | <!-- Invalid hidden --> }}
    |<br/>}}
  }}
  </div>


</div>
</div>
</includeonly>
</includeonly>


<noinclude>
<noinclude>

Revision as of 06:13, 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
}}