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 2: | Line 2: | ||
{{#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={{Main page/settings|featured}} | 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=title,pageimage=pageimage,description=extract | ||
|cache seconds=604800 | |cache seconds=604800 | ||
}} | }} | ||
<div class="home-card__background"> | <div class="home-card__background">[[File:{{#external_value:pageimage|default=Placeholderv2.png}}|x200px|link=Special:MyLanguage/{{#external_value:title}}]]</div> | ||
[[File: | <div class="home-card__foreground"> | ||
<div class="home-card__badge">Featured</div> | |||
<div class="home-card__header">[[{{#external_value:title}}]]</div> | |||
<div class="home-card__label">{{#external_value:description}}</div> | |||
</div> | </div> | ||
</div> | </div> | ||
<templatestyles src="Template:Main page/featured/styles.css"/> | <templatestyles src="Template:Main page/featured/styles.css"/> | ||
<noinclude> | <noinclude><!-- For preview only --><templatestyles src="Template:Main page/shared/styles.css" />{{/doc}}</noinclude> | ||
<!-- For preview only --> | |||
<templatestyles src="Template:Main page/shared/styles.css" /> | |||
{{/doc}} | |||
</noinclude> |
Revision as of 02:49, 30 July 2024
[[File:Error: no local variable "pageimage" has been set.|x200px|link=Special:MyLanguage/Error: no local variable "title" has been set.]]
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.