Difference between revisions of "ScriptCards Scripts"
From Roll20 Wiki
(→Template: Example Script Name) |
(→Template: Example Script Name) |
||
Line 24: | Line 24: | ||
<span class="mw-customtoggle-SCRIPT_NAME" style="font-size: small; font-weight:normal; color:#003399;">[Expand/Collapse SCRIPT NAME]</span> | <span class="mw-customtoggle-SCRIPT_NAME" style="font-size: small; font-weight:normal; color:#003399;">[Expand/Collapse SCRIPT NAME]</span> | ||
− | === Template: Example Script Name === | + | <span class="mw-customtoggle-SCRIPT_NAME" style="font-size:small; font-weight:normal; color:#003399;">[Expand/Collapse SCRIPT NAME]</span> === Template: Example Script Name === |
− | <div class="mw-collapsible" id="mw-customcollapsible- | + | |
+ | <div class="mw-collapsible" id="mw-customcollapsible-SCRIPT_NAME" style="width: 100%;"> | ||
<pre>AFTER PASTING THE TEMPLATE: DELETE THIS ROW AND BELOW | <pre>AFTER PASTING THE TEMPLATE: DELETE THIS ROW AND BELOW | ||
This template represents some basic syntax to post a script on this page. Please be sure to copy and then paste this entire section at the end of the existing list of scripts. | This template represents some basic syntax to post a script on this page. Please be sure to copy and then paste this entire section at the end of the existing list of scripts. | ||
When updating your copy of the template, please remember the following tips: | When updating your copy of the template, please remember the following tips: | ||
− | In the code just | + | In the code just after the heading line (with the ===) be sure the span class name ends in the exact same naming as the ID on the line below the heading. If they don't match the fabric of space and time will fall apart! The first part (mw-...) will be different on each row. |
span class="mw-customtoggle-SCRIPT_NAME" and id="mw-customcollapsible-SCRIPT_NAME" | span class="mw-customtoggle-SCRIPT_NAME" and id="mw-customcollapsible-SCRIPT_NAME" | ||
Capitals matter, so be sure to pay close attention. | Capitals matter, so be sure to pay close attention. | ||
Line 40: | Line 41: | ||
'''Caveats/ Notes:'''(N/A if none, otherwise please describe)<br/> | '''Caveats/ Notes:'''(N/A if none, otherwise please describe)<br/> | ||
'''Script code: ''' <br/> | '''Script code: ''' <br/> | ||
− | <pre> Enter script code here</pre | + | <pre> Enter script code here</pre> |
Any other useful information or context can go here, after the script iself but please put any critical information in the ''Caveats/ Notes section'' before the code to ensure users are seeing it. | Any other useful information or context can go here, after the script iself but please put any critical information in the ''Caveats/ Notes section'' before the code to ensure users are seeing it. | ||
<!-- Notes to the editor: This line will only appear in Edit-Mode, so it's a way to leave private reminders or notes for any future editor who may come across your writings.<br/>The following two lines will always go after your script to properly end the script section.--> | <!-- Notes to the editor: This line will only appear in Edit-Mode, so it's a way to leave private reminders or notes for any future editor who may come across your writings.<br/>The following two lines will always go after your script to properly end the script section.--> | ||
− | + | ||
'''Note:''' Be sure to keep the ''<nowiki><pre>...</pre></nowiki>'' tags around your main script code to prevent issues with anything in the script being considered as code to the Wiki page. Use ''<nowiki><code>...</code></nowiki>'' for inline code snippets. | '''Note:''' Be sure to keep the ''<nowiki><pre>...</pre></nowiki>'' tags around your main script code to prevent issues with anything in the script being considered as code to the Wiki page. Use ''<nowiki><code>...</code></nowiki>'' for inline code snippets. | ||
<pre>Text with the Pre tags used </pre> | <pre>Text with the Pre tags used </pre> | ||
Line 49: | Line 50: | ||
[https://meta.wikimedia.org/wiki/Help:Wikitext_examples WikiText markup cheat sheet:] | [https://meta.wikimedia.org/wiki/Help:Wikitext_examples WikiText markup cheat sheet:] | ||
+ | </div> | ||
+ | <br/> |
Revision as of 15:09, 15 June 2023
Links
- ScriptCards Thread on the Roll20 Mod Forums Please use this link to report any issues or to seek scripting help via the forums.
- ScriptCards Mod Working and Sharing thread in the Roll20 Forums Historical Archive of scripts shared in the Roll20 forums.
- ScriptCards Changelog on GitHub
- Back to main ScriptCards information Wiki Page
- ScriptCards API GitHub repository for source before the one-click version is updated.
- ScriptCards Samples on the Official GitHub Branch of the GitHub repo that contains sample scripts.
ScriptCards Official Discord
ScriptCards Intro
ScriptCards Magic Missile Deep Dive
Working scripts for ScriptCards
This page is intended to be a centralized repository of working scripts that have been tested and are working as expected. Please describe the intended results of the script, include any screenshots/images you think will support the script and then please post the script itself.
Below you'll find the good stuff. You can also peruse the table of contents and use that for quick navigation. As long as the Script name is surrounded by "====" on both sides, it'll automatically be added to the table of contents.
[Expand/Collapse SCRIPT NAME] [Expand/Collapse SCRIPT NAME] === Template: Example Script Name ===
AFTER PASTING THE TEMPLATE: DELETE THIS ROW AND BELOW This template represents some basic syntax to post a script on this page. Please be sure to copy and then paste this entire section at the end of the existing list of scripts. When updating your copy of the template, please remember the following tips: In the code just after the heading line (with the ===) be sure the span class name ends in the exact same naming as the ID on the line below the heading. If they don't match the fabric of space and time will fall apart! The first part (mw-...) will be different on each row. span class="mw-customtoggle-SCRIPT_NAME" and id="mw-customcollapsible-SCRIPT_NAME" Capitals matter, so be sure to pay close attention. AFTER PASTING THE TEMPLATE: DELETE ABOVE THIS ROW so that "Author of script" comes right after the ''div class'' line above.
Author of script: (Your Discord name)
Game/System specific? Which one:
Purpose of script: (Text)
Description of intended results: (Text)
Screenshots: (Initial screenshots; more can be added throughout the body of the contents) Images
Caveats/ Notes:(N/A if none, otherwise please describe)
Script code:
Enter script code here
Any other useful information or context can go here, after the script iself but please put any critical information in the Caveats/ Notes section before the code to ensure users are seeing it.
Note: Be sure to keep the <pre>...</pre> tags around your main script code to prevent issues with anything in the script being considered as code to the Wiki page. Use <code>...</code> for inline code snippets.
Text with the Pre tags used
This is what a snippet
looks like wrapped in code tags
.