Template:MainPage/Vector/Featured article: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary Tags: Reverted 2017 source edit |
mNo edit summary Tag: 2017 source edit |
||
(10 intermediate revisions 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=<!-- | ||
Line 16: | Line 16: | ||
|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:Fortuna_Valley_01.jpg|x280px|link=Special:MyLanguage/{{#external_value:title}}]]</div> | |||
<div class="card-text"> | |||
<p class="byline">Featured article</p> | |||
<h3>[[{{#external_value:title}}]]</h3> | |||
{{#external_value:description}} | |||
</div> | |||
</div><templatestyles src="MainPage/Vector/Featured article/styles.css" /></includeonly><noinclude> | |||
</div> | |||
<templatestyles src="MainPage/Vector/Featured article/styles.css" /></includeonly><noinclude> | |||
{{/doc}}<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. --></noinclude> | {{/doc}}<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. --></noinclude> |