0 Votes

Changes for page Start here if you're new

Last modified by Ryan C on 2025/06/28 04:59

From version 16.1
edited by Ryan C
on 2025/05/14 13:30
Change comment: There is no comment for this version
To version 14.1
edited by Ryan C
on 2025/05/14 13:01
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -196,15 +196,15 @@
196 196  
197 197  Macros are powerful tools in XWiki that allow for dynamic content inclusion and advanced formatting. Here are ten notable macros to consider:
198 198  
199 -== Embed Macro ==
199 +**Box Macro**: Encapsulates content within a styled box, useful for highlighting information.
200 200  
201 -The Embed macro shows external content like YouTube videos.
201 +{{code}}
202 +{{box}}
203 +Your content here.
204 +{{/box}}
205 +{{/code}}
202 202  
203 -{{example}}
204 -{{embed url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"/}}
205 -{{/example}}
206 206  
207 -
208 208  === **Info Macro**: Displays an informational message, often used for tips or notes. ===
209 209  
210 210  {{code}}
... ... @@ -214,16 +214,15 @@
214 214  {{/code}}
215 215  
216 216  
217 -== Footnote Macro ==
217 +=== **Warning Macro**: Highlights warnings or important notices. ===
218 218  
219 -The Footnote macro adds footnotes to the page.
219 +{{code}}
220 +{{warning}}
221 +Caution: Proceed with care.
222 +{{/warning}}
223 +{{/code}}
220 220  
221 -{{example}}
222 -This is a statement{{footnote}}Source: Example Reference{{/footnote}}.
223 -{{putFootnotes/}}
224 -{{/example}}
225 225  
226 -
227 227  === **Code Macro**: Renders code snippets with syntax highlighting. ===
228 228  
229 229  {{code}}
... ... @@ -250,62 +250,30 @@
250 250  {{toc/}}
251 251  {{/code}}
252 252  
253 -== Video Macro ==
254 254  
255 -The Video macro embeds videos.
253 +=== **Include Macro**: Embeds content from another page. ===
256 256  
257 -{{example}}
258 -{{video url="https://www.youtube.com/watch?v=dQw4w9WgXcQ"/}}
259 -{{/example}}
255 +{{code}}
256 +{{include reference="PageName"/}}
257 +{{/code}}
260 260  
261 -== Expandable Macro ==
262 -The following example demonstrates how to present complex information cleanly using `{{expandable}}` and `{{example}}`.
263 263  
264 -{{example}}
265 -
266 -
267 -{{expandable summary="🧠 Study: Survey of Expert Opinion on Intelligence"}}
268 -**Source:** *Intelligence (Elsevier)*
269 -**Date:** *2019*
270 -**Authors:** *Heiner Rindermann, David Becker, Thomas R. Coyle*
271 -**DOI:** [10.1016/j.intell.2019.101406](https://doi.org/10.1016/j.intell.2019.101406)
272 -**Subject:** *Psychology, Intelligence Research*
260 +=== **Display Macro**: Displays the content of another document or an object property. ===
273 273  
274 -{{expandable summary="📊 Key Statistics"}}
275 -- Survey of **102 intelligence experts**
276 -- **90% from Western countries**, **83% male**
277 -- **54% left-liberal**, **24% conservative**
278 -- **50/50 split** on genetic vs environmental causes of Black-White IQ gap
279 -{{/expandable}}
262 +{{code}}
263 +{{display reference="PageName"/}}
264 +{{/code}}
280 280  
281 -{{expandable summary="🔬 Findings"}}
282 -- Support for **g-factor theory**
283 -- Agreement on **heritability of intelligence**
284 -- Political lean: left = environmental, right = genetic causes
285 -{{/expandable}}
286 286  
287 -{{expandable summary="📝 Critique"}}
288 -- Largest expert survey on intelligence
289 -- **Western-only sample**, possible **self-selection bias**
290 -{{/expandable}}
267 +=== **Velocity Macro**: Executes Velocity scripts for dynamic content generation. ===
291 291  
292 -{{expandable summary="📌 Relevance"}}
293 -- Shows **ideological divide** in science
294 -- Highlights **media vs expert disconnect**
295 -{{/expandable}}
269 +{{code}}
270 +{{velocity}}
271 +#set($greeting = "Hello, $user.name!")
272 +$greeting
273 +{{/velocity}}
274 +{{/code}}
296 296  
297 -{{expandable summary="🔍 Explore More"}}
298 -- Global surveys on intelligence beliefs
299 -- Media analysis follow-up studies
300 -{{/expandable}}
301 -
302 -{{expandable summary="📄 Download"}}
303 -[[Download Study>>attach:10.1016_j.intell.2019.101406.pdf]]
304 -{{/expandable}}
305 -{{/expandable}}
306 -{{/example}}
307 -
308 -
309 309  == See Also: ==
310 310  
311 311  [[Syntax Help official documentation for a full list of formatting options>>doc:XWiki.XWikiSyntax]]