Jump to content

User:Shaunak Chakraborty/sandbox: Difference between revisions

From Gyaanipedia
Created page with "$wgUseInstantCommons = true; $wgForeignFileRepos[] = [ 'class' => 'ForeignAPIRepo', 'name' => 'fandomwiki', 'apibase' => 'https://WIKI-NAME.fandom.com/api.php', 'fetchDescription' => true, 'descriptionCacheExpiry' => 43200, ]; ``` Replace `WIKI-NAME` with the actual Fandom wiki name. ## 2. **Direct Hotlinking** You can embed images using their direct URLs in your wiki pages: ``` File:https://static.wikia.nocookie.net/WIKI/images/..."
Tags: Mobile edit Mobile web edit
No edit summary
Line 1: Line 1:
{{Infobox
| title      = Albert Einstein
| image      = Einstein 1921 by F Schmutzer.jpg
| caption    = Einstein in 1921
| label1      = Born
| data1      = 14 March 1879<br />Ulm, Germany
| label2      = Died
| data2      = 18 April 1955 (aged 76)<br />Princeton, New Jersey, U.S.
| label3      = Citizenship
| data3      = Germany (1879–1896, 1914–1933)<br />Switzerland (1901–1955)<br />United States (1940–1955)
| below      = [[Nobel Prize in Physics]] (1921)
}}
$wgUseInstantCommons = true;
$wgUseInstantCommons = true;
$wgForeignFileRepos[] = [
$wgForeignFileRepos[] = [

Revision as of 10:40, 28 October 2025

Albert Einstein
Einstein in 1921
Nobel Prize in Physics (1921)

$wgUseInstantCommons = true; $wgForeignFileRepos[] = [

   'class' => 'ForeignAPIRepo',
   'name' => 'fandomwiki',
   'apibase' => 'https://WIKI-NAME.fandom.com/api.php',
   'fetchDescription' => true,
   'descriptionCacheExpiry' => 43200,

]; ```

Replace `WIKI-NAME` with the actual Fandom wiki name.

    1. 2. **Direct Hotlinking**

You can embed images using their direct URLs in your wiki pages: ``` File:Https://static.wikia.nocookie.net/WIKI/images/...