Wiki source code of Start here if you're new
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | = π Macro Examples & Formatting Guide = | ||
2 | |||
3 | ---- | ||
4 | |||
5 | == π Table of Contents == | ||
6 | |||
7 | {{toc/}} | ||
8 | |||
9 | ---- | ||
10 | |||
11 | == π§ͺ Macro Showcase: Source + Output + Slash Command == | ||
12 | |||
13 | All macros are shown with the WYSIWYG `/command`, an expandable explanation, and an editable source/output block using example | ||
14 | |||
15 | ---- | ||
16 | |||
17 | == Table of Contents Macro (`/toc`) == | ||
18 | |||
19 | {{expandable summary="π Table of Contents Macro (`/toc`)"}} | ||
20 | {{example}} | ||
21 | {{toc/}} | ||
22 | {{/example}} | ||
23 | {{/expandable}} | ||
24 | |||
25 | ---- | ||
26 | |||
27 | == Gallery Macro (`/gallery`) == | ||
28 | |||
29 | {{expandable summary="πΌοΈ Gallery Macro (`/gallery`)"}} | ||
30 | {{example}} | ||
31 | {{gallery}} | ||
32 | [[1747262485678-297.png]] | ||
33 | [[image:photo2.jpg]] | ||
34 | {{/gallery}} | ||
35 | {{/example}} | ||
36 | {{/expandable}} | ||
37 | |||
38 | ---- | ||
39 | |||
40 | == Carousel Macro (`/carousel`) == | ||
41 | |||
42 | {{expandable summary="π½οΈ Carousel Macro (`/carousel`)"}} | ||
43 | {{example}} | ||
44 | {{carousel/}} | ||
45 | {{/example}} | ||
46 | {{/expandable}} | ||
47 | |||
48 | ---- | ||
49 | |||
50 | == Box Macro (`/box`) == | ||
51 | |||
52 | {{expandable summary="π¦ Box Macro (`/box`)"}} | ||
53 | {{example}} | ||
54 | {{box cssClass="highlight"}} | ||
55 | Insert your highlighted content here. | ||
56 | {{/box}} | ||
57 | {{/example}} | ||
58 | {{/expandable}} | ||
59 | |||
60 | ---- | ||
61 | |||
62 | == Info and Warning Boxes (`/info`, `/warning`) == | ||
63 | |||
64 | {{expandable summary="β οΈ Info and Warning Macros (`/info`, `/warning`)"}} | ||
65 | {{example}} | ||
66 | {{info}}This is an info box.{{/info}} | ||
67 | |||
68 | {{warning}}This is a warning box.{{/warning}} | ||
69 | {{/example}} | ||
70 | {{/expandable}} | ||
71 | |||
72 | ---- | ||
73 | |||
74 | == Footnotes (`/footnote`, `/put footnotes`) == | ||
75 | |||
76 | {{expandable summary="π§Ύ Footnote + PutFootnotes (`/footnote`, `/put footnotes`)"}} | ||
77 | {{example}} | ||
78 | This is a footnoted statement{{footnote}}https://www.example.com{{/footnote}}. | ||
79 | |||
80 | {{putFootnotes/}} | ||
81 | {{/example}} | ||
82 | {{/expandable}} | ||
83 | |||
84 | ---- | ||
85 | |||
86 | == Expandable Macro (`/expandable`) == | ||
87 | |||
88 | {{expandable summary="π§© Expandable Macro (`/expandable`)"}} | ||
89 | {{example}} | ||
90 | {{expandable summary="Click to expand"}} | ||
91 | This content is hidden until clicked. | ||
92 | {{/expandable}} | ||
93 | {{/example}} | ||
94 | {{/expandable}} | ||
95 | |||
96 | ---- | ||
97 | |||
98 | == Embed Macro (`/embed content`) == | ||
99 | |||
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}} | ||
105 | |||
106 | ---- | ||
107 | |||
108 | == Code Macro (`/code`) == | ||
109 | |||
110 | {{expandable summary="π» Code Block Macro (`/code`)"}} | ||
111 | {{example}} | ||
112 | {{code language="python"}} | ||
113 | def hello_world(): | ||
114 | print("Hello, world!") | ||
115 | {{/code}} | ||
116 | {{/example}} | ||
117 | {{/expandable}} | ||
118 | |||
119 | ---- | ||
120 | |||
121 | == Image Insert (`[[image:...]]`) == | ||
122 | |||
123 | {{expandable summary="πΌοΈ Image Macro (`[[image:filename.jpg]]`)"}} | ||
124 | {{example}} | ||
125 | [[image:1747262485678-297.png]] | ||
126 | {{/example}} | ||
127 | {{/expandable}} | ||
128 | |||
129 | ---- | ||
130 | |||
131 | == Audio Embed (HTML tag or `/embed JWPlayer`) == | ||
132 | |||
133 | {{expandable summary="π Audio Embed (`<audio>` tag or `/embed JWPlayer`)"}} | ||
134 | {{example}} | ||
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}} | ||
141 | {{/example}} | ||
142 | {{/expandable}} | ||
143 | |||
144 | ---- | ||
145 | |||
146 | == Video Embed Macro (`/video`) == | ||
147 | |||
148 | {{expandable summary="π¬ Video Macro (`/video`)"}} | ||
149 | {{example}} | ||
150 | {{video url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"/}} | ||
151 | {{/example}} | ||
152 | {{/expandable}} | ||
153 | |||
154 | ---- | ||
155 | |||
156 | == Full Example: Expandable Study Summary (`/expandable`) == | ||
157 | |||
158 | {{expandable summary="π Full Use Case β Study Summary Macro (`/expandable`)"}} | ||
159 | {{example}} | ||
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) | ||
164 | |||
165 | {{expandable summary="π Key Statistics"}} | ||
166 | - IQ heritability rises to **0.80** by adulthood | ||
167 | - Shared environment drops to **0.10** | ||
168 | {{/expandable}} | ||
169 | |||
170 | {{expandable summary="π¬ Findings"}} | ||
171 | - Genetic influence strengthens over time | ||
172 | - Monozygotic twinsβ IQ similarity increases with age | ||
173 | {{/expandable}} | ||
174 | |||
175 | {{expandable summary="π Critique & Observations"}} | ||
176 | - Strength: Large dataset, longitudinal | ||
177 | - Limitation: Mostly Western countries | ||
178 | {{/expandable}} | ||
179 | |||
180 | {{expandable summary="π Relevance"}} | ||
181 | - Strong support for genetic IQ theories | ||
182 | - Diminishing environmental influence | ||
183 | {{/expandable}} | ||
184 | |||
185 | {{expandable summary="π Download"}} | ||
186 | [[Download Full Study>>attach:10.1017_thg.2013.54.pdf]] | ||
187 | {{/expandable}} | ||
188 | |||
189 | {{/expandable}} | ||
190 | {{/example}} | ||
191 | {{/expandable}} | ||
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. | ||
201 | {{/example}} | ||
202 | {{/example}} | ||
203 | {{/expandable}} |