Template:Article: Difference between revisions

From elijah
Jump to navigation Jump to search
WikiSync push v1.1
WikiSync push v1.1
Line 52: Line 52:
   box-sizing: border-box;
   box-sizing: border-box;
">
">
  <!-- Main picture: prominent, above title -->
  {{#if:{{{HasMainPicture|}}}|
    <div style="text-align:center; background:#f5f2ee; border-bottom:1px solid #e8e0d8; padding:1em 1em 0.75em 1em;">
      [[{{#show: {{{HasMainPicture|}}} |?HasFile#-}}|center|frameless|400px|{{{HasTitle|}}}]]
    </div>
  }}


   <!-- Card Header: soft cream, no gradient -->
   <!-- Card Header: soft cream, no gradient -->
Line 67: Line 74:
   </div>
   </div>


   <!-- Body: two-column layout — metadata left, image right -->
   <!-- Body: metadata, single column -->
   <div style="padding: 0.85em 1em 0.9em 1em; display:table; width:100%; box-sizing:border-box;">
   <div style="padding: 0.85em 1em 0.9em 1em;">
 
    <!-- Left column: all metadata -->
    <div style="display:table-cell; vertical-align:top; text-align:left;">


       <!-- Topics -->
       <!-- Topics -->
Line 136: Line 140:
         </div>
         </div>
       }}
       }}
    </div><!-- /left column -->
    <!-- Right column: main picture or placeholder -->
    <div style="display:table-cell; vertical-align:top; padding-left:1em; width:160px; min-width:160px;">
      {{#if:{{{HasMainPicture|}}}|
        [[{{#show: {{{HasMainPicture|}}} |?HasFile#-}}|thumb|150px|center|{{{HasTitle|}}}]]
      |
        <div style="
          width:150px;
          height:180px;
          background:#f0f2f5;
          border:1px dashed #c0c8d0;
          border-radius:4px;
          display:flex;
          align-items:center;
          justify-content:center;
          color:#b0b8c4;
          font-size:0.78em;
          text-align:center;
          line-height:1.4;
          box-sizing:border-box;
          padding:0.5em;
        ">No image<br/>available</div>
      }}
    </div><!-- /right column -->


   </div><!-- /body -->
   </div><!-- /body -->

Revision as of 06:34, 8 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
 |HasMap=File:GaliciaMap1900.jpg
 |HasNationalLibraryCode=NNL_ALEPH001234567
}}

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