Difference between revisions of "Template:Cite blog"

From GodWiki
Jump to navigation Jump to search
m (Adding blog title parameter)
m (Missed full colon.)
Line 1: Line 1:
[https://godvillegame.com/blog/{{#if: {{{1|}}}|post/{{{1}}} Godville Blog, Post {{{1}}}|<nowiki/> Godville Blog}}{{#if: {{{2|}}}| ''{{{2}}}''|}}]<noinclude>{{doc}}[[Category:Templates|{{PAGENAME}}]]</noinclude>
[https://godvillegame.com/blog/{{#if: {{{1|}}}|post/{{{1}}} Godville Blog, Post {{{1}}}|<nowiki/> Godville Blog}}{{#if: {{{2|}}}|: ''{{{2}}}''|}}]<noinclude>{{doc}}[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 15:00, 31 October 2018

Godville Blog

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


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


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.


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.


Wikicode Renders as
{{Cite blog|89|Bingo!}} [https://godvillegame.com/blog/post/89 Godville Blog, Post 89
{{Cite blog|99|auto}} [https://godvillegame.com/blog/post/99 Godville Blog, Post 99
{{Cite blog|117}} Godville Blog, Post 117
{{Cite blog}} Godville Blog
{{Cite blog|9999|auto}} [https://godvillegame.com/blog/post/9999 Godville Blog, Post 9999

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>

will be presented as

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


  1. [https://godvillegame.com/blog/post/1 Godville Blog, Post 1