Jump to content

Main Page: Difference between revisions

From the Vrienden Universe, a fictional wiki
No edit summary
Fix people slider to include all people category pages
Line 1,269: Line 1,269:


var fallbackImage = "/wiki/Special:Redirect/file/Vu-logo.png";
var fallbackImage = "/wiki/Special:Redirect/file/Vu-logo.png";
var cacheKey = "vu-main-people-slides-v4";
var cacheKey = "vu-main-people-slides-v5";
var cacheLifetime = 6 * 60 * 60 * 1000;
var cacheLifetime = 6 * 60 * 60 * 1000;
var slideInterval = 9000;
var slideInterval = 9000;
Line 1,348: Line 1,348:
pages
pages
.filter(function (page) {
.filter(function (page) {
return (
return page && !page.missing && page.title;
page &&
!page.missing &&
page.title &&
cleanText(page.extract).length >= 60 &&
getImage(page)
);
})
})
.map(function (page) {
.map(function (page) {
var pageExtract = shorten(page.extract, 650);
if (!pageExtract) {
pageExtract =
"This page is listed in Category:People. Open the page for the full article.";
}
return {
return {
title: page.title,
title: page.title,
extract: shorten(page.extract, 650),
extract: pageExtract,
image: getImage(page),
image: getImage(page) || fallbackImage,
url:
url:
page.fullurl ||
page.fullurl ||
Line 1,371: Line 1,372:
};
};
})
})
).slice(0, 12);
);
}
}


Line 1,495: Line 1,496:


function activateSlides(items) {
function activateSlides(items) {
if (!Array.isArray(items) || items.length < 2) {
if (!Array.isArray(items) || !items.length) {
return;
return;
}
}
Line 1,551: Line 1,552:
mw.loader
mw.loader
.using(["mediawiki.api", "mediawiki.util"])
.using(["mediawiki.api", "mediawiki.util"])
.then(function () {
.then(
var api = new mw.Api();
function () {
var api = new mw.Api();
 
/*
* One request obtains category members, lead extracts,
* page images and page URLs.
*/
return api.get({
action: "query",
generator: "categorymembers",
gcmtitle: "Category:People",
gcmnamespace: 0,
gcmtype: "page",
gcmlimit: "max",
prop: "extracts|pageimages|info",
exintro: 1,
explaintext: 1,
exchars: 700,
piprop: "thumbnail|original",
pithumbsize: 1000,
inprop: "url",
redirects: 1,
formatversion: 2
});
},
function () {
return null;
}
)
.then(
function (data) {
var loadedPeople = normalizePages(data);


/*
if (!loadedPeople.length) {
* One request obtains category members, lead extracts,
return;
* page images and page URLs.
}
*/
return api.get({
action: "query",
generator: "categorymembers",
gcmtitle: "Category:People",
gcmnamespace: 0,
gcmtype: "page",
gcmlimit: 120,
prop: "extracts|pageimages|info",
exintro: 1,
explaintext: 1,
exchars: 700,
piprop: "thumbnail|original",
pithumbsize: 1000,
inprop: "url",
redirects: 1,
formatversion: 2
});
})
.then(function (data) {
var loadedPeople = normalizePages(data);


if (loadedPeople.length < 2) {
saveCache(loadedPeople);
activateSlides(loadedPeople);
},
function () {
/*
* The initial slide remains visible if the request fails.
* No permanent loading message is shown.
*/
return;
return;
}
}
 
);
saveCache(loadedPeople);
activateSlides(loadedPeople);
})
.catch(function () {
/*
* The initial slide remains visible if the request fails.
* No permanent loading message is shown.
*/
return;
});


/*
/*
Line 1,652: Line 1,660:
});
});
});
});
})
},
.catch(function () {
function () {
return;
return;
});
});

Revision as of 13:32, 19 June 2026


Vrienden Universe logo
Vrienden Universe
The history of De Vrienden and the wider world recorded around them.

About the wiki

The Vrienden Universe began in 2019 as De Lijers De Vrienden, a project about De Vrienden. The project expanded as related pages were added and became a single encyclopedia covering the wider history around its original subject.

The wiki now contains hundreds of connected pages developed over several years. Information established on one page is carried into related articles, allowing readers to follow the same history throughout the site.

Explore
Featured and browse
Featured page

Reichsministerium für Bergbau und Rohstoffe

The Reichsministerium für Bergbau und Rohstoffe was a central ministry of the Government of the Tanoa Einsatzgruppen. It administered mining and the state supply of raw materials.

The ministry supported the command economy of Tanoa and supplied the regime's industrial system.

Open page
People
Toonio Noord

Toonio Noord

Toonio Noord, born 4 April 1969, is a Dutch registration official and former security guard from Vriendendam. He works for the Stichting Noord Registratiebureau and is a member of the Noord family.

Open page
1 / 1
How to use this wiki

Choose a starting point

Most articles link directly to the subjects needed to continue through the history. Readers can begin with De Vrienden or select a broader section above.

The principal family pages provide the main route from De Vrienden into family history. Index pages provide access to the rest of the site.

Community

Information about contributing is available on the community page.

Details

Information about the scope of the site is available in the disclaimer.

Content notice
This wiki contains material intended for mature audiences. Some pages contain disturbing subject matter. Reader discretion is advised.