<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mindpowe.red/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ALibrivox_book</id>
	<title>Module:Librivox book - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mindpowe.red/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ALibrivox_book"/>
	<link rel="alternate" type="text/html" href="https://mindpowe.red/wiki/index.php?title=Module:Librivox_book&amp;action=history"/>
	<updated>2026-04-06T13:03:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://mindpowe.red/wiki/index.php?title=Module:Librivox_book&amp;diff=1828&amp;oldid=prev</id>
		<title>imported&gt;JJMC89: Changed protection level for &quot;Module:Librivox book&quot;: Highly visible module: match template ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://mindpowe.red/wiki/index.php?title=Module:Librivox_book&amp;diff=1828&amp;oldid=prev"/>
		<updated>2019-02-25T04:12:31Z</updated>

		<summary type="html">&lt;p&gt;Changed protection level for &amp;quot;&lt;a href=&quot;/wiki/index.php/Module:Librivox_book&quot; title=&quot;Module:Librivox book&quot;&gt;Module:Librivox book&lt;/a&gt;&amp;quot;: &lt;a href=&quot;/wiki/index.php?title=WP:High-risk_templates&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:High-risk templates (page does not exist)&quot;&gt;Highly visible module&lt;/a&gt;: match template ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
 &lt;br /&gt;
function p.book(frame)&lt;br /&gt;
&lt;br /&gt;
  local pframe = frame:getParent()&lt;br /&gt;
  local args = pframe.args&lt;br /&gt;
&lt;br /&gt;
  local tname = &amp;quot;Librivox book&amp;quot; -- name of calling template. Change if template rename.&lt;br /&gt;
&lt;br /&gt;
  local title   = nil -- display and search title (default: article name w/out dab)&lt;br /&gt;
  local dtitle  = nil -- display title (default: title)&lt;br /&gt;
  local stitle  = nil -- search title (default: title)&lt;br /&gt;
  local lname   = nil -- last name&lt;br /&gt;
  local id      = nil -- unsupported argument&lt;br /&gt;
  local author  = nil -- author&lt;br /&gt;
  local tagline = &amp;quot;public domain audiobook at [[LibriVox]]&amp;quot;&lt;br /&gt;
  local urlhead = &amp;quot;https://librivox.org/search?&amp;quot;&lt;br /&gt;
  local italic   = &amp;quot;''&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  id = trimArg(args.id)&lt;br /&gt;
  if id then&lt;br /&gt;
    error(&amp;quot;Error in Template:&amp;quot; .. tname .. &amp;quot; - id argument not supported - please see documentation at [[Template:Librivox author]]&amp;quot;)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  title = trimArg(args.title)&lt;br /&gt;
  if not title then&lt;br /&gt;
    title = mw.title.getCurrentTitle().text&lt;br /&gt;
  end&lt;br /&gt;
  dtitle = mw.ustring.gsub(title,'%s+%([^%(]-%)$', '')        -- Remove the final disambig paren&lt;br /&gt;
  stitle = dtitle&lt;br /&gt;
&lt;br /&gt;
  if trimArg(args.stitle) then&lt;br /&gt;
    stitle = trimArg(args.stitle)&lt;br /&gt;
    if not trimArg(args.title) then                           -- For when used outside main article space&lt;br /&gt;
      dtitle = stitle&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
  if trimArg(args.dtitle) then&lt;br /&gt;
    dtitle = trimArg(args.dtitle)&lt;br /&gt;
    italic  = &amp;quot;&amp;quot;&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  local stitle = mw.ustring.gsub(stitle,&amp;quot; &amp;quot;, &amp;quot;+&amp;quot;)             -- replace &amp;quot;&amp;lt;space&amp;gt;&amp;quot; with &amp;quot;+&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  author = trimArg(args.author)&lt;br /&gt;
  if not author then&lt;br /&gt;
    lname = &amp;quot;&amp;quot;&lt;br /&gt;
  else&lt;br /&gt;
    --- Split name into words, count words, set name to last word&lt;br /&gt;
    local N = mw.text.split(author, &amp;quot; &amp;quot;)&lt;br /&gt;
    local l, count = mw.ustring.gsub(author, &amp;quot;%S+&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
    lname = N[count]&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  local url = &amp;quot;[[File:Speaker Icon.svg|15px|link=|alt=]] &amp;quot; .. &amp;quot;[&amp;quot; .. urlhead .. &amp;quot;title=&amp;quot; .. stitle .. &amp;quot;&amp;amp;author=&amp;quot; .. lname .. &amp;quot;&amp;amp;reader=&amp;amp;keywords=&amp;amp;genre_id=0&amp;amp;status=all&amp;amp;project_type=either&amp;amp;recorded_language=&amp;amp;sort_order=catalog_date&amp;amp;search_page=1&amp;amp;search_form=advanced&amp;quot; .. &amp;quot; &amp;quot; .. italic .. dtitle .. italic .. &amp;quot;]&amp;quot; .. &amp;quot; &amp;quot; .. tagline&lt;br /&gt;
&lt;br /&gt;
  return url&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function trimArg(arg)&lt;br /&gt;
  if arg == &amp;quot;&amp;quot; or arg == nil then&lt;br /&gt;
    return nil&lt;br /&gt;
  else&lt;br /&gt;
    return mw.text.trim(arg)&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;JJMC89</name></author>
		
	</entry>
</feed>