Template:Article: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
WikiSync push v1.0 |
||
| Line 1: | Line 1: | ||
<!-- WikiSync | version=1.0 | updated=2026-05-26 --> | |||
<includeonly> | <includeonly> | ||
__NOFACTBOX__ | |||
[[Category:Articles]] | |||
<!-- ========================================================== | |||
DATA STORAGE (THE "SET" BLOCK) | |||
========================================================== --> | |||
{{#set: | {{#set: | ||
|HasTitle={{{HasTitle|}}} | |||
|HasAuthor={{{HasAuthor|}}} | |||
|HasRegion={{{HasRegion|}}} | |||
|HasMainPicture={{{HasMainPicture|}}} | |||
|HasMap={{{HasMap|}}} | |||
| | |HasNationalLibraryCode={{{HasNationalLibraryCode|}}} | ||
| | }} | ||
| | |||
| | <!-- 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=@@}}|}} | |||
}} | }} | ||
[[ | <!-- ========================================================== | ||
VISUAL DISPLAY (THE CARD) | |||
========================================================== --> | |||
<div class="article-card" style=" | |||
font-family: Georgia, 'Times New Roman', serif; | |||
border: 1px solid #c8d0d8; | |||
border-radius: 6px; | |||
background: #ffffff; | |||
width: 100%; | |||
margin: 0 0 1.5em 0; | |||
box-shadow: 0 2px 8px rgba(0,0,0,0.10); | |||
overflow: hidden; | |||
display: block; | |||
box-sizing: border-box; | |||
"> | |||
<!-- Card Header --> | |||
<div style=" | |||
background: linear-gradient(135deg, #3b2a1a 0%, #5c4033 100%); | |||
color: #ffffff; | |||
padding: 0.75em 1em 0.6em 1em; | |||
"> | |||
<div style="font-size:1.25em; font-weight:bold; letter-spacing:0.02em; line-height:1.2;"> | |||
{{{HasTitle|{{PAGENAME}}}}} | |||
</div> | |||
{{#if:{{{HasAuthor|}}}| | |||
<div style="font-size:0.82em; opacity:0.80; margin-top:0.2em;">{{{HasAuthor}}}</div> | |||
}} | |||
</div> | |||
<!-- Body: two-column layout — metadata left, image right --> | |||
<div style="padding: 0.85em 1em 0.9em 1em; display:table; width:100%; box-sizing:border-box;"> | |||
<!-- Left column: all metadata --> | |||
<div style="display:table-cell; vertical-align:top; text-align:left;"> | |||
<!-- Topics --> | |||
{{#if:{{{BelongsToTopic|}}}| | |||
<div style="font-size:0.88em; margin-bottom:0.55em; text-align:left;"> | |||
<span style="color:#777;">'''Topics'''</span> | |||
<ul style="margin:0.2em 0 0 1.2em; padding:0;"> | |||
{{#arraymap:{{{BelongsToTopic|}}}|;|@@|<li>[[BelongsToTopic::@@]]</li>|}} | |||
</ul> | |||
</div> | |||
}} | |||
<!-- Period & Region --> | |||
<table style="border-collapse:collapse; font-size:0.88em; margin-bottom:0.55em;"> | |||
{{#if:{{{HasTimePeriod|}}}| | |||
<tr> | |||
<td style="color:#777; padding:0.12em 0.8em 0.12em 0; white-space:nowrap; vertical-align:top; text-align:left;">'''Period'''</td> | |||
<td style="color:#222; text-align:left;">{{#arraymap:{{{HasTimePeriod|}}}|;|@@|[[HasTimePeriod::@@]]| · }}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{HasRegion|}}}| | |||
<tr> | |||
<td style="color:#777; padding:0.12em 0.8em 0.12em 0; white-space:nowrap; vertical-align:top; text-align:left;">'''Region'''</td> | |||
<td style="color:#222; text-align:left;">{{{HasRegion}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{HasNationalLibraryCode|}}}| | |||
<tr> | |||
<td style="color:#777; padding:0.12em 0.8em 0.12em 0; white-space:nowrap; vertical-align:top; text-align:left;">'''NLI Code'''</td> | |||
<td style="color:#222; text-align:left;">{{{HasNationalLibraryCode}}}</td> | |||
</tr> | |||
}} | |||
</table> | |||
<!-- Extensions --> | |||
{{#if:{{{HasExtension|}}}| | |||
<div style="font-size:0.88em; margin-bottom:0.55em; text-align:left;"> | |||
<span style="color:#777;">'''Extensions'''</span> | |||
<ul style="margin:0.2em 0 0 1.2em; padding:0;"> | |||
{{#arraymap:{{{HasExtension|}}}|;|@@|<li>[[HasExtension::@@|@@]]</li>|}} | |||
</ul> | |||
</div> | |||
}} | |||
<!-- Related Personalities --> | |||
{{#if:{{{HasRelatedPersonalities|}}}| | |||
<div style="font-size:0.88em; margin-bottom:0.55em; text-align:left;"> | |||
<span style="color:#777;">'''Related Personalities'''</span> | |||
<ul style="margin:0.2em 0 0 1.2em; padding:0;"> | |||
{{#arraymap:{{{HasRelatedPersonalities|}}}|;|@@|<li>[[@@]]</li>|}} | |||
</ul> | |||
</div> | |||
}} | |||
<!-- Related Communities --> | |||
{{#if:{{{HasRelatedCommunities|}}}| | |||
<div style="font-size:0.88em; margin-bottom:0.55em; text-align:left;"> | |||
<span style="color:#777;">'''Related Communities'''</span> | |||
<ul style="margin:0.2em 0 0 1.2em; padding:0;"> | |||
{{#arraymap:{{{HasRelatedCommunities|}}}|;|@@|<li>[[@@]]</li>|}} | |||
</ul> | |||
</div> | |||
}} | |||
<!-- Related Entries --> | |||
{{#if:{{{HasRelatedEntries|}}}| | |||
<div style="font-size:0.88em; margin-bottom:0.3em; text-align:left;"> | |||
<span style="color:#777;">'''Related Entries'''</span> | |||
<ul style="margin:0.2em 0 0 1.2em; padding:0;"> | |||
{{#arraymap:{{{HasRelatedEntries|}}}|;|@@|<li>[[@@]]</li>|}} | |||
</ul> | |||
</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 --> | |||
<!-- Map (full width, below body) --> | |||
{{#if:{{{HasMap|}}}| | |||
<div style="border-top:1px solid #e4e8ec; padding:0.75em 1em; text-align:center;"> | |||
[[{{{HasMap|}}}|center|thumb|500px|Map]] | |||
</div> | |||
}} | |||
</div> | </div> | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
Use this template on Article: pages to describe encyclopedia entries. | |||
Example: | |||
<pre> | <pre> | ||
{{Article | {{Article | ||
|HasTitle=Jewish Trade in Poland | |HasTitle=Jewish Trade in Poland | ||
|HasAuthor=Adam Teller | |HasAuthor=Adam Teller | ||
|BelongsToTopic= | |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 | |||
}} | }} | ||
</pre> | </pre> | ||
Then write the | Then write the '''narrative text''' of the article directly after the template call. | ||
</noinclude> | </noinclude> | ||
Latest revision as of 15:46, 26 May 2026
Use this template on Article: pages to describe encyclopedia entries.
Example:
{{Article
|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.