Template:Main page/featured: Difference between revisions

Template page
No edit summary
Tag: Reverted
m (Reverted edits by PabloEscobar (talk) to last revision by Nomad)
Tags: Rollback Reverted
Line 4: Line 4:
  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}}<!--
  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
Template starts here
<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">[[{{#show:{{Main page/settings|featured}}|?Page Image#-|default=File:Placeholderv2.png}}|x200px|link={{Main page/settings|featured}}]]</div>
<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__foreground">
<div class="home-card__badge">🌟 Featured</div>
<div class="home-card__label">Featured</div>
<div class="home-card__header">{{BASEPAGENAME:{{Main page/settings|featured}}}}</div>
<div class="home-card__header">{{BASEPAGENAME:{{Main page/settings|featured}}}}</div>
<div class="home-card__label">{{BASEPAGENAME:{{Main page/settings|featuredtext}}}}</div>
</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>
</div><templatestyles src="Template:Main page/featured/styles.css"/><noinclude><!-- For preview only --><templatestyles src="Template:Main page/shared/styles.css" />{{/doc}}</noinclude>

Revision as of 14:30, 16 May 2024

Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Main page/featured/doc. Changes can be proposed in the talk page.

This template is used on the main page. It is the featured article card in the content section. You can update the content by editing the main page settings.