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

Template:BlogHeader: Difference between revisions

Template page
(Undo revision 38505 by DansFriend (talk))
Tag: Undo
No edit summary
 
Line 6: Line 6:
{{DISPLAYTITLE:{{{title}}}}}|
{{DISPLAYTITLE:{{{title}}}}}|
<!-- Being transcluded: Display the title -->
<!-- Being transcluded: Display the title -->
<div class="blog-title"><h2>[[Blog:{{{link|{{PAGENAME}}}}}|{{{title}}}]]</h2></div>
{{#ifeq:{{PAGENAME}}|Gallowpedia
|<div class="blog-title"><h4>[[Blog:{{{link|{{PAGENAME}}}}}|{{{title}}}]]</h4></div>
|<div class="blog-title"><h2>[[Blog:{{{link|{{PAGENAME}}}}}|{{{title}}}]]</h2></div>
}}
}}
}}
<div class="blog-meta">
<div class="blog-meta">

Latest revision as of 22:18, 5 April 2025

About this template

This template is used to create a header for a blog post in the Blog namespace. It should be at the very top of a post.

Usage

Copy the following and paste it onto a blog page:

{{BlogHeader
|title       =
|author      =
|authorname  =
|author2     = 
|author2name =
|date        =
|link        =
|image       =
|imagealt    =
|imagetitle  =
}}

Parameters

  • title: The blog post title.
  • author: The author of the blog post. This should be their wiki username.
  • authorname: Optional. Can be used to change the author's displayed name if it needs to be different from the wiki username.
  • author2: Optional. The second author of the blog post. This should be their wiki username.
  • authorname: Optional. Can be used to change the second author's displayed name if it needs to be different from the wiki username.
  • date: Published date. Should be in month-day-year format, e.g. "March 27, 2025"
  • 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.
  • image: The featured image of the post. Technically optional, but should ideally always be included.
  • imagealt: Alt text for the image.
  • imagetitle: Title for the image.

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