DansFriend (talk | contribs) No edit summary Tag: Reverted |
DansFriend (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
{{DISPLAYTITLE:{{{title}}}}}| | {{DISPLAYTITLE:{{{title}}}}}| | ||
<!-- Being transcluded: Display the title --> | <!-- Being transcluded: Display the title --> | ||
{{# | {{#ifeq:{{PAGENAME}}|Gallowpedia | ||
|<div class="blog-title"><h4>[[Blog:{{{link|{{PAGENAME}}}}}|{{{title}}}]]</h4></div> | |<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-title"><h2>[[Blog:{{{link|{{PAGENAME}}}}}|{{{title}}}]]</h2></div> | ||
}}}} | }} | ||
}} | |||
<div class="blog-meta"> | <div class="blog-meta"> | ||
<span class="blog-author">By [[User:{{{author}}}|{{{authorname|{{{author}}}}}}]] {{#if:{{{author2|}}}|and [[User:{{{author2}}}|{{{author2name|{{{author2}}}}}}]]}}</span><span class="blog-separator"><nowiki> | </nowiki></span><span class="blog-date">{{{date}}}</span> | <span class="blog-author">By [[User:{{{author}}}|{{{authorname|{{{author}}}}}}]] {{#if:{{{author2|}}}|and [[User:{{{author2}}}|{{{author2name|{{{author2}}}}}}]]}}</span><span class="blog-separator"><nowiki> | </nowiki></span><span class="blog-date">{{{date}}}</span> |
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?)