Changes

MyWikiBiz, Author Your Legacy — Saturday September 06, 2025
Jump to navigationJump to search
1,625 bytes added ,  20:50, 15 July 2021
Pywikibot 6.4.0
{{Module rating |pre-alpha<!-- Values: pre-alpha • alpha • beta • release • protected -- If a rating not needed/relevant, delete this template call -->}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Context ==
As explained more fully at [[Module:LaTeX2UTF8]], the [[TeX]]/[[LaTeX]] typesetting systems use a bibliographic format called [[BibTeX]] which is in wide use in mathematical and scientific fields. This module contains the first initial steps to allow translation from BibTeX to the {{tl|cite journal}} family of templates. Due to the use of "}}" in BibTeX, the raw BibTeX code should be kept in a separate module, not article space.

== Usage ==
<pre>
local p = {}
function p.test(frame)
local s = [[
@book {MR0161818,
AUTHOR = {Erd{\H{o}}s, P{\'a}l and Sur{\'a}nyi, J{\'a}nos},
TITLE = {V\'alogatott fejezetek a sz\'amelm\'eletb{\H o}l},
PUBLISHER = {Tank\"onyvkiad\'o V\'allalat, Budapest},
YEAR = {1960},
PAGES = {250},
MRCLASS = {10.00},
MRNUMBER = {0161818 (28 \#5022)},
}
]]
local c = p.BibTeX2Cite(s)
return frame:expandTemplate{title = 'cite journal', args = c["citeparms"]}
end
</pre>

should result in returning

<pre>
Erdős, Pál; Surányi, János (1960). "Válogatott fejezetek a számelmáletből". Tankányvkiadá Vállalat, Budapest. p. 250. MR MR0161818.
</pre>

<!--
<nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|''function_name''}}
-->
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->

}}</includeonly>

Navigation menu