Template:Main page/featured: Difference between revisions

Template page
(Created page with "<!-- PageImages API -->{{#get_web_data: url={{SERVER}}/api.php?action=query&smaxage=604800&maxage=604800&prop=pageimages&pilimit=1&pilicense=any&piprop=name&format=json&titles={{Main page/settings|featured}}|format=JSON|data=pageimage=pageimage|cachesecond=604800}}<!-- Template starts here --><div id="home-featured" class="home-card home-card--button home-card--col2 home-card--row3"> <div class="home-card__background">File:{{#if:{{#external_value:pageimage}}|{{#exter...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!--
<div id="home-card-featured" class="home-card home-card--col2 home-card--row2">
PageImages API
<div class="home-card__label">Featured</div>
-->{{#get_web_data:
url={{SERVER}}/api.php?action=query&smaxage=604800&maxage=604800&prop=pageimages&pilimit=1&pilicense=any&piprop=name&format=json&titles={{Main page/settings|featured}}|format=JSON|data=pageimage=pageimage|cachesecond=604800}}<!--
</div>
Template starts here
--><div id="home-featured" class="home-card home-card--button home-card--col2 home-card--row3">
<div class="home-card__background">[[File:{{#if:{{#external_value:pageimage}}|{{#external_value:pageimage}}|Placeholderv2.png}}|x200px|link={{Main page/settings|featured}}]]</div>
<div class="home-card__foreground">
<div class="home-card__label">Featured</div>
<div class="home-card__header">{{BASEPAGENAME:{{Main page/settings|featured}}}}</div>
</div>
</div><templatestyles src="Template:Main page/featured/styles.css"/><noinclude><!-- For preview only --><templatestyles src="Template:Main page/shared/styles.css" />{{/doc}}</noinclude>

Latest revision as of 19:17, 5 July 2023