ZexisStryfe (talk | contribs) No edit summary |
ZexisStryfe (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
API call | API call | ||
-->{{#get_web_data: | --><!--{{#get_web_data: | ||
url={{SERVER}}/api.php?action=query&prop=pageimages{{!}}extracts&exlimit=1&exintro=1&exchars=430&explaintext=1&format=json&titles=<!-- | url={{SERVER}}/api.php?action=query&prop=pageimages{{!}}extracts&exlimit=1&exintro=1&exchars=430&explaintext=1&format=json&titles= --><!-- | ||
To change featured article, change the page name below. | To change featured article, change the page name below. | ||
Line 12: | Line 12: | ||
Leave everything else as it is. | Leave everything else as it is. | ||
-->|format=JSON | --><!--|format=JSON | ||
|data=title=title,pageimage=pageimage,description=extract | |data=title=title,pageimage=pageimage,description=extract | ||
|cache seconds=604800 | |cache seconds=604800 | ||
}} | }} --> | ||
<div class="card" id="featured_article"> | <div class="card" id="featured_article"> | ||
<!-- <div class="card-image card-image-featured">[[File:{{#external_value:pageimage}}|260px|link={{#external_value:title}}]]</div> | <!-- <div class="card-image card-image-featured">[[File:{{#external_value:pageimage}}|260px|link={{#external_value:title}}]]</div> |
Revision as of 07:37, 18 October 2023
This documentation is transcluded from Template:METATRON Wiki/Featured article/doc. Changes can be proposed in the talk page.
- Description
- This template is a component of the home page for showing featured article. It should only be used on the home page. To change the featured article, edit this template as instructed in wikitext. Description and image are automatically retrieved through API. To move the frame of the thumbnail, please edit the stylesheet of this template.