FANDOM


Line 121: Line 121:
   
   
  +
  +
[[Category:Help|{{PAGENAME}}]]
   
 
[[de:Hilfe:Blog-Artikel/Bloglist]]
 
[[de:Hilfe:Blog-Artikel/Bloglist]]
  +
[[es:Ayuda:Artículo de blog/Lista de Blogs]]
 
[[ja:Help:ブログ記事/ブログリスト]]
 
[[ja:Help:ブログ記事/ブログリスト]]
 
[[ru:Справка:Блог/Bloglist]]
 
[[ru:Справка:Блог/Bloglist]]
[[Category:Help|{{PAGENAME}}]]
 

Revision as of 11:39, July 5, 2012

Bloglist example

Example blog list

This extension is enabled by default on Fandom.

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.

Step-by-Step

  • Decide what page you'd like to display a blog listing on, and open that page for editing.
  • Switch to Source mode and enter the following code on the page:
<bloglist></bloglist>
  • Save the page and enjoy your new bloglist, which displays all of the recent blog posts of the wiki, and looks something like the image to the right.

Customizing

There are a number of parameters you can define to change the content of your blog list so it works for different content pages. 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.

Here's an example of customization:

<bloglist count=3 summary=true summarylength=250 type=plain title="Sample code" timestamp=true order=date>
<category>Blog</category>
<category>Glob</category>
<author>Kirkburn</author>
<author>Legolas</author>
<author>Drizzt</author>
</bloglist>


Categories and authors

Note how the category and author sections are written differently to other inputs - this is because they can take multiple inputs. Using author and category together gives you posts by the selected authors from the selected categories.


Valid extension inputs

category
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:
<category>Category1</category>
<category>Category2</category>
<category>Category3</category>
author
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:
<author>Author1</author>
<author>Author2</author>
<author>Author3</author>
count
This specifies the number of posts shown.
Takes a number (integer) input. If unspecified, it defaults to 5.
For example: <bloglist count=3>
summary
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>
summarylength
This allows you to specify length of the text quoted in characters, if summary=true.
For example: <bloglist summary=true summarylength=300>
type
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>
title
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">
style
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;">
order
This specifies how the post are sorted.
Inputs are date or author. If unspecified, it defaults to date.
For example: <bloglist order=date>
ordertype
This specifies what direction to sort in.
Inputs are descending, ascending. If unspecified, it defaults to descending.
For example: <bloglist ordertype=descending>
timestamp
This specifies whether a timestamp is shown.
Inputs are true or false. If unspecified, it defaults to false.
For example: <bloglist timestamp=true>
seemore
This specifies the URL that the "See More >" link should go to.
For example: <bloglist seemore="http://lyrics.wikia.com">


Other notes

  • If no valid posts are found, the following message will be displayed: "No posts found. Write one!"

See also

Further Help & Feedback

Community content is available under CC-BY-SA unless otherwise noted.