Template:Article: Difference between revisions

From elijah
Jump to navigation Jump to search
WikiSync push v1.1
No edit summary
 
(One intermediate revision by the same user not shown)
Line 38: Line 38:
{{#if:{{{HasGalleryImages|}}}|
{{#if:{{{HasGalleryImages|}}}|
   {{#arraymap:{{{HasGalleryImages|}}}|;|@@|{{#set:HasGalleryImages=@@}}|}}
   {{#arraymap:{{{HasGalleryImages|}}}|;|@@|{{#set:HasGalleryImages=@@}}|}}
}}
<!-- ==========================================================
    GALLERY (floats left, sits beside the infobox)
    ========================================================== -->
{{#if:{{{HasGalleryImages|}}}|
<div style="float:left; margin:0 1.2em 1.2em 0; font-family:Georgia,'Times New Roman',serif;">
  <div style="display:flex; flex-wrap:wrap; gap:0.6em;">
    {{#arraymap:{{{HasGalleryImages|}}}|;|@@|<div>[[{{#show: @@ |?HasFile#-}}|frameless|160px|thumb]]</div>|}}
  </div>
</div>
}}
}}


Line 163: Line 174:
</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>



Latest revision as of 09:02, 13 July 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.