Template:Person: Difference between revisions

From elijah
Jump to navigation Jump to search
No edit summary
WikiSync push v1.0
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- WikiSync | version=1.0 | updated=2026-04-27 -->
<includeonly>
<includeonly>
__NOFACTBOX__
__NOFACTBOX__
Line 25: Line 26:
  |HasYIVOLink={{{HasYIVOLink|}}}
  |HasYIVOLink={{{HasYIVOLink|}}}
  |HasWikiLink={{{HasWikiLink|}}}
  |HasWikiLink={{{HasWikiLink|}}}
|HasRelatedEntries={{{HasRelatedEntries|}}}
}}
}}


<!-- Handle List Properties (Split by semicolon or comma) -->
<!-- Handle List Properties (Split by semicolon or comma) -->
<!-- 1. URLs: We assume raw text storage for JSON export simplicity,  
<!-- 1. External Resources: We assume raw text storage for JSON export simplicity,
     but validation happens on display. -->
     but validation happens on display. -->
{{#if:{{{HasExtResources|}}}|
{{#if:{{{HasExtResources|}}}|
   {{#arraymap:{{{HasExtResources|}}}|;|@@|{{#set:HasExtResources=@@}} }}
   {{#arraymap:{{{HasExtResources|}}}|;|@@|{{#set:HasExtResources=@@}} }}
}}
}}
<!-- Handle Related Entries List -->
{{#if:{{{HasRelatedEntries|}}}|
{{#if:{{{HasRelatedEntries|}}}|
   {{#arraymap:{{{HasRelatedEntries|}}}|;|@@|{{#set:HasRelatedEntries=@@}} }}
   {{#arraymap:{{{HasRelatedEntries|}}}|;|@@|{{#set:HasRelatedEntries=@@}}|}}
}}
}}


Line 89: Line 91:
       }}
       }}


       <!-- Vital Statistics — always show all four rows -->
       <!-- Vital Statistics — always show both rows -->
       <table style="border-collapse:collapse; font-size:0.88em; margin-bottom:0.55em;">
       <table style="border-collapse:collapse; font-size:0.88em; margin-bottom:0.55em;">
         <tr>
         <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:#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;">
           <td style="color:#222; text-align:left;">
             {{#if:{{{HasDateOfBirth|}}}|
             {{#if:{{{HasDateOfBirth|}}}{{{HasPlaceOfBirth|}}}|
               {{{HasDateOfBirth}}}{{#if:{{{HasPlaceOfBirth|}}}|&ensp;·&ensp;[[{{{HasPlaceOfBirth}}}]]}}
               {{#if:{{{HasDateOfBirth|}}}|{{{HasDateOfBirth}}}}}{{#if:{{{HasDateOfBirth|}}}{{{HasPlaceOfBirth|}}}|{{#if:{{{HasDateOfBirth|}}}|{{#if:{{{HasPlaceOfBirth|}}}|&ensp;·&ensp;}}}}}}{{#if:{{{HasPlaceOfBirth|}}}|[[{{{HasPlaceOfBirth}}}]]}}
             |<span style="color:#bbb;">—</span>}}
             |<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>
           </td>
         </tr>
         </tr>
Line 108: Line 104:
           <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:#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;">
           <td style="color:#222; text-align:left;">
             {{#if:{{{HasDateOfDeath|}}}|
             {{#if:{{{HasDateOfDeath|}}}{{{HasPlaceOfDeath|}}}|
               {{{HasDateOfDeath}}}{{#if:{{{HasPlaceOfDeath|}}}|&ensp;·&ensp;[[{{{HasPlaceOfDeath}}}]]}}
               {{#if:{{{HasDateOfDeath|}}}|{{{HasDateOfDeath}}}}}{{#if:{{{HasDateOfDeath|}}}{{{HasPlaceOfDeath|}}}|{{#if:{{{HasDateOfDeath|}}}|{{#if:{{{HasPlaceOfDeath|}}}|&ensp;·&ensp;}}}}}}{{#if:{{{HasPlaceOfDeath|}}}|[[{{{HasPlaceOfDeath}}}]]}}
             |<span style="color:#bbb;">—</span>}}
             |<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>
           </td>
         </tr>
         </tr>
Line 124: Line 114:
       {{#if:{{{HasProfession|}}}|
       {{#if:{{{HasProfession|}}}|
         <div style="font-size:0.88em; margin-bottom:0.55em; text-align:left;">
         <div style="font-size:0.88em; margin-bottom:0.55em; text-align:left;">
           <span style="color:#777;">'''Known for'''</span>&ensp;
           <span style="color:#777;">'''Known for'''</span>
          <!-- {{#arraymap:{{{HasProfession|}}}|;|@@|[[Term:@@|@@]]|, }} --> <!-- Auto-links to Term:Namespace -->
          <ul style="margin:0.2em 0 0 1.2em; padding:0;">
          <!--
            <!-- {{#arraymap:{{{HasProfession|}}}|;|@@|[[Term:@@|@@]]|, }} --> <!-- Auto-links to Term:Namespace -->
            We use [[HasProfession::@@]] syntax here.
            <!--
            This displays the text "@@" (e.g. Rabbi), but clicking it
              We use [[HasProfession::@@]] syntax here.
            searches the wiki for other people with that same property value.
              This displays the text "@@" (e.g. Rabbi), but clicking it
          -->
              searches the wiki for other people with that same property value.
          {{#arraymap:{{{HasProfession|}}}|;|@@|[[HasProfession::@@]]|, }}
            -->
            {{#arraymap:{{{HasProfession|}}}|;|@@|<li>[[HasProfession::@@]]</li>|}}
          </ul>
         </div>
         </div>
       }}
       }}
Line 143: Line 135:
         }}
         }}
       </div>
       </div>
      <!-- Related Entries -->
      {{#if:{{{HasRelatedEntries|}}}|
        <div style="font-size:0.88em; margin-bottom:0.3em; text-align:left;">
          <span style="color:#777;">'''Related Entries'''</span>
          <ul style="margin:0.2em 0 0 1.2em; padding:0;">
            {{#arraymap:{{{HasRelatedEntries|}}}|;|@@|<li>[[@@]]</li>|}}
          </ul>
        </div>
      }}


       <!-- Bibliography & Encyclopaedia Links -->
       <!-- Bibliography & Encyclopaedia Links -->
Line 168: Line 170:


       <!-- Other External Links with Validation -->
       <!-- Other External Links with Validation -->
       {{#if:{{{HasURL|}}}|
       {{#if:{{{HasExtResources|}}}|
         <div style="font-size:0.88em; margin-bottom:0.4em; text-align:left;">
         <div style="font-size:0.88em; margin-bottom:0.4em; text-align:left;">
           <span style="color:#777;">'''External Links'''</span><br/>
           <span style="color:#777;">'''External Links'''</span><br/>
           {{#arraymap:{{{HasURL}}}|;|@@|
           {{#arraymap:{{{HasExtResources}}}|;|@@|
             {{#if: {{#rmatch:@@|^https?://}} | <div style="padding-left:0.6em;">[@@ Link]</div> | <!-- Invalid hidden --> }}
             {{#if: {{#rmatch:@@|^https?://}} | <div style="padding-left:0.6em;">[@@ @@]</div> | <!-- Invalid hidden --> }}
           |}}
           |}}
         </div>
         </div>
Line 199: Line 201:
     <div style="display:table-cell; vertical-align:top; padding-left:1em; width:160px; min-width:160px;">
     <div style="display:table-cell; vertical-align:top; padding-left:1em; width:160px; min-width:160px;">
       {{#if:{{{HasImage|}}}|
       {{#if:{{{HasImage|}}}|
         [[{{#show: {{{HasImage|}}} |?HasFile |link=none}}|thumb|150px|center|{{{HasName|}}}]]
         [[{{#show: {{{HasImage|}}} |?HasFile#-}}|thumb|150px|center|{{{HasName|}}}]]
       |
       |
         <div style="
         <div style="
Line 224: Line 226:
</div>
</div>
</includeonly>
</includeonly>


<noinclude>
<noinclude>
Line 244: Line 245:
  |HasVIAFID=22945141
  |HasVIAFID=22945141
  |HasImage=Image:Josef Perl
  |HasImage=Image:Josef Perl
  |HasArticle=Article:Perl_Joseph
  |HasArticle=Article:The Jewish Council of Lviv
  |HasProfession=Community leader and rabbinical scholar
  |HasProfession=Community leader and rabbinical scholar
  |HasExtResources=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
|HasRelatedEntries=Article:Haskalah; Article:Galician Jewry
  |HasWikiLink=
  |HasWikiLink=
  |HasYIVOLink=
  |HasYIVOLink=
  |HasBibLink=
  |HasBibLink=
|HasRelatedEntries=Article:The Jewish Council of Lviv
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Latest revision as of 20:21, 30 April 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:The Jewish Council of Lviv
 |HasProfession=Community leader and rabbinical scholar
 |HasExtResources=https://example.org/persons/jacob_ben_moses; https://en.wikipedia.org/wiki/Jacob_ben_Moses
 |HasRelatedEntries=Article:Haskalah; Article:Galician Jewry
 |HasWikiLink=
 |HasYIVOLink=
 |HasBibLink=
}}