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
No edit summary
No edit summary
 
(7 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:
 
<!-- 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]]
  [[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/Card
  | template=PatchHighlights/Card
  | named args=yes
  | named args=yes
  | default=
  | mainlabel=Page
  {{#ask:
| link=none
    [[Publish date::+]]
| searchlabel=
    | sort=Publish date
| default=<div class="sv-empty">No recent updates found.</div>
    | order=desc
}}</div>
    | limit=3
    | ?Publish date
    | ?Patch blurb
    | format=template
    | template=PatchHighlights/Card
    | named args=yes
    | default=<div style="grid-column:1/-1; opacity:.75; text-align:center; padding:1rem;">No recent updates found.</div>
  }}
}}
</div>
</div>
</td>
</tr>
</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 patch notes using SMW. Pulls from Category:Patch Notes and orders by Publish date; falls back to a global Publish date search if needed.",
  "params": {}
}
</templatedata>
</templatedata>
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>