Diferencia entre revisiones de «Plantilla:Ficha de videojuego»
De WikiCAAD
(No se muestran 40 ediciones intermedias de 2 usuarios) | |||
Línea 1: | Línea 1: | ||
<noinclude> | <noinclude> | ||
{{#cargo_attach:_table=Juegos}} | |||
{{#template_params: | |||
| autor | |||
| empresa | |||
| tipo | |||
| fecha | |||
| | | year | ||
| | | sistemas_disponibles | ||
| sistema_autoria | |||
| genero | |||
| idiomas | |||
| contacto | |||
| descarga | |||
| web | |||
}} | }} | ||
</ | </noinclude><!----><templatestyles src="Template:Infobox/styles.css" /><!----><templatestyles src="Template:Skin/styles.css" /><!----><templatestyles src="Template:Extension/status.css" /><includeonly>{{#cargo_store:_table=Juegos | ||
</ | |Titulo={{PAGENAME}} | ||
|imagen={{{imagen|}}} | |||
|autor={{{autor|}}} | |||
< | |empresa={{{empresa|}}} | ||
< | |tipo={{{tipo|}}} | ||
< | |fecha={{{fecha|}}} | ||
|year={{{year|}}} | |||
|sistema_autoria={{{sistema_autoria|}}} | |||
|sistemas_disponibles={{{sistemas_disponibles|}}} | |||
}} | |idiomas={{{idiomas|}}} | ||
{{ | |genero={{{genero|}}} | ||
|contacto={{{contacto|}}} | |||
|descarga={{{descarga|}}} | |||
|web={{{web|}}} | |||
|fichero={{{fichero|}}} | |||
}}<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:</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:{{{ | {{#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; font-size: -1"> | ||
<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}}}]]}}<!-- | ||
</ | -->{{#if:{{{fichero|}}}|[[Image:Disco.png|40px|link={{{fichero}}}]]}}<!-- | ||
< | --><br><br>✏ {{#formlink:form=Juegos|link text=Editar juego|target={{FULLPAGENAME}}}}</td> | ||
</table> | |||
{{#if:{{{ | </div> | ||
<tr> | </div> | ||
<td | |||
<td> | |||
{{#arraymap: {{{ | |||
}} | |||
</td> | |||
</tr> | |||
}} | |||
{{#if:{{{ | |||
<tr> | |||
<td | |||
<td> | |||
{{# | |||
}} | |||
</td> | |||
</tr> | |||
}} | |||
{{#if:{{{ | |||
<tr> | |||
<td | |||
<td> | |||
{{# | |||
}} | |||
</td> | |||
</tr> | |||
}} | |||
< | |||
{{#if:{{{contacto|}}}| | |||
[[Image:arroba.png|40px|link={{{contacto}}}]] | |||
}} | |||
{{#if:{{{descarga|}}}| | |||
[[Image:Disco.png|40px|link={{{descarga}}}]] | |||
}} | |||
{{#if:{{{web|}}}| | |||
[[Image:Web.png|40px|link={{{web}}}]] | |||
}} | |||
</ | |||
</ | |||
</ | |||
< | |||
{{#if: {{{year|}}} | {{#if: {{{year|}}} | ||
| [[Categoría:Anuario {{{year}}}]] | | [[Categoría:Anuario {{{year}}}]] | ||
| [[Categoría:Anuario {{#time:Y|{{{fecha}}}}}]] | | [[Categoría:Anuario {{#time:Y|{{{fecha}}}}}]] | ||
}} | }} | ||
{{#if: {{{sistema_autoria|}}} | {{#if: {{{sistema_autoria|}}} | ||
| [[Categoría: | | [[Categoría:Aventuras realizadas con {{{sistema_autoria}}}]] | ||
}} | }} | ||
[[Categoría:Juegos]] | [[Categoría:Juegos]] | ||
</includeonly> | </includeonly> |
Revisión del 11:31 7 jul 2025
Esta plantilla añade filas a la tabla «Juegos», que declara la plantilla SchemaJuegos. Ver tabla.
Esta es la plantilla "Ficha de videojuego". Debe llamarse en el siguiente formato:
{{Ficha de videojuego |autor= |empresa= |tipo= |fecha= |year= |sistemas_disponibles= |sistema_autoria= |genero= |idiomas= |contacto= |descarga= |web= }}
Editar la página para ver el texto de la plantilla.