Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Join the Playtest on Steam Now: SpiritVale

Template:PatchHighlights: Difference between revisions

Template page
Created page with "<div style="display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; grid-auto-rows:auto; align-items:start; width:100%;"> {{#ask: Namespace::Update Publish date::+ | sort=Publish date | order=desc | limit=3 | ?Publish date | ?Patch blurb | format=template | template=PatchHighlights | named args=yes }} </div> <includeonly> <div style="text-align:left; padding:1rem 1.5rem 0.75rem;"> <div style="font-size:1.4em; font-weight:700; line-height:1.2; marg..."
 
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; grid-auto-rows:auto; align-items:start; width:100%;">
<templatestyles src="Template:PatchHighlights/styles.css" />
{{#ask:
 
  [[Namespace::Update]]
<!-- Patch Highlights: one cohesive custom-table -->
<table class="custom-table">
<tr>
<th>Recent Updates</th>
</tr>
<tr>
<td style="padding:0;">
<div class="sv-highlights-pad">
<div class="sv-highlights">{{#ask:
  [[Category:Patch Notes]]
  [[Publish date::+]]
  [[Publish date::+]]
  | sort=Publish date
  | sort=Publish date,Modification date
  | order=desc
  | order=desc,desc
  | limit=3
  | limit=3
  | ?Publish date
  | ?Publish date
  | ?Patch blurb
  | ?Patch blurb
| ?Modification date
  | format=template
  | format=template
  | template=PatchHighlights
  | template=PatchHighlights/Card
  | named args=yes
  | named args=yes
}}
| mainlabel=Page
</div>
| link=none
 
| searchlabel=
<includeonly>
| default=<div class="sv-empty">No recent updates found.</div>
<div style="text-align:left; padding:1rem 1.5rem 0.75rem;">
}}</div>
<div style="font-size:1.4em; font-weight:700; line-height:1.2; margin:-0.2em 0 0.3em 0;">
[[{{{1}}}|{{#titleparts:{{{1}}}|1|2|:}}]]
</div>
<div style="margin:.1em 0; font-size:.85em; font-style:italic; color:var(--text-color);">
{{{Publish date}}}
</div>
</div>
{{#if:{{{Patch blurb|}}}|<p style="font-size:.9em; line-height:1.75em; color:var(--text-color); margin:.3em 0 0 0;">{{{Patch blurb}}}</p>|}}
</td>
</div>
</tr>
</includeonly>
</table>


<noinclude>
<noinclude>
<templatedata>
<templatedata>
{
{"description":"Displays the three most recent patch notes inside a styled table with a gradient header. Mobile view shows only the newest for readability.","params":{}}
  "description": "Displays the three most recent Update: pages using SMW. Each card shows the page title (without the Update: prefix), its Publish date, and an optional Patch blurb.",
  "params": {
    "1": { "label": "Page", "description": "The update page (passed automatically by SMW)", "type": "wiki-page-name", "required": true },
    "Publish date": { "label": "Publish date", "description": "The SMW Publish date property value", "type": "string", "required": false },
    "Patch blurb": { "label": "Patch blurb", "description": "Optional short summary set on the update page with [[Patch blurb::...]]", "type": "string", "required": false }
  }
}
</templatedata>
</templatedata>
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>