Diferencia entre revisiones de «Plantilla:Ficha de videojuego»

De WikiCAAD
 
(No se muestran 124 ediciones intermedias del mismo usuario)
Línea 1: Línea 1:
{| class="infobox Personaje" cellpadding="2" cellspacing="2" align="right" width="240" style="font-family: verdana, sans-serif; font-size: 10px; border: 1px solid #4682B4; background-color: none; margin: 0 0 1em 1em;"  
<noinclude>
|-
</noinclude><!--
| colspan="2" style="background-color: #4600B4; color: #ffffff; text-align: center;" | '''''{{{titulo}}}'''''
--><templatestyles src="Template:Infobox/styles.css" /><!--
|-
--><templatestyles src="Template:Skin/styles.css" /><!--
| colspan="2" style="text-align: center;" |
--><templatestyles src="Template:Extension/status.css" /><!--
[[File:{{{imagen}}}|200px|alt={{{Nombre}}}|center]]
--><includeonly>
|-
<table class="infobox infobox-{{dir|{{PAGELANGUAGE}}}} skin-infobox ext-status-{{#switch: {{lc: {{{status|unknown}}} }}
| colspan="2" style="text-align: center;" |
|unmaintained|unstable|experimental|beta|stable={{{status}}}
{{{autor}}} - {{{fecha}}}
|#default=unknown
|-
}}">
| style="background-color: #4682B4; color: #ffffff;" | Autor/es
<tr class="infobox-header skin-infobox-header" style="text-align:{{dir|{{PAGELANGUAGE}}|right|left}}">
| {{{autor}}}
<th colspan="2" style="text-align:center">
|-
<span style="font-size: 130%;">{{{name|{{PAGENAME}}}}}</span><br />{{{empresa|}}} ({{{year|}}})
| style="background-color: #4682B4; color: #ffffff;" | Tipo
</th>
| {{{tipo}}}
<tr>
|-
<td colspan="2" style="text-align: center;">[[Image:{{{imagen}}}|{{{imagesize|220}}}px]]</td>
| style="background-color: #4682B4; color: #ffffff;" | Sistema de Autoría
</tr>
| {{{sistema_autoria}}}
{{#if:{{{autor|}}}|
|-
<tr>
| style="background-color: #4682B4; color: #ffffff;" | Sistemas disponibles
<td style="vertical-align: middle;">'''Autor/es'''</td>
| {{{sistemas_disponibles}}}
<td>
|-
{{#arraymap: {{{autor|}}} |, |x|
| style="background-color: #4682B4; color: #ffffff;" | Idiomas
  {{#if: {{#titleparts:x|1}} | <!-- Si la primera parte del token no está vacía -->
| {{{idiomas}}}
    [[{{#titleparts:x|1}}]]{{#ifeq:{{#titleparts:x|2}}| | |}}
|-
  }}
| style="background-color: #4682B4; color: #ffffff;" | Género
}}
| {{{genero}}}
</td>
|}
</tr>
}}
{{#if:{{{empresa|}}}|
<tr>
<td style="vertical-align: middle">'''Compañía'''</td>
<td>
[[{{{empresa|}}}]]
</td>
</tr>
}}
{{#if:{{{tipo|}}}|
<tr>
<td style="vertical-align: middle">'''Tipo de juego'''</td>
<td>
[[{{{tipo|}}}]]
</td>
</tr>
}}
{{#if:{{{year|}}}|
<tr>
<td style="vertical-align: middle">'''Año'''</td>
<td>
[[:Categoría:Anuario_{{{year}}}|{{{year}}}]]
</td>
</tr>
}}
{{#if:{{{fecha|}}}|
<tr>
<td style="vertical-align: middle">'''Lanzamiento'''</td>
<td>
{{#iferror:{{#time:d/m/Y|{{{fecha}}}}}|n/d}}
</td>
</tr>
}}
{{#if:{{{sistema_autoria|}}}|
<tr>
<td style="vertical-align: middle">'''Sistema'''</td>
<td>
[[{{{sistema_autoria|}}}]]
</td>
</tr>
}}
{{#if:{{{sistemas_disponibles|}}}|
<tr>
<td style="vertical-align: middle">'''Plataformas'''</td>
<td>
{{#arraymap: {{{sistemas_disponibles|}}} |, |x|
  {{#if: {{#titleparts:x|1}} | <!-- Si la primera parte del token no está vacía -->
    [[{{#titleparts:x|1}}]]{{#ifeq:{{#titleparts:x|2}}| | |}}
  }}
}}
</td>
</tr>
}}
{{#if:{{{idiomas|}}}|
<tr>
<td style="vertical-align: middle">'''Idiomas'''</td>
<td>
{{#arraymap: {{{idiomas|}}} |, |x|
  {{#if: {{#titleparts:x|1}} | <!-- Si la primera parte del token no está vacía -->
    [[{{#titleparts:x|1}}]]{{#ifeq:{{#titleparts:x|2}}| | |}}
  }}
}}
</td>
</tr>
}}
{{#if:{{{genero|}}}|
<tr>
<td style="vertical-align: middle">'''Ambientación'''</td>
<td>
{{#arraymap: {{{genero|}}} |, |x|
  {{#if: {{#titleparts:x|1}} | <!-- Si la primera parte del token no está vacía -->
    [[{{#titleparts:x|1}}]]{{#ifeq:{{#titleparts:x|2}}| | |}}
  }}
}}
</td>
</tr>
}}
<th colspan="2" style="text-align:center">
Contacto<br>
{{#if:{{{contacto|}}}|
[[Image:arroba.png|40px|link={{{contacto}}}]]
}}
{{#if:{{{descarga|}}}|
[[Image:Disco.png|40px|link={{{descarga}}}]]
}}
{{#if:{{{web|}}}|
[[Image:Web.png|40px|link={{{web}}}]]
}}
</th>
</tr>
</table>
 
<includeonly>
 
{{#if: {{{year|}}}
| [[Categoría:Anuario {{{year}}}]]
| [[Categoría:Anuario {{#time:Y|{{{fecha}}}}}]]
}}
 
{{#if: {{{sistema_autoria|}}}
| [[Categoría:Aventuras realizadas con {{{sistema_autoria}}}]]
}}
 
[[Categoría:Juegos]]
[[Categoría:Juegos]]
[[Categoría:Ficha de videojuego]]
</includeonly>
<noinclude>
<templatedata>
{
"description": "Una plantilla para introducir la ficha técnica de un videojuego",
"params": {
"titulo": {
"label": "Titulo",
"type": "string",
"required": true,
"suggested": false,
"deprecated": false,
"description": "Titulo del juego"
},
"imagen": {
"label": "imagen",
"type": "string/wiki-file-name",
"required": false,
"suggested": true,
"deprecated": false,
"description": "imagendel juego"
},
"autor": {
"label": "autor",
"type": "string/wiki-page-name",
"required": false,
"suggested": true,
"deprecated": false,
"description": "autor juego"
},
"fecha": {
"label": "fecha",
"type": "date",
"required": false,
"suggested": true,
"deprecated": false,
"description": "fecha publicacion juego"
},
"tipo": {
"label": "tipo",
"type": "string/wiki-page-name",
"required": false,
"suggested": false,
"deprecated": false,
"description": "tipo juego",
            "suggestedvalues": [ "Libro 1", "Libro 2", "Libro 3" ]
},
"sistema_autoria": {
"label": "sistema_autoria",
"type": "string/wiki-page-name",
"required": false,
"suggested": true,
"deprecated": false,
"description": "sistema_autoria juego"
},
"sistemas_disponibles": {
"label": "sistemas_disponibles",
"type": "string/wiki-page-name",
"required": false,
"suggested": true,
"deprecated": false,
"description": "sistemas_disponibles juego"
},
"idiomas": {
"label": "Idiomas",
"type": "string",
"required": false,
"suggested": true,
"deprecated": false,
"description": "Idiomasjuego"
},
"genero": {
"label": "Género",
"type": "string",
"required": false,
"suggested": true,
"deprecated": false,
"description": "Género juego"
}
}
}
</templatedata>
</noinclude>

Revisión actual - 09:53 27 jul 2024