Loading…
Simpel
Translation changed |
|
Simpel
Contributor joined |
Contributor joined
2 years ago
|
None
Source string changed |
|
== Macros ==
=== 1.0 Macros ===
There are two kinds of macros in XWiki Syntax 1.0:
* Velocity macros (called using the ###macroname(param1 ... paramN)## syntax)
* Radeox macros (called using the ##{macroname:param1=value1|...|paramN=valueN}## syntax)
{{info}}
For the full list of available macros check the [[Extensions wiki>>https://extensions.xwiki.org/]].
{{/info}}
|=Feature|=XWiki Syntax 1.0
|Velocity Macro|(((
{{{#info("Some text")}}}
)))
|Radeox Macro|(((
{{{{code:java}
java content
{code}
}}}
)))
=== 2.0 Macros ===
There is only one kind of macro in XWiki Syntax {{velocity}}$crtSyntaxVer{{/velocity}}, which is called by the syntax: ##{{{{{macroname param1="value1" ... paramN="valueN"}}...{{/macroname}}}}}##. For macros without content there's a short notation: ##{{{{{macroname param1="value1" ... paramN="valueN"/}}}}}##
|=Feature|=XWiki Syntax {{velocity}}$crtSyntaxVer{{/velocity}}|=Result
|Rendering Macro with a content|(((
{{{{{code language="java"}}
System.out.println("Hello World!");
{{/code}}
}}}
)))|{{code language="java"}}System.out.println("Hello World!");{{/code}}
|Rendering Macro without content|(((
{{{{{include reference="Space.Page"/}}}}}
)))|The referenced page is included in the current page
{{info}}
For the full list of available macros check the [[Extensions wiki>>https://extensions.xwiki.org/]].
{{/info}}
==== Macros in this wiki ====
{{include reference="XWiki.XWikiSyntaxMacrosList"/}}
== Makros ==
{{comment}}please do not translate the sub headlines{{/comment}}
=== 1.0 Macros ===
Es gibt zwei Arten von Makros in XWiki Syntax 1.0:
* Velocity Makros (aufgerufen mittels der ###macroname(param1 ... paramN)## Syntax)
* Radeox Makros (aufgerufen mittels der ##{macroname:param1=value1|...|paramN=valueN}## Syntax)
|=Funktion|=XWiki Syntax 1.0
|Velocity Makro|((({{{#info("Ein Text")}}})))|
|Radeox Makro|((({{{
{code:java}
Java Inhalt
{code}
}}})))
{{info}}Eine vollständige Liste der verfügbaren Makros ist im [[Erweiterungswiki>>http://extensions.xwiki.org/]] zu finden.{{/info}}
=== 2.0 Macros ===
In XWiki Syntax {{velocity}}$crtSyntaxVer{{/velocity}} gibt es genau eine Art von Makros, welche mittels der Syntax ##{{{{{macroname param1="value1" ... paramN="valueN"}}}}}## angegeben werden, zum Beispiel für das ##~{~{code~}~}## Makro:
|=Funktion|=XWiki Syntax {{velocity}}$crtSyntaxVer{{/velocity}}|=Ausgabe
|Makro|(((
{{{{{code language="java"}}
System.out.println("Hello World!");
{{/code}}
}}}
)))|{{code language="java"}}System.out.println("Hello World!");{{/code}}
{{info}}Eine vollständige Liste der verfügbaren Makros ist im [[Erweiterungswiki>>http://extensions.xwiki.org/]] zu finden.{{/info}}