DiceExtension: Difference between revisions
Jump to navigation
Jump to search
(Created page with " Diceroll.php <script lang=php> <?php // Define a function to handle the dice rolling function wfDiceRollParserFunction($parser, $rollString = '') { // Parse the input string (e.g., "2d6") preg_match('/(\d+)d(\d+)/', $rollString, $matches); if (count($matches) !== 3) { return 'Invalid dice notation. Please use the format: XdY'; } $numDice = intval($matches[1]); $numSides = intval($matches[2]); // Roll the dice $total = 0; for...") |
No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
https://tutorialsjoint.com/mediawiki-extension-how-to-develop-custom-extension-in-mediawiki/#:~:text=MediaWiki%20Extension%20%E2%80%93%20How%20to%20develop%20custom%20extension,entrypoint%20check%20for%20the%20same.%20...%20Fler%20objekt | |||
// | |||