Template:Person: Difference between revisions

From elijah
Jump to navigation Jump to search
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 22: Line 22:
  |HasImage={{{HasImage|}}}
  |HasImage={{{HasImage|}}}
  |HasArticle={{{HasArticle|}}}
  |HasArticle={{{HasArticle|}}}
|HasBibLink={{{HasBibLink|}}}
|HasYIVOLink={{{HasYIVOLink|}}}
|HasWikiLink={{{HasWikiLink|}}}
}}
}}


Line 31: Line 34:
}}
}}


<!-- 2. Professions: We want these to be individual data points
<!-- Handle Profession List (Controlled Vocabulary) -->
    so we can query "Topic:Rabbis" later. -->
<!-- We split by semicolon so "Rabbi;Author" becomes two distinct data values -->
{{#if:{{{HasProfession|}}}|
{{#if:{{{HasProfession|}}}|
   {{#arraymap:{{{HasProfession|}}}|;|@@|{{#set:HasProfession=@@}} }}
   {{#arraymap:{{{HasProfession|}}}|;|@@|{{#set:HasProfession=@@}}|}}
}}
}}


Line 42: Line 45:
<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="border:1px solid #ccc; background:#f9f9f9; padding:1em; display:flow-root; box-shadow: 2px 2px 5px rgba(0,0,0,0.1);">


   <!-- Image Block -->
   <!-- Image Block -->
   {{#if:{{{HasImage|}}}|
   {{#if:{{{HasImage|}}}|
     <div style="float:right; margin-left:1em; max-width:200px;">
     <div style="float:right; margin-left:1em; max-width:200px;">
       [[{{{HasImage}}}|thumb|200px|center|{{{HasName|}}}]]
       [[{{#show: {{{HasImage|}}} |?HasFile |link=none}}|thumb|200px|center|{{{HasName|}}}]]
     </div>
     </div>
   }}
   }}
Line 70: Line 74:
   {{#if:{{{HasProfession|}}}|
   {{#if:{{{HasProfession|}}}|
     '''Known for:'''  
     '''Known for:'''  
     {{#arraymap:{{{HasProfession|}}}|;|@@|[[Term:@@|@@]]|, }} <!-- Auto-links to Term:Namespace -->
     <!-- {{#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::@@]]|, }}
 
     <br/>
     <br/>
   }}
   }}


   {{#if:{{{HasArticle|}}}|'''Related Article:''' [[{{{HasArticle}}}]]<br/>}}
   {{#if:{{{HasArticle|}}}|'''Related Article:''' [[{{{HasArticle}}}]] | '''No Related Article''' <br/>}}


   <!-- Identifiers (Crucial for TEI/MARC21 Interop) -->
   <!-- Identifiers (Crucial for TEI/MARC21 Interop) -->
Line 87: Line 99:
   }}
   }}


   <!-- External Links with Validation -->
  {{#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/>}}
 
   <!-- Other External Links with Validation -->
   {{#if:{{{HasURL|}}}|
   {{#if:{{{HasURL|}}}|
     '''External Links:'''<br/>
     '''External Links:'''<br/>
Line 116: Line 133:
  |HasMazalID=MAZAL-000045
  |HasMazalID=MAZAL-000045
  |HasVIAFID=22945141
  |HasVIAFID=22945141
  |HasImage=File:Jacob_ben_Moses.jpg
  |HasImage=Image:Josef Perl
  |HasArticle=Article:The Jewish Council of Lviv
  |HasArticle=Article:The Jewish Council of Lviv
  |HasProfession=Community leader and rabbinical scholar
  |HasProfession=Community leader and rabbinical scholar
  |HasURL=https://example.org/persons/jacob_ben_moses; https://en.wikipedia.org/wiki/Jacob_ben_Moses
  |HasURL=https://example.org/persons/jacob_ben_moses; https://en.wikipedia.org/wiki/Jacob_ben_Moses
|HasWikiLink=
|HasYIVOLink=
|HasBibLink=
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Latest revision as of 20:25, 23 December 2025


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:The Jewish Council of Lviv
 |HasProfession=Community leader and rabbinical scholar
 |HasURL=https://example.org/persons/jacob_ben_moses; https://en.wikipedia.org/wiki/Jacob_ben_Moses
 |HasWikiLink=
 |HasYIVOLink=
 |HasBibLink=
}}