Jump to content

Template:Transclude selected current events/doc

From Wikipedia, the free encyclopedia

This templates transcludes current events on specified topics from the daily subpages of Portal:Current events. It is intended for use in the "In the news" sections of Portals.

Usage

[edit]
{{Transclude selected current events | <search pattern 1> | ... | <search pattern n> | not1= | ... | notn= | days= | max= | none= | dates= | more= |header= |footer= }}
Basic
{{Transclude selected current events| search pattern }}
Multiple search patterns
{{Transclude selected current events| search pattern | second search pattern | third search pattern }}
Add as many search patterns as needed
With patterns to exclude items
{{Transclude selected current events| search pattern | not=search pattern to exclude from results }}
Add additional search patterns to exclude items from results using |not2=, |not3=, etc.
As a portal component which only displays when news items are found
{{Transclude selected current events| header= header template | footer= footer template | other parameters }}
As a suggestion generator, e.g. on the portal talk page
{{Transclude selected current events| wikitext=yes | other parameters }}

Parameters

[edit]
|1=, |2=, |3= ...
Search patterns for items
|not1=, |not2=, |not3= ...
Search patterns for excluding items
|days=
Number of days to search through for current events (counting backwards from the current day); default is 30 (nb. you may find large numbers equal to several years won't work for technical reasons).
|max=
Maximum number of items to display; default is 6
|wikitext=
Set to yes to display the wikitext of the items, e.g. when using this template just to generate suggestions
|none=
Wikitext to display if no matching items are found; default is "No recent news"
|dates=
Set to mdy to use MDY-formatted dates (e.g. Jul 1, 2025 rather than 1 Jul 2025)
|more=
Wikitext to show at the bottom of the list; OR
Set to yes to show More current events... link at the bottom of the list
|header=
Wikitext to show above the items; typically {{Box-header}} or {{Box-header colour}} or similar (with appropriate parameters filled in)
If set, this template only displays output when items are found (overriding |more= if set)
|footer=
Wikitext to show below the items; defaults to {{Box-footer}}
Can only be used in conjunction with |header=

Search patterns

[edit]

Search patterns are Lua patterns, which are similar to regular expressions. This means that ^$()%.[]*+-? characters have special meaning, such as . matching any character. To search for those characters themselves, they need to be escaped by prefixing a %

For piped links, both the target article name as well as the displayed text are searched for matches. External links are not searched for matches.

Light bulb iconB Tip: To make a letter in a search pattern case-insensitive, put both the upper-case and lowercase letter inside square-brackets, i.e. [Aa]pple will match both An apple is... and Apples are....

Examples

[edit]

Europe

{{Transclude selected current events|Europe}}
25 June 2025 – Russian invasion of Ukraine
Ukrainian president Volodymyr Zelenskyy and the Council of Europe's Human Rights Office sign an accord to establish a special tribunal for crimes in Ukraine. (France 24)
23 June 2025 – Middle Eastern crisis
Spanish foreign minister José Albares calls on the European Council to suspend EU relations with Israel due to Israeli human rights violations in Gaza. He also calls for an arms embargo against Israel and sanctions on individuals obstructing the two-state solution. (Al Jazeera) (YeniSafak)
23 June 2025 – Russian invasion of Ukraine
NATO Secretary-General Mark Rutte announces that European countries and Canada will send Ukraine a combined aid package of 35 billion (US$40.3 billion). (RBC)
21 June 2025 – Middle Eastern crisis
The European Union European External Action Service finds that Israel may have breached its human rights obligations under the terms of the EU-Israel Association agreement governing its ties with the EU. (Al Jazeera)
20 June 2025 – Middle Eastern crisis
2025 Iran–European nuclear talks
Iranian foreign minister Abbas Araghchi meets with the foreign ministers of the United Kingdom, Germany, France and European Union in Geneva for talks about its nuclear program. (AP)

Europe (as portal component that is only displayed when there is news; limited to a maximum of 4 items)

{{Transclude selected current events|Europe|header={{Box-header color|In the news}}|max=4}}
In the news
25 June 2025 – Russian invasion of Ukraine
Ukrainian president Volodymyr Zelenskyy and the Council of Europe's Human Rights Office sign an accord to establish a special tribunal for crimes in Ukraine. (France 24)
23 June 2025 – Middle Eastern crisis
Spanish foreign minister José Albares calls on the European Council to suspend EU relations with Israel due to Israeli human rights violations in Gaza. He also calls for an arms embargo against Israel and sanctions on individuals obstructing the two-state solution. (Al Jazeera) (YeniSafak)
23 June 2025 – Russian invasion of Ukraine
NATO Secretary-General Mark Rutte announces that European countries and Canada will send Ukraine a combined aid package of 35 billion (US$40.3 billion). (RBC)
21 June 2025 – Middle Eastern crisis
The European Union European External Action Service finds that Israel may have breached its human rights obligations under the terms of the EU-Israel Association agreement governing its ties with the EU. (Al Jazeera)

United Kingdom

{{Transclude selected current events|United Kingdom}}
28 June 2025 –
The United Kingdom Border Force seizes 2.4 metric tons of cocaine worth £96 million (US$132 million) from a ship from Panama, reportedly one of the country's largest drug busts. (AP)
23 June 2025 – Gaza war protests
The United Kingdom announces it will ban the direct action protest network Palestine Action on anti-terrorism grounds after the group broke into the RAF Brize Norton base and vandalized two planes. (AP)
20 June 2025 – Middle Eastern crisis
Iranian foreign minister Abbas Araghchi meets with the foreign ministers of the United Kingdom, Germany, France and European Union in Geneva for talks about its nuclear program. (AP)
20 June 2025 –
The United Kingdom parliament votes to approve a bill allowing terminally ill adults to voluntarily end their lives, moving towards legalizing assisted suicide in England and Wales. (DW) (BBC News)
10 June 2025 – Fossil fuel phase-out
The British government announces it will invest £14.2 billion (US$19 billion) to construct the new Sizewell C nuclear power station in Suffolk, England, to reduce the country's reliance on fossil fuels. (AP) (Reuters)
10 June 2025 – War crimes in the Gaza war, Gaza humanitarian crisis
The United Kingdom, Canada, Australia, New Zealand, and Norway impose sanctions on Israeli far-right ministers Bezalel Smotrich and Itamar Ben-Gvir, including asset freezes and travel bans, due to their conduct during the Gaza war. (Reuters)

Europe OR United Kingdom

{{Transclude selected current events|Europe|United Kingdom}}
28 June 2025 –
The United Kingdom Border Force seizes 2.4 metric tons of cocaine worth £96 million (US$132 million) from a ship from Panama, reportedly one of the country's largest drug busts. (AP)
25 June 2025 – Russian invasion of Ukraine
Ukrainian president Volodymyr Zelenskyy and the Council of Europe's Human Rights Office sign an accord to establish a special tribunal for crimes in Ukraine. (France 24)
23 June 2025 – Middle Eastern crisis
Spanish foreign minister José Albares calls on the European Council to suspend EU relations with Israel due to Israeli human rights violations in Gaza. He also calls for an arms embargo against Israel and sanctions on individuals obstructing the two-state solution. (Al Jazeera) (YeniSafak)
23 June 2025 – Russian invasion of Ukraine
NATO Secretary-General Mark Rutte announces that European countries and Canada will send Ukraine a combined aid package of 35 billion (US$40.3 billion). (RBC)
23 June 2025 – Gaza war protests
The United Kingdom announces it will ban the direct action protest network Palestine Action on anti-terrorism grounds after the group broke into the RAF Brize Norton base and vandalized two planes. (AP)
21 June 2025 – Middle Eastern crisis
The European Union European External Action Service finds that Israel may have breached its human rights obligations under the terms of the EU-Israel Association agreement governing its ties with the EU. (Al Jazeera)

Europe AND United Kingdom

{{Transclude selected current events|Europe.*United Kingdom|United Kingdom.*Europe|days=10}}

No recent news

United Kingdom AND NOT Australia

{{Transclude selected current events|United Kingdom|not=Australia}}
28 June 2025 –
The United Kingdom Border Force seizes 2.4 metric tons of cocaine worth £96 million (US$132 million) from a ship from Panama, reportedly one of the country's largest drug busts. (AP)
23 June 2025 – Gaza war protests
The United Kingdom announces it will ban the direct action protest network Palestine Action on anti-terrorism grounds after the group broke into the RAF Brize Norton base and vandalized two planes. (AP)
20 June 2025 – Middle Eastern crisis
Iranian foreign minister Abbas Araghchi meets with the foreign ministers of the United Kingdom, Germany, France and European Union in Geneva for talks about its nuclear program. (AP)
20 June 2025 –
The United Kingdom parliament votes to approve a bill allowing terminally ill adults to voluntarily end their lives, moving towards legalizing assisted suicide in England and Wales. (DW) (BBC News)
10 June 2025 – Fossil fuel phase-out
The British government announces it will invest £14.2 billion (US$19 billion) to construct the new Sizewell C nuclear power station in Suffolk, England, to reduce the country's reliance on fossil fuels. (AP) (Reuters)
9 June 2025 – Israeli blockade of the Gaza Strip
The Israeli Navy seizes the June 2025 Gaza Freedom Flotilla's flagship vessel, the United Kingdom-flagged Madleen, and takes its occupants (including Swedish activist Greta Thunberg and MEP Rima Hassan) to Israel. The humanitarian aid the ship was carrying en route to Gaza will still be sent into Gaza. (The Times of Israel)(CNN) (The Guardian)

SomethingWithNoMatches

{{Transclude selected current events|SomethingWithNoMatches}}

No recent news

TemplateData

[edit]
TemplateData
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Transclude selected current events in articles based on its TemplateData.

TemplateData for Transclude selected current events

This templates transcludes current events on specified topics from the daily subpages of Portal:Current Events. Can use Lua search patterns.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Search Pattern (unnamed)1

Pattern to search for (multiple instances separated with pipes)

Default
(empty)
Example
Europe.*United Kingdom
Stringrequired
Notnot

Pattern to exclude (multiple instances use notX)

Default
(empty)
Example
not=Africa, not2=Asia
Stringoptional
Daysdays

Number of days back to search (from today)

Default
30
Example
days=45
Datesuggested
Maxmax

Maximum number of values to display

Default
6
Example
max=10
Numberoptional
Nonenone

Wikitext to display if no results found

Default
No recent news
Example
none='''Oops.''' Nothing found.
Contentoptional
Datesdates

Set date format to use MDY instead of DMY

Default
(empty)
Example
dates=mdy
Stringoptional
Moremore

Wikitext for bottom of listing

Default
(empty)
Example
more=[[/currentevents|See more]], more=yes
Contentoptional

See also

[edit]