Difference between revisions of "Admin:notes"

From Fancyclopedia 3
Jump to navigation Jump to search
m (Text replacement - "http:" to "https:")
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
8/19 set $wgEnableUploads = true;
 
 
Did a file upload (image of Bill Williams) as BW.jpg.  It wound up as <nowiki>wiki.fancyclopedia.org/images/a/aa/BW.jpg</nowiki>
 
 
Inserted it into the page as <nowiki>[[File:BW.jpg|thumb|Bill Williams]]</nowiki>.  Can control size!
 
 
The a/aa/ bit in the location is a hashed pair of directory levels to handle wikis with large number of files.  It's predictable, but not in a useful way.  See doc on $wgHashedUploadDirectory.
 
-------------------------
 
 
8/18: String manipulation: <br> https://www.mediawiki.org/wiki/Extension:StringFunctions
 
8/18: String manipulation: <br> https://www.mediawiki.org/wiki/Extension:StringFunctions
 
-------------------------
 
-------------------------
Line 12: Line 4:
 
----------------
 
----------------
 
8/18: <img... used in Template:FancyImage is raw HTML  Code is<br>
 
8/18: <img... used in Template:FancyImage is raw HTML  Code is<br>
<nowiki><IMG src="http://files.fancyclopedia.org/{{#replace:{{{1}}}| |%20}}" ></nowiki><br>
+
<nowiki><IMG src="https://files.fancyclopedia.org/{{#replace:{{{1}}}| |%20}}" ></nowiki><br>
 
The last bit appears to change spaces into '%20'
 
The last bit appears to change spaces into '%20'
  
Line 19: Line 11:
 
8/17: A random photo displays in browser with URL
 
8/17: A random photo displays in browser with URL
  
<nowiki>http://files.fancyclopedia.org/Ted%20Johnstone/normal%20David%20McDaniel-02.jpg</nowiki>
+
<nowiki>https://files.fancyclopedia.org/Ted%20Johnstone/normal%20David%20McDaniel-02.jpg</nowiki>
  
 
What works in FancyImage?
 
What works in FancyImage?
Line 25: Line 17:
 
* <nowiki>[[File:Ted Johnstone/normal_David_McDaniel-02.jpg]]</nowiki> ''does not work''
 
* <nowiki>[[File:Ted Johnstone/normal_David_McDaniel-02.jpg]]</nowiki> ''does not work''
 
* <nowiki>[[File:files.fancyclopedia.org/Ted Johnstone/normal_David_McDaniel-02.jpg]]</nowiki> ''does not work''
 
* <nowiki>[[File:files.fancyclopedia.org/Ted Johnstone/normal_David_McDaniel-02.jpg]]</nowiki> ''does not work''
* <nowiki>[[File:http://files.fancyclopedia.org/Ted Johnstone/normal_David_McDaniel-02.jpg]]</nowiki> ''does not work''
+
* <nowiki>[[File:https://files.fancyclopedia.org/Ted Johnstone/normal_David_McDaniel-02.jpg]]</nowiki> ''does not work''
* <nowiki>[[File:http://files.fancyclopedia.org/Ted%20Johnstone/normal_David_McDaniel-02.jpg]]</nowiki> ''does not work''
+
* <nowiki>[[File:https://files.fancyclopedia.org/Ted%20Johnstone/normal_David_McDaniel-02.jpg]]</nowiki> ''does not work''
  
 
----------------
 
----------------

Latest revision as of 12:02, 28 November 2022

8/18: String manipulation:
https://www.mediawiki.org/wiki/Extension:StringFunctions


8/18: Maps extension is enabled in home/fancyclopedia/wiki.fancyclopedia.org/LocalSettings.php right towards the bottom of the file. InteractiveTimeline a couple dozen lines earlier.


8/18: <img... used in Template:FancyImage is raw HTML Code is
<IMG src="https://files.fancyclopedia.org/{{#replace:{{{1}}}| |%20}}" >
The last bit appears to change spaces into '%20'

syntax: <img src="https://www.xyz.com/images/test.jpg" alt="xyz.com" style="width:128px;height:128px;">


8/17: A random photo displays in browser with URL

https://files.fancyclopedia.org/Ted%20Johnstone/normal%20David%20McDaniel-02.jpg

What works in FancyImage?

  • [[File:Ted Johnstone/normal_David_McDaniel-02.jpg]] does not work
  • [[File:files.fancyclopedia.org/Ted Johnstone/normal_David_McDaniel-02.jpg]] does not work
  • [[File:https://files.fancyclopedia.org/Ted Johnstone/normal_David_McDaniel-02.jpg]] does not work
  • [[File:https://files.fancyclopedia.org/Ted%20Johnstone/normal_David_McDaniel-02.jpg]] does not work

8/17: There seems to be a double structure in files.fancyclopedia.org. OTOH, there's just a series of folders under that, each named for the Fancy 3 page the files are associated with. But if you Single-click on the folder in an FTP browser, it takes you to a folder of the same name in a different hierarchy under files.fancyclopedia.org:

  • 1997 TAFF Race --> Fandom/Fanfunds/TAFF/1997 TAFF Race
  • Ted Johnstone --> Fandom/People/Ted Johnstone

What's the point of this? How is it done? (Did someone really create a huge pile of links? Really?)