GuildWiki has been locked down: anonymous editing and account creation are disabled. Current registered users are unaffected. Leave any comments on the Community Portal.

Template:User birthday/today

From GuildWiki
Jump to: navigation, search

none


Usage[edit source]

Displays users that have their birthday today according to GuildWiki:User birthdays. Displays nothing if no birthday.

Technical Note[edit source]

The way this works is that the birthday page first gets trimmed down left and right with the explodes to find everything that is, consecutively

  • after CURRENTMONTHNAME
  • before |}
  • after CURRENTDAY
  • before the br tag
  • after the double '

That gets the raw text of today's birthday user, provided they are not separated by br tags (use commas instead) and that no extra italics were used.

The "none" thing works by adding another delimiter; the "none" is in position 2 (and thus gets ignored) if a birthday is found, but in position 1 (display) if there isn't.

Now, since this isn't really raw text, but rather raw text formatted for display, the display codes for the link have to be replaced with a "real" link, and that's what the replace does.