Title: Swissunihockey Web Components
Author: swissunihockeyit
Published: <strong>December 1, 2026</strong>
Last modified: December 1, 2026

---

Search plugins

![](https://ps.w.org/swissunihockey-web-components/assets/banner-772x250.png?rev
=3836770)

![](https://ps.w.org/swissunihockey-web-components/assets/icon-256x256.png?rev=3836770)

# Swissunihockey Web Components

 By [swissunihockeyit](https://profiles.wordpress.org/swissunihockeyit/)

[Download](https://downloads.wordpress.org/plugin/swissunihockey-web-components.1.1.0.zip)

 * [Details](https://wordpress.org/plugins/swissunihockey-web-components/#description)
 * [Reviews](https://wordpress.org/plugins/swissunihockey-web-components/#reviews)
 *  [Installation](https://wordpress.org/plugins/swissunihockey-web-components/#installation)
 * [Development](https://wordpress.org/plugins/swissunihockey-web-components/#developers)

 [Support](https://wordpress.org/support/plugin/swissunihockey-web-components/)

## Description

Swissunihockey Web Components allows floorball clubs to integrate game schedules,
results, rankings and other information into their WordPress websites. Data is retrieved
from external services provided by swiss unihockey when a page is loaded.

The required JavaScript and CSS files are included in the plugin. No manual file
uploads or manual integration of script tags are required.

#### Features

 * League games and rankings
 * Team games and club games
 * Game schedules grouped by club teams
 * Mobiliar top scorers
 * Team overviews and team details
 * Player lists, team statistics and spectator statistics
 * Automatic default season selection with a season change in July
 * Automatic league assignment based on a team ID for supported components

#### Required IDs

Club IDs (club-id), team IDs (team-id), league IDs (league), game class IDs (game-
class) and group names (group) can be found using the [official ID finder](https://www.swissunihockey.ch/de/administration/services/vereins-ids-finder-fuer-web-component/).

#### Using the Swissunihockey block

No shortcode knowledge is required when using the native Swissunihockey block.

 1. Open a page or post in the WordPress block editor.
 2. Click the plus (+) button to add a new block.
 3. Search for “Swissunihockey”.
 4. Select the Swissunihockey Web Components block.
 5. Choose the desired web component.
 6. Enter your club ID, team ID or other required parameters.
 7. Save or publish the page.

The selected web component will be displayed automatically on your website.

#### Shortcode Generator

Go to Settings > Swissunihockey to generate and copy shortcodes without writing 
them manually.

#### Theme Compatibility

Some WordPress themes restrict the available blocks in the editor.

If the Swissunihockey block or the standard Shortcode block is missing:

 1. Go to Settings > Swissunihockey.
 2. Enable the theme compatibility option.
 3. Save your settings.
 4. Reload the WordPress editor.

This option supports themes that restrict blocks through the standard WordPress 
PHP filter. It may not resolve all custom editor restrictions.

#### Using Shortcodes

Add a Shortcode block in the WordPress editor and use one of the following examples.
Replace the example IDs with the IDs of your club or team.

 1. League games (uniho-league-games)
 2. [swissunihockey component=”uniho-league-games” team-id=”429494″ season=”2025″]

Alternatively, specify the league, game class and group:

    ```
    [swissunihockey component="uniho-league-games" league="3" game-class="21" group="Gruppe 1" season="2025"]
    ```

Attributes: team-id, game-class, league, season, group.

 1. Team games by club (uniho-club-team-games)
 2. [swissunihockey component=”uniho-club-team-games” club-id=”372″ season=”2025″ page-
    size=”6″]

Attributes: club-id, season, page-size.

 1. Games of an individual team (uniho-team-games)
 2. [swissunihockey component=”uniho-team-games” team-id=”429626″ season=”2025″ page-
    size=”5″]

Attributes: team-id, season, page-size.

 1. Club games (uniho-club-games)

Displays the games of a club in a weekly overview.

    ```
    [swissunihockey component="uniho-club-games" club-id="467" season="2025"]
    ```

Attributes: club-id, season.

 1. Rankings (uniho-ranking)
 2. [swissunihockey component=”uniho-ranking” team-id=”429494″ season=”2025″]

Alternatively:

    ```
    [swissunihockey component="uniho-ranking" league="3" game-class="21" group="Gruppe 1" season="2025" view="full"]
    ```

Attributes: team-id, season, league, game-class, group, view. The default value 
for view is full.

 1. Mobiliar top scorers (uniho-mobiliar-topscorer)
 2. [swissunihockey component=”uniho-mobiliar-topscorer” club-id=”463845″ season=”2025″]

Without a club filter:

    ```
    [swissunihockey component="uniho-mobiliar-topscorer" season="2025"]
    ```

Attributes: season, club-id. The additionally registered view-type attribute is 
not evaluated by the current React implementation. The API request uses table as
its view type.

 1. Team overview (uniho-teams)
 2. [swissunihockey component=”uniho-teams” mode=”by_club” club-id=”467″ season=”2025″]

Attributes: team-id, mode, season, club-id, league, game-class.

 1. Team details (uniho-team)
 2. [swissunihockey component=”uniho-team” team-id=”429494″]

Attributes: team-id.

 1. Player list (uniho-team-players)
 2. [swissunihockey component=”uniho-team-players” team-id=”429494″]

Attributes: team-id.

 1. Team statistics (uniho-team-statistics)
 2. [swissunihockey component=”uniho-team-statistics” team-id=”429494″]

Attributes: team-id.

 1. Spectator statistics (uniho-team-visitors)
 2. [swissunihockey component=”uniho-team-visitors” team-id=”429494″ season=”2025″]

The team ID is used to determine the league and game class for the spectator statistics.

Attributes: team-id, season, league, game-class.

### External Services

This plugin relies on external services provided by swiss unihockey to display sports
data.

Requests are made directly from the visitor’s browser when an embedded component
is loaded. Depending on the component, the transmitted data may include club IDs,
team IDs, league IDs, game class IDs, seasons, group names and query parameters.

When an HTTP request is made, the respective server also receives the visitor’s 
IP address and standard browser and HTTP information as a technical requirement 
of the connection.

 * https://wc.swissunihockey.ch/ – Provides API access to game schedules, rankings,
   top scorers and team data.
 * https://myapp.swissunihockey.ch/ – Destination of links to additional sports 
   information. A connection to this service is established when a visitor opens
   one of these links.

Service provider: swiss unihockey, https://www.swissunihockey.ch/.

Privacy policy: https://www.swissunihockey.ch/de/service/datenschutz

Terms of use for external services: https://www.swissunihockey.ch/de/administration/
services/webmaster/

### Source Code

The web components are based on React and are built using TypeScript and Vite. The
compiled JavaScript and CSS files are included in the plugin.

The public source code of the included web components is available at:

https://github.com/swissunihockey/swissunihockey-webcomponents

#### Build Instructions

The web components can be built using Node.js and npm.

 1. Clone the web components repository.
 2. Open the React project directory.
 3. Run `npm ci`.
 4. Run `npm run build:wordpress`.
 5. Copy the generated JavaScript and CSS files from
     the dist-wordpress directory 
    into the assets directory of the WordPress plugin.

The WordPress-specific build uses the React and
 React DOM libraries provided by
WordPress instead of bundling separate copies of these libraries.

For standalone installations outside WordPress,
 run `npm run build`.

### Credits

Original development of the WordPress plugin: Markus Schenardi (Schenardi Consulting,
Head of Club Administration).

## Screenshots

[⌊Add components using shortcode blocks.⌉⌊Add components using shortcode blocks.⌉[

Add components using shortcode blocks.

[⌊League standings with team logos and statistics.⌉⌊League standings with team logos
and statistics.⌉[

League standings with team logos and statistics.

[⌊League and club fixtures with team selection.⌉⌊League and club fixtures with team
selection.⌉[

League and club fixtures with team selection.

## Blocks

This plugin provides 1 block.

 *   Swissunihockey Web Components Display swiss unihockey fixtures, standings and
   statistics.

## Installation

 1. Open Plugins > Add New in your WordPress dashboard.
 2. Search for Swissunihockey Web Components.
 3. Install and activate the plugin.
 4. If required, open Settings > Swissunihockey and configure the default season.
 5. Open a page or post in the WordPress editor.
 6. Add the Swissunihockey block or use a standard Shortcode block.
 7. Configure the desired web component and enter the required IDs.
 8. Save or publish the page and verify that the component is displayed correctly.

If the Swissunihockey block is not available, check the theme compatibility option
under Settings > Swissunihockey.

The plugin can also be installed manually using a ZIP file via Plugins > Add New
> Upload Plugin.

## FAQ

### How do I specify the season?

Use the starting year of the season. For example, the value for the 2025/26 season
is 2025.

### Do I need to specify the season in every shortcode?

No. For components that support the season attribute, the plugin uses the default
season configured under Settings > Swissunihockey.

If no default season is configured, the plugin uses the previous calendar year from
January to June and the current calendar year from July to December.

A valid season explicitly specified in a shortcode takes precedence over the default
season.

### Do I need to specify the league and game class if I know the team ID?

For league games, rankings, team overviews and spectator statistics, missing assignments
can be determined automatically using the team ID.

### What does page-size mean?

This attribute defines the number of games displayed per page in supported game 
overviews.

### Can I use underscores instead of hyphens?

Yes. For example, team_id and team-id are treated identically.

### Do I need an API key?

The plugin does not require users to enter an API key. Displaying the components
requires the external services to be accessible and authorised for the respective
website.

### Why is no data displayed?

Check the IDs, season, shortcode and availability of the external services. If necessary,
check the browser console for JavaScript or CORS errors.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Swissunihockey Web Components” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ swissunihockeyit ](https://profiles.wordpress.org/swissunihockeyit/)

[Translate “Swissunihockey Web Components” into your language.](https://translate.wordpress.org/projects/wp-plugins/swissunihockey-web-components)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/swissunihockey-web-components/),
check out the [SVN repository](https://plugins.svn.wordpress.org/swissunihockey-web-components/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/swissunihockey-web-components/)
by [RSS](https://plugins.trac.wordpress.org/log/swissunihockey-web-components/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1.0

 * Added a native dynamic block for all eleven components.
 * Added a shortcode generator in plugin settings.
 * Added opt-in compatibility with PHP-based block allowlists.
 * Existing shortcodes and web component assets remain unchanged.

#### 1.0.0

 * Initial release for the WordPress Plugin Directory.
 * Support for eleven web components using shortcodes.
 * Local integration of JavaScript and CSS files.
 * Configurable default season.
 * Restriction to supported web components and attributes.

## Meta

 *  Version **1.1.0**
 *  Last updated **8 minutes ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.5 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [floorball](https://wordpress.org/plugins/tags/floorball/)[ranking](https://wordpress.org/plugins/tags/ranking/)
   [sports](https://wordpress.org/plugins/tags/sports/)[unihockey](https://wordpress.org/plugins/tags/unihockey/)
 *  [Advanced View](https://wordpress.org/plugins/swissunihockey-web-components/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/swissunihockey-web-components/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/swissunihockey-web-components/reviews/)

## Contributors

 *   [ swissunihockeyit ](https://profiles.wordpress.org/swissunihockeyit/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/swissunihockey-web-components/)