Jump to content

Generating dynamic content with MediaWiki/2015/W04

From Wikiversity

Yesterday, 19 January 2015 was Edgar Allan Poe's 206th birthday.

I was a day late (as usual) but I didn't need the dollar to Download The Complete Works of Edgar Allan Poe on His Birthday from OpenCulture.com.

Test for Local Article

[edit | edit source]

Using this code:

{{#ifexist: article name | We have [[article name]] at Wikiversity! | Isn't it sad we don't have '''[[article name]]''' at Wikiversity. }}
  • We have Edgar Allan Poe at Wikiversity!
  • Isn't it sad we don't have open culture at Wikiversity.
  • ...add an #ifexist test of your own here...

If it's a blue link, thank the crew. If it's a red link create it and watch what happens!

see mw:Help:Extension:ParserFunctions

Time-sensitive Information

[edit | edit source]

So let's generate our file structure with {{queue}}

4 November 2024

Notice that the link on our main resource pace creates a sub-page for the whole Week and that link is now a blue link because we are active.

EAP Birthdays Through the Ages

[edit | edit source]

The original: {{#time: d F Y | 19 jan 1809 }} Renders:

19 January 1809

Our day, Today

[edit | edit source]
 [[{{FULLPAGENAME}}/{{#expr:{{CURRENTDOW}} -1}}|yesterday]] | [[{{FULLPAGENAME}}/{{CURRENTDOW}}|today]] | [[{{FULLPAGENAME}}/{{#expr:{{CURRENTDOW}} +1}}|tomorrow]] 

renders:

yesterday | today | tomorrow 

Our three-day counter for this week's project.

This Week

[edit | edit source]

2015 Week 4:

notes

[edit | edit source]

It's not as easy as I make it look! Let's talk!