Wiki source code of 2p macro
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | = {{code language="xwiki"}}2p{{/code}} macro = | ||
2 | |||
3 | {{include reference="Main.Environment"/}} | ||
4 | |||
5 | * {{stringEngIta eng="inline" ita="in linea"/}} | ||
6 | ** {{stringEngIta eng="yes" ita="sì"/}} | ||
7 | * {{stringEngIta eng="content" ita="contenuto"/}} | ||
8 | ** {{stringEngIta eng="none" ita="nessuno"/}} | ||
9 | * {{stringEngIta eng="parameters" ita="parametri"/}} | ||
10 | ** ##formatted — ##{{stringEngIta eng="displays the formatted version of the name, otherwise displays the string properly capitalised" ita="mostra la versione formattata del nome, altrimenti la sola stringa"/}} | ||
11 | *** admissible values:## true ##{{velocity}}(#foreach( $true in $trueStringList )#if( $velocityCount > 1 ) | #end(% style='font-size:smaller; font-family:monospace; color:$theme.textPrimaryColor' %)$true(%%)#end) {{/velocity}}## ##/## false ##{{velocity}}(#foreach( $false in $falseStringList ) | ||
12 | #if( $velocityCount > 1 ) | #end(% style='font-size:smaller; font-family:monospace; color:$theme.textPrimaryColor' %)$false(%%)#end){{/velocity}} | ||
13 | *** default:## true ## | ||
14 | ** ##short## — {{stringEngIta eng="displays the acronym or the full name" ita="mostra l’acronimo o il nome completo"/}} | ||
15 | *** admissible values: ##true## {{velocity}}(#foreach( $true in $trueStringList )#if( $velocityCount > 1 ) | #end(% style='font-size:smaller; font-family:monospace; color:$theme.textPrimaryColor' %)$true(%%)#end) {{/velocity}}## ##/## false ##{{velocity}}(#foreach( $false in $falseStringList ) | ||
16 | #if( $velocityCount > 1 ) | #end(% style='font-size:smaller; font-family:monospace; color:$theme.textPrimaryColor' %)$false(%%)#end){{/velocity}} | ||
17 | *** default:## true ## | ||
18 | |||
19 | == {{stringEngIta eng="Examples" ita="Esempi"/}} == | ||
20 | |||
21 | {{source}} | ||
22 | {{2p/}} | ||
23 | {{/source}} | ||
24 | |||
25 | {{source}} | ||
26 | {{2p formatted="anywrongstring" short="anywrongstring"/}} | ||
27 | {{/source}} | ||
28 | |||
29 | {{source}} | ||
30 | {{2p formatted="no"/}} | ||
31 | {{/source}} | ||
32 | |||
33 | {{source}} | ||
34 | {{2p formatted="no" short="no"/}} | ||
35 | {{/source}} | ||
36 | |||
37 | {{source}} | ||
38 | {{2p short="true" formatted="false"/}} | ||
39 | {{/source}} | ||
40 | |||
41 | {{source}} | ||
42 | {{2p short="false" formatted="true"/}} | ||
43 | {{/source}} |