User:APaskulin (WMF)/Sandbox

Template:Test123

Last updated: 2022-12-16 by APaskulin (WMF)

Last updated: 2022-12-16 by APaskulin (WMF) | Discuss

Example of double replacement on a string

edit

My DOG CAT

Example of a wikifeeds API call with today's date

edit

# Get today's featured content on English Wikipedia
https://en.wikipedia.org/api/rest_v1/feed/featured/2024/11/22

# Get today's featured content on Persian Wikipedia
https://fa.wikipedia.org/api/rest_v1/feed/featured/2024/11/22

# Get today's featured content on Bengali Wikipedia
https://bn.wikipedia.org/api/rest_v1/feed/featured/2024/11/22

# Get today's featured content on Japanese Wikipedia
https://ja.wikipedia.org/api/rest_v1/feed/featured/2024/11/22

# Get today's featured content on German Wikipedia
https://de.wikipedia.org/api/rest_v1/feed/featured/2024/11/22

Feed endpoints language support

edit

https://wikimedia.org/api/rest_v1/feed/availability

Language support for daily featured article

edit
Language Code URL
Bulgarian bg https://bg.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Bengali bn https://bn.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Bosnian bs https://bs.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Czech cs https://cs.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
German* de https://de.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Greek el https://el.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
English en https://en.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Persian fa https://fa.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Hebrew he https://he.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Hungarian hu https://hu.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Japanese ja https://ja.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Latin la https://la.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Norwegian (Bokmål) no https://no.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Scots sco https://sco.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Sindhi sd https://sd.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Urdu ur https://ur.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Vietnamese vi https://vi.wikipedia.org/api/rest_v1/feed/featured/2024/11/22

Language support for news feed

edit
Language Code URL
Bosnian bs https://bs.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Danish da https://da.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
German de https://de.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Greek el https://el.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
English en https://en.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Spanish es https://es.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Finnish fi https://fi.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
French fr https://fr.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Hebrew he https://he.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Korean ko https://ko.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Norwegian (Bokmål) no https://no.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Polish pl https://pl.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Portuguese pt https://pt.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Russian ru https://ru.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Scots sco https://sco.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Swedish sv https://sv.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Vietnamese vi https://vi.wikipedia.org/api/rest_v1/feed/featured/2024/11/22

Language support for on this day content

edit
Language Code URL
Arabic ar https://ar.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Bosnian bs https://bs.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
German de https://de.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
English en https://en.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Spanish es https://es.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
French fr https://fr.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Portuguese pt https://pt.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Russian ru https://ru.wikipedia.org/api/rest_v1/feed/featured/2024/11/22
Swedish sv https://sv.wikipedia.org/api/rest_v1/feed/featured/2024/11/22

Label testing

edit

Abc Label

Practice collective reasoning

Heuristic: Component independence

Syntaxhighlight test

edit
{
  "id": 9228,
  "key": "Earth",
  "title": "Earth",
  "excerpt": "<span class=\"searchmatch\">Earth</span> is the third planet from the Sun and the only astronomical object known to harbor life. About 29% of <span class=\"searchmatch\">Earth</span>'s surface is land consisting of continents",
  "description": "Third planet from the Sun in the Solar System",
  "thumbnail": {
    "mimetype": "image/jpeg",
    "size": null,
    "width": 200,
    "height": 200,
    "duration": null,
    "url": "//upload.wikimedia.org/wikipedia/commons/thumb/9/97/The_Earth_seen_from_Apollo_17.jpg/200px-The_Earth_seen_from_Apollo_17.jpg"
  }
}

Create page experiment

edit

Excerpt

edit

Interconnecting system components to the least extent practicable

edit

Special:MyLanguage/Manual:Messages_API#Using_messages_in_PHP


Image test: align opposite title

edit
 

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


Image test: align center

edit
 

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.