Template:Article: Difference between revisions
Jump to navigation
Jump to search
WikiSync push v1.0 |
No edit summary |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<!-- WikiSync | version=1. | <!-- WikiSync | version=1.1 | updated=2026-06-05 --> | ||
<includeonly> | <includeonly> | ||
__NOFACTBOX__ | __NOFACTBOX__ | ||
| Line 8: | Line 8: | ||
========================================================== --> | ========================================================== --> | ||
{{#set: | {{#set: | ||
|HasArticleID={{{HasArticleID|}}} | |||
|HasTitle={{{HasTitle|}}} | |HasTitle={{{HasTitle|}}} | ||
|HasAuthor={{{HasAuthor|}}} | |HasAuthor={{{HasAuthor|}}} | ||
| Line 34: | Line 35: | ||
{{#if:{{{HasRelatedEntries|}}}| | {{#if:{{{HasRelatedEntries|}}}| | ||
{{#arraymap:{{{HasRelatedEntries|}}}|;|@@|{{#set:HasRelatedEntries=@@}}|}} | {{#arraymap:{{{HasRelatedEntries|}}}|;|@@|{{#set:HasRelatedEntries=@@}}|}} | ||
}} | |||
{{#if:{{{HasGalleryImages|}}}| | |||
{{#arraymap:{{{HasGalleryImages|}}}|;|@@|{{#set:HasGalleryImages=@@}}|}} | |||
}} | |||
<!-- ========================================================== | |||
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 ( | VISUAL DISPLAY (FLOATING INFOBOX — right 1/3, body flows left) | ||
========================================================== --> | ========================================================== --> | ||
<div | <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-family: Georgia, 'Times New Roman', serif; | ||
border: 1px solid # | font-size: 0.92em; | ||
border: 1px solid #e0d8d0; | |||
border-radius: 6px; | border-radius: 6px; | ||
background: #ffffff; | background: #ffffff; | ||
box-shadow: 0 1px 4px rgba(0,0,0,0.06); | |||
box-shadow: 0 | |||
overflow: hidden; | overflow: hidden; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
"> | "> | ||
<!-- | <!-- Main picture: full infobox width, above title --> | ||
<div style=" | {{#if:{{{HasMainPicture|}}}| | ||
<div style="text-align:center; background:#f5f2ee; border-bottom:1px solid #e8e0d8;"> | |||
[[{{#show: {{{HasMainPicture|}}} |?HasFile#-}}|center|frameless|360px|{{{HasTitle|}}}]] | |||
</div> | |||
}} | |||
<div style="font-size:1. | |||
<!-- 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}}}}} | {{{HasTitle|{{PAGENAME}}}}} | ||
</div> | </div> | ||
{{#if:{{{HasAuthor|}}}| | {{#if:{{{HasAuthor|}}}| | ||
<div style="font-size:0. | <div style="font-size:0.85em; color:#888; margin-top:0.2em;">{{{HasAuthor}}}</div> | ||
}} | }} | ||
</div> | </div> | ||
<!-- | <!-- Metadata --> | ||
<div style="padding: 0. | <div style="padding:0.75em 0.9em 0.8em;"> | ||
<!-- | <!-- Topics (chips — usually 1–3 short values) --> | ||
<div style="display: | {{#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) --> | |||
<!-- Map (full width, below | |||
{{#if:{{{HasMap|}}}| | {{#if:{{{HasMap|}}}| | ||
<div style="border-top:1px solid #e4e8ec; padding:0.75em | <div style="border-top:1px solid #e4e8ec; padding:0.75em 0.9em; text-align:center;"> | ||
[[{{{HasMap|}}}|center|thumb| | [[{{{HasMap|}}}|center|thumb|340px|Map]] | ||
</div> | </div> | ||
}} | }} | ||
</div> | </div> | ||
</includeonly> | </includeonly> | ||
| Line 188: | Line 182: | ||
<pre> | <pre> | ||
{{Article | {{Article | ||
|HasArticleID=1.4.3 | |||
|HasTitle=Jewish Trade in Poland | |HasTitle=Jewish Trade in Poland | ||
|HasAuthor=Adam Teller | |HasAuthor=Adam Teller | ||
| Line 198: | Line 193: | ||
|HasRelatedEntries=Article:011; Article:055 | |HasRelatedEntries=Article:011; Article:055 | ||
|HasMainPicture=Image:TomaszTreter1609 | |HasMainPicture=Image:TomaszTreter1609 | ||
|HasGalleryImages=Image:TomaszTreter1609; Image:AnotherImageID | |||
|HasMap=File:GaliciaMap1900.jpg | |HasMap=File:GaliciaMap1900.jpg | ||
|HasNationalLibraryCode=NNL_ALEPH001234567 | |HasNationalLibraryCode=NNL_ALEPH001234567 | ||
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.