Template:Recent Artifact Item: Difference between revisions

From Artifacts of Capitalism
Documents (talk | contribs)
Add Recent Artifacts homepage templates
 
Documents (talk | contribs)
Refresh homepage recent artifact item styling
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly><li class="homepage-recent-artifact" style="margin:0; padding:1rem 1.15rem; border-bottom:1px solid #e4ddca;"><div style="font-size:1.04rem; line-height:1.35; margin:0 0 0.2rem 0;">'''[[{{{Page|}}}]]'''</div><div style="font-size:0.91rem; color:#5f584a; margin:0 0 0.4rem 0;">{{#if:{{{ArtifactType|}}}|{{{ArtifactType}}}|Artifact}}{{#if:{{{Period|}}}| &bull; {{{Period}}}|}}{{#if:{{{Date|}}}| &bull; {{{Date}}}|}}{{#if:{{{CreatorAuthor|}}}| &bull; {{{CreatorAuthor}}}|}}</div>{{#if:{{{Themes|}}}|<div style="font-size:0.92rem; line-height:1.55; margin:0 0 0.4rem 0;"><strong>Themes:</strong> {{{Themes}}}</div>|}}<div style="font-size:0.93rem; font-weight:bold;">[[{{{Page|}}}|Read the full entry]]</div></li></includeonly>
<div class="homepage-recent-artifact" style="border:1px solid #d8d0bd; background:#fbf7ee; padding:1rem 1.1rem; border-radius:6px;">
  <div style="font-size:1.15rem; line-height:1.3; margin:0 0 0.35rem 0;">
    '''[[{{{Page|}}}]]'''
  </div>
  <div style="font-size:0.95rem; color:#5f584a; margin:0 0 0.55rem 0;">
    {{#if:{{{ArtifactType|}}}|{{{ArtifactType}}}|Artifact}}{{#if:{{{Period|}}}| {{{Period}}}|}}{{#if:{{{Date|}}}| {{{Date}}}|}}{{#if:{{{CreatorAuthor|}}}| {{{CreatorAuthor}}}|}}
  </div>
  {{#if:{{{Themes|}}}|<div style="font-size:0.95rem; margin:0 0 0.55rem 0;"><strong>Themes:</strong> {{{Themes}}}</div>|}}
  <div style="font-size:0.95rem;">
    [[{{{Page|}}}|Read the full entry]]
  </div>
</div>
</includeonly>
<noinclude>
<noinclude>
<!--
<!--

Latest revision as of 20:12, 2 April 2026


Template:Recent Artifact Item

Renders one result row for the homepage recent-artifacts block.

Expected parameters:

- `Page` - `Date` - `ArtifactType` - `Period` - `CreatorAuthor` - `Themes`