0 Votes

Wiki source code of Start here if you're new

Version 35.1 by Ryan C on 2025/05/14 16:18

Hide last authors
Ryan C 35.1 1 = πŸ“š Macro Examples & Formatting Guide =
Ryan C 1.1 2
Ryan C 4.1 3 ----
Ryan C 1.1 4
Ryan C 35.1 5 == πŸ“– Table of Contents ==
Ryan C 1.1 6
Ryan C 8.1 7 {{toc/}}
Ryan C 1.1 8
Ryan C 4.1 9 ----
Ryan C 1.1 10
Ryan C 35.1 11 == πŸ§ͺ Macro Showcase: Source + Output + Slash Command ==
Ryan C 12.1 12
Ryan C 35.1 13 All macros are shown with the WYSIWYG `/command`, an expandable explanation, and an editable source/output block using example
Ryan C 22.1 14
Ryan C 34.1 15 ----
16
Ryan C 35.1 17 == Table of Contents Macro (`/toc`) ==
Ryan C 34.1 18
Ryan C 35.1 19 {{expandable summary="πŸ“˜ Table of Contents Macro (`/toc`)"}}
20 {{example}}
21 {{toc/}}
22 {{/example}}
23 {{/expandable}}
Ryan C 34.1 24
Ryan C 26.1 25 ----
Ryan C 22.1 26
Ryan C 35.1 27 == Gallery Macro (`/gallery`) ==
Ryan C 22.1 28
Ryan C 35.1 29 {{expandable summary="πŸ–ΌοΈ Gallery Macro (`/gallery`)"}}
Ryan C 22.1 30 {{example}}
31 {{gallery}}
Ryan C 30.1 32 [[1747262485678-297.png]]
Ryan C 22.1 33 [[image:photo2.jpg]]
34 {{/gallery}}
35 {{/example}}
Ryan C 35.1 36 {{/expandable}}
Ryan C 22.1 37
Ryan C 35.1 38 ----
Ryan C 22.1 39
Ryan C 35.1 40 == Carousel Macro (`/carousel`) ==
Ryan C 32.1 41
Ryan C 35.1 42 {{expandable summary="πŸ“½οΈ Carousel Macro (`/carousel`)"}}
Ryan C 31.1 43 {{example}}
44 {{carousel/}}
45 {{/example}}
Ryan C 35.1 46 {{/expandable}}
Ryan C 31.1 47
Ryan C 35.1 48 ----
Ryan C 25.1 49
Ryan C 35.1 50 == Box Macro (`/box`) ==
51
52 {{expandable summary="πŸ“¦ Box Macro (`/box`)"}}
Ryan C 22.1 53 {{example}}
54 {{box cssClass="highlight"}}
55 Insert your highlighted content here.
56 {{/box}}
57 {{/example}}
Ryan C 35.1 58 {{/expandable}}
Ryan C 22.1 59
Ryan C 35.1 60 ----
Ryan C 25.1 61
Ryan C 35.1 62 == Info and Warning Boxes (`/info`, `/warning`) ==
Ryan C 22.1 63
Ryan C 35.1 64 {{expandable summary="⚠️ Info and Warning Macros (`/info`, `/warning`)"}}
Ryan C 22.1 65 {{example}}
Ryan C 35.1 66 {{info}}This is an info box.{{/info}}
Ryan C 22.1 67
Ryan C 35.1 68 {{warning}}This is a warning box.{{/warning}}
Ryan C 22.1 69 {{/example}}
Ryan C 35.1 70 {{/expandable}}
Ryan C 22.1 71
Ryan C 35.1 72 ----
Ryan C 28.1 73
Ryan C 35.1 74 == Footnotes (`/footnote`, `/put footnotes`) ==
75
76 {{expandable summary="🧾 Footnote + PutFootnotes (`/footnote`, `/put footnotes`)"}}
Ryan C 27.1 77 {{example}}
Ryan C 35.1 78 This is a footnoted statement{{footnote}}https://www.example.com{{/footnote}}.
Ryan C 24.1 79
Ryan C 26.1 80 {{putFootnotes/}}
Ryan C 27.1 81 {{/example}}
Ryan C 35.1 82 {{/expandable}}
Ryan C 26.1 83
Ryan C 35.1 84 ----
Ryan C 26.1 85
Ryan C 35.1 86 == Expandable Macro (`/expandable`) ==
Ryan C 25.1 87
Ryan C 35.1 88 {{expandable summary="🧩 Expandable Macro (`/expandable`)"}}
Ryan C 22.1 89 {{example}}
Ryan C 35.1 90 {{expandable summary="Click to expand"}}
91 This content is hidden until clicked.
Ryan C 22.1 92 {{/expandable}}
93 {{/example}}
Ryan C 35.1 94 {{/expandable}}
Ryan C 22.1 95
Ryan C 35.1 96 ----
Ryan C 25.1 97
Ryan C 35.1 98 == Embed Macro (`/embed content`) ==
Ryan C 1.1 99
Ryan C 35.1 100 {{expandable summary="🌐 Embed Macro (YouTube etc.) (`/embed content`)"}}
101 {{example}}
102 {{embed url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"/}}
103 {{/example}}
104 {{/expandable}}
Ryan C 1.1 105
Ryan C 35.1 106 ----
Ryan C 1.1 107
Ryan C 35.1 108 == Code Macro (`/code`) ==
Ryan C 1.1 109
Ryan C 35.1 110 {{expandable summary="πŸ’» Code Block Macro (`/code`)"}}
Ryan C 32.1 111 {{example}}
Ryan C 35.1 112 {{code language="python"}}
113 def hello_world():
114 print("Hello, world!")
115 {{/code}}
Ryan C 32.1 116 {{/example}}
Ryan C 35.1 117 {{/expandable}}
Ryan C 32.1 118
Ryan C 35.1 119 ----
Ryan C 32.1 120
Ryan C 35.1 121 == Image Insert (`[[image:...]]`) ==
Ryan C 1.1 122
Ryan C 35.1 123 {{expandable summary="πŸ–ΌοΈ Image Macro (`[[image:filename.jpg]]`)"}}
Ryan C 32.1 124 {{example}}
Ryan C 33.1 125 [[image:1747262485678-297.png]]
Ryan C 32.1 126 {{/example}}
Ryan C 35.1 127 {{/expandable}}
Ryan C 2.1 128
Ryan C 4.1 129 ----
Ryan C 2.1 130
Ryan C 35.1 131 == Audio Embed (HTML tag or `/embed JWPlayer`) ==
Ryan C 6.1 132
Ryan C 35.1 133 {{expandable summary="πŸ”Š Audio Embed (`<audio>` tag or `/embed JWPlayer`)"}}
Ryan C 15.1 134 {{example}}
Ryan C 35.1 135 {{html}}
136 <audio controls>
137 <source src="/bin/download/Sandbox/TestPage2/Anti-Black%20racial%20slur%20was%20found%20written%20on%20high%20school%20desk%20in%20Rockville.mp3" type="audio/mpeg">
138 Your browser does not support the audio element.
139 </audio>
140 {{/html}}
Ryan C 15.1 141 {{/example}}
Ryan C 35.1 142 {{/expandable}}
Ryan C 6.1 143
Ryan C 35.1 144 ----
Ryan C 15.1 145
Ryan C 35.1 146 == Video Embed Macro (`/video`) ==
Ryan C 6.1 147
Ryan C 35.1 148 {{expandable summary="🎬 Video Macro (`/video`)"}}
Ryan C 15.1 149 {{example}}
150 {{video url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"/}}
151 {{/example}}
Ryan C 35.1 152 {{/expandable}}
Ryan C 6.1 153
Ryan C 35.1 154 ----
Ryan C 22.1 155
Ryan C 35.1 156 == Full Example: Expandable Study Summary (`/expandable`) ==
Ryan C 22.1 157
Ryan C 35.1 158 {{expandable summary="πŸ“š Full Use Case – Study Summary Macro (`/expandable`)"}}
Ryan C 21.1 159 {{example}}
Ryan C 35.1 160 {{expandable summary="Study: The Wilson Effect"}}
161 **Source:** *Twin Research and Human Genetics (2013)*
162 **Author:** *Thomas J. Bouchard Jr.*
163 **DOI:** [10.1017/thg.2013.54](https://doi.org/10.1017/thg.2013.54)
Ryan C 6.1 164
Ryan C 15.1 165 {{expandable summary="πŸ“Š Key Statistics"}}
Ryan C 35.1 166 - IQ heritability rises to **0.80** by adulthood
167 - Shared environment drops to **0.10**
Ryan C 15.1 168 {{/expandable}}
Ryan C 6.1 169
Ryan C 15.1 170 {{expandable summary="πŸ”¬ Findings"}}
Ryan C 35.1 171 - Genetic influence strengthens over time
172 - Monozygotic twins’ IQ similarity increases with age
Ryan C 15.1 173 {{/expandable}}
Ryan C 6.1 174
Ryan C 17.1 175 {{expandable summary="πŸ“ Critique & Observations"}}
Ryan C 35.1 176 - Strength: Large dataset, longitudinal
177 - Limitation: Mostly Western countries
Ryan C 15.1 178 {{/expandable}}
Ryan C 6.1 179
Ryan C 35.1 180 {{expandable summary="πŸ“Œ Relevance"}}
181 - Strong support for genetic IQ theories
182 - Diminishing environmental influence
Ryan C 15.1 183 {{/expandable}}
Ryan C 6.1 184
Ryan C 35.1 185 {{expandable summary="πŸ“„ Download"}}
186 [[Download Full Study>>attach:10.1017_thg.2013.54.pdf]]
Ryan C 15.1 187 {{/expandable}}
188
189 {{/expandable}}
Ryan C 35.1 190 {{/example}}
Ryan C 15.1 191 {{/expandable}}
Ryan C 35.1 192
193 ----
194
195 == Bonus: Boilerplate Example Template ==
196
197 {{expandable summary="πŸ“‹ Example Macro Template (`/example`)"}}
198 {{example}}
199 {{example}}
200 Your macro goes here.
Ryan C 21.1 201 {{/example}}
Ryan C 35.1 202 {{/example}}
203 {{/expandable}}
Ryan C 20.1 204

XWiki AI Chat