Template:MainPage/Citizen/featured: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary Tag: 2017 source edit |
mNo edit summary Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
<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"> | ||
{{#get_web_data: | {{#get_web_data: | ||
url={{SERVER}}/api.php?action=query&prop=pageimages | url={{SERVER}}/api.php?action=query&prop=pageimages|extracts&exlimit=1&exintro=1&exchars=430&explaintext=1&format=json&titles={{Main page/settings|featured}} | ||
|format=JSON | |format=JSON | ||
|data=title=title,pageimage=pageimage,description=extract | |data=title=query.pages.*.title,pageimage=query.pages.*.pageimage,description=query.pages.*.extract | ||
|cache seconds=604800 | |cache seconds=604800 | ||
}} | }} | ||
<div class="home-card__background">[[File{{#external_value:pageimage|default=Placeholderv2.png}}|x200px|link= | <div class="home-card__background">[[File:{{#if: {{#external_value:pageimage}} | ||
| {{#external_value:pageimage}} | |||
| {{#show:{{Main page/settings|featured}}|?Page Image#-|default=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__badge">Featured</div> | ||
<div class="home-card__header">[[{{#external_value:title}}]]</div> | <div class="home-card__header">{{#if: {{#external_value:title}} | ||
<div class="home-card__label">{{#external_value:description}}</div> | | [[{{#external_value:title}}]] | ||
| {{BASEPAGENAME:{{Main page/settings|featured}}}} | |||
}}</div> | |||
<div class="home-card__label">{{#if: {{#external_value:description}} | |||
| {{#external_value:description}} | |||
| {{Main page/settings|featuredtext}} | |||
}}</div> | |||
</div> | </div> | ||
</div> | </div> | ||
<templatestyles src="Template:Main page/featured/styles.css"/> | <templatestyles src="Template:Main page/featured/styles.css"/> | ||
<noinclude><!-- For preview only --><templatestyles src="Template:Main page/shared/styles.css" />{{/doc}}</noinclude> | <noinclude><!-- For preview only --><templatestyles src="Template:Main page/shared/styles.css" />{{/doc}}</noinclude> |
Revision as of 02:51, 30 July 2024
Error: Invalid JSON ($2).
[[File:Error: no local variable "pageimage" has been set.|x200px|link=]]
Featured
[[Error: no local variable "title" has been set.]]
Error: no local variable "description" has been set.
Page Template:Main page/featured/styles.css has no content.
Template loop detected: Template:MainPage/Citizen/featured/doc
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.