m (Bot: Adding be:Даведка:Блог/Bloglist) Tag: Help |
m (Reverted edits by Plover-bot (wall | block) to last version by Cal-Boy) |
||
Line 112: | Line 112: | ||
{{Help and feedback section}} |
{{Help and feedback section}} |
||
− | [[be:Даведка:Блог/Bloglist]] |
||
[[de:Hilfe:Blog-Artikel/Bloglist]] |
[[de:Hilfe:Blog-Artikel/Bloglist]] |
||
[[es:Ayuda:Blogs/Lista de Blogs]] |
[[es:Ayuda:Blogs/Lista de Blogs]] |
||
Line 122: | Line 121: | ||
[[uk:Довідка:Блог/Bloglist]] |
[[uk:Довідка:Блог/Bloglist]] |
||
[[zh:Help:博客列表]] |
[[zh:Help:博客列表]] |
||
− | |||
[[Category:Help|{{PAGENAME}}]] |
[[Category:Help|{{PAGENAME}}]] |
Revision as of 01:05, 15 October 2017
- This extension is enabled by default on Fandom.
The bloglist feature allows you to embed a list of blogs within a normal article.
Step-by-Step
- Decide which page you'd like to display the list of blogs on, and open that page for editing.
- Switch to source mode and enter the following code on the page:
<bloglist/>
- Save the page and enjoy your new bloglist - it will display all of the recent blog posts on the wiki, and look 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. Though this may seem complex at first, you can specify up to ten parameters as you wish. Those you don't specify will use the 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>News</category> <category>Opinion</category> <author>User1</author> <author>User2</author> <author>User3</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 any posts by the selected authors from the selected categories.
List of parameters
- 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>
- 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 categorized and uncategorized posts.
- To use it type:
<category>Category1</category> <category>Category2</category> <category>Category3</category>
- count
- This specifies the number of posts to query.
- Takes a number input. If unspecified, it defaults to 5.
- For example:
<bloglist count=3>
- displaycount
- This specifies the number of posts to display. Normally this shouldn't be used, unless there is some reason you want to query the database for more results than are actually shown on the page.
- Takes a number input. If unspecified, it defaults to 5.
- For example:
<bloglist displaycount=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
orfalse
, 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
orplain
. If unspecified, it defaults tobox
.Box
will include the "Create Blog Post" button at the top of the list and the "See More >" link at the bottom by default.box
- places the listing in a pre-stylized box.plain
- is just the list without any styling.
- For example:
<bloglist type=plain>
- title
- This specifies the title when posts are shown with
type=box
. If it uses multiple words, the text must be written in quote marks. - For example:
<bloglist title="Evil draws close">
- order
- This specifies how the post are sorted.
- Inputs are
date
,author
, orcomments
. If unspecified, it defaults to date. - For example:
<bloglist order=author>
- ordertype
- This specifies what direction to sort in.
- Inputs are
desc
(meaning "descending") orasc
(meaning "ascending"). If unspecified, it defaults to descending order. - For example:
<bloglist ordertype=desc>
- create_timestamp
- Allows for only showing posts that have been created more recently than a specified date.
- Input is a timestamp of the form YYYYMMDDHHMMSS (year, month, day, hours, minutes, seconds)
- For example:
<bloglist create_timestamp=20140101000000>
- timestamp
- Allows for only showing posts that have been edited more recently than a specified date.
- Input is a timestamp of the form YYYYMMDDHHMMSS (year, month, day, hours, minutes, seconds)
- For example:
<bloglist timestamp=20140101000000>
- 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
- Browse and search other help pages at Help:Contents
- Check Fandom Community Central for sources of further help and support
- Check Contacting Fandom for how to report any errors or unclear steps in this article