Diferencia entre revisiones de «Plantilla:Ficha de videojuego»

De WikiCAAD
 
(No se muestran 134 ediciones intermedias de 2 usuarios)
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;"
|-
| colspan="2" style="background-color: #4600B4; color: #ffffff; text-align: center;" | '''''{{{titulo}}}'''''
|-
| colspan="2" style="text-align: center;" |
[[File:{{{imagen}}}|200px|alt={{{Nombre}}}|center]]
|-
| colspan="2" style="text-align: center;" |
{{{autor}}} - {{{fecha}}}
|-
| style="background-color: #4682B4; color: #ffffff;" | Autor/es
| {{{autor}}}
|-
| style="background-color: #4682B4; color: #ffffff;" | Tipo
| {{{tipo}}}
|-
| style="background-color: #4682B4; color: #ffffff;" | Sistema de Autoría
| {{{sistema_autoria}}}
|-
| style="background-color: #4682B4; color: #ffffff;" | Sistemas disponibles
| {{{sistemas_disponibles}}}
|-
| style="background-color: #4682B4; color: #ffffff;" | Idiomas
| {{{idiomas}}}
|-
| style="background-color: #4682B4; color: #ffffff;" | Género
| {{{genero}}}
|}
<noinclude>
<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>
</noinclude>
<!----><templatestyles src="Template:Infobox/styles.css" />
<!----><templatestyles src="Template:Skin/styles.css" />
<!----><templatestyles src="Template:Extension/status.css" />
<!---->
<includeonly>
<div class="infobox infobox-juego">
  <div class="infobox-title" style="text-align: center;  font-size: 1.2em;">{{PAGENAME}}</div>
  {{#if:{{{imagen|}}}|<div class="infobox-image">[[Image:{{{imagen}}}|{{{imagesize|220}}}px]]</div>}}
  <div class="infobox-table">
    <table>
      {{#if:{{{autor|}}}|<tr class="infobox-row"><td><b>Autor/es:</b></td><td>
        {{#arraymap: {{{autor|}}} |, |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:{{{empresa|}}}|<tr class="infobox-row"><td><b>Compañía:</b></td><td>{{{empresa}}}</td></tr>}}
      {{#if:{{{tipo|}}}|<tr class="infobox-row"><td><b>Tipo de juego:</b></td><td>{{{tipo}}}</td></tr>}}
      {{#if:{{{fecha|}}}|<tr class="infobox-row"><td><b>Fecha:</b></td><td>{{{fecha}}}</td></tr>|
        {{#if:{{{year|}}}|<tr class="infobox-row"><td><b>Año:</b></td><td>{{{year}}}</td></tr>}}
      }}
      {{#if:{{{sistema_autoria|}}}|<tr class="infobox-row"><td><b>Sistema:</b></td><td>{{{sistema_autoria}}}</td></tr>}}
      {{#if:{{{sistemas_disponibles|}}}|<tr class="infobox-row"><td><b>Plataformas:</b></td><td>{{#invoke:String|split|{{{sistemas_disponibles}}}|,}}</td></tr>}}
      {{#if:{{{idiomas|}}}|<tr class="infobox-row"><td><b>Idiomas:</b></td><td>{{#invoke:String|split|{{{idiomas}}}|,}}</td></tr>}}
      {{#if:{{{genero|}}}|<tr class="infobox-row"><td><b>Ambientación:</b></td><td>{{#invoke:String|split|{{{genero}}}|,}}</td></tr>}}
      <td colspan="2" style="text-align:center">
<!--  -->{{#if:{{{contacto|}}}|[[Image:arroba.png|40px|link={{{contacto}}}]]}}
<!--  -->{{#if:{{{descarga|}}}|[[Image:Disco.png|40px|link={{{descarga}}}]]}}
<!--  -->{{#if:{{{web|}}}|[[Image:Web.png|40px|link={{{web}}}]]}}
      </td>
    </table>
  </div>
</div>
{{#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]]
</includeonly>

Revisión actual - 07:11 7 jul 2025