Template:Article: Difference between revisions

From elijah
Jump to navigation Jump to search
No edit summary
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- WikiSync | version=1.1 | updated=2026-06-05 -->
<includeonly>
<includeonly>
__NOFACTBOX__
[[Category:Articles]]
<!-- ==========================================================
    DATA STORAGE (THE "SET" BLOCK)
    ========================================================== -->
{{#set:
{{#set:
  |HasAuthor={{{HasAuthor|}}}
|HasArticleID={{{HasArticleID|}}}
  |BelongsToTopic={{{BelongsToTopic|}}}
|HasTitle={{{HasTitle|}}}
   |TimePeriod={{{TimePeriod|}}}
|HasAuthor={{{HasAuthor|}}}
   |Community={{{Community|}}}
|HasRegion={{{HasRegion|}}}
   |HasExtension={{{HasExtension|}}}
|HasMainPicture={{{HasMainPicture|}}}
   |HasMap={{{HasMap|}}}
|HasMap={{{HasMap|}}}
   |HasMedia={{{HasMedia|}}}
|HasNationalLibraryCode={{{HasNationalLibraryCode|}}}
   |HasBibliography={{{HasBibliography|}}}
}}
   |HasFootnote={{{HasFootnote|}}}
 
<!-- Handle List Properties (Split by semicolon) -->
{{#if:{{{BelongsToTopic|}}}|
   {{#arraymap:{{{BelongsToTopic|}}}|;|@@|{{#set:BelongsToTopic=@@}}|}}
}}
{{#if:{{{HasTimePeriod|}}}|
   {{#arraymap:{{{HasTimePeriod|}}}|;|@@|{{#set:HasTimePeriod=@@}}|}}
}}
{{#if:{{{HasExtension|}}}|
   {{#arraymap:{{{HasExtension|}}}|;|@@|{{#set:HasExtension=@@}}|}}
}}
{{#if:{{{HasRelatedPersonalities|}}}|
   {{#arraymap:{{{HasRelatedPersonalities|}}}|;|@@|{{#set:HasRelatedPersonalities=@@}}|}}
}}
{{#if:{{{HasRelatedCommunities|}}}|
   {{#arraymap:{{{HasRelatedCommunities|}}}|;|@@|{{#set:HasRelatedCommunities=@@}}|}}
}}
{{#if:{{{HasRelatedEntries|}}}|
   {{#arraymap:{{{HasRelatedEntries|}}}|;|@@|{{#set:HasRelatedEntries=@@}}|}}
}}
{{#if:{{{HasGalleryImages|}}}|
   {{#arraymap:{{{HasGalleryImages|}}}|;|@@|{{#set:HasGalleryImages=@@}}|}}
}}
}}


[[Category:Articles]]
<!-- ==========================================================
    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>
}}
 
<!-- ==========================================================
    VISUAL DISPLAY (FLOATING INFOBOX — right 1/3, body flows left)
    ========================================================== -->
<div style="
  float: right;
  clear: right;
  width: 33%;
  min-width: 220px;
  max-width: 360px;
  margin: 0 0 1.2em 1.5em;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.92em;
  border: 1px solid #e0d8d0;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
  box-sizing: border-box;
">
 
  <!-- Main picture: full infobox width, above title -->
  {{#if:{{{HasMainPicture|}}}|
    <div style="text-align:center; background:#f5f2ee; border-bottom:1px solid #e8e0d8;">
      [[{{#show: {{{HasMainPicture|}}} |?HasFile#-}}|center|frameless|360px|{{{HasTitle|}}}]]
    </div>
  }}
 
  <!-- Title header: soft cream -->
  <div style="background:#faf8f5; border-bottom:1px solid #e8e0d8; padding:0.7em 0.9em 0.55em;">
    <div style="font-size:1.1em; font-weight:bold; letter-spacing:0.01em; line-height:1.25; color:#2a1f14;">
      {{{HasTitle|{{PAGENAME}}}}}
    </div>
    {{#if:{{{HasAuthor|}}}|
      <div style="font-size:0.85em; color:#888; margin-top:0.2em;">{{{HasAuthor}}}</div>
    }}
  </div>
 
  <!-- Metadata -->
  <div style="padding:0.75em 0.9em 0.8em;">
 
    <!-- Topics (chips — usually 1–3 short values) -->
    {{#if:{{{BelongsToTopic|}}}|
      <div style="margin-bottom:0.5em; line-height:1.9;">
        <span style="color:#777; font-weight:bold; margin-right:0.3em;">Topics</span>
        {{#arraymap:{{{BelongsToTopic|}}}|;|@@|<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;">[[BelongsToTopic::@@]]</span>|}}
      </div>
    }}
 
    <!-- Period (chips) -->
    {{#if:{{{HasTimePeriod|}}}|
      <div style="margin-bottom:0.5em; line-height:1.9;">
        <span style="color:#777; font-weight:bold; margin-right:0.3em;">Period</span>
        {{#arraymap:{{{HasTimePeriod|}}}|;|@@|<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;">[[HasTimePeriod::@@]]</span>|}}
      </div>
    }}
 
    <!-- Region (chip) -->
    {{#if:{{{HasRegion|}}}|
      <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="display:inline-block; background:#f0ece4; border:1px solid #d8d0c4; border-radius:3px; padding:0.05em 0.4em;">{{{HasRegion}}}</span>
      </div>
    }}
 
    <!-- NLI Code (plain text identifier) -->
    {{#if:{{{HasNationalLibraryCode|}}}|
      <div style="margin-bottom:0.5em; line-height:1.6;">
        <span style="color:#777; font-weight:bold; margin-right:0.3em;">NLI Code</span>
        <span style="color:#444;">{{{HasNationalLibraryCode}}}</span>
      </div>
    }}
 
    <!-- Extensions (vertical list) -->
    {{#if:{{{HasExtension|}}}|
      <div style="margin-bottom:0.55em;">
        <div style="color:#777; font-weight:bold; margin-bottom:0.25em;">Extensions</div>
        <ul style="margin:0; padding:0 0 0 1.1em; line-height:1.7;">
          {{#arraymap:{{{HasExtension|}}}|;|@@|<li>[[HasExtension::@@|{{#show: @@|?HasTitle|default=@@}}]]</li>|}}
        </ul>
      </div>
    }}
 
    <!-- Related Personalities (vertical list) -->
    {{#if:{{{HasRelatedPersonalities|}}}|
      <div style="margin-bottom:0.55em;">
        <div style="color:#777; font-weight:bold; margin-bottom:0.25em;">Related Personalities</div>
        <ul style="margin:0; padding:0 0 0 1.1em; line-height:1.7;">
          {{#arraymap:{{{HasRelatedPersonalities|}}}|;|@@|<li>[[HasRelatedPersonalities::@@|@@]]</li>|}}
        </ul>
      </div>
    }}
 
    <!-- Related Communities (vertical list) -->
    {{#if:{{{HasRelatedCommunities|}}}|
      <div style="margin-bottom:0.55em;">
        <div style="color:#777; font-weight:bold; margin-bottom:0.25em;">Related Communities</div>
        <ul style="margin:0; padding:0 0 0 1.1em; line-height:1.7;">
          {{#arraymap:{{{HasRelatedCommunities|}}}|;|@@|<li>[[HasRelatedCommunities::@@|@@]]</li>|}}
        </ul>
      </div>
    }}
 
    <!-- Related Entries (vertical list) -->
    {{#if:{{{HasRelatedEntries|}}}|
      <div style="margin-bottom:0.3em;">
        <div style="color:#777; font-weight:bold; margin-bottom:0.25em;">Related Entries</div>
        <ul style="margin:0; padding:0 0 0 1.1em; line-height:1.7;">
          {{#arraymap:{{{HasRelatedEntries|}}}|;|@@|<li>[[@@]]</li>|}}
        </ul>
      </div>
    }}
 
  </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 class="article-metadata" style="border:1px solid #ccc; padding:8px; margin-bottom:1em; background:#f9f9f9;">
  '''Title:''' {{{Title|{{PAGENAME}}}}}<br />
  {{#if:{{{HasAuthor|}}}|'''Author(s):''' {{{HasAuthor|}}}<br />}}
  {{#if:{{{BelongsToTopic|}}}|'''Topic(s):''' {{#arraymap:{{{BelongsToTopic}}}|,|@@@|[[@@@]]}}<br />}}
  {{#if:{{{TimePeriod|}}}|'''Time Period(s):''' {{{TimePeriod|}}}<br />}}
  {{#if:{{{Community|}}}|'''Community(ies):''' {{{Community|}}}<br />}}
  {{#if:{{{HasExtension|}}}|'''Extension(s):''' {{{HasExtension|}}}<br />}}
  {{#if:{{{HasMap|}}}|'''Map:''' {{{HasMap|}}}<br />}}
  {{#if:{{{HasMedia|}}}|'''Media:''' {{{HasMedia|}}}<br />}}
  {{#if:{{{HasBibliography|}}}|'''Bibliography:''' {{{HasBibliography|}}}<br />}}
  {{#if:{{{HasFootnote|}}}|'''Footnote(s):''' {{{HasFootnote|}}}<br />}}
</div>
</div>
</includeonly>
</includeonly>


<noinclude>
<noinclude>
This template is for Article pages.
Use this template on Article: pages to describe encyclopedia entries.
Usage:


Example:
<pre>
<pre>
{{Article
{{Article
|Title=Jewish Trade in Poland
|HasArticleID=1.4.3
|HasAuthor=Adam Teller
|HasTitle=Jewish Trade in Poland
|BelongsToTopic=Topic:Economics
|HasAuthor=Adam Teller
|TimePeriod=14th century
|BelongsToTopic=Economics; Commerce
|Community=Community:Kraków
|HasTimePeriod=1772-1914; 1648-1772
|HasExtension=Extension:Fairs in Future Galicia in the Pre-Partitions Age
|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
}}
}}
</pre>
</pre>


Then write the **narrative text** of the article directly after the template call.
Then write the '''narrative text''' of the article directly after the template call.
</noinclude>
</noinclude>

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.