Extension talk:Cite/Flow archive/2014
This page used the LiquidThreads extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
move page
hi I propose we move this page to extension:cite please. reson because extension cite page is the extension and we doint need to have cite.php extension page. 86.135.248.210 16:38, 30 March 2014 (UTC)
- Just because Cite.php is on a separate page does not mean that Extension:Cite needs to be expanded. What about Special:Cite.php? [[kgh]] (talk) 08:00, 31 March 2014 (UTC)
- Oh ok but I thought that is included in extension:cite and is not a seperate extension. 90.219.226.61 15:11, 31 March 2014 (UTC)
LUA Error With Cite
I have copied the templates and the error occurs in the references section Lua error in Module:Citation/CS1 at line 2058: attempt to call method 'getTitle' (a nil value).
Backtrace: (tail call): ? Module:Citation/CS1:2058: in function "chunk" mw.lua:553: ? (tail call): ? [C]: in function "xpcall" MWServer.lua:73: in function "handleCall" MWServer.lua:266: in function "dispatch" MWServer.lua:33: in function "execute" mw_main.lua:7: in main chunk [C]: ?
not sure how to fix this would be appreciate it, if someone could help RaneMstSage (talk) 19:08, 11 April 2014 (UTC)
- I have this problem too. Billreid (talk) 09:31, 2 May 2014 (UTC)
- I'm getting this problem too when using the Citation Template. Any potential fixes? 18.111.57.104 09:22, 14 May 2014 (UTC)
- I'm getting this error as well. See no help on google. Vapblack (talk) 15:13, 28 June 2014 (UTC)
- Hi I had this problem. I 'solved' it by commenting out the section of code.
- I edited the wiki page module:Authority_control.
- I commented out the section called --Wikidata fallback if requested
--Wikidata fallback if requested
--[[ local item = mw.wikibase.getEntity()
if item ~= nil and item.claims ~= nil then
for _, params in pairs( conf ) do
if params[3] ~= 0 then
local val = parentArgs[params[1]]
if not val or val == then
local canUseWikidata = nil
if reqs[params[1]] ~= nil then
canUseWikidata = matchesWikidataRequirements( item, reqs[params[1]] )
else
canUseWikidata = true
end
if canUseWikidata then
local wikidataIds = getIdsFromWikidata( item, 'p' .. params[3] )
if wikidataIds[1] then
parentArgs[params[1]] = wikidataIds[1]
end
end
end
end
end
end
--]]
- Which basically just comments it out. It took a few minutes to work (caching?) but eventually got there. I'm not sure what other effects this will have. 2A00:1068:0:205:1137:E3A1:E067:393D 17:18, 20 November 2014 (UTC)
- That didn't come out correctly. Here is the correct version.
--Wikidata fallback if requested
-- local item = mw.wikibase.getEntity()
-- if item ~= nil and item.claims ~= nil then
-- for _, params in pairs( conf ) do
-- if params[3] ~= 0 then
-- local val = parentArgs[params[1]]
-- local canUseWikidata = nil
-- if not val or val == then
-- if reqs[params[1]] ~= nil then
-- canUseWikidata = matchesWikidataRequirements( item, reqs[params[1]] )
-- else
-- canUseWikidata = true
-- end
-- if canUseWikidata then
-- local wikidataIds = getIdsFromWikidata( item, 'p' .. params[3] )
-- if wikidataIds[1] then
-- parentArgs[params[1]] = wikidataIds[1]
-- end
-- end
-- end
-- end
-- end
-- end
2A00:1068:0:205:9017:BBEB:3CDB:355A 16:00, 24 November 2014 (UTC)
Update extension:cite
Hi could we update Extension:cite please and move away from jquery.tooltip.js to jquery.ui.tooltip.js please because the author of jquery.tooltip recommends moving away from it because has not been updated since 2008 and he was the author of jquery.ui.tooltip.js. 5.66.158.10 10:42, 5 July 2014 (UTC)
filling references with a template
Hello, within a template I have fields for filling the references, which look like this: <ref>Source: {{{Source Spanish|}}}</ref>
. In the same template there is also the <references />
tag. Now, when using the template, I simply fill |Source Spanish=http://www.example.com
. But under references, the URL won't show, it's only 1. ↑ Source:
, without the template field value.
- It's not related to the URL, any other text won't show either.
- The position of
<references />
is irrelevant, same outcome everywhere.
What am I missing? Zabien (talk) 18:55, 14 October 2014 (UTC)
- i believe you should use the #tag: magic word if you want to use "ref" tag from inside a template.
- see Help:Magic_words#Miscellaneous.
- as to the "references" tag: it does not sound right to have this tag in the same template - this will place "references" once per each reference, instead of once for the whole page.
- also, afair, if you use modern-enough version of the code, you can completely omit the "references" tag, to display the references at the end of the page. don't remember when was this introduced, and TBH, i am not 100% sure this is correct...
- peace. קיפודנחש (talk) 21:50, 16 October 2014 (UTC)
- Thank you very much! That hint did it! Works brilliantly with the #tag magic word and "ref". I do not yet see a problem with the
<references />
tag, though. At the moment, the references passed via the form as well as manually added<ref>…</ref>
s all neatly show up under references. I still need the tag to show them, I tried on 1.21.2 and 1.23.1 and it's demanded there. Not tried on 1.24 though. Zabien (talk) 19:25, 20 October 2014 (UTC)
- Thank you very much! That hint did it! Works brilliantly with the #tag magic word and "ref". I do not yet see a problem with the
Popups with references
How do you make it so that references function as popups like on Wikipedia? You used to be able to do that with just the cite extension, but they took it away. Xina78 (talk) 16:16, 17 December 2014 (UTC)
- if you mean enwiki when you say "like on wikipedia", it's done via gadget, namely en:MediaWiki:Gadget-ReferenceTooltips.js, which is explained in Reference Tooltips. there are some other options, specifically one lighter with less features: he:Mediawikiי:Gadget-CiteTooltip.
- peace. קיפודנחש (talk) 23:00, 29 December 2014 (UTC)
reflist
I assume that the existing reflist has a <references /> baked into it. Otherwise, this update is going to break a lot of articles. I like <references /> and use it all the time when checking out a citation, but others simply use reflist. Ancheta Wis (talk) 14:52, 23 December 2014 (UTC)
- What update? Cavila (MW 1.22, MySQL 5.5.37-0, Php 5.4.4-14 squeeze, SMW 1.9.2, SF 2.7) 14:47, 29 December 2014 (UTC)