Diferencia entre revisiones de «Plantilla:Embeber wiki»
De 15Mpedia
(No se muestran 29 ediciones intermedias realizadas por un usuario) | |||
Línea 1: | Línea 1: | ||
{{#get_web_data: | {{#get_web_data: | ||
− | url=https://{{{lang|{{{2| | + | url=https://{{{lang|{{{2|es}}}}}}.{{{family|{{{1|wikipedia}}}}}}.org/w/api.php?action=query&prop=extracts&exchars={{{size|{{{4|1000}}}}}}&redirects=1&titles={{#replace:{{{page|{{{3|Wiki}}}}}}| |_}}&format=json |
− | |data= | + | |data=extract=extract,pageid=pageid,ns=ns,title=title |
+ | |format=json | ||
+ | }}{{#get_web_data: | ||
+ | url=https://{{{lang|{{{2|es}}}}}}.{{{family|{{{1|wikipedia}}}}}}.org/w/api.php?action=parse&prop=images&page={{#replace:{{{page|{{{3|Wiki}}}}}}| |_}}&format=json | ||
+ | |data=images=images | ||
+ | |format=json | ||
+ | }}{{#get_web_data: | ||
+ | url=https://{{{lang|{{{2|es}}}}}}.{{{family|{{{1|wikipedia}}}}}}.org/w/api.php?action=parse&prop=externallinks&page={{#replace:{{{page|{{{3|Wiki}}}}}}| |_}}&format=json | ||
+ | |data=externallinks=externallinks | ||
|format=json | |format=json | ||
}}{{#ifeq:{{{frame|yes}}}|yes| | }}{{#ifeq:{{{frame|yes}}}|yes| | ||
<table class="wikitable" border=1> | <table class="wikitable" border=1> | ||
− | <tr><th>{{#external_value:title}}</th></tr> | + | <!--<tr><th style="font-size: 150%;">{{#external_value:title}}</th></tr>--> |
− | <tr><td>{{#external_value:extract}} | + | <tr><td style="font-size: 110%; padding: 10px;border-top:3px solid #2F74D0;border-bottom:3px solid #2F74D0;">{{#ifeq:{{#expr:0{{#arraymap:{{#external_value:images}}|,|@|{{#if:{{#pos:{{lc:@}}|.jpg}}|+1}}|}}}}|1|{{#arraymap:{{#external_value:images}}|,|@|{{#if:{{#pos:{{lc:@}}|.jpg}}|[[File:@|150px|right]]}}|}}}}{{#external_value:extract}} ''([https://{{{lang|{{{2|es}}}}}}.{{{family|{{{1|wikipedia}}}}}}.org/wiki/{{#replace:{{{page|{{{3|Wiki}}}}}}| |_}} Seguir leyendo])'' |
− | < | + | |
+ | {{#ifeq:{{#expr:0{{#arraymap:{{#external_value:images}}|,|@|{{#if:{{#pos:{{lc:@}}|.jpg}}|+1}}|}}}}|1||<center style="margin: 5px 0px 5px 0px;">{{#arraymap:{{#external_value:images}}|,|@|{{#if:{{#pos:{{lc:@}}|.jpg}}|[[File:@|0x150px]] }}|}}</center>}} | ||
+ | |||
+ | {{#if:{{#external_value:externallinks}}| | ||
+ | ;Enlaces externos{{#arraymap:{{#external_value:externallinks}}|,|@|<br/> | ||
+ | * @ | ||
+ | |}} | ||
+ | }} | ||
+ | |||
+ | <span style="float: right;font-size: 80%;">Extraído de [https://{{{lang|{{{2|es}}}}}}.{{{family|{{{1|wikipedia}}}}}}.org/wiki/{{#replace:{{{page|{{{3|Wiki}}}}}}| |_}} {{ucfirst:{{{family|wikipedia}}}}}]</span> | ||
+ | </td></tr> | ||
</table> | </table> | ||
− | }}<noinclude>[[Categoría:Plantillas]]</noinclude> | + | }}<includeonly>[[Categoría:Páginas con contenido embebido de {{ucfirst:{{{family|wikipedia}}}}}]]</includeonly><noinclude>[[Categoría:Plantillas]]</noinclude> |