Template:Person: Difference between revisions
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|}}} | |||
|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:{{{ | {{#if:{{{HasExtResources|}}}| | ||
{{#arraymap:{{{ | {{#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|}}}| | ||
| Line 103: | Line 103: | ||
}} | }} | ||
<!-- External Links with Validation --> | {{#if:{{{HasBibLink|}}}|'''Selected bibliography:'''[[{{{HasBibLink}}}]] |'''No Selected bibliography''' <br/>}} | ||
{{#if:{{{ | {{#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:{{{ | {{#arraymap:{{{HasExtResources}}}|;|@@| | ||
{{#if: {{#rmatch:@@|^https?://}} | [@@ Link] | <!-- Invalid hidden --> }} | {{#if: {{#rmatch:@@|^https?://}} | [@@ Link] | <!-- Invalid hidden --> }} | ||
|<br/>}} | |<br/>}} | ||
| Line 132: | Line 146: | ||
|HasMazalID=MAZAL-000045 | |HasMazalID=MAZAL-000045 | ||
|HasVIAFID=22945141 | |HasVIAFID=22945141 | ||
|HasImage=Image: | |HasImage=Image:Josef Perl | ||
|HasArticle=Article: | |HasArticle=Article:Perl_Joseph | ||
|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 | ||
|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
}}