Template:Article: Difference between revisions

From elijah
Jump to navigation Jump to search
Created page with "{{{for template|Article}}} == Basic Information == ; Title: {{{field|Title}}} ; Author(s): {{{field|Author|input type=page|multiple|autocomplete}}} ; Topic(s): {{{field|Topic|input type=page|multiple|autocomplete}}} ; Time Period(s): {{{field|TimePeriod|input type=page|multiple|autocomplete}}} ; Community(ies): {{{field|Community|input type=page|multiple|autocomplete}}} == Linked Content == ; Extension(s): {{{field|Extension|input type=page|multiple|autocomplete}}}..."
 
No edit summary
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{{for template|Article}}}
<!-- WikiSync | version=1.1 | updated=2026-06-05 -->
<includeonly>
__NOFACTBOX__
[[Category:Articles]]


== Basic Information ==
<!-- ==========================================================
; Title:
    DATA STORAGE (THE "SET" BLOCK)
{{{field|Title}}}
    ========================================================== -->
{{#set:
|HasArticleID={{{HasArticleID|}}}
|HasTitle={{{HasTitle|}}}
|HasAuthor={{{HasAuthor|}}}
|HasRegion={{{HasRegion|}}}
|HasMainPicture={{{HasMainPicture|}}}
|HasMap={{{HasMap|}}}
|HasNationalLibraryCode={{{HasNationalLibraryCode|}}}
}}


; Author(s):
<!-- Handle List Properties (Split by semicolon) -->
{{{field|Author|input type=page|multiple|autocomplete}}}
{{#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=@@}}|}}
}}


; Topic(s):
<!-- ==========================================================
{{{field|Topic|input type=page|multiple|autocomplete}}}
    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>
}}


; Time Period(s):
<!-- ==========================================================
{{{field|TimePeriod|input type=page|multiple|autocomplete}}}
    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;
">


; Community(ies):
  <!-- Main picture: full infobox width, above title -->
{{{field|Community|input type=page|multiple|autocomplete}}}
  {{#if:{{{HasMainPicture|}}}|
    <div style="text-align:center; background:#f5f2ee; border-bottom:1px solid #e8e0d8;">
      [[{{#show: {{{HasMainPicture|}}} |?HasFile#-}}|center|frameless|360px|{{{HasTitle|}}}]]
    </div>
  }}


== Linked Content ==
  <!-- Title header: soft cream -->
; Extension(s):
  <div style="background:#faf8f5; border-bottom:1px solid #e8e0d8; padding:0.7em 0.9em 0.55em;">
{{{field|Extension|input type=page|multiple|autocomplete}}}
    <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>


; Map:
  <!-- Metadata -->
{{{field|Map|input type=page|autocomplete}}}
  <div style="padding:0.75em 0.9em 0.8em;">


; Media:
    <!-- Topics (chips — usually 1–3 short values) -->
{{{field|Media|input type=page|multiple|autocomplete}}}
    {{#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>
    }}


== Supporting Material ==
    <!-- Period (chips) -->
; Bibliography:
    {{#if:{{{HasTimePeriod|}}}|
{{{field|Bibliography|input type=textarea}}}
      <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>
    }}


; Footnote(s):
    <!-- Region (chip) -->
{{{field|Footnote|input type=textarea}}}
    {{#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>
    }}


== Main Text ==
    <!-- NLI Code (plain text identifier) -->
; Content:
    {{#if:{{{HasNationalLibraryCode|}}}|
{{{field|Content|input type=textarea|editor=wikieditor|rows=20}}}
      <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>
    }}


{{{standard input|free text|hidden}}}
    <!-- 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>
    }}


{{{end template}}}
    <!-- 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>
    }}


{{{standard input|summary|label=Edit Summary}}}
    <!-- Related Communities (vertical list) -->
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|cancel}}}
    {{#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>
 
</includeonly>
 
<noinclude>
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>

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.