Template:MainPage/Citizen/featured: Difference between revisions

From IxWiki
Jump to navigation Jump to search
mNo edit summary
Tag: 2017 source edit
mNo edit summary
Tag: 2017 source edit
 
(31 intermediate revisions by the same user not shown)
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--row4">
    {{#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=240&explaintext=1&format=json&titles=<!--
    |format=JSON
To change featured article, change the page name below.
    |data=title=title,pageimage=pageimage,description=extract
Leave everything else as it is.
    |cache seconds=604800
-->Education in Caphiria<!--
    }}
To change featured article, change the page name above.
    <div class="home-card__background">
Leave everything else as it is.
    [[File:{{#if: {{#external_value:pageimage}}
-->
      | {{#external_value:pageimage}}
|format=JSON
      | 01Placeholder.png
|data=title=title,pageimage=pageimage,description=extract
    }}|x200px|link={{Main page/settings|featured}}]]
|cache seconds=604800
    </div>
}}
    <div class="home-card__foreground">
<div class="home-card__background">
    <div class="home-card__badge">Featured</div>
[[File:{{#external_value:pageimage|Placeholderv2.png}}|x200px|link=Special:MyLanguage/{{#external_value:title}}]]
    <div class="card-text">
            <p class="byline">Featured article</p>
            <h3>[[{{#external_value:title}}]]</h3>
            {{#external_value:description}}
        </div>
    </div>
</div>
</div>
    <templatestyles src="Template:Main page/featured/styles.css"/>
<div class="home-card__foreground">
    <noinclude><!-- For preview only --><templatestyles src="Template:Main page/shared/styles.css" />{{/doc}}</noinclude>
<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>
<templatestyles src="Template:MainPage/Citizen/featured/styles.css"/>
<noinclude><!-- For preview only --><templatestyles src="Template:MainPage/Citizen/shared/styles.css" />{{/doc}}</noinclude>

Latest revision as of 13:03, 2 August 2024

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.