Template:MainPage/Citizen/featured: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary Tags: Manual revert 2017 source edit |
mNo edit summary Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
<includeonly> | |||
<!-- API call --> | |||
{{#get_web_data: | |||
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. Leave everything else as it is. --> | |||
{{BASEPAGENAME:{{Main page/settings|featured}}}} | |||
<!--To change featured article, change the page name above. | |||
Leave everything else as it is.--> | |||
|format=JSON | |||
|data=title=title,pageimage=pageimage,description=extract | |||
|cache seconds=604800 | |||
}} | |||
<div id="home-featured" class="home-card home-card--button home-card--col2 home-card--row3"> | <div id="home-featured" class="home-card home-card--button home-card--col2 home-card--row3"> | ||
<div class="home-card__background"> | <div class="home-card__background"> | ||
<div class="home-card__foreground"> | |||
<div class="home-card__badge">Featured</div> | |||
<div class="home-card__header">{{BASEPAGENAME:{{Main page/settings|featured}}}}</div> | |||
<div class="home-card__label">{{#show: {{Main page/settings|featured}} | |||
</div> | |||
</div> | |||
</div> | |||
</div> | </div> | ||
<templatestyles src="Template:Main page/featured/styles.css" /></includeonly><noinclude> | |||
<templatestyles src="Template:Main page/featured/styles.css"/> | |||
< |