13,398
edits
>Tom.Reding m (Update portal link, per talk) |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 99: | Line 99: | ||
or (thisPage.namespace == 2) -- User | or (thisPage.namespace == 2) -- User | ||
or (thisPage.namespace == 3) -- User talk | or (thisPage.namespace == 3) -- User talk | ||
or (thisPage.namespace == 5) -- | or (thisPage.namespace == 5) -- Bharatpedia talk | ||
or (thisPage.namespace == 7) -- File talk | or (thisPage.namespace == 7) -- File talk | ||
or (thisPage.namespace == 11) -- Template talk | or (thisPage.namespace == 11) -- Template talk | ||
Line 150: | Line 150: | ||
local rows = {} | local rows = {} | ||
--[=[ disabled per [[ | --[=[ disabled per [[Bharatpedia:Village pump (technical)/Archive 176#Suppress rendering of Template:Bharatpedia books]] | ||
-- Get the book row text. | -- Get the book row text. | ||
local bookHeading = "'''[[ | local bookHeading = "'''[[Bharatpedia:Books|Books]]'''" | ||
local bookSubheading = 'View or order collections of articles' | local bookSubheading = 'View or order collections of articles' | ||
local function getBookItemVals(book) | local function getBookItemVals(book) | ||
Line 163: | Line 163: | ||
]=] | ]=] | ||
-- Get the portal row text | -- Get the portal row text | ||
local portalHeading = "'''[[ | local portalHeading = "'''[[Bharatpedia:Contents/Portals|Portals]]'''" | ||
local portalSubheading = 'Access related topics' | local portalSubheading = 'Access related topics' | ||
local function getPortalItemVals(portal) | local function getPortalItemVals(portal) | ||
Line 182: | Line 182: | ||
local sisters = { | local sisters = { | ||
{arg = 'commons', image = 'Commons-logo.svg', prefix = 'commons', display = 'Media', from = 'Commons'}, | {arg = 'commons', image = 'Commons-logo.svg', prefix = 'commons', display = 'Media', from = 'Commons'}, | ||
{arg = 'species', image = ' | {arg = 'species', image = 'Bharatspecies-logo.svg', prefix = 'bharatspecies', display = 'Species directories', from = 'Bharatspecies'}, | ||
{arg = 'voy', image = ' | {arg = 'voy', image = 'Bharatvoyage-Logo-v3-icon.svg', prefix = 'voy', display = 'Travel guides', from = 'Bharatvoyage'}, | ||
{arg = 'n', image = ' | {arg = 'n', image = 'Bharatnews-logo.svg', prefix = 'bharatnews', display = 'News stories', from = 'Bharatnews'}, | ||
{arg = 'wikt', image = ' | {arg = 'wikt', image = 'Bhartionary-logo-v2.svg', prefix = 'bhartionary', postfix = 'English', display = 'Definitions', from = 'Bhartionary'}, | ||
{arg = 'b', image = ' | {arg = 'b', image = 'Bharatbooks-logo.svg', prefix = 'bharatbooks', display = 'Textbooks', from = 'Bharatbooks'}, | ||
{arg = 'q', image = ' | {arg = 'q', image = 'Bharatquote-logo.svg', prefix = 'bharatquote', display = 'Quotations', from = 'Bharatquote'}, | ||
{arg = 's', image = ' | {arg = 's', image = 'Bharatsource-logo.svg', prefix = 'bharatsource', display = 'Source texts', from = 'Bharatsource'}, | ||
{arg = 'v', image = ' | {arg = 'v', image = 'Bharatversity logo 2017.svg', prefix = 'bharatversity', display = 'Learning resources', from = 'Bharatversity'}, | ||
{arg = 'd', image = ' | {arg = 'd', image = 'Bharatdata-logo.svg', prefix = 'bharatdata', display = 'Data', from = 'Bharatdata'}, | ||
{arg = 'spoken', image = 'Sound-icon.svg', prefix = 'spoken | {arg = 'spoken', image = 'Sound-icon.svg', prefix = 'spoken Bharatpedia', display = 'Listen to this page', from = 'Spoken Bharatpedia'}, | ||
} | } | ||
local sisterItems = {} | local sisterItems = {} | ||
Line 218: | Line 218: | ||
end | end | ||
end | end | ||
local sisterHeading = "Find out more on<br /> | local sisterHeading = "Find out more on<br />Bharatpedia's" | ||
local sisterSubheading = "'''[[ | local sisterSubheading = "'''[[Bharatpedia:Bharatmedia sister projects|Sister projects]]'''" | ||
local sisterRow = makeRow(sisterItems, sisterHeading, sisterSubheading, {swapHeadingSize = true}) | local sisterRow = makeRow(sisterItems, sisterHeading, sisterSubheading, {swapHeadingSize = true}) | ||
table.insert(rows, sisterRow) | table.insert(rows, sisterRow) |
edits