Template:Article: Difference between revisions

From elijah
Jump to navigation Jump to search
WikiSync push v1.1
WikiSync push v1.2
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- WikiSync | version=1.1 | updated=2026-06-05 -->
<!-- WikiSync | version=1.2 | updated=2026-08-17 -->
<includeonly>
<includeonly>
__NOFACTBOX__
__NOFACTBOX__
Line 11: Line 11:
  |HasTitle={{{HasTitle|}}}
  |HasTitle={{{HasTitle|}}}
  |HasAuthor={{{HasAuthor|}}}
  |HasAuthor={{{HasAuthor|}}}
|HasRegion={{{HasRegion|}}}
  |HasMainPicture={{{HasMainPicture|}}}
  |HasMainPicture={{{HasMainPicture|}}}
|HasMap={{{HasMap|}}}
  |HasNationalLibraryCode={{{HasNationalLibraryCode|}}}
  |HasNationalLibraryCode={{{HasNationalLibraryCode|}}}
}}
}}
Line 23: Line 21:
{{#if:{{{HasTimePeriod|}}}|
{{#if:{{{HasTimePeriod|}}}|
   {{#arraymap:{{{HasTimePeriod|}}}|;|@@|{{#set:HasTimePeriod=@@}}|}}
   {{#arraymap:{{{HasTimePeriod|}}}|;|@@|{{#set:HasTimePeriod=@@}}|}}
}}
{{#if:{{{HasRegion|}}}|
  {{#arraymap:{{{HasRegion|}}}|;|@@|{{#set:HasRegion=@@}}|}}
}}
}}
{{#if:{{{HasExtension|}}}|
{{#if:{{{HasExtension|}}}|
Line 38: Line 39:
{{#if:{{{HasGalleryImages|}}}|
{{#if:{{{HasGalleryImages|}}}|
   {{#arraymap:{{{HasGalleryImages|}}}|;|@@|{{#set:HasGalleryImages=@@}}|}}
   {{#arraymap:{{{HasGalleryImages|}}}|;|@@|{{#set:HasGalleryImages=@@}}|}}
}}
{{#if:{{{HasMap|}}}|
  {{#arraymap:{{{HasMap|}}}|;|@@|{{#set:HasMap=@@}}|}}
}}
}}


Line 107: Line 111:
     }}
     }}


     <!-- Region (chip) -->
     <!-- Region (chips) -->
     {{#if:{{{HasRegion|}}}|
     {{#if:{{{HasRegion|}}}|
       <div style="margin-bottom:0.5em; line-height:1.9;">
       <div style="margin-bottom:0.5em; line-height:1.9;">
         <span style="color:#777; font-weight:bold; margin-right:0.3em;">Region</span>
         <span style="color:#777; font-weight:bold; margin-right:0.3em;">Region</span>
         <span style="display:inline-block; background:#f0ece4; border:1px solid #d8d0c4; border-radius:3px; padding:0.05em 0.4em;">{{{HasRegion}}}</span>
         {{#arraymap:{{{HasRegion|}}}|;|@@|<span style="display:inline-block; background:#f0ece4; border:1px solid #d8d0c4; border-radius:3px; padding:0.05em 0.4em; margin:0.06em 0.1em 0.06em 0; white-space:nowrap;">[[HasRegion::@@]]</span>|}}
       </div>
       </div>
     }}
     }}
Line 159: Line 163:
         <ul style="margin:0; padding:0 0 0 1.1em; line-height:1.7;">
         <ul style="margin:0; padding:0 0 0 1.1em; line-height:1.7;">
           {{#arraymap:{{{HasRelatedEntries|}}}|;|@@|<li>[[@@]]</li>|}}
           {{#arraymap:{{{HasRelatedEntries|}}}|;|@@|<li>[[@@]]</li>|}}
        </ul>
      </div>
    }}
    <!-- Map (vertical list, matches other related-entity rows) -->
    {{#if:{{{HasMap|}}}|
      <div style="margin-bottom:0.3em;">
        <div style="color:#777; font-weight:bold; margin-bottom:0.25em;">Map</div>
        <ul style="margin:0; padding:0 0 0 1.1em; line-height:1.7;">
          {{#arraymap:{{{HasMap|}}}|;|@@|<li>[[HasMap::@@|{{#show: @@|?HasTitle|default=@@}}]]</li>|}}
         </ul>
         </ul>
       </div>
       </div>
Line 164: Line 178:


   </div><!-- /metadata -->
   </div><!-- /metadata -->
  <!-- Map (full infobox width, below metadata) -->
  {{#if:{{{HasMap|}}}|
    <div style="border-top:1px solid #e4e8ec; padding:0.75em 0.9em; text-align:center;">
      [[{{{HasMap|}}}|center|thumb|340px|Map]]
    </div>
  }}


</div>
</div>
Line 187: Line 194:
  |BelongsToTopic=Economics; Commerce
  |BelongsToTopic=Economics; Commerce
  |HasTimePeriod=1772-1914; 1648-1772
  |HasTimePeriod=1772-1914; 1648-1772
  |HasRegion=Galicia
  |HasRegion=Galicia; Bukovina
  |HasExtension=Article:042; Article:078
  |HasExtension=Article:042; Article:078
  |HasRelatedPersonalities=Person:Q123456; Person:Q789012
  |HasRelatedPersonalities=Person:Q123456; Person:Q789012
Line 194: Line 201:
  |HasMainPicture=Image:TomaszTreter1609
  |HasMainPicture=Image:TomaszTreter1609
  |HasGalleryImages=Image:TomaszTreter1609; Image:AnotherImageID
  |HasGalleryImages=Image:TomaszTreter1609; Image:AnotherImageID
  |HasMap=File:GaliciaMap1900.jpg
  |HasMap=Map:1.4.4; Map:1.4.5
  |HasNationalLibraryCode=NNL_ALEPH001234567
  |HasNationalLibraryCode=NNL_ALEPH001234567
}}
}}

Latest revision as of 18:02, 18 October 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; Bukovina
 |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=Map:1.4.4; Map:1.4.5
 |HasNationalLibraryCode=NNL_ALEPH001234567
}}

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