Template:S: differenze tra le versioni

Da Wikitrek.
Vai alla navigazione Vai alla ricerca
Nessun oggetto della modifica
Nessun oggetto della modifica
 
(6 versioni intermedie di 2 utenti non mostrate)
Riga 1: Riga 1:
<includeonly>{{#switch: {{lc:{{{1}}}}}
<includeonly>{{#switch: {{lc:{{{1}}}}}
| e = [[USS Enterprise NCC-1701|''Enterprise'']]
| ec = [[USS Enterprise NCC-1701-C|''Enterprise-C'']]
  | ed = [[USS Enterprise NCC-1701-D|''Enterprise-D'']]
  | ed = [[USS Enterprise NCC-1701-D|''Enterprise-D'']]
  | ee = [[USS Enterprise NCC-1701-E|''Enterprise-E'']]
  | ee = [[USS Enterprise NCC-1701-E|''Enterprise-E'']]
| eg = [[USS Enterprise NCC-1701-G|''Enterprise-G'']]
  | pro = [[USS Protostar NX-76884| ''Protostar'']]
  | pro = [[USS Protostar NX-76884| ''Protostar'']]
  | voy = [[USS Voyager NCC-74656| ''Voyager'']]
  | voy = [[USS Voyager NCC-74656| ''Voyager'']]
Riga 7: Riga 10:
  | disa = [[USS Discovery NCC-1031-A| ''Discovery''-A ]]
  | disa = [[USS Discovery NCC-1031-A| ''Discovery''-A ]]
  | ta = [[USS Titan NCC-80102-A|''Titan''-A]]
  | ta = [[USS Titan NCC-80102-A|''Titan''-A]]
| c = [[USS Cerritos NCC-75567|''Cerritos'']]
| ds9
| dsn = [[Deep Space Nine (stazione spaziale)|''Deep Space Nine'']]
  | ''Astronave sconosciuta'' - {{{1}}}
  | ''Astronave sconosciuta'' - {{{1}}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
Riga 13: Riga 19:
Le varie opzioni (no-''case sensitive'') disponibili per questo template sono:
Le varie opzioni (no-''case sensitive'') disponibili per questo template sono:


{| class="wikitable sortable" style="width:80%"
<table class="wikitable sortable" style="width:80%">
|-
  <th style="width:40%">Valore del parametro</th><th>Testo restituito</th>
!style="width: 20%;" | Valore del parametro!!style="width: 20%;" | Testo restituito
  <tr>
|-
    <td>E</td>
|ED  
    <td>{{S|E}}</td>
|{{S|ED}}  
  </tr>
|-
  <tr>
|EE  
    <td>EC</td>
|{{S|EE}}
    <td>{{S|EC}}</td>
|-
  </tr>
|DIS  
  <tr>
|{{S|DIS}}
    <td>ED</td>
|-
    <td>{{S|ED}}</td>
|DISA  
  </tr>
|{{S|DISA}}  
  <tr>
|-
    <td>EE</td>
|PRO  
    <td>{{S|Ee}}</td>
|{{S|PRO}}  
  </tr>
|-
  <tr>
|VOY  
    <td>EG</td>
|{{S|VOY}}
    <td>{{S|Eg}}</td>
|-
  </tr><tr>
|TA
    <td>DIS</td>
|{{S|TA}}
    <td>{{S|dis}}</td>
|}
  </tr>
  <tr>
    <td>DISA</td>
    <td>{{S|disa}}</td>
  </tr>
  <tr>
    <td>PRO</td>
    <td>{{S|pro}}</td>
  </tr>
  <tr>
    <td>VOY</td>
    <td>{{S|voy}}</td>
  </tr>
  <tr>
    <td>TA</td>
    <td>{{S|TA}}</td>
  </tr>
  <tr>
    <td>DSN oppure DS9</td>
    <td>{{S|DS9}}</td>
  </tr>
  <tr>
    <td>C</td>
    <td>{{S|c}}</td>
  </tr>
</table>


== Esempio ==
== Esempio ==
{{#invoke:FunzioniGeneriche|EsempioTemplate}}
{{#invoke:FunzioniGeneriche|EsempioTemplate}}
</noinclude>
</noinclude>

Versione attuale delle 18:42, 1 apr 2024

Template Ship: velocizza l'inserimento del nome di una astronave e del link alla relativa pagina.

Descrizione

Le varie opzioni (no-case sensitive) disponibili per questo template sono:

Valore del parametroTesto restituito
E Enterprise
EC Enterprise-C
ED Enterprise-D
EE Enterprise-E
EG Enterprise-G
DIS Discovery
DISA Discovery-A
PRO Protostar
VOY Voyager
TA Titan-A
DSN oppure DS9 Deep Space Nine
C Cerritos

Esempio

Questo esempio è automaticamente generato tramite script LUA a partire dal codice di esempio presente in Template:S/Esempio

Il codice

* {{S|ED}}
* {{S|EE}}
* {{S|TA}}

restituisce