Help:Extension:CampaignEvents/Collaboration list/Transclusion
The Collaboration List is a global list of events and a local list of WikiProjects on a given wiki (see examples on English Wikipedia and Spanish Wikipedia. It is available via Special:AllEvents on any wiki that has the CampaignEvents extension enabled.
You can embed the Collaboration List on any wiki page, if the CampaignEvents extension is enabled on that wiki. To do this, you transclude the Collaboration List on a wiki page. You can also choose to customize the Collaboration List through URL parameters, if you want. For example, you can choose to only display a certain number of events or to add formatting. You can find more details on customization in the "Examples" section below.
Benefits of transcluding the Collaboration List on a wiki page
[edit]There are many benefits of transcluding the Collaboration List on a wiki page, including:
- You can add an event calendar to a wiki page that updates automatically.
- You can make a wiki page feel more communal and engaging with a list of events/WikiProjects.
- You can help people find events and/or WikiProjects that may interest them.
- You can support other people organizing collaborative activities on the wikis.
- You can encourage editors to improve information about WikiProjects on Wikidata.
To transclude the Collaboration List on a wiki page:
- First, ensure you are on a wiki that has the CampaignEvents extension enabled (see Deployment status).
- Go to a wiki page and click Edit.
- Use the source editor, and type: {{Special:AllEvents}}
- Add any customizations you want (see below for some examples).
- Publish changes.
Check out these instructional videos to watch how to transclude the Collaboration List on a wiki page and set customizations.
Below, we have provided some examples that can help you get started transcluding the Collaboration List on a wiki page. However, this is just a short list of ideas. To get complete instructions and examples, you can visit the Transclusion page.
Applying filters
[edit]Show events for French Wikipedia, and include events for "all wikis"
{{Special:AllEvents|wpFilterWikis=frwiki|wpIncludeAllWikis=1}}
Show events for French Wikipedia, and exclude events for "all wikis"
{{Special:AllEvents|wpFilterWikis=frwiki|wpIncludeAllWikis=0}}
Show events for the topic Philosophy and Religion
{{Special:AllEvents|wpFilterTopics=philosophy-and-religion}}
Show online events only
{{Special:AllEvents|wpMeetingType=1}}
Show in person events only
{{Special:AllEvents|wpMeetingType=2}}
Show hybrid (online and in person events) only
{{Special:AllEvents|wpMeetingType=3}}
Show events within a specific date range
The accepted format for start and end date is yyyy-mm-dd
{{Special:AllEvents|wpStartDate=20220101|wpEndDate=20221212}}
Show events that have the word 'Summer' in the title
Note that this is case-sensitive
{{Special:AllEvents|wpSearch=Summer}}
Style & formatting
[edit]Display a maximum of 5 events
{{Special:AllEvents|limit=5}}
Add a border
<div style="border: 1px solid gray">{{Special:AllEvents}}}</div>
No padding and a max width of 100%
<div style="border: 1px solid gray">{{Special:AllEvents}}</div>
Padding:1em AND max-width: 50%
<div style="border: 1px solid gray; padding: 1em; max-width: 50%;">{{Special:AllEvents}}</div>
Padding:1em AND max-width: 100%
<div style="border: 1px solid gray; padding: 1em; max-width: 100%;">{{Special:AllEvents}}</div>
Transcluding the Communities tab
[edit]If you transclude the Communities tab, you show a list of the WikiProjects on the local wiki.
{{Special:AllEvents|tab=communities}}