Template:Cite blog

From GodWiki
Revision as of 18:46, 16 November 2019 by Djonni (talk | contribs) (This should implement automatic title selection of all blog posts in up to now using title=auto.)
Jump to: navigation, search

Godville Blog 

[view] [edit] [history] [refresh]
📚 Documentation

Description

A convenience template for citing or referencing Godville Blog posts in Godwiki articles.

Usage

Simply provide the number of the blog post being referenced, and the mention will be formatted and linked to that post. If you omit the post number, it will create a general link to the blog.

Parameters

First unnamed parameter
The blog post number.
Second unnamed parameter
The blog post name, if you want it displayed in the citation text. If you set the title to auto, the template will use a list of blog titles it knows to automatically insert the correct title for that blog. See more below.
|page=page number
If supplied, the link will link to the specified page of comments, and the citation text will include a reference to comments page specified.

Auto titling

If you set the second parameter to auto (examples below), the template will use the correct title for the blog, if known. If the title is displayed as "(title not found)", you can still set the title for the citation manually.

When a new blog is published, the title needs to be added to the template's list before if can be used automatically. This isn't difficult to do! You can try to do it yourself, or if you're not confident you understand how the template works, or your change breaks the template (preview and look at the examples below before saving), you can ask for someone to do the update for you at the Help:Requests page, and someone who's confident with templates will make the change for you.

Examples

Wikicode Renders as
{{Cite blog|89|Bingo!}} Godville Blog, post 89: Bingo!
{{Cite blog|99|auto}} Godville Blog, post 99: Little by Little
{{Cite blog|117}} Godville Blog, post 117
{{Cite blog}} Godville Blog
{{Cite blog|9999|auto}} Godville Blog, post 9999: (title not found)

The template is especially useful in citations (hence the name).

This code
Strange things are afoot in the world of Godville!<ref>{{Cite blog|1|auto}}</ref>

==References==
<references/>
will be presented as

Strange things are afoot in the world of Godville![1]

References