Main Page: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 132: | Line 132: | ||
</div> | </div> | ||
<script> | |||
(function () { | |||
// Wait for MediaWiki to finish rendering | |||
function init() { | |||
// Find all your boxes by their colored headers | |||
const boxes = document.querySelectorAll( | |||
'.mw-parser-output > table, .mw-parser-output > div' | |||
); | |||
if (!boxes.length) return; | |||
// Create responsive grid | |||
const wrapper = document.createElement("div"); | |||
wrapper.id = "citypedia-grid"; | |||
wrapper.style.display = "grid"; | |||
wrapper.style.gridTemplateColumns = "2fr 1fr"; | |||
wrapper.style.gap = "16px"; | |||
wrapper.style.margin = "10px 0"; | |||
// Mobile layout | |||
const style = document.createElement("style"); | |||
style.innerHTML = ` | |||
@media (max-width: 768px) { | |||
#citypedia-grid { | |||
grid-template-columns: 1fr !important; | |||
} | |||
} | |||
`; | |||
document.head.appendChild(style); | |||
// Move only your content boxes into grid | |||
boxes.forEach(box => { | |||
if (box.innerText.includes("Welcome to Citypedia") || | |||
box.innerText.includes("Featured Cities") || | |||
box.innerText.includes("What You’ll Find") || | |||
box.innerText.includes("Quick Access") || | |||
box.innerText.includes("Citypedia Stats")) { | |||
wrapper.appendChild(box); | |||
} | |||
}); | |||
// Insert grid after the icons row | |||
const icons = document.querySelector(".mw-parser-output > p"); | |||
if (icons) { | |||
icons.after(wrapper); | |||
} else { | |||
document.querySelector(".mw-parser-output").prepend(wrapper); | |||
} | |||
} | |||
if (document.readyState === "loading") { | |||
document.addEventListener("DOMContentLoaded", init); | |||
} else { | |||
init(); | |||
} | |||
})(); | |||
</script> | |||
Revision as of 13:09, 9 January 2026
A collaborative encyclopedia documenting the cities, towns, and urban heritage of Maharashtra
🏙️ Explore Maharashtra’s Cities, Citypedia Online: The Encyclopedia of Cities in Maharashtra 🌆
महाराष्ट्रातील शहरांसाठी एक अभिनव संकल्पना.. शहरातील व्यक्ति, संस्था आणि घडामोडी यांचा नागरिकांनी घेतलेला वेध म्हणजे सिटिपीडिया
Citypedia is a collaborative encyclopedia dedicated to documenting the Wiki-Portal for the cities of Maharashtra.
Explore detailed information on: * Personalities & Institutions | * History, Geography & heritage | * Infrastructure & Civic Issues | * Also the important News & Events, Documented by you & me, online
सिटीपीडिया वर आपला सक्रिय सहभाग अपेक्षित आहे. सिटीपीडिया हे शहरात राहणाऱ्या प्रत्येकासाठी उपयोगी पडेल असा ज्ञानकोश बनावा असा आमचा प्रयत्न आहे. आपण कशा प्रकारे यात सामील होऊ शकता ? प्रथम सिटीपीडिया या संकेत-स्थळावर सदस्य व्हा त्यानंतर सहभागी व्हा आणि आपल्या आवडीच्या विषयावर लिखाण करा (प्रकाशित झालेल्या लेखांमध्ये बदल करा किंवा नवीन लेख लिहा).
Citypedia Wiki-Portals are available for following cities
<script> (function () {
// Wait for MediaWiki to finish rendering
function init() {
// Find all your boxes by their colored headers
const boxes = document.querySelectorAll(
'.mw-parser-output > table, .mw-parser-output > div'
);
if (!boxes.length) return;
// Create responsive grid
const wrapper = document.createElement("div");
wrapper.id = "citypedia-grid";
wrapper.style.display = "grid"; wrapper.style.gridTemplateColumns = "2fr 1fr"; wrapper.style.gap = "16px"; wrapper.style.margin = "10px 0";
// Mobile layout
const style = document.createElement("style");
style.innerHTML = `
@media (max-width: 768px) {
#citypedia-grid {
grid-template-columns: 1fr !important;
}
}
`;
document.head.appendChild(style);
// Move only your content boxes into grid
boxes.forEach(box => {
if (box.innerText.includes("Welcome to Citypedia") ||
box.innerText.includes("Featured Cities") ||
box.innerText.includes("What You’ll Find") ||
box.innerText.includes("Quick Access") ||
box.innerText.includes("Citypedia Stats")) {
wrapper.appendChild(box);
}
});
// Insert grid after the icons row
const icons = document.querySelector(".mw-parser-output > p");
if (icons) {
icons.after(wrapper);
} else {
document.querySelector(".mw-parser-output").prepend(wrapper);
}
}
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", init);
} else {
init();
}
})(); </script>
