Jump to content

Module:GetShortDescription

Page template-protected
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Fred Gandt (talk | contribs) at 04:21, 20 January 2023 (trying to do Lua after some years; my brian hertz and this just suddenly stopped working). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

  1. ^ a b c d e Cite error: The named reference autogenerated1 was invoked but never defined (see the help page).
  2. ^ a b c d e Seitz-Gruwell, Lisa (October 23, 2023). "7 reasons you should donate to Wikipedia". Wikimedia Foundation. Archived from the original on December 27, 2023. Retrieved December 27, 2023.
  3. ^ a b c d e f g h i j "Wikipedia is 20, and its reputation has never been higher". The Economist. January 9, 2021. Archived from the original on January 7, 2021. Retrieved February 25, 2021.
  4. ^ a b c d e Anderson, Chris (May 8, 2006). "Jimmy Wales – The 2006 Time 100". Time. Archived from the original on October 12, 2022. Retrieved November 11, 2017.
  5. ^ "wikipedia.org". similarweb.com. Archived from the original on June 5, 2020. Retrieved November 14, 2024.
  6. ^ Treisman, Rachel (April 1, 2022). "Russia threatens to fine Wikipedia if it doesn't remove some details about the war". NPR. Archived from the original on December 2, 2022. Retrieved January 22, 2023.
  7. ^ a b c d e Cite error: The named reference :1 was invoked but never defined (see the help page).
  8. ^ Noor, Poppy (July 29, 2018). "Wikipedia biases". The Guardian. Archived from the original on November 9, 2020. Retrieved May 31, 2024.
  9. ^ Hern, Alex (September 15, 2015). "Wikipedia's view of the world is written by the west". The Guardian. Retrieved May 31, 2024.
  10. ^ a b c d e "Happy Birthday, Wikipedia". The Economist. January 9, 2021. Archived from the original on January 1, 2023. Retrieved January 22, 2023.
  11. ^ a b c d e Cooke, Richard (February 17, 2020). "Wikipedia Is the Last Best Place on the Internet". Wired. Archived from the original on December 17, 2022. Retrieved October 13, 2020.
  12. ^ Kelly, Samantha Murphy (May 20, 2022). "Meet the Wikipedia editor who published the Buffalo shooting entry minutes after it started". CNN. Archived from the original on October 12, 2022. Retrieved May 24, 2022.
  13. ^ McNamee, Kai (September 15, 2022). "Fastest 'was' in the West: Inside Wikipedia's race to cover the queen's death". NPR. Archived from the original on January 15, 2023. Retrieved January 22, 2023.
  14. ^ "wikipedia.org". similarweb.com. Archived from the original on June 5, 2020. Retrieved November 14, 2024.
  15. ^ Treisman, Rachel (April 1, 2022). "Russia threatens to fine Wikipedia if it doesn't remove some details about the war". NPR. Archived from the original on December 2, 2022. Retrieved January 22, 2023.
  16. ^ Noor, Poppy (July 29, 2018). "Wikipedia biases". The Guardian. Archived from the original on November 9, 2020. Retrieved May 31, 2024.
  17. ^ Hern, Alex (September 15, 2015). "Wikipedia's view of the world is written by the west". The Guardian. Retrieved May 31, 2024.
  18. ^ Kelly, Samantha Murphy (May 20, 2022). "Meet the Wikipedia editor who published the Buffalo shooting entry minutes after it started". CNN. Archived from the original on October 12, 2022. Retrieved May 24, 2022.
  19. ^ McNamee, Kai (September 15, 2022). "Fastest 'was' in the West: Inside Wikipedia's race to cover the queen's death". NPR. Archived from the original on January 15, 2023. Retrieved January 22, 2023.
  20. ^ "wikipedia.org". similarweb.com. Archived from the original on June 5, 2020. Retrieved November 14, 2024.
  21. ^ Treisman, Rachel (April 1, 2022). "Russia threatens to fine Wikipedia if it doesn't remove some details about the war". NPR. Archived from the original on December 2, 2022. Retrieved January 22, 2023.
  22. ^ Noor, Poppy (July 29, 2018). "Wikipedia biases". The Guardian. Archived from the original on November 9, 2020. Retrieved May 31, 2024.
  23. ^ Hern, Alex (September 15, 2015). "Wikipedia's view of the world is written by the west". The Guardian. Retrieved May 31, 2024.
  24. ^ Kelly, Samantha Murphy (May 20, 2022). "Meet the Wikipedia editor who published the Buffalo shooting entry minutes after it started". CNN. Archived from the original on October 12, 2022. Retrieved May 24, 2022.
  25. ^ McNamee, Kai (September 15, 2022). "Fastest 'was' in the West: Inside Wikipedia's race to cover the queen's death". NPR. Archived from the original on January 15, 2023. Retrieved January 22, 2023.
  26. ^ "wikipedia.org". similarweb.com. Archived from the original on June 5, 2020. Retrieved November 14, 2024.
  27. ^ Treisman, Rachel (April 1, 2022). "Russia threatens to fine Wikipedia if it doesn't remove some details about the war". NPR. Archived from the original on December 2, 2022. Retrieved January 22, 2023.
  28. ^ Noor, Poppy (July 29, 2018). "Wikipedia biases". The Guardian. Archived from the original on November 9, 2020. Retrieved May 31, 2024.
  29. ^ Hern, Alex (September 15, 2015). "Wikipedia's view of the world is written by the west". The Guardian. Retrieved May 31, 2024.
  30. ^ Kelly, Samantha Murphy (May 20, 2022). "Meet the Wikipedia editor who published the Buffalo shooting entry minutes after it started". CNN. Archived from the original on October 12, 2022. Retrieved May 24, 2022.
  31. ^ McNamee, Kai (September 15, 2022). "Fastest 'was' in the West: Inside Wikipedia's race to cover the queen's death". NPR. Archived from the original on January 15, 2023. Retrieved January 22, 2023.
  32. ^ "wikipedia.org". similarweb.com. Archived from the original on June 5, 2020. Retrieved November 14, 2024.
  33. ^ Treisman, Rachel (April 1, 2022). "Russia threatens to fine Wikipedia if it doesn't remove some details about the war". NPR. Archived from the original on December 2, 2022. Retrieved January 22, 2023.
  34. ^ Noor, Poppy (July 29, 2018). "Wikipedia biases". The Guardian. Archived from the original on November 9, 2020. Retrieved May 31, 2024.
  35. ^ Hern, Alex (September 15, 2015). "Wikipedia's view of the world is written by the west". The Guardian. Retrieved May 31, 2024.
  36. ^ Kelly, Samantha Murphy (May 20, 2022). "Meet the Wikipedia editor who published the Buffalo shooting entry minutes after it started". CNN. Archived from the original on October 12, 2022. Retrieved May 24, 2022.
  37. ^ McNamee, Kai (September 15, 2022). "Fastest 'was' in the West: Inside Wikipedia's race to cover the queen's death". NPR. Archived from the original on January 15, 2023. Retrieved January 22, 2023.


Cite error: There are <ref group=lower-alpha> tags or {{efn}} templates on this page, but the references will not show without a {{reflist|group=lower-alpha}} template or {{notelist}} template (see the help page).
Cite error: There are <ref group=W> tags on this page, but the references will not show without a {{reflist|group=W}} template (see the help page).

local p = {}

local getArgs = require( 'Module:Arguments' ).getArgs

local getLead = require( 'Module:Transcluder' ).get

local function _main( args )
	local name = args.name
	if name then
		local lead = getLead( name .. "#" )
		mw.log( lead )
		if lead then
			local current_frame = mw.getCurrentFrame()
			--check it
			local child_frame = current_frame:newChild{ title = name }--why are you not working?

--<strong class="error"><span class="scribunto-error" id="mw-scribunto-error-0">Lua error in Module:Infobox_television_episode at line 672: bad argument #1 to 'find' (string expected, got nil).</span></strong>
--because (I think) the infobox Module doesn't know the article it's supposedly on
--I need to convince it that it's being processed in the args.name article

			--check it
			local preprocessed_lead = child_frame:preprocess( lead )
			--check it
			mw.log( "preprocessed_lead" )
			mw.log( preprocessed_lead )
			--if no short desc then
			local wikidata_id = mw.wikibase.getEntityIdForTitle( name )
			--check it
			mw.log( "wikidata_id" )
			mw.log( wikidata_id )
			local wikidata_description =  mw.wikibase.getDescription( wikidata_id )
			--check it
			mw.log( "wikidata_description" )
			mw.log( wikidata_description )
			
		end
	end
	return "to sender"
end

function p.main( frame )
	local args =  getArgs( frame.args )
	return _main( args )
end

return p

--p.main{args={name="Author, Author (Star Trek: Voyager)"}}

--p.main{args={name="The Partisan"}}