Wiki logos: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
These are the logos used on the wiki (top left of the page). They change randomly on page load. Holiday specific images are loaded from their own smaller pool (see below).
These are the logos used on the wiki (top left of the page), and they're loaded on top of the '''EMULATION GENERAL WIKI''' text image. They change randomly on page load. On holidays there's a 50/50 chance for images themed on that holiday to be loaded from their own smaller pool (see below).


If you would like to add a logo, or replace one with a better version, you can use the template below as a size reference and post a link on the [[Talk:Wiki logos|discussion board.]]
If you would like to add a logo, or replace one with a better version, you can use the template below as a size reference and post a link on the [[Talk:Wiki logos|discussion board.]]


https://emulation.gametechwiki.com/images/logo/Wiki_logo.png
https://emulation.gametechwiki.com/images/logo/Wiki_logo.png https://emulation.gametechwiki.com/images/logo/Wiki_logo_dark.png


== Logos ==
== Logos ==
Line 151: Line 151:
|}
|}


=== Holidays ===
{| class="mw-collapsible mw-collapsed wikitable" style="text-align:center"
{| class="wikitable" style="text-align:center"
|+ Holidays
!colspan="5"|New Years Day
|-
|https://www.gametechwiki.com/logos/Wiki_logo_New_Years_Day_1.png
|https://www.gametechwiki.com/logos/Wiki_logo_New_Years_Day_2.png
|https://www.gametechwiki.com/logos/Wiki_logo_New_Years_Day_3.png
|https://www.gametechwiki.com/logos/Wiki_logo_New_Years_Day_4.png
|https://www.gametechwiki.com/logos/Wiki_logo_New_Years_Day_5.png
|-
!colspan="5"|Groundhog Day
!colspan="5"|Groundhog Day
|-
|-
Line 348: Line 340:
== Code ==
== Code ==
If you have a wiki and want to implement this, here is the code:
If you have a wiki and want to implement this, here is the code:
<syntaxhighlight lang="php" style="width:fit-content;">$day = new DateTime("now", new DateTimeZone('America/New_York'));  
<syntaxhighlight lang="php" style="width:fit-content;">$shiny = rand(1,8192);
if     ($day->format("m-d") == "01-01") { $wgLogo = "../logos/Wiki_logo_New_Years_Day_".rand(1,5).".png";}       #New Years Day
$day = new DateTime("now", new DateTimeZone('America/New_York'));
elseif ($day->format("m-d") == "02-02") { $wgLogo = "../logos/Wiki_logo_Groundhog_Day_".rand(1,5).".png";}      #Groundhog Day
if ($shiny == 1) {$wgLogo = "../logos/Wiki_logo_Shiny_".rand(1,5).".gif";}
elseif ($day->format("m-d") == "02-14") { $wgLogo = "../logos/Wiki_logo_Valentines_Day_".rand(1,5).".png";}      #Valentine's Day
elseif ($shiny >= 4096 and $day->format("m-d") == "02-02") { $wgLogo = "../logos/Wiki_logo_Groundhog_Day_".rand(1,5).".png";}      #Groundhog Day
elseif ($day->format("m-d") == "02-29") { $wgLogo = "../logos/Wiki_logo_Leap_Day_".rand(1,5).".png";}            #Leap Day
elseif ($shiny >= 4096 and $day->format("m-d") == "02-14") { $wgLogo = "../logos/Wiki_logo_Valentines_Day_".rand(1,5).".png";}      #Valentine's Day
elseif ($day->format("m-d") == "03-17") { $wgLogo = "../logos/Wiki_logo_Saint_Patricks_Day_".rand(1,5).".png";}  #Saint Patrick's Day
elseif ($shiny >= 4096 and $day->format("m-d") == "02-29") { $wgLogo = "../logos/Wiki_logo_Leap_Day_".rand(1,5).".png";}            #Leap Day
elseif ($day->format("m-d") == "04-01") { $wgLogo = "../logos/Wiki_logo_April_Fools_Day_".rand(1,5).".png";}    #April Fool's Day
elseif ($shiny >= 4096 and $day->format("m-d") == "03-17") { $wgLogo = "../logos/Wiki_logo_Saint_Patricks_Day_".rand(1,5).".png";}  #Saint Patrick's Day
elseif ($day->format("m-d") == "05-05") { $wgLogo = "../logos/Wiki_logo_Cinco_de_Mayo_".rand(1,5).".png";}      #Cinco de Mayo
elseif ($shiny >= 4096 and $day->format("m-d") == "04-01") { $wgLogo = "../logos/Wiki_logo_April_Fools_Day_".rand(1,5).".png";}    #April Fool's Day
elseif ($day->format("m-d") == "07-04") { $wgLogo = "../logos/Wiki_logo_Independence_Day_".rand(1,5).".png";}    #Independence Day
elseif ($shiny >= 4096 and $day->format("m-d") == "05-05") { $wgLogo = "../logos/Wiki_logo_Cinco_de_Mayo_".rand(1,5).".png";}      #Cinco de Mayo
elseif ($day->format("m-d") == "10-31") { $wgLogo = "../logos/Wiki_logo_Halloween_".rand(1,5).".png";}          #Halloween
elseif ($shiny >= 4096 and $day->format("m-d") == "07-04") { $wgLogo = "../logos/Wiki_logo_Independence_Day_".rand(1,5).".png";}    #Independence Day
elseif ($day->format("m-d") == "10-31") { $wgLogo = "../logos/Wiki_logo_Veterans_Day_".rand(1,5).".png";}        #Veterans Day
elseif ($shiny >= 4096 and $day->format("m-d") == "10-31") { $wgLogo = "../logos/Wiki_logo_Halloween_".rand(1,5).".png";}          #Halloween
elseif ($day->format("m-d") == "11-05") { $wgLogo = "../logos/Wiki_logo_Guy_Fawkes_Night_".rand(1,5).".png";}    #Guy Fawkes Night
elseif ($shiny >= 4096 and $day->format("m-d") == "10-31") { $wgLogo = "../logos/Wiki_logo_Veterans_Day_".rand(1,5).".png";}        #Veterans Day
elseif ($day->format("m-d") == "12-25") { $wgLogo = "../logos/Wiki_logo_Christmas_Eve_".rand(1,5).".png";}      #Christmas Eve
elseif ($shiny >= 4096 and $day->format("m-d") == "11-05") { $wgLogo = "../logos/Wiki_logo_Guy_Fawkes_Night_".rand(1,5).".png";}    #Guy Fawkes Night
elseif ($day->format("m-d") == "12-25") { $wgLogo = "../logos/Wiki_logo_Christmas_".rand(1,5).".png";}          #Christmas
elseif ($shiny >= 4096 and $day->format("m-d") == "12-25") { $wgLogo = "../logos/Wiki_logo_Christmas_Eve_".rand(1,5).".png";}      #Christmas Eve
elseif ($day->format("m-d") == "12-26") { $wgLogo = "../logos/Wiki_logo_Boxing_Day_".rand(1,5).".png";}          #Boxing Day
elseif ($shiny >= 4096 and $day->format("m-d") == "12-25") { $wgLogo = "../logos/Wiki_logo_Christmas_".rand(1,5).".png";}          #Christmas
elseif ($day->format("m-d") == "12-31") { $wgLogo = "../logos/Wiki_logo_New_Years_Eve_".rand(1,5).".png";}      #New Years Eve
elseif ($shiny >= 4096 and $day->format("m-d") == "12-26") { $wgLogo = "../logos/Wiki_logo_Boxing_Day_".rand(1,5).".png";}          #Boxing Day
elseif ($day->format('m-d') == date("m-d", strtotime("first sunday of february"))) { $wgLogo = "../logos/Wiki_logo_SuperbOwl_".rand(1,5).".png";}       #Super Bowl
elseif ($shiny >= 4096 and $day->format("m-d") == "12-31") { $wgLogo = "../logos/Wiki_logo_New_Years_Eve_".rand(1,5).".png";}      #New Years Eve
elseif ($day->format('m-d') == date("m-d", strtotime("third monday of february"))) { $wgLogo  = "../logos/Wiki_logo_Presidents_Day_".rand(1,5).".png";} #President's Day
elseif ($shiny >= 4096 and $day->format('m-d') == date("m-d", strtotime("third monday of january"))) { $wgLogo = "../logos/Wiki_logo_MLK_".rand(1,5).".png";}               #MLK Jr. Day
elseif ($day->format('m-d') == date("m-d", easter_date() -4060800)) { $wgLogo  = "../logos/Wiki_logo_Mardi_Gras_".rand(1,5).".png";}                     #Mardi Gras
elseif ($shiny >= 4096 and $day->format('m-d') == date("m-d", strtotime("first sunday of february"))) { $wgLogo  = "../logos/Wiki_logo_SuperbOwl_".rand(1,5).".png";}      #Super Bowl
elseif ($day->format('m-d') == date("m-d", easter_date())) { $wgLogo  = "../logos/Wiki_logo_Easter_".rand(1,5).".png";}                                 #Easter
elseif ($shiny >= 4096 and $day->format('m-d') == date("m-d", strtotime("third monday of february"))) { $wgLogo  = "../logos/Wiki_logo_Presidents_Day_".rand(1,5).".png";}  #President's Day
elseif ($day->format('m-d') == date("m-d", strtotime("last monday of may"))) { $wgLogo  = "../logos/Wiki_logo_Memorial_Day_".rand(1,5).".png";}         #Memorial Day
elseif ($shiny >= 4096 and $day->format('m-d') == date("m-d", easter_date() -4060800)) { $wgLogo  = "../logos/Wiki_logo_Mardi_Gras_".rand(1,5).".png";}                     #Mardi Gras
elseif ($day->format('m-d') == date("m-d", strtotime("second sunday of may"))) { $wgLogo  = "../logos/Wiki_logo_Mothers_Day_".rand(1,5).".png";}        #Mothers Day
elseif ($shiny >= 4096 and $day->format('m-d') == date("m-d", easter_date())) { $wgLogo  = "../logos/Wiki_logo_Easter_".rand(1,5).".png";}                                 #Easter
elseif ($day->format('m-d') == date("m-d", strtotime("third sunday of june"))) { $wgLogo  = "../logos/Wiki_logo_Fathers_Day_".rand(1,5).".png";}         #Fathers Day
elseif ($shiny >= 4096 and $day->format('m-d') == date("m-d", strtotime("last monday of may"))) { $wgLogo  = "../logos/Wiki_logo_Memorial_Day_".rand(1,5).".png";}         #Memorial Day
elseif ($day->format('m-d') == date("m-d", strtotime("first monday of september"))) { $wgLogo  = "../logos/Wiki_logo_Labor_Day_".rand(1,5).".png";}      #Labor Day
elseif ($shiny >= 4096 and $day->format('m-d') == date("m-d", strtotime("second sunday of may"))) { $wgLogo  = "../logos/Wiki_logo_Mothers_Day_".rand(1,5).".png";}         #Mothers Day
elseif ($day->format('m-d') == date("m-d", strtotime("fourth thursday of november"))) { $wgLogo  = "../logos/Wiki_logo_Thanksgiving_".rand(1,5).".png";} #Thanksgiving
elseif ($shiny >= 4096 and $day->format('m-d') == date("m-d", strtotime("third sunday of june"))) { $wgLogo  = "../logos/Wiki_logo_Fathers_Day_".rand(1,5).".png";}        #Fathers Day
else {$wgLogo  = "../logos/Wiki_logo_".rand(1,122).".png";}</syntaxhighlight>
elseif ($shiny >= 4096 and $day->format('m-d') == date("m-d", strtotime("first monday of september"))) { $wgLogo  = "../logos/Wiki_logo_Labor_Day_".rand(1,5).".png";}     #Labor Day
elseif ($shiny >= 4096 and $day->format('m-d') == date("m-d", strtotime("fourth thursday of november"))) { $wgLogo  = "../logos/Wiki_logo_Thanksgiving_".rand(1,5).".png";} #Thanksgiving
else {$wgLogo  = "../logos/Wiki_logo_".rand(1,131).".png";}</syntaxhighlight>
For a version that changes daily, see [https://emulation.gametechwiki.com/index.php?title=Wiki_logos&oldid=139740#Code here.]
For a version that changes daily, see [https://emulation.gametechwiki.com/index.php?title=Wiki_logos&oldid=139740#Code here.]


__NOINDEX__
__NOINDEX__