Module:Subject bar: Difference between revisions

no edit summary
m (1 revision imported)
No edit summary
 
(2 intermediate revisions by one other user 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) -- Wikipedia talk
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 [[Wikipedia:Village pump (technical)/Archive 176#Suppress rendering of Template:Wikipedia books]]
     --[=[ 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 = "'''[[Wikipedia:Books|Books]]'''"
     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 = "'''[[Wikipedia:Contents/Portals|Portals]]'''"
     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 = 'Wikispecies-logo.svg', prefix = 'wikispecies', display = 'Species directories', from = 'Wikispecies'},
         {arg = 'species', image = 'Bharatspecies-logo.svg', prefix = 'bharatspecies', display = 'Species directories', from = 'Bharatspecies'},
         {arg = 'voy', image = 'Wikivoyage-Logo-v3-icon.svg', prefix = 'voy', display = 'Travel guides', from = 'Wikivoyage'},
         {arg = 'voy', image = 'Bharatvoyage-Logo-v3-icon.svg', prefix = 'voy', display = 'Travel guides', from = 'Bharatvoyage'},
         {arg = 'n', image = 'Wikinews-logo.svg', prefix = 'wikinews', display = 'News stories', from = 'Wikinews'},
         {arg = 'n', image = 'Bharatnews-logo.svg', prefix = 'bharatnews', display = 'News stories', from = 'Bharatnews'},
         {arg = 'wikt', image = 'Wiktionary-logo-v2.svg', prefix = 'wiktionary', postfix = 'English', display = 'Definitions', from = 'Wiktionary'},
         {arg = 'wikt', image = 'Bhartionary-logo-v2.svg', prefix = 'bhartionary', postfix = 'English', display = 'Definitions', from = 'Bhartionary'},
         {arg = 'b', image = 'Wikibooks-logo.svg', prefix = 'wikibooks', display = 'Textbooks', from = 'Wikibooks'},
         {arg = 'b', image = 'Bharatbooks-logo.svg', prefix = 'bharatbooks', display = 'Textbooks', from = 'Bharatbooks'},
         {arg = 'q', image = 'Wikiquote-logo.svg', prefix = 'wikiquote', display = 'Quotations', from = 'Wikiquote'},
         {arg = 'q', image = 'Bharatquote-logo.svg', prefix = 'bharatquote', display = 'Quotations', from = 'Bharatquote'},
         {arg = 's', image = 'Wikisource-logo.svg', prefix = 'wikisource', display = 'Source texts', from = 'Wikisource'},
         {arg = 's', image = 'Bharatsource-logo.svg', prefix = 'bharatsource', display = 'Source texts', from = 'Bharatsource'},
         {arg = 'v', image = 'Wikiversity logo 2017.svg', prefix = 'wikiversity', display = 'Learning resources', from = 'Wikiversity'},
         {arg = 'v', image = 'Bharatversity logo 2017.svg', prefix = 'bharatversity', display = 'Learning resources', from = 'Bharatversity'},
         {arg = 'd', image = 'Wikidata-logo.svg', prefix = 'wikidata', display = 'Data', from = 'Wikidata'},
         {arg = 'd', image = 'Bharatdata-logo.svg', prefix = 'bharatdata', display = 'Data', from = 'Bharatdata'},
         {arg = 'spoken', image = 'Sound-icon.svg', prefix = 'spoken wikipedia', display = 'Listen to this page', from = 'Spoken Wikipedia'},
         {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 />Wikipedia's"
     local sisterHeading = "Find out more on<br />Bharatpedia's"
     local sisterSubheading = "'''[[Wikipedia:Wikimedia sister projects|Sister projects]]'''"
     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)