Template:RecentBlogs: Difference between revisions
Appearance
Created page with "<div class="recent-blogs"> == 📰 Recent Blog Posts == {{#ask: Blog:+ | ?Creation date=Created | sort=Creation date | order=descending | limit=5 | format=ol | intro=<div class="blog-list"> | outro=</div> | default=No recent blog posts found. }} </div> <style> .recent-blogs { background: #fafafa; border: 1px solid #ddd; border-radius: 10px; padding: 1em; margin: 1em 0; box-shadow: 0 0 5px rgba(0,0,0,0.1); } .recent-blogs h2 { font-size: 1.2em;..." |
No edit summary |
||
Line 1: | Line 1: | ||
<div class="recent-blogs"> | <div class="recent-blogs"> | ||
== 📰 Recent Blog Posts == | == 📰 Recent Blog Posts == | ||
{{# | <ul> | ||
{{#foreach:{{#recentchanges: | namespace=0 | count=50 }}| | |||
{{#ifexpr: {{#sub:{{RC_TITLE}}|0|5}} = "Blog:" | <li>[[{{RC_TITLE}}]]</li> | }} | |||
}} | }} | ||
</ul> | |||
</div> | </div> | ||
Line 27: | Line 21: | ||
margin-bottom: 0.5em; | margin-bottom: 0.5em; | ||
} | } | ||
. | .recent-blogs ul { | ||
margin: 0; | margin: 0; | ||
padding-left: 1.5em; | padding-left: 1.5em; | ||
} | } | ||
</style> | </style> |
Latest revision as of 14:35, 11 October 2025
📰 Recent Blog Posts
-
{{#foreach:{{#recentchanges: | namespace=0 | count=50 }}|
Expression error: Unrecognized punctuation character "[".
}}
<style> .recent-blogs {
background: #fafafa; border: 1px solid #ddd; border-radius: 10px; padding: 1em; margin: 1em 0; box-shadow: 0 0 5px rgba(0,0,0,0.1);
} .recent-blogs h2 {
font-size: 1.2em; margin-bottom: 0.5em;
} .recent-blogs ul {
margin: 0; padding-left: 1.5em;
} </style>