Template:Genealogia: differenze tra le versioni

Da La Barriera Wiki.
Vai alla navigazione Vai alla ricerca
Nessun oggetto della modifica
Nessun oggetto della modifica
Riga 1: Riga 1:
<includeonly>
<includeonly>
{{#vardefine: i | 1}}
{{#vardefine: i | 1}}
<tr style="text-align:center; border:none;">
<tr style="text-align:center; border:1px red solid;">
{{
{{
#loop: i
#loop: i
Riga 8: Riga 8:
| {{#switch: {{{Arg{{#var:i}}}}}
| {{#switch: {{{Arg{{#var:i}}}}}
| A = <td rowspan="2" colspan="8" style="border:1px solid black; padding:0.2em; width:12em; height:2em; font-size:95%; background-color:#F7F7F7; box-sizing:border-box;">{{{Nome{{#var:i}}}}}</td>
| A = <td rowspan="2" colspan="8" style="border:1px solid black; padding:0.2em; width:12em; height:2em; font-size:95%; background-color:#F7F7F7; box-sizing:border-box;">{{{Nome{{#var:i}}}}}</td>
| B = <td rowspan="2" colspan="2" style="border:none; width:3em; height:2em;"></td>
| B = <td rowspan="2" colspan="2" style="border:1px red solid; width:3em; height:2em;"></td>
| C = <td rowspan="2" style="border:none; width:1.5em; height:2em;"></td>
| C = <td rowspan="2" style="border:1px red solid; width:1.5em; height:2em;"></td>
| D = <td colspan="2" style="border:none; border-bottom:3px double black; width:3em; height:1em; box-sizing:border-box;"></td>
| D = <td colspan="2" style="border:1px red solid; border-bottom:3px double black; width:3em; height:1em; box-sizing:border-box;"></td>
| E = <td colspan="2" style="border:none; border-bottom:3px double black; width:3em; height:1em; box-sizing:border-box;"></td>
| E = <td colspan="2" style="border:1px red solid; border-bottom:3px double black; width:3em; height:1em; box-sizing:border-box;"></td>
| F = <td rowspan="2" style="border:none; border-right:1px solid black; width:1.5em; height:2em; box-sizing:border-box;"></td><td rowspan="2" style="border:none; width:1.5em; height:2em;"></td>
| F = <td rowspan="2" style="border:1px red solid; border-right:1px solid black; width:1.5em; height:2em; box-sizing:border-box;"></td><td rowspan="2" style="border:1px red solid; width:1.5em; height:2em;"></td>
| G = <td colspan="2" style="border:none; border-bottom:2px dashed black; width:3em; height:1em; box-sizing:border-box;"></td>
| G = <td colspan="2" style="border:1px red solid; border-bottom:2px dashed black; width:3em; height:1em; box-sizing:border-box;"></td>
| H = <td colspan="2" style="border:none; width:3em; height:1em;"></td>
| H = <td colspan="2" style="border:1px red solid; width:3em; height:1em;"></td>
| I = <td colspan="2" style="border:none; border-bottom:1px solid black; width:3em; height:1em; box-sizing:border-box;"></td>
| I = <td colspan="2" style="border:1px red solid; border-bottom:1px solid black; width:3em; height:1em; box-sizing:border-box;"></td>
| J = <td colspan="2" style="border:none; border-bottom:1px solid black; width:3em; height:1em; box-sizing:border-box;"></td>
| J = <td colspan="2" style="border:1px red solid; border-bottom:1px solid black; width:3em; height:1em; box-sizing:border-box;"></td>
| K = <td style="border:none; border-right:1px solid black; border-bottom:1px solid black; width:1.5em; height:1em; box-sizing:border-box;"></td><td style="border:none; border-bottom:1px solid black; width:1.5em; height:1em; box-sizing:border-box;"></td>
| K = <td style="border:1px red solid; border-right:1px solid black; border-bottom:1px solid black; width:1.5em; height:1em; box-sizing:border-box;"></td><td style="border:1px red solid; border-bottom:1px solid black; width:1.5em; height:1em; box-sizing:border-box;"></td>
| L = <td style="border:none; border-bottom:3px double black; width:1.5em; height:1em; box-sizing:border-box;"></td>
| L = <td style="border:1px red solid; border-bottom:3px double black; width:1.5em; height:1em; box-sizing:border-box;"></td>
| M = <td style="border:none; border-bottom:1px solid black; width:1.5em; height:1em; box-sizing:border-box;"></td>
| M = <td style="border:1px red solid; border-bottom:1px solid black; width:1.5em; height:1em; box-sizing:border-box;"></td>
| N = <td style="border:none; border-right:1px solid black; border-bottom:1px solid black; width:1.5em; height:1em; box-sizing:border-box;"></td><td style="border:none; border-bottom:1px solid black; width:1.5em; height:1em; box-sizing:border-box;"></td>
| N = <td style="border:1px red solid; border-right:1px solid black; border-bottom:1px solid black; width:1.5em; height:1em; box-sizing:border-box;"></td><td style="border:1px red solid; border-bottom:1px solid black; width:1.5em; height:1em; box-sizing:border-box;"></td>
}}
}}
}}
}}
</tr>
</tr>
<tr style="text-align:center; border:none;">
<tr style="text-align:center; border:1px red solid;">
{{
{{
#loop: i
#loop: i
Riga 33: Riga 33:
| B =  
| B =  
| C =
| C =
| D = <td colspan="2" style="border:none; width:3em; height:1em;"></td>
| D = <td colspan="2" style="border:1px red solid; width:3em; height:1em;"></td>
| E = <td style="border:none; border-right:1px solid black; width:1.5em; height:1em; box-sizing:border-box;"></td><td style="border:none; width:1.5em; height:1em;"></td>
| E = <td style="border:1px red solid; border-right:1px solid black; width:1.5em; height:1em; box-sizing:border-box;"></td><td style="border:1px red solid; width:1.5em; height:1em;"></td>
| F =  
| F =  
| G = <td style="border:none; border-right:1px solid black; width:1.5em; height:1em; box-sizing:border-box;"></td><td style="border:none; width:1.5em; height:1em;"></td>
| G = <td style="border:1px red solid; border-right:1px solid black; width:1.5em; height:1em; box-sizing:border-box;"></td><td style="border:1px red solid; width:1.5em; height:1em;"></td>
| H = <td colspan="2" style="border:none; border-right:1px solid black; width:3em; height:1em; box-sizing:border-box;"></td>
| H = <td colspan="2" style="border:1px red solid; border-right:1px solid black; width:3em; height:1em; box-sizing:border-box;"></td>
| I = <td colspan="2" style="border:none; width:3em; height:1em;"></td>
| I = <td colspan="2" style="border:1px red solid; width:3em; height:1em;"></td>
| J = <td colspan="2" style="border:none; border-right:1px solid black; width:3em; height:1em; box-sizing:border-box;"></td>
| J = <td colspan="2" style="border:1px red solid; border-right:1px solid black; width:3em; height:1em; box-sizing:border-box;"></td>
| K = <td colspan="2" style="border:none; width:3em; height:1em;"></td>
| K = <td colspan="2" style="border:1px red solid; width:3em; height:1em;"></td>
| L = <td style="border:none; width:1.5em; height:1em;"></td>
| L = <td style="border:1px red solid; width:1.5em; height:1em;"></td>
| M = <td style="border:none; width:1.5em; height:1em;"></td>
| M = <td style="border:1px red solid; width:1.5em; height:1em;"></td>
| N = <td style="border:none; border-right:1px solid black; width:1.5em; height:1em; box-sizing:border-box;"></td><td style="border:none; width:1.5em; height:1em;"></td>
| N = <td style="border:1px red solid; border-right:1px solid black; width:1.5em; height:1em; box-sizing:border-box;"></td><td style="border:1px red solid; width:1.5em; height:1em;"></td>
}}
}}
}}
}}

Versione delle 15:55, 25 set 2013


Il template Genealogia serve per creare una riga di albero genealogico.


Utilizzo

Per utilizzare il template è sufficiente eseguire un copia/incolla del seguente codice:

{{Genealogia
Quantità = <!-- Numero di parametri ArgXX -->

Arg1 = <!-- Primo parametro -->

Arg2 = <!-- Secondo parametro -->

...
Nome1 = <!-- Primo nome -->

Nome2 = <!-- Secondo nome -->

...
}}

Ogni sequenza di template che costituisce il medesimo albero genealogico dovrà essere preceduta da:

<table style="border-collapse:collapse;">

e seguita da:

</table>

Parametri

Quantità

Il primo parametro previsto dal template specifica il numero di parametri ArgXX da utilizzare nella riga dell'albero genealogico. Questo parametro è obbligatorio.

ArgXX

I parametri successivi al primo che iniziano con il prefisso Arg specificano il tipo di oggetto da inserire nella riga dell'albero genealogico. Questi parametri sono facoltativi. La lista dei valori ammessi prevede:

  • A:
Jon Snow
  • B:
Celle vuote 2x2
  • C:
Celle vuote 2x1
  • D:
  • E:
  • F:
  • G:
  • H:
  • I:
  • J:
  • K:
  • L:
  • M:
  • N:

NomeXX

I parametri successivi al primo che iniziano con il prefisso Nome indicano i nomi da inserire relativamente agli argomenti indicati. Il suffisso numero da specificare deve essere lo stesso dei parametri Arg corrispondenti parametrizzati con A.

Esempi di utilizzo

{{Genealogia | Quantità = 5 | Arg1 = B | Arg2 = A | Arg3 = D | Arg4 = A | Arg5 = B | Nome2 = [[Edmure Tully]]
| Nome4 = [[Roslin Frey]]}}
Edmure TullyRoslin Frey


{{Genealogia | Quantità = 5 | Arg1 = B | Arg2 = A | Arg3 = E | Arg4 = A | Arg5 = B | Nome2 = [[Stannis Baratheon]]
| Nome4 = [[Selyse Florent]]}}
{{Genealogia | Quantità = 11 | Arg1 = B | Arg2 = B | Arg3 = B | Arg4 = B | Arg5 = B | Arg6 = F | Arg7 = B | Arg8 = B | Arg9 = B
| Arg10 = B | Arg11 = B}}
{{Genealogia | Quantità = 9 | Arg1 = B | Arg2 = B | Arg3 = B | Arg4 = C | Arg5 = A | Arg6 = C | Arg7 = B | Arg8 = B | Arg9 = B
| Nome5 = [[Shireen Baratheon]]}}
Stannis BaratheonSelyse Florent
Shireen Baratheon


{{Genealogia | Quantità = 15 | Arg1 = B | Arg2 = B | Arg3 = B | Arg4 = B | Arg5 = B | Arg6 = B | Arg7 = A | Arg8 = G | Arg9 = A
| Arg10 = B | Arg11 = B | Arg12 = B | Arg13 = B | Arg14 = B | Arg15 = B | Nome7 = [[Oberyn Martell]] | Nome9 = [[Ellaria Sand]]}}
{{Genealogia | Quantità = 21 | Arg1 = B | Arg2 = B | Arg3 = H | Arg4 = I | Arg5 = I | Arg6 = I | Arg7 = I | Arg8 = J | Arg9 = I
| Arg10 = I | Arg11 = K | Arg12 = I | Arg13 = J | Arg14 = I | Arg15 = I | Arg16 = I | Arg17 = I | Arg18 = J | Arg19 = B
| Arg20 = B | Arg21 = B}}
{{Genealogia | Quantità = 9 | Arg1 = B | Arg2 = A | Arg3 = B | Arg4 = A | Arg5 = B | Arg6 = A | Arg7 = B | Arg8 = A | Arg9 = B
| Nome2 = [[Elia Sand]] | Nome4 = [[Obella Sand]] | Nome6 = [[Dorea Sand]] | Nome8 = [[Loreza Sand]]}}
Oberyn MartellEllaria Sand
Elia SandObella SandDorea SandLoreza Sand