Template:MainPage/NewsCard: Difference between revisions

(Created page with "<templatestyles src="MainPage/styles.css" /> {{#tag:html| <a href="{{{link}}}" target="_blank" style="text-decoration: none;"><div class="card"><h3>{{{title|Card title}}}</h3>{{{description|Card description}}}</div></a> }} <noinclude> {{#seo:|robots=noindex, nofollow}} Category:Main Page Templates Category:RidgeRun Templates </noinclude>")
 
mNo edit summary
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:


{{#tag:html|
{{#tag:html|
<a href="{{{link}}}" target="_blank" style="text-decoration: none;"><div class="card"><h3>{{{title|Card title}}}</h3>{{{description|Card description}}}</div></a>
<a href="{{{link|}}}" target="_blank" style="text-decoration: none;"><div class="card"><h3>{{{title|Card title}}}</h3>{{{description|Card description}}}</div></a>
}}
}}


<noinclude>
<noinclude>
{{#seo:|robots=noindex, nofollow}}
 
<templatedata>
{
    "description": "News card",
    "params": {
        "link": {
            "label": "News Link",
            "description": "Link to the News article/page",
            "type": "url"
        },
        "title": {
            "label": "News Title",
            "description": "The title for the news",
            "type": "string"
        },
        "description": {
            "label": "News Description",
            "description":  "A short description of the news",
            "type": "string"
        }
    }
}
</templatedata>
 
[[Category:Main Page Templates]]
[[Category:Main Page Templates]]
[[Category:RidgeRun Templates]]
[[Category:RidgeRun Templates]]
</noinclude>
</noinclude>

Latest revision as of 19:20, 12 November 2024


News card

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
News Linklink

Link to the News article/page

URLoptional
News Titletitle

The title for the news

Stringoptional
News Descriptiondescription

A short description of the news

Stringoptional