Template:Community: Difference between revisions

From elijah
Jump to navigation Jump to search
No edit summary
WikiSync push v1.0
 
(One intermediate revision by the same user not shown)
Line 24: Line 24:
  |HasYIVOLink={{{HasYIVOLink|}}}
  |HasYIVOLink={{{HasYIVOLink|}}}
  |HasWikiLink={{{HasWikiLink|}}}
  |HasWikiLink={{{HasWikiLink|}}}
|HasRegion={{{HasRegion|}}}
  |HasVIAFID={{{HasVIAFID|}}}
  |HasVIAFID={{{HasVIAFID|}}}
  |HasWikidataID={{{HasWikidataID|}}}
  |HasWikidataID={{{HasWikidataID|}}}
Line 34: Line 33:
{{#if:{{{HasExtResources|}}}|
{{#if:{{{HasExtResources|}}}|
   {{#arraymap:{{{HasExtResources|}}}|;|@@|{{#set:HasExtResources=@@}} }}
   {{#arraymap:{{{HasExtResources|}}}|;|@@|{{#set:HasExtResources=@@}} }}
}}
{{#if:{{{HasRegion|}}}|
  {{#arraymap:{{{HasRegion|}}}|;|@@|{{#set:HasRegion=@@}}|}}
}}
}}


Line 46: Line 48:
   {{#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 |link=none}}|thumb|200px|center|{{{HasName|}}}]] -->
       [[{{#show: {{{HasImage|}}} |?HasFile#-}}|thumb|200px|center|{{{HasName|}}}]]
       [[{{#show: {{{HasImage|}}} |?HasFile#-}}|thumb|200px|center|{{{HasName|}}}]]
     </div>
     </div>
Line 71: Line 72:
   <ul>
   <ul>
     {{#if:{{{HasCountryName|}}}|<li>'''Country:''' {{{HasCountryName}}}</li>}}
     {{#if:{{{HasCountryName|}}}|<li>'''Country:''' {{{HasCountryName}}}</li>}}
     {{#if:{{{HasRegion|}}}|<li>'''Region:''' {{{HasRegion}}}</li>}}
     {{#if:{{{HasRegion|}}}|<li>'''Region:''' {{#arraymap:{{{HasRegion|}}}|;|@@|[[HasRegion::@@]]|, }}</li>}}
     {{#if:{{{HasGeoLocation|}}}|<li>'''Coordinates:''' {{{HasGeoLocation}}}</li>}}
     {{#if:{{{HasGeoLocation|}}}|<li>'''Coordinates:''' {{{HasGeoLocation}}}</li>}}
   </ul>
   </ul>
Line 125: Line 126:
  |HasGeoLocation=48.291667, 25.934722
  |HasGeoLocation=48.291667, 25.934722
  |HasCountryName=Ukraine
  |HasCountryName=Ukraine
  |HasRegion=Bukovina
  |HasRegion=Bukovina; Western Galicia
  |HasImage=
  |HasImage=
  |HasArticle=
  |HasArticle=
Line 142: Line 143:
* HasImage — page
* HasImage — page
* HasExtResources — list of URLs (semicolon-separated)
* HasExtResources — list of URLs (semicolon-separated)
* HasRegion — list of text values, controlled vocabulary (semicolon-separated)
* HasYIVOLink, HasWikiLink, HasBibLink — url
* HasYIVOLink, HasWikiLink, HasBibLink — url
* All others — text
* All others — text
</noinclude>
</noinclude>

Latest revision as of 11:27, 29 July 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; Western Galicia
 |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)
  • HasRegion — list of text values, controlled vocabulary (semicolon-separated)
  • HasYIVOLink, HasWikiLink, HasBibLink — url
  • All others — text