Difference between revisions of "Template:Cite blog"

From GodWiki
Jump to: navigation, search
m (Adding nbsp to adjust for stripped whitespace before "comments")
m (This should implement automatic title selection of all blog posts in up to now using title=auto.)
Line 1: Line 1:
[https://godvillegame.com/blog/{{#if: {{{1|}}}|post/{{{1}}}{{#if: {{{page|}}}|?page{{=}}{{{page}}}}} Godville Blog, post {{{1}}}|<nowiki/> Godville Blog}}{{#if: {{{2|}}}|&#58; <span style="font-style:italic;">{{{2}}}</span>|}}{{#if: {{{page|}}}| &nbsp;comments, page {{{page}}}}}&#8202;]<noinclude>{{doc}}[[Category:Templates|{{PAGENAME}}]][[Category:Linking templates|{{PAGENAME}}]]</noinclude>
+
[https://godvillegame.com/blog/{{#if: {{{1|}}}|post/{{{1}}}{{#if: {{{page|}}}|?page{{=}}{{{page}}}}} {{#ifeq:{{yesno|{{{short|}}}}}|yes||Godville <nowiki />}}Blog, post {{{1}}}|<nowiki/> Godville Blog}}{{#if: {{{2|}}}|&#58; <span style="font-style:italic;">{{#ifeq:{{{2}}}|auto|{{#switch:{{{1}}}
 +
|#default=(title not found)
 +
<!-- Blog titles can be added to this list using the post number. If the URL for the blog entry is https://godvillegame.com/blog/post/1, then that is blog post number 1. If the same title is used for multiple posts, list the numbers together (e.g, 11 and 12 below). This list is only used when title=auto, any other value for title= will be displayed as the title text for the cited entry. Please don't 'correct' this list unless you have double-checked that the blog title is genuinely different to the listed title. :) -->
 +
|1=Greetings!
 +
|2=Keeping you informed
 +
|3=Vox populi
 +
|4=ZPG and PvP
 +
|5=Godville goes mobile
 +
|6=Welcome to Godville!
 +
|7=Pantheons expansion
 +
|8=Pantheons extension
 +
|9= Special artifacts
 +
|10=Special Artifacts
 +
|11|12=Arena Grand Opening
 +
|13=iPad and a whole bunch of goodies
 +
|14=2.0, iPad and GodWiki
 +
|15|16=Pantheons – Newer and Bigger
 +
|17|18=Heroes’ Best Friends
 +
|19|20=Enlarge your accumulator
 +
|21|22=On pets and friends
 +
|23|24=Working through the ideas
 +
|25|26=On recent server access problems
 +
|27|28=Rise and shrine
 +
|28=Haunted News
 +
<!-- There is no blog 29. -->
 +
|30|31=First Temple in Godville
 +
|32|33=Breaking News
 +
|34|35=Fine tuning gameplay
 +
|36|37=Influencing Trading
 +
|38|39=Maintenance Notice
 +
|40=Godville on Android
 +
|41=Becoming a superhero
 +
|42=Opened to Friends
 +
|43=One Year Later
 +
|44=Godville for Android 2.0
 +
|45=Mobile Theming
 +
|46=Eye of the Beholder
 +
|47=Once upon a time
 +
|48=A note about yesterday’s downtime
 +
|49=Just Imagine it
 +
|50=Ideabox 2.0
 +
|51=Black Friday Special
 +
|52=Achievement Unlocked
 +
|53=Analyzing the Guilds
 +
|54=Keeping in Touch
 +
|55=Most Wanted
 +
|56=Technical problems
 +
|57=Mini-Anniversary
 +
|58=Pantheons: Unlimited Edition
 +
|59=Epic Update
 +
|60=Best Pets Forever
 +
|61=Maintenance
 +
|62=Life After Temple
 +
|63=Treasure Hunting
 +
|64=Zombocalypse
 +
|65=DIY
 +
|66=Godville 4 Android 4
 +
|67=A Long Time Ago...
 +
|68=Voting For Good
 +
|69=Windows Phone 8 App
 +
|70=Little Bit Of Everything
 +
|71=Arks and Dungeons
 +
|72=Arkeology
 +
|73=Undead Ahead
 +
|74=Multicolored Dungeons
 +
|75=Holiday Fair
 +
|76=Special Monsters
 +
|77=Spring Refreshments
 +
|78=First Ark
 +
|79=Happy Birthday
 +
|80=Arena 2.0
 +
|81=Glory to the Champions
 +
|82=Pleasing Variations
 +
|83=(Mini)-Questing for Life
 +
|84=Merry Voting
 +
|85=Picturizing Godville
 +
|86=Random News
 +
|87=High Five!
 +
|88=Jack of All Trades
 +
|89=Bingo!
 +
|90=Gone Fishing
 +
|91=Quest for Booty
 +
|92=Godpowerful Holidays
 +
|93=Trail and Catch
 +
|94=ZPG-Arena
 +
|95=To the Gods of Web
 +
|96=Billion Little Things
 +
|97=Six
 +
|98=In Your Eyes
 +
|99=Little by Little
 +
|100=Storm in a Teacup
 +
|101=More News
 +
|102=Let It Snow
 +
|103=Pairs Completed
 +
|104=Seasonal Refreshments
 +
|105=Auto-Discharge
 +
|106=Monster Day
 +
|107=Lucky Seven
 +
|108=Mega Update
 +
|109=Adventure Time
 +
|110=Video Lab
 +
|111=Ice and Snow
 +
|112=On Guilds and More
 +
|113=Map Out
 +
|114=Eight
 +
|115=On Your Privacy
 +
|116=To the Point
 +
|117=Three Things
 +
|118=On the Side
 +
|119=Telegram Bot
 +
|120=Christmas Special
 +
|121=Little News
 +
|122=Bold Move
 +
|123=POIs, Bosses, etc
 +
|124=Realigning the Stars
 +
|125=GOdville Turns 9
 +
|126=Summer Happenings
 +
|127=Poetry & Gathering
 +
|128=Wor(l)dcraft
 +
}}|{{{2}}}}}}}</span>{{#if: {{{page|}}}|<nowiki /> comments, page {{{page}}}}}&#8202;]<noinclude>{{doc}}[[Category:Templates|{{PAGENAME}}]][[Category:Linking templates|{{PAGENAME}}]]</noinclude>

Revision as of 18:46, 16 November 2019

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