Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "ScriptCards Scripts"

From Roll20 Wiki

Jump to: navigation, search
(Links)
(Working scripts for ScriptCards)
Line 13: Line 13:
 
[[https://youtu.be/u50xvNzS9Zk ScriptCards Magic Missile Deep Dive]]<br/>
 
[[https://youtu.be/u50xvNzS9Zk ScriptCards Magic Missile Deep Dive]]<br/>
  
= Working scripts for ScriptCards =  
+
== Working scripts for ScriptCards ==
 
{{tocright}}
 
{{tocright}}
 
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.
 
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.
Line 20: Line 20:
 
=== Template: Example Script Name ===
 
=== Template: Example Script Name ===
 
<span class="mw-customtoggle-SCRIPT_NAME" style="font-size: large; font-weight:normal; color:#003399;">[Expand/Collapse<br/>SCRIPT NAME]</span>
 
<span class="mw-customtoggle-SCRIPT_NAME" style="font-size: large; font-weight:normal; color:#003399;">[Expand/Collapse<br/>SCRIPT NAME]</span>
<div class="mw-collapsible" id="mw-customcollapsible-section_Script_Name" style="width: 100%;"">
+
<div class="mw-collapsible" id="mw-customcollapsible-section_SCRIPT_NAME" style="width: 100%;"">
 
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 below the heading line (with the ===) be sure the span class name ends in the exact same naming as the ID on the second line.  The first part will be different on each row
+
* In the code just below the heading line (with the ===) be sure the span class name ends in the exact same naming as the ID on the second line.  The first part will be different on each row
## <span class="mw-customtoggle-<span class=font-weight bold; font style: italics"SCRIPT_NAME> and <id="id="mw-customcollapsible-SCRIPT_NAME">
+
** <span class="mw-customtoggle-<span class=font-weight bold; font style: italics"SCRIPT_NAME> and <id="id="mw-customcollapsible-SCRIPT_NAME">
 +
** Capitals matter, so be sure to pay close attention.
  
 +
'''Purpose of script:''' (Text) <br/>
 +
'''Description of intended results:''' (Text) <br/>
 +
'''Screenshots:''' (Initial screenshots; more can be added throughout the body of the contents) Images <br/>
 +
'''Script code: ''' <br/>
 +
<pre> Enter script code here</pre> <br/>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.
  
.. entire section contents ...
+
<pre>Text with the Pre tags used </pre>
 +
 
 +
This is what {{c|a snippet}} looks like {{c|wrapped in code tags}}.
 +
 
 +
Any other useful stuff. [[https://meta.wikimedia.org/wiki/Help:Wikitext_examples WikiText markup cheat sheet:]]
 +
<!-- 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.-->
 
</div>
 
</div>
 
<br/>
 
<br/>

Revision as of 14:08, 12 June 2023

Script:ScriptCards

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

Contents

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.


Template: Example Script Name

[Expand/Collapse
SCRIPT NAME]

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 below the heading line (with the ===) be sure the span class name ends in the exact same naming as the ID on the second line. The first part will be different on each row
    • <span class="mw-customtoggle- and <id="id="mw-customcollapsible-SCRIPT_NAME">
    • Capitals matter, so be sure to pay close attention.

Purpose of script: (Text)
Description of intended results: (Text)
Screenshots: (Initial screenshots; more can be added throughout the body of the contents) Images
Script code:

 Enter script code here

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.

Any other useful stuff. [WikiText markup cheat sheet:] </div>