Difference between revisions of "Widget:Logo"

From Hackerspace ACKspace
Jump to: navigation, search
m (allow relative url for logo)
(since colon is not allowed anymore: URLs will be without protocol and may well be relative)
Line 8: Line 8:
  
 
  <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
 
  <nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
|image=https://ackspace.nl/w/images/e/e9/ACKsmass_logo.png
+
|image=/w/images/e/e9/ACKsmass_logo.png
 
|width=600px
 
|width=600px
 
|height=200px
 
|height=200px
Line 17: Line 17:
 
This will give the following result:<br/>
 
This will give the following result:<br/>
 
{{#widget:{{PAGENAME}}
 
{{#widget:{{PAGENAME}}
|image=https://ackspace.nl/w/images/e/e9/ACKsmass_logo.png
+
|image=/w/images/e/e9/ACKsmass_logo.png
 
|width=600px
 
|width=600px
 
|height=200px
 
|height=200px
Line 23: Line 23:
 
|float=right
 
|float=right
 
}}<br/>
 
}}<br/>
Note that '''image''' is mandatory, the rest is optional. Also, you must provide a unit for the sizes (i.e. px, %, etc.)
+
'''Notes'''
 +
* '''image''' is mandatory, the rest is optional.
 +
*: it also must be written without protocol since colon (''':''') is not allowed, and may be relative, for example: ''//ackspace.nl/w/images/e/e9/ACKsmass_logo.png'' or ''/w/images/e/e9/ACKsmass_logo.png''
 +
* You must provide a unit for the sizes (i.e. px, %, etc.)
  
 
== Copy to your site ==
 
== Copy to your site ==

Revision as of 11:59, 24 February 2016

This widget creates an animated themed ACKspace logo.

Created by xopr

Using this widget

To insert this widget, use the following code:

{{#widget:Logo
|image=/w/images/e/e9/ACKsmass_logo.png
|width=600px
|height=200px
|padding=8px
|float=right
}}

This will give the following result:

Notes

  • image is mandatory, the rest is optional.
    it also must be written without protocol since colon (:) is not allowed, and may be relative, for example: //ackspace.nl/w/images/e/e9/ACKsmass_logo.png or /w/images/e/e9/ACKsmass_logo.png
  • You must provide a unit for the sizes (i.e. px, %, etc.)

Copy to your site

To use this widget on your site, just install MediaWiki Widgets extension and copy full source code of this page to your wiki as Widget:Logo article.