Template:Community: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
WikiSync push v1.0 |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<!-- WikiSync | version=1.0 | updated=2026-04-27 --> | |||
<includeonly> | <includeonly> | ||
__NOFACTBOX__ | __NOFACTBOX__ | ||
[[Category: | [[Category:Community]] | ||
<!-- ========================================================== | <!-- ========================================================== | ||
| Line 14: | Line 15: | ||
|HasRomanianName={{{HasRomanianName|}}} | |HasRomanianName={{{HasRomanianName|}}} | ||
|HasUkrainianName={{{HasUkrainianName|}}} | |HasUkrainianName={{{HasUkrainianName|}}} | ||
|HasHebName={{{HasHebName|}}} | |||
|HasAltName={{{HasAltName|}}} | |||
|HasGeoLocation={{{HasGeoLocation|}}} | |HasGeoLocation={{{HasGeoLocation|}}} | ||
|HasCountryName={{{HasCountryName|}}} | |||
|HasImage={{{HasImage|}}} | |HasImage={{{HasImage|}}} | ||
|HasArticle={{{HasArticle|}}} | |HasArticle={{{HasArticle|}}} | ||
| Line 21: | Line 25: | ||
|HasWikiLink={{{HasWikiLink|}}} | |HasWikiLink={{{HasWikiLink|}}} | ||
|HasRegion={{{HasRegion|}}} | |HasRegion={{{HasRegion|}}} | ||
|HasVIAFID={{{HasVIAFID|}}} | |||
|HasWikidataID={{{HasWikidataID|}}} | |||
}} | }} | ||
| Line 26: | Line 32: | ||
<!-- 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=@@}} }} | ||
}} | }} | ||
| Line 40: | Line 46: | ||
{{#if:{{{HasImage|}}}| | {{#if:{{{HasImage|}}}| | ||
<div style="float:right; margin-left:1em; max-width:200px;"> | <div style="float:right; margin-left:1em; max-width:200px;"> | ||
[[{{#show: {{{HasImage|}}} |?HasFile | [[{{#show: {{{HasImage|}}} |?HasFile#-}}|thumb|200px|center|{{{HasName|}}}]] | ||
</div> | </div> | ||
}} | }} | ||
| Line 49: | Line 55: | ||
<div class="person-data"> | <div class="person-data"> | ||
<!-- Names --> | <!-- Names --> | ||
{{#if:{{{ | {{#if:{{{HasPolishName|}}}{{{HasYiddishName|}}}{{{HasGermanName|}}}{{{HasRomanianName|}}}{{{HasUkrainianName|}}}{{{HasHebName|}}}| | ||
<p> | <p> | ||
{{#if:{{{ | {{#if:{{{HasHebName|}}}|'''Hebrew:''' <span lang="he" dir="rtl">{{{HasHebName}}}</span> • }} | ||
{{#if:{{{HasYiddishName|}}}|'''Yiddish:''' <span lang="yi" dir="rtl">{{{HasYiddishName}}}</span>}} | {{#if:{{{HasYiddishName|}}}|'''Yiddish:''' <span lang="yi" dir="rtl">{{{HasYiddishName}}}</span> • }} | ||
{{#if:{{{HasPolishName|}}}|'''Polish:''' {{{HasPolishName}}} • }} | |||
{{#if:{{{HasGermanName|}}}|'''German:''' {{{HasGermanName}}} • }} | |||
{{#if:{{{HasRomanianName|}}}|'''Romanian:''' {{{HasRomanianName}}} • }} | |||
{{#if:{{{HasUkrainianName|}}}|'''Ukrainian:''' {{{HasUkrainianName}}}}} | |||
</p> | </p> | ||
}} | }} | ||
{{#if:{{{HasAltName|}}}|<p>'''Also known as:''' {{{HasAltName}}}</p>}} | |||
<!-- | <!-- Location --> | ||
<ul> | <ul> | ||
{{#if:{{{ | {{#if:{{{HasCountryName|}}}|<li>'''Country:''' {{{HasCountryName}}}</li>}} | ||
{{#if:{{{HasRegion|}}}|<li>'''Region:''' {{{HasRegion}}}</li>}} | |||
{{#if:{{{HasGeoLocation|}}}|<li>'''Coordinates:''' {{{HasGeoLocation}}}</li>}} | |||
</ul> | </ul> | ||
{{#if:{{{HasArticle|}}}| | {{#if:{{{HasArticle|}}}| | ||
'''Related Articles:'''<br/> | '''Related Articles:'''<br/> | ||
{{#arraymap:{{{HasArticle}}}|;|@@| | {{#arraymap:{{{HasArticle}}}|;|@@|[[@@]]|<br/>}} | ||
}} | }} | ||
<!-- External references --> | |||
{{#if:{{{HasYIVOLink|}}}|'''YIVO Encyclopedia:''' [{{{HasYIVOLink}}} YIVO entry]<br/>}} | |||
{{#if:{{{HasWikiLink|}}}|'''Wikipedia:''' [{{{HasWikiLink}}} Wikipedia]<br/>}} | |||
{{#if:{{{HasBibLink|}}}|'''Bibliography:''' [{{{HasBibLink}}} Search bibliography]<br/>}} | |||
<!-- Identifiers | <!-- Identifiers --> | ||
{{#if:{{{HasWikidataID|}}}{{{HasVIAFID | {{#if:{{{HasWikidataID|}}}{{{HasVIAFID|}}}| | ||
<hr style="margin:0.5em 0; border:0; border-top:1px dashed #ccc;"/> | <hr style="margin:0.5em 0; border:0; border-top:1px dashed #ccc;"/> | ||
<small style="color:#666;"> | <small style="color:#666;"> | ||
{{#if:{{{HasWikidataID|}}}|'''Wikidata:''' [https://www.wikidata.org/wiki/{{{HasWikidataID}}} {{{HasWikidataID}}}] • }} | {{#if:{{{HasWikidataID|}}}|'''Wikidata:''' [https://www.wikidata.org/wiki/{{{HasWikidataID}}} {{{HasWikidataID}}}] • }} | ||
{{#if:{{{HasVIAFID|}}}|'''VIAF:''' [https://viaf.org/viaf/{{{HasVIAFID}}} {{{HasVIAFID}}}] | {{#if:{{{HasVIAFID|}}}|'''VIAF:''' [https://viaf.org/viaf/{{{HasVIAFID}}} {{{HasVIAFID}}}]}} | ||
</small> | </small> | ||
<br/> | <br/> | ||
}} | }} | ||
<!-- Other External Links with Validation --> | <!-- Other External Links with Validation --> | ||
{{#if:{{{ | {{#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 100: | Line 109: | ||
<noinclude> | <noinclude> | ||
Use this template on Community: pages to describe | Use this template on Community: pages to describe a geographic community/town. | ||
Example: | Example: | ||
| Line 106: | Line 115: | ||
{{Community | {{Community | ||
|HasName=Chernivtsi | |HasName=Chernivtsi | ||
| | |HasHebName=צ'רנוביץ | ||
|HasYiddishName= | |HasYiddishName=טשערנאָװיץ | ||
|HasPolishName=Czerniowce | |||
|HasGermanName=Czernowitz | |HasGermanName=Czernowitz | ||
|HasRomanianName=Cernăuți | |HasRomanianName=Cernăuți | ||
|HasUkrainianName= | |HasUkrainianName=Чернівці | ||
|HasGeoLocation= | |HasAltName=Czernowitz; Cernauti | ||
|HasGeoLocation=48.291667, 25.934722 | |||
|HasCountryName=Ukraine | |||
|HasRegion=Bukovina | |||
|HasImage= | |HasImage= | ||
|HasArticle= | |HasArticle= | ||
| | |HasYIVOLink=https://encyclopedia.yivo.org/article/... | ||
| | |HasWikiLink=https://en.wikipedia.org/wiki/Chernivtsi | ||
| | |HasBibLink=https://www.jgaliciabukovina.net/... | ||
| | |HasWikidataID=Q23038 | ||
| | |HasVIAFID=123456789 | ||
|HasExtResources=https://jguideeurope.org/en/region/ukraine/eastern-galicia-podolia-and-bukovina/chernivtsy-czernowitz/;https://sztetl.org.pl/... | |||
}} | }} | ||
</pre> | |||
Properties with type notes: | |||
* HasGeoLocation — geo coordinates | |||
* HasArticle — page | |||
* HasImage — page | |||
* HasExtResources — list of URLs (semicolon-separated) | |||
* HasYIVOLink, HasWikiLink, HasBibLink — url | |||
* All others — text | |||
</noinclude> | </noinclude> | ||
Latest revision as of 20:21, 30 April 2026
Use this template on Community: pages to describe a geographic community/town.
Example:
{{Community
|HasName=Chernivtsi
|HasHebName=צ'רנוביץ
|HasYiddishName=טשערנאָװיץ
|HasPolishName=Czerniowce
|HasGermanName=Czernowitz
|HasRomanianName=Cernăuți
|HasUkrainianName=Чернівці
|HasAltName=Czernowitz; Cernauti
|HasGeoLocation=48.291667, 25.934722
|HasCountryName=Ukraine
|HasRegion=Bukovina
|HasImage=
|HasArticle=
|HasYIVOLink=https://encyclopedia.yivo.org/article/...
|HasWikiLink=https://en.wikipedia.org/wiki/Chernivtsi
|HasBibLink=https://www.jgaliciabukovina.net/...
|HasWikidataID=Q23038
|HasVIAFID=123456789
|HasExtResources=https://jguideeurope.org/en/region/ukraine/eastern-galicia-podolia-and-bukovina/chernivtsy-czernowitz/;https://sztetl.org.pl/...
}}
Properties with type notes:
- HasGeoLocation — geo coordinates
- HasArticle — page
- HasImage — page
- HasExtResources — list of URLs (semicolon-separated)
- HasYIVOLink, HasWikiLink, HasBibLink — url
- All others — text