Template:Article: Difference between revisions

From elijah
Jump to navigation Jump to search
WikiSync push v1.1
WikiSync push v1.1
Line 35: Line 35:
{{#if:{{{HasRelatedEntries|}}}|
{{#if:{{{HasRelatedEntries|}}}|
   {{#arraymap:{{{HasRelatedEntries|}}}|;|@@|{{#set:HasRelatedEntries=@@}}|}}
   {{#arraymap:{{{HasRelatedEntries|}}}|;|@@|{{#set:HasRelatedEntries=@@}}|}}
}}
{{#if:{{{HasGalleryImages|}}}|
  {{#arraymap:{{{HasGalleryImages|}}}|;|@@|{{#set:HasGalleryImages=@@}}|}}
}}
}}


Line 159: Line 162:


</div>
</div>
<!-- Gallery (below infobox, full width, before article body text) -->
{{#if:{{{HasGalleryImages|}}}|
  <div style="clear:both; margin-top:1.5em; font-family:Georgia,'Times New Roman',serif;">
    <div style="font-size:0.95em; font-weight:bold; color:#555; border-bottom:1px solid #e0d8d0; padding-bottom:0.3em; margin-bottom:0.8em;">Gallery</div>
    <div style="display:flex; flex-wrap:wrap; gap:0.8em;">
      {{#arraymap:{{{HasGalleryImages|}}}|;|@@|<div style="text-align:center; max-width:180px;">[[{{#show: @@ |?HasFile#-}}|frameless|180px|{{#show: @@ |?HasImageCaption}}]]<div style="font-size:0.8em; color:#666; margin-top:0.3em;">{{#show: @@ |?HasImageCaption}}</div></div>|}}
    </div>
  </div>
}}
</includeonly>
</includeonly>


Line 178: Line 191:
  |HasRelatedEntries=Article:011; Article:055
  |HasRelatedEntries=Article:011; Article:055
  |HasMainPicture=Image:TomaszTreter1609
  |HasMainPicture=Image:TomaszTreter1609
|HasGalleryImages=Image:TomaszTreter1609; Image:AnotherImageID
  |HasMap=File:GaliciaMap1900.jpg
  |HasMap=File:GaliciaMap1900.jpg
  |HasNationalLibraryCode=NNL_ALEPH001234567
  |HasNationalLibraryCode=NNL_ALEPH001234567

Revision as of 12:46, 28 June 2026



Use this template on Article: pages to describe encyclopedia entries.

Example:

{{Article
 |HasArticleID=1.4.3
 |HasTitle=Jewish Trade in Poland
 |HasAuthor=Adam Teller
 |BelongsToTopic=Economics; Commerce
 |HasTimePeriod=1772-1914; 1648-1772
 |HasRegion=Galicia
 |HasExtension=Article:042; Article:078
 |HasRelatedPersonalities=Person:Q123456; Person:Q789012
 |HasRelatedCommunities=Community:Kraków; Community:Lviv
 |HasRelatedEntries=Article:011; Article:055
 |HasMainPicture=Image:TomaszTreter1609
 |HasGalleryImages=Image:TomaszTreter1609; Image:AnotherImageID
 |HasMap=File:GaliciaMap1900.jpg
 |HasNationalLibraryCode=NNL_ALEPH001234567
}}

Then write the narrative text of the article directly after the template call.