Template:Extension: Difference between revisions

From elijah
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
Line 21: Line 21:
{{#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>
}}
}}



Latest revision as of 07:01, 23 July 2026



Use this template on Extension: pages to describe supplementary entries.

Example:

{{Extension
 |HasExtensionID=Ex-1.4.3-1
 |HasTitle=Jewish Tavern Keepers in Galicia
 |HasAuthor=Judith Kalik
 |HasRelatedPersonalities=Person:Q123456
 |HasMainPicture=Image:1.4.3-Tavern-1
 |HasGalleryImages=Image:1.4.3-Tavern-1; Image:1.4.3-Tavern-2
 |HasMap=File:GaliciaMap1900.jpg
}}

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