Structorica Wiki:Sandbox: Difference between revisions

From Structorica Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Tag: Reverted
Line 29: Line 29:
serde = { version = "1.0", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
</syntaxhighlight>
</syntaxhighlight>
{{MessageBox
| title = This is a normal message box
| text = With helpful and descriptive subtext
}}
{{MessageBox
| mini = 1
| icon = 8
| text = This has an information icon using [[Template:CommentSprite]]
}}
{{MessageBox
| bgcol = rgba(203, 203, 249, 0.2)
| linecol = rgba(107, 107, 253, 0.2)
| title = This is a blue message box
| text = It has a discuss link, some custom CSS and a custom image
| discuss = 1
| image = Comment_done.svg
| css = box-shadow: 10px 10px 2px #787878;
}}
{{MessageBox
| mini = 1
| image = Comment_done.svg
| bgcol = rgba(147, 122, 85, 0.2)
| linecol = rgba(187, 116, 13, 0.2)
| css = box-shadow: 0px 0px 6px #787878;
| text = This is using similar settings as the advanced example above.
}}

Revision as of 13:13, 14 January 2026

Sandbox

{
  "name": "example",
  "version": "1.0.0",
  "dependencies": {
    "lodash": "^4.17.0"
  }
}
#include <iostream>

int main() {
    std::cout << "Hello, World!" << std::endl;
    return 0;
}


[package]
name = "my-package"
version = "1.0.0"
edition = "2021"

[dependencies]
serde = { version = "1.0", features = ["derive"] }


This is a normal message box
 
With helpful and descriptive subtext


This has an information icon using Template:CommentSprite


This is a blue message box
 [discuss]
It has a discuss link, some custom CSS and a custom image



This is using similar settings as the advanced example above.