Talk:Portal:Main Page/Featured blog

From Bogleheads
Jump to navigation Jump to search

The blog rotates based on the day of the month, as defined by the server. A switch() function defines the day each blog appears (View Source for better formatting). The #switch: function uses the MediaWiki ParserFunctions extension.

{{#switch:{{CURRENTDAY}} <!--- day of month ---> | 1 | 9 | 17 | 26 = {{:Rick Ferri}} | 2 | 10 | 18 | 27 = {{:Mike Piper}} | 3 | 11 | 19 | 28 = {{:Allan Roth}} | 4 | 12 | 20 = {{:Bill Schultheis}} | 5 | 13 | 21 = {{:Larry Swedroe}} | 6 | 14 | 22 | 29 = {{:The Finance Buff}} | 7 | 15 | 23 | 24 | 30 = {{:Vanguard blog}} | 8 | 16 | 25 | 31 | #default = {{:The Bogleheads™ view}} }}

--LadyGeek 19:44, 26 April 2011 (EDT)

Added EmergDoc's The white coat investor, which is now 9 blogs.

{{#switch:{{CURRENTDAY}}<!--- day of month ---> | 1 | 10 | 19 | 28 = {{:Rick Ferri}} | 2 | 11 | 20 | 29 = {{:Mike Piper}} | 3 | 12 | 21 | 30 = {{:Allan Roth}} | 4 | 13 | 22 | 31 = {{:Bill Schultheis}} | 5 | 14 | 23 = {{:Larry Swedroe}} | 6 | 15 | 24 = {{:The Finance Buff}} | 7 | 16 | 25 = {{:Vanguard blog}} | 8 | 17 | 26 = {{:The white coat investor blog}} | 9 | 18 | 27 | #default = {{:The Bogleheads℠ view}} }}

--LadyGeek 21:25, 9 June 2011 (EDT)

Added typo fix (before #default) --LadyGeek 16:20, 27 June 2011 (EDT)