Template:Article: Difference between revisions

From elijah
Jump to navigation Jump to search
No edit summary
No edit summary
 
(16 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:
  |HasType=Article
  |HasArticleID={{{HasArticleID|}}}
  |Title={{{Title|}}}
  |HasTitle={{{HasTitle|}}}
  |HasAuthor={{{HasAuthor|}}}
  |HasAuthor={{{HasAuthor|}}}
  |BelongsToTopic={{{BelongsToTopic|}}}
  |HasRegion={{{HasRegion|}}}
  |TimePeriod={{{TimePeriod|}}}
  |HasMainPicture={{{HasMainPicture|}}}
  |Community={{{Community|}}}
  |HasMap={{{HasMap|}}}
  |HasExtension={{{HasExtension|}}}
  |HasNationalLibraryCode={{{HasNationalLibraryCode|}}}
|Map={{{Map|}}}
|Media={{{Media|}}}
|Bibliography={{{Bibliography|}}}
|Footnote={{{Footnote|}}}
}}
}}


[[Has default form::Form:Article]]
<!-- Handle List Properties (Split by semicolon) -->
[[Category:Articles]]
{{#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=@@}}|}}
}}


<div class="article-box">
<!-- ==========================================================
  '''Title:''' {{{Title|}}}<br />
    GALLERY (floats left, sits beside the infobox)
  '''Author(s):''' {{{HasAuthor|}}}<br />
    ========================================================== -->
  '''Topic(s):''' {{{BelongsToTopic|}}}<br />
{{#if:{{{HasGalleryImages|}}}|
   '''Time Period(s):''' {{{TimePeriod|}}}<br />
<div style="float:left; margin:0 1.2em 1.2em 0; font-family:Georgia,'Times New Roman',serif;">
  '''Community(ies):''' {{{Community|}}}<br />
   <div style="display:flex; flex-wrap:wrap; gap:0.6em;">
  '''Extension(s):''' {{{HasExtension|}}}<br />
    {{#arraymap:{{{HasGalleryImages|}}}|;|@@|<div>[[{{#show: @@ |?HasFile#-}}|frameless|160px|thumb]]</div>|}}
  '''Map:''' {{{Map|}}}<br />
   </div>
  '''Media:''' {{{Media|}}}<br />
  '''Bibliography:''' {{{Bibliography|}}}<br />
   '''Footnote(s):''' {{{Footnote|}}}<br />
</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-body">
  {{{Content|}}}
</div>
</div>
</includeonly>
</includeonly>


<noinclude>
<noinclude>
This template structures content for pages in the Articles namespace.
Use this template on Article: pages to describe encyclopedia entries.
 
Example:
<pre>
{{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
}}
</pre>
 
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.