PHP code example of open-csp / w-s-slots

1. Go to this page and download the library: Download open-csp/w-s-slots library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

open-csp / w-s-slots example snippets


    wfLoadExtension( 'WSSlots' );
    

$wgWSSlotsDefinedSlots = [
    "example" => [
        "content_model" => "wikitext",
        "slot_role_layout" => [
            "display" => "none",
            "region" => "center",
            "placement" => "append"
        ]
    ]
];

/wiki/MyMultislotPage?action=rawslot&slot=someslot