Template:Person: Difference between revisions

From elijah
Jump to navigation Jump to search
No edit summary
WikiSync push v1.0
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 112: 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 131: 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 156: 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;">[@@ Link]</div> | <!-- Invalid hidden --> }}
           |}}
           |}}
Line 212: Line 226:
</div>
</div>
</includeonly>
</includeonly>


<noinclude>
<noinclude>
Line 232: 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>

Revision as of 09:35, 27 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=
}}