Generating dynamic content with MediaWiki/2015/W04
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
editUsing 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!
Time-sensitive Information
editSo let's generate our file structure with {{queue}}
22 December 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
editThe original: {{#time: d F Y | 19 jan 1809 }} Renders:
19 January 1809
Our day, Today
edit[[{{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- Edgar Allen Poe born this day in 1809.
- A day late -- no dollar needed!
- Better late than never!
- DOW 4 Must be on time.
- Generating dynamic content with MediaWiki/2015/W04/5
notes
editIt's not as easy as I make it look! Let's talk!