Line 1: Line 1:
{{new feature}}
{{Enabled by default}}
{{Enabled by default}}

Revision as of 22:12, September 15, 2010

This extension is enabled by default on Fandom.
File:Wikia blog articles 3.png

The bloglist feature from blog articles allows you to embed a blog listing within a normal wiki article. It's like a blog listing page to go, and uses the <bloglist> extension.

There are a number of parameters you can define to format the embedded list to fit within different content pages - e.g. the main page, the community portal, a contest page, etc. In addition, it is extremely customizable.

Though this may seem complex at first, you can specify as many or as few parameters as you wish, as each parameter has a default setting. Even <bloglist></bloglist> will give you good results - it will list every post on the wiki.

Basic form

The basic form of the extension is as following:

<bloglist parameter1=setting1 parameter2="setting with spaces" p3=s3 p4=s4>

Categories and authors

Note how the category and author sections are written differently to other inputs - this is because they can take multiple inputs.

In addition, using author and category together gives you posts by the selected authors from the selected categories.

Valid extension inputs

This specifies which categories posts are pulled from.
It is an "or" selector - i.e. give it several categories, and it will collate posts from each category together. If unspecified, it defaults to show all categories (even uncategorized posts).
To use it type:
This specifies which authors posts are collated from.
It is an "or" selector - i.e. give it several authors, and it will collate posts from each author together. If unspecified, it defaults to all authors.
To use it type:
This specifies the number of posts shown.
Takes a number (integer) input. If unspecified, it defaults to 5.
For example: <bloglist count=3>
This specifies whether a section of the blog post is shown on the listing. Please note it is not intended to show full blog posts - it shows only sections, stripped of formatting.
Inputs are true or false, defaulting to false. If true, it shows first 200 characters of the blog post.
For example: <bloglist summary=true>
This allows you to specify length of the text quoted in characters, if summary=true.
For example: <bloglist summary=true summarylength=300>
Choose the general output style.
Inputs are either box or plain. If unspecified, it defaults to box. Plain is just the content, without any box styling.
For example: <bloglist type=plain>
When posts are shown in a box, this is shown as the box title. If it uses multiple words, the text must be written in quote marks.
For example: <bloglist title="Evil draws close">
This allows the addition of extra style parameters for the listing, and works like normal CSS styling.
If unspecified, it defaults to blank.
For example: <bloglist style="float:right;clear:left;">
This specifies how the post are sorted.
Inputs are date or author. If unspecified, it defaults to date.
For example: <bloglist order=date>
This specifies what direction to sort in.
Inputs are descending, ascending. If unspecified, it defaults to descending.
For example: <bloglist ordertype=descending>
This specifies whether a timestamp is shown.
Inputs are true or false. If unspecified, it defaults to false.
For example: <bloglist timestamp=true>

Sample code

<bloglist count=3 summary=true summarylength=250 type=plain title="Sample code" timestamp=true order=date>

Other notes

  • If no valid posts are found, the following message will be displayed: "No posts found. Write one!"
Community content is available under CC-BY-SA unless otherwise noted.