Differenze tra le versioni di "Template:TestTemplate"

Da Piante.
 
(23 versioni intermedie di uno stesso utente non sono mostrate)
Riga 3: Riga 3:
 
Dovrebbe esser chiamato con il seguente formato:
 
Dovrebbe esser chiamato con il seguente formato:
 
<pre>
 
<pre>
{{TestTemplate |
+
{{TestTemplate
A{{#if:{{{A|}}}||NULL}}={{{A}}}|
+
|A2Nuovo=
B{{#if:{{{B|}}}||NULL}}={{{B}}}|
+
|A3=
C{{#if:{{{C|}}}||NULL}}={{{C}}}|
+
|B=
D{{#if:{{{D|}}}||NULL}}={{{D}}}|
+
|C=
 +
|D=
 
}}
 
}}
 
</pre>
 
</pre>
Riga 14: Riga 15:
 
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
 
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
 
|-
 
|-
{{#if:{{{A}}}|
+
{{#if:{{{text|}}}|! A2Nuovo
! A
+
{{!}} {{#set:A2Nuovo={{{text|}}} }}}}
{{!}} [[A::{{{A|}}}]]|NULL}}
+
{{#if:{{{text|}}}|! A3
{{#if:{{{B}}}|
+
{{!}} {{#set:A3={{{text|}}} }}}}  
 +
{{#if:{{{B|}}}|
 
{{!}}-
 
{{!}}-
 
! B
 
! B
{{!}} [[B::{{{B|}}}]]|NULL}}  
+
{{!}} {{#set: B={{{B|}}}}}}}  
{{#if:{{{C}}}|
+
{{#if:{{{C|}}}|
 
{{!}}-
 
{{!}}-
 
! C
 
! C
{{!}} [[C::{{{C|}}}]]|NULL}}  
+
{{!}} [[C::{{{C|}}}]]}}  
{{#if:{{{D}}}|
+
{{#if:{{{D|}}}|
 
{{!}}-
 
{{!}}-
 
! D
 
! D
{{!}} [[D::{{{D|}}}]]|NULL}}  
+
{{!}} [[D::{{{D|}}}]]}}  
 
|}
 
|}
  
 
[[Categoria:Test]]
 
[[Categoria:Test]]
 
</includeonly>
 
</includeonly>

Versione attuale delle 17:23, 10 set 2018

Questo è il template 'TestTemplate'. Dovrebbe esser chiamato con il seguente formato:

{{TestTemplate
|A2Nuovo=
|A3=
|B=
|C=
|D=
}}

Modificare la pagine per vedere il testo del template.