Differenze tra le versioni di "Template:TestTemplate"

Da Piante.
(Generata da uno schema di pagina)
Riga 8: Riga 8:
 
|C=
 
|C=
 
|D=
 
|D=
 +
|testcat=
 
}}
 
}}
 
</pre>
 
</pre>
 
Modificare la pagine per vedere il testo del template.
 
Modificare la pagine per vedere il testo del template.
</noinclude><includeonly>
+
</noinclude><includeonly>{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
{| {| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
 
 
! 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|}}} | | style="display: none;" }}
+
|-
! A
+
{{#if:{{{A|}}}|! A
| {{{A}}}
+
{{!}} [[A::{{{A|}}}]]}}  
|- {{#if: {{{B|}}} | | style="display: none;" }}
+
{{#if:{{{B|}}}|
 +
{{!}}-
 
! B
 
! B
| {{{B}}}
+
{{!}} [[B::{{{B|}}}]]}}  
|- {{#if: {{{C|}}} | | style="display: none;" }}
+
{{#if:{{{C|}}}|
 +
{{!}}-
 
! C
 
! C
| {{{C}}}
+
{{!}} [[C::{{{C|}}}]]}}  
|- {{#if: {{{D|}}} | | style="display: none;" }}
+
{{#if:{{{D|}}}|
 +
{{!}}-
 
! D
 
! D
| {{{D}}}
+
{{!}} [[D::{{{D|}}}]]}}
 +
|-
 +
! testcat
 +
| {{#arraymap:{{{testcat|}}}|,|x|[[Categoria:x]] {{#set:testcat=x}} }}
 
|}
 
|}
  
 
[[Categoria:Test]]
 
[[Categoria:Test]]
 
</includeonly>
 
</includeonly>

Versione delle 12:05, 22 ago 2016

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

{{TestTemplate
|A=
|B=
|C=
|D=
|testcat=
}}

Modificare la pagine per vedere il testo del template.