Template:RegularEvent: Difference between revisions

From Nottinghack Wiki
Jump to navigation Jump to search
No edit summary
Shane (talk | contribs)
Fix bug, Probably should have tested this somehow...
 
(3 intermediate revisions by 2 users not shown)
Line 13: Line 13:
   ! When
   ! When
   | {{{recurrence}}}
   | {{{recurrence}}}
  |-
  ! Where
  | {{{where|Somewhere in the Space}}}
   |- {{#if:{{{discord|}}} | | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
   |- {{#if:{{{discord|}}} | | style="display: none;" <!-- Hide row if parameter doesn't exist --> }}
   ! Discord
   ! Discord
   | {{{discord}}}
   | {{{discord}}}
|}<includeonly>[[Category:Events]]</includeonly><noinclude>
|}<includeonly>[[Category:Events]] [[Category:Events/Regular Events]]</includeonly><noinclude>
{{clear}}
{{clear}}
==Documentation==
==Documentation==
This template creates a member infobox.  All parameters are optional. The title of the infobox is set from the name of the userpage it is placed on.
This template creates a member infobox.  All parameters are optional. The title of the infobox is set from the name of the userpage it is placed on.
Line 31: Line 35:
|imagewidth=
|imagewidth=
|eventname=
|eventname=
|where=
|recurrence=
|recurrence=
|discord=
|discord=
Line 41: Line 46:
;imagewidth
;imagewidth
:Sets the width of the imagefile, specify the unit (for example 200px).
:Sets the width of the imagefile, specify the unit (for example 200px).
;evetname
;eventname
:Specify the name of the event
:Specify the name of the event
;recurrence
;recurrence
:How often it runs (e.g. first Wednesday of the month)
:How often it runs (e.g. first Wednesday of the month)
;where
:The location in the Hackspace or "Zoom" (probably avoid putting the Zoom link)
;discord
;discord
:The Discord channel, if it has one
:The Discord channel, if it has one

Latest revision as of 16:30, 2 June 2024

RegularEvent
Name
When {{{recurrence}}}
Where Somewhere in the Space
Discord {{{discord}}}

Documentation

This template creates a member infobox. All parameters are optional. The title of the infobox is set from the name of the userpage it is placed on.

Usage

Inserting the following text at the top of your user page and it will produce an information box on your page that gives an overview. All of the arguments are optional and can be written in any order.

If no imagefile is specified the default 'robinhood' image is used.

{{RegularEvent
|imagefile=
|imagewidth=
|eventname=
|where=
|recurrence=
|discord=
}}

Arguments

imagefile
An image, in the format <image name>.<ext>. DO NOT include the [[]] square brackets otherwise the image will display full size.
imagewidth
Sets the width of the imagefile, specify the unit (for example 200px).
eventname
Specify the name of the event
recurrence
How often it runs (e.g. first Wednesday of the month)
where
The location in the Hackspace or "Zoom" (probably avoid putting the Zoom link)
discord
The Discord channel, if it has one