Template:Person: Difference between revisions

From elijah
Jump to navigation Jump to search
No edit summary
No edit summary
 
(9 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|}}}
|HasRelatedEntries={{{HasRelatedEntries|}}}
}}
}}


Line 27: Line 31:
<!-- 1. URLs: We assume raw text storage for JSON export simplicity,  
<!-- 1. URLs: We assume raw text storage for JSON export simplicity,  
     but validation happens on display. -->
     but validation happens on display. -->
{{#if:{{{HasURL|}}}|
{{#if:{{{HasExtResources|}}}|
   {{#arraymap:{{{HasURL|}}}|;|@@|{{#set:HasURL=@@}} }}
   {{#arraymap:{{{HasExtResources|}}}|;|@@|{{#set:HasExtResources=@@}} }}
}}
{{#if:{{{HasRelatedEntries|}}}|
  {{#arraymap:{{{HasRelatedEntries|}}}|;|@@|{{#set:HasRelatedEntries=@@}} }}
}}
}}


Line 42: Line 49:
<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 82: Line 90:


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


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


   <!-- External Links with Validation -->
  {{#if:{{{HasBibLink|}}}|'''Selected bibliography:'''[[{{{HasBibLink}}}]] |'''No Selected bibliography''' <br/>}}
   {{#if:{{{HasURL|}}}|
  {{#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:{{{HasRelatedEntries|}}}|
    '''Related Entries:'''<br/>
    {{#arraymap:{{{HasRelatedEntries}}}|;|@@|
    |<br/>}}
  }}
 
 
   <!-- Other External Links with Validation -->
   {{#if:{{{HasExtResources|}}}|
     '''External Links:'''<br/>
     '''External Links:'''<br/>
     {{#arraymap:{{{HasURL}}}|;|@@|
     {{#arraymap:{{{HasExtResources}}}|;|@@|
       {{#if: {{#rmatch:@@|^https?://}} | [@@ Link] | <!-- Invalid hidden --> }}
       {{#if: {{#rmatch:@@|^https?://}} | [@@ Link] | <!-- Invalid hidden --> }}
     |<br/>}}
     |<br/>}}
Line 125: Line 146:
  |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:Perl_Joseph
  |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
  |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
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Latest revision as of 10:11, 3 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
}}