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

Template:BlogExcerpt: Difference between revisions

Template page
(Created page with "<includeonly><span class="post-excerpt>{{{1}}}</span>{{#ifeq:{{FULLPAGENAME}}|{{{link}}}|| <!-- Display read more only when transcluding --> <div class="blog-readmore">[[{{{link}}}|Read more...]]</div>}}</includeonly><noinclude>{{Documentation}}</noinclude>")
 
No edit summary
 
Line 1: Line 1:
<includeonly><span class="post-excerpt>{{{1}}}</span>{{#ifeq:{{FULLPAGENAME}}|{{{link}}}||
<includeonly><span class="post-excerpt>{{{1}}}</span>{{#ifeq:{{PAGENAME}}|{{{link}}}||
<!-- Display read more only when transcluding -->
<!-- Display read more only when transcluding -->
<div class="blog-readmore">[[{{{link}}}|Read more...]]</div>}}</includeonly><noinclude>{{Documentation}}</noinclude>
<div class="blog-readmore">[[Blog:{{{link}}}|Read more...]]</div>}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 13:50, 1 April 2025

About this template

This template is used to create an excerpt for a blog post in the Blog namespace. It should be underneath the {{BlogHeader}}.

Usage

Copy the following and paste it onto a blog page under the {{BlogHeader}}:

{{BlogExcerpt
|
|link =
}}

Parameters

  • 1: The first parameter is the excerpt of the post itself. This will usually be the first paragraph of the post.
  • link: This should be the name of the page itself, which should look a bit like: "2025/03/28/My Post". The blog namespace should not be included.

Example

{{BlogExcerpt
|This is the first paragraph of my post.
|link = 2025/03/28/My Post
}}

Visit Template:BlogExcerpt/doc to edit this text! (How does this work?)