Widget:Noticias

De Guild Wars 2 Wiki
Ir a la navegaciónIr a la búsqueda

Description

This widget retrieves the current news from the rss feed found here and displays them in a list under an element with id mainpagenews. It optionally includes links to the forum provided in the add array of the options parameter.

Parameters

options
Optional. A JSON object with any of the following keys with a value:
  • count The quantity of news to display at most. Defaults to 10.
  • min The minimum number of news to show regardless of the reference elements height. Defaults to 3.
  • add An array of objects each with the keys date, link and text to include in the resulting list.
  • hide An array of titles to exlude from the resulting list.

Notes

Example

<div style="min-height: 20em; border: 1px solid gray; box-sizing: border-box;">
<div id="mainpagenews"></div>
</div>
{{#Widget:Noticias|options=
{
    "count": 10,
    "min": 5,
    "add": [
        {
            "date": "Abril 17, 2020",
            "link": "https://es-forum.guildwars2.com/",
            "text": "Noticias del foro"
        }
    ],
    "hide": [
        "Ya está disponible el Festival Super Adventure 2021"
    ]
}
}}