Diferencia entre revisiones de «Plantilla:Noticia»
De WikiCAAD
![]() |
|||
(No se muestran 36 ediciones intermedias del mismo usuario) | |||
Línea 1: | Línea 1: | ||
<noinclude> | |||
{{#cargo_attach:_table=Noticias}} | |||
{{#template_params: | |||
| titulo | |||
| fecha | |||
| autor | |||
| fuente | |||
| categoria | |||
}} | |||
</noinclude> | |||
<includeonly> | <includeonly> | ||
{{#cargo_store: | {{#cargo_store: | ||
_table = Noticias | _table = Noticias | ||
|titulo = {{ | |titulo = {{BASEPAGENAME}} | ||
|fecha = {{# | |fecha = {{#creationdate:{{{fecha|}}}}} | ||
|autor = {{{autor|}}} | |autor = {{{autor|}}} | ||
|fuente = {{{fuente|}}} | |fuente = {{{fuente|}}} | ||
|categoria = {{{categoria|}}} | |categoria = {{{categoria|}}} | ||
}} | }}[[Categoría:Noticias]]<span class="noticia-meta"> | ||
''{{#time:d M Y|{{#creationdate:{{{fecha|}}}}}}}''{{#if:{{{autor|}}}| · ''por'' {{{autor}}}}}{{#if:{{{fuente|}}}| · ''Fuente:'' {{{fuente}}}}}{{#if:{{{categoria|}}}| · ''Categoría:'' {{{categoria}}}}} {{#formlink:form=Noticia|link text=✏ {{PAGENAME}}|target={{FULLPAGENAME}}}} | |||
</span> | |||
</includeonly> | </includeonly> |
Revisión actual - 12:42 8 jul 2025
Esta plantilla añade filas a la tabla «Noticias», que declara la plantilla SchemaNoticias. Ver tabla.
Esta es la plantilla "Noticia". Debe llamarse en el siguiente formato:
{{Noticia |titulo= |fecha= |autor= |fuente= |categoria= }}
Editar la página para ver el texto de la plantilla.