Template:METATRON Wiki/Featured article: Difference between revisions

Template page
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
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.
Leave everything else as it is.
Leave everything else as it is.


-->Jonas_Hunter<!--
--><!--Jonas_Hunter--><!--


To change featured article, change the page name above.
To change featured article, change the page name above.
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>

Latest revision as of 07:37, 18 October 2023

Template documentation[view][edit][history][purge]
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.