Difference between revisions of "MediaWiki:Banner"

From MadaCamp
Jump to: navigation, search
Line 2: Line 2:
  
 
<gallery widths="147" perrow="3">
 
<gallery widths="147" perrow="3">
 +
File:Casa_en_Falafy_banner_02.jpg|Leads to [[Casa en Falafy]]
 +
File:Casa_en_Falafy_banner_01.jpg|Leads to [[Casa en Falafy]]
 
File:Floribis_banner_06.jpg|Leads to [[Floribis]]
 
File:Floribis_banner_06.jpg|Leads to [[Floribis]]
 
File:HomeoPharma_banner_01.png|Leads to [[HomeoPharma]]
 
File:HomeoPharma_banner_01.png|Leads to [[HomeoPharma]]
Line 43: Line 45:
 
* Copy background  
 
* Copy background  
 
* Paste new layer
 
* Paste new layer
* Add text or move text on top. Sans Bold 13 / hinting and antialiasing. Line-spacing -4.0 if multiple lines are used. Position center and 6 pixels down if on top and 4 pixels up if on bottom.
+
* Add text or move text on top. Sans Bold 13 / hinting and antialiasing. Line-spacing -4.0 if multiple lines are used (not in Gimp 2.8.x). Position center and 6 pixels down if on top and 4 pixels up if on bottom.
 
* Save as xcf/png/jpeg/gif
 
* Save as xcf/png/jpeg/gif
 
* Add png, jpg or gif to to array in [[MediaWiki:Common.js]] (image/link-target/preload)
 
* Add png, jpg or gif to to array in [[MediaWiki:Common.js]] (image/link-target/preload)
 
* Clicks are recorded in http://www.madacamp.com/admin/madacamp.com/redirect.txt one p/line in format target|IP|date|HTTP_REFERER: clicked on page|HTTP_USER_AGENT: browser type
 
* Clicks are recorded in http://www.madacamp.com/admin/madacamp.com/redirect.txt one p/line in format target|IP|date|HTTP_REFERER: clicked on page|HTTP_USER_AGENT: browser type

Revision as of 09:25, 29 January 2014

These banners appear in the left column on all pages of the MadaCamp site in a random order and change every 15 seconds:

Creating and adding new banners:

  • Create an 147x85 pixels image in GIMP
  • File:Banner template.xcf
  • Paste in background
  • Select all
  • Select -> Rounded Rectangle -> Radius (12%)
  • Unselect top-left, bottom-left and right.
  • Copy background
  • Paste new layer
  • Add text or move text on top. Sans Bold 13 / hinting and antialiasing. Line-spacing -4.0 if multiple lines are used (not in Gimp 2.8.x). Position center and 6 pixels down if on top and 4 pixels up if on bottom.
  • Save as xcf/png/jpeg/gif
  • Add png, jpg or gif to to array in MediaWiki:Common.js (image/link-target/preload)
  • Clicks are recorded in http://www.madacamp.com/admin/madacamp.com/redirect.txt one p/line in format target|IP|date|HTTP_REFERER: clicked on page|HTTP_USER_AGENT: browser type