Diferencia entre revisiones de «Plantilla:Ficha de videojuego»
De WikiCAAD
(No se muestran 66 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|}}} | |||
{{#if:{{{ | |sistema_autoria={{{sistema_autoria|}}} | ||
<tr> | |sistemas_disponibles={{{sistemas_disponibles|}}} | ||
<td | |idiomas={{{idiomas|}}} | ||
< | |genero={{{genero|}}} | ||
[[{{{ | |contacto={{{contacto|}}} | ||
</td> | |descarga={{{descarga|}}} | ||
</tr> | |web={{{web|}}} | ||
}} | |fichero={{{fichero|}}} | ||
{{#if:{{{ | }}<div class="infobox infobox-juego"> | ||
<tr> | <div class="infobox-title" style="text-align: center; font-size: 1.2em;">{{PAGENAME}}</div> | ||
<td | {{#if:{{{imagen|}}}|<div class="infobox-image">[[Image:{{{imagen}}}|{{{imagesize|220}}}px]]</div>}} | ||
<td> | <div class="infobox-table"> | ||
<table> | |||
</td> | {{#if:{{{autor|}}}|<tr class="infobox-row"><td><b>Autor/es:</b></td><td> | ||
</tr> | {{#arraymap: {{{autor|}}} |, |x| | ||
}} | {{#if: {{#titleparts:x|1}} | <!-- Si la primera parte del token no está vacía --> | ||
{{#if:{{{fecha|}}}| | [[{{#titleparts:x|1}}]]{{#ifeq:{{#titleparts:x|2}}| | |}} | ||
<tr> | }} | ||
<td | }}</td></tr>}} | ||
<td> | {{#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>}} | ||
</td> | {{#if:{{{fecha|}}}|<tr class="infobox-row"><td><b>Fecha:</b></td><td>{{{fecha}}}</td></tr>| | ||
</tr> | {{#if:{{{year|}}}|<tr class="infobox-row"><td><b>Año:</b></td><td>{{{year}}}</td></tr>}} | ||
}} | }} | ||
{{#if:{{{sistema_autoria|}}}| | {{#if:{{{sistema_autoria|}}}|<tr class="infobox-row"><td><b>Sistema:</b></td><td>{{{sistema_autoria}}}</td></tr>}} | ||
<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>}} | |||
<td> | {{#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"> | |||
</td> | <br>{{#if:{{{contacto|}}}|[[Image:arroba.png|40px|link={{{contacto}}}]]}}<!-- | ||
</tr> | -->{{#if:{{{descarga|}}}|[[Image:Disco.png|40px|link={{{descarga}}}]]}}<!-- | ||
}} | -->{{#if:{{{web|}}}|[[Image:Web.png|40px|link={{{web}}}]]}}<!-- | ||
{{#if:{{{sistemas_disponibles|}}}| | -->{{#if:{{{fichero|}}}|[[Image:Disco.png|40px|link={{{fichero}}}]]}}<!-- | ||
<tr | --><br><br>✏ {{#formlink:form=Juegos|link text=Editar juego|target={{FULLPAGENAME}}}}</td> | ||
</table> | |||
<td> | </div> | ||
{{# | </div> | ||
{{#if: {{{sistemas_disponibles|}}} | |||
| {{#invoke:String|categories|{{{sistemas_disponibles}}}|[[Categoría:Aventuras de *]]}} | |||
}} | |||
</td> | |||
</tr> | |||
}} | |||
{{#if:{{{ | |||
<tr> | |||
<td | |||
<td> | |||
{{# | |||
}} | |||
< | |||
{{#if:{{{ | |||
< | |||
{{# | |||
}} | }} | ||
{{#if: {{{idiomas|}}} | |||
| {{#invoke:String|categories_lc|{{{idiomas}}}|[[Categoría:Aventuras en *]]}} | |||
}} | }} | ||
{{#if:{{{ | {{#if: {{{year|}}} | ||
| [[Categoría:Anuario {{{year}}}]] | |||
| [[Categoría:Anuario {{#time:Y|{{{fecha}}}}}]] | |||
}} | }} | ||
{{#if:{{{ | {{#if: {{{sistema_autoria|}}} | ||
| [[Categoría:Aventuras realizadas con {{{sistema_autoria}}}]] | |||
{{{ | |||
}} | }} | ||
[[Categoría:Juegos]] | [[Categoría:Juegos]] | ||
</includeonly> | </includeonly> |
Revisión actual - 14:04 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.