https://www.crewsgenealogy.com/api.php?action=feedcontributions&user=Wikiadmin&feedformat=atomCrews Genealogy Wiki: focusing on the Wiregrass south, and related families - User contributions [en]2024-03-29T05:35:56ZUser contributionsMediaWiki 1.35.0https://www.crewsgenealogy.com/index.php?title=Jean_Ernestine_Titus&diff=27817Jean Ernestine Titus2023-01-12T19:07:00Z<p>Wikiadmin: </p>
<hr />
<div>{{person stub<br />
|include infobox = true<br />
|include sketch = true<br />
|include research log = true<br />
|include related pages = true<br />
|include metada = true<br />
|include fact box = true<br />
|include content = true<br />
|pronoun = She<br />
|name = {{BASEPAGENAME}}<br />
|image file = File:Ernest Bennett Titus with Daugters Wilma and Jean.jpg<br />
|image caption = Ernest Bennett Titus with Daughters Wilma and Jean<br />
|birth name = <br />
|born on = <br />
|born at = {{has location |city=Pittsburgh |county=Allegheny County |state=Pennsylvania}}<ref>{{Citation:Arizona_Republic_Thu__Aug_11__2011_(1).jpg/citation listing}}</ref><br />
|died on = <br />
|died at = {{has location |city=Mesa |county=Maricopa County |state=Arizona}}<ref>{{Citation:Arizona_Republic_Thu__Aug_11__2011_(1).jpg/citation listing}}</ref><br />
|buried at = <br />
|occupation = <br />
|spouse = Louis Arthur Jansen<br />
|residence list = {{has location |city=Pittsburgh |county=Allegheny County |state=Pennsylvania}}<ref>{{Citation:Arizona_Republic_Thu__Aug_11__2011_(1).jpg/citation listing}}</ref>, {{has location |city=Mesa |county=Maricopa County |state=Arizona}}<ref>{{Citation:Arizona_Republic_Thu__Aug_11__2011_(1).jpg/citation listing}}</ref><br />
|child list = [[Jean Ann Jansen]], [[Roy Louis Jansen]], [[Kurt Louis Jansen]], [[Laura Jean Jansen]], [[Karl Louis Jansen]]<br />
|child table = {{child table/child<br />
|family number=<br />
|child number=1<br />
|name=Jean Ann Jansen<br />
|generation number=<br />
|note= }}<br />
{{child table/child<br />
|family number=<br />
|child number=2<br />
|name=Roy Louis Jansen<br />
|generation number=<br />
|note= }}<br />
{{child table/child<br />
|family number=<br />
|child number=3<br />
|name=Kurt Louis Jansen<br />
|generation number=<br />
|note= }}<br />
{{child table/child<br />
|family number=<br />
|child number=4<br />
|name=Karl Louis Jansen<br />
|generation number=<br />
|note= }}<br />
|father gen =<br />
|mother gen =<br />
|generation number =<br />
|child header note =<br />
|mother = Ketha Stella Barth<br />
|father = Ernest Bennett Titus<br />
|gen =<br />
|male line = <br />
|married at = <br />
|married on = 28 January 1946<ref>{{Citation:Ohio, County Marriages, 1789-2016 - Louis Jansen and Jean Titus.jpg/Citation Listing}}</ref><br />
|spouse born at = <br />
|spouse born on = <br />
|spouse died at = <br />
|spouse died on = <br />
|spouse father = John Herman Jansen<br />
|spouse mother = Anna Mary Vosberg<br />
|content = content to be displayed<br />
}}<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
=Family=<br />
<br />
==Birth Family==<br />
*[[Wilma Titus]]<br />
<br />
=Census=<br />
==1930<ref name="Fed1930 Ancestry" />==<br />
*Family resided in Mt. Lebanon, Allegheny County, Pennsylvania, United States. ([http://en.wikipedia.org/wiki/Mt._Lebanon,_Pennsylvania wiki])<br />
*Family owned home with value of 13500 <br />
*[[Earnest B Titus]] 40 and was born in Massachusetts, his father was born in vermont, and his mother was born in vermont. Earnest's ocupation was listed as machineist in the plant industry (2028). He was also listed as a vetran of WW (probably WW1). <br />
*[[Ketha S Titus]] 30 and was born in Nebraska, her father was born in Illinois, and her mother was born in Vermont<br />
*[[Wilma E Titus]] was 8 and born in Ohio.<br />
*[[Jean E Titus]] was 1 year and 3 months old and was born in Pennsylvanian.<br />
<br />
=Table of Sources=<br />
<br />
=Research Log=<br />
*Ancestry.com<br />
**first,titus + sibling wilma titus + dob 1928<br />
***1930 Census ([http://crewsgenealogy.com/tng/showmedia.php?mediaID=360 tng] [http://crewsgenealogy.com/wiki/index.php?title=File:1930_Federal_Census_including_Titus_Family.jpg wiki] [http://www.flickr.com/photos/jasoncrews/8931382019/ flickr])<br />
**first,jansen + dob 1928 + dod 211<br />
**#[http://www.findagrave.com/cgi-bin/fg.cgi?page=gr&GSln=JA&GSpartial=1&GSbyrel=all&GSst=5&GScntry=4&GSsr=2481&GRid=101343801& Find a grave] ([tng <br />
**#[http://obits.rootsweb.ancestry.com/cgi-bin/obit.cgi?Surname=JANSEN%2C%20Jean%20E&type=Keyword Obit Index]<br />
**first, last + louis jansen</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Louis_Arthur_Jansen&diff=27816Louis Arthur Jansen2023-01-12T19:06:26Z<p>Wikiadmin: </p>
<hr />
<div>{{person stub<br />
|include infobox = true<br />
|include sketch = true<br />
|include research log = true<br />
|include related pages = true<br />
|include metada = true<br />
|include fact box = true<br />
|include content = true<br />
|pronoun = He<br />
|name = {{BASEPAGENAME}}<br />
|image file = <br />
|image caption = <br />
|birth name = <br />
|born on = 10 July 1925<br />
|born at = Debuque, Iowa<ref>Birth Cert in Laura's posetion</ref><br />
|died on = 2011<ref>headstone</ref><br />
|died at = {{has location |city=Mesa |county=Maricopa County |state=Arizona}}<br />
|buried at = <br />
|occupation = <br />
|spouse = Jean Ernestine Titus<br />
|residence list = {{has location |city=Mesa |county=Maricopa County |state=Arizona}}<br />
|child list = <br />
|child table = <br />
|father gen = <br />
|mother gen =<br />
|generation number =<br />
|child header note =<br />
|mother = <br />
|father = <br />
|gen = <br />
|male line = <br />
|married at = <br />
|married on = 28 January 1946<ref>{{Citation:Ohio, County Marriages, 1789-2016 - Louis Jansen and Jean Titus.jpg/Citation Listing}}</ref><br />
|spouse born at = <br />
|spouse born on = <br />
|spouse died at = <br />
|spouse died on = <br />
|spouse father = Ernest Bennett Titus<br />
|spouse mother = Ketha Stella Barth <br />
|content = <br />
}}</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=File:History_of_the_East_Genesee_Annual_Conference_-_of_the_Methodist_Episcopal_Church.pdf&diff=27815File:History of the East Genesee Annual Conference - of the Methodist Episcopal Church.pdf2022-03-15T06:49:53Z<p>Wikiadmin: </p>
<hr />
<div>== Summary ==<br />
{{Infobox book<br />
| italic title = [[Has title:History of the East Genesee Annual Conference : of the Methodist Episcopal Church]]<br />
| name = History of the East Genesee Annual Conference of the Methodist Episcopal Church<br />
| image = File:History of the East Genesee Annual Conference - of the Methodist Episcopal Church.pdf|page=7<br />
| image_size = <br />
| alt = History of the East Genesee Annual Conference<br />
| caption = History of the East Genesee Annual Conference of the Methodist Episcopal Church<br />
| author = Ray Allen<br />
| audio_read_by = <br />
| title_orig = <br />
| orig_lang_code = <br />
| title_working = <br />
| translator = <br />
| illustrator = <br />
| cover_artist = <br />
| country = <br />
| language = English<br />
| series = <br />
| release_number = <br />
| subject = Local History<br />
| genre = History<br />
| set_in = <br />
| publisher = Rochester, N.Y<br />
| publisher2 = <br />
| pub_date = <br />
| english_pub_date = <br />
| published = 1908<br />
| media_type = Digital Image<br />
| pages = <br />
| awards = <br />
| isbn = <br />
| isbn_note = <br />
| oclc = <br />
| dewey = <br />
| congress = <br />
| preceded_by = <br />
| followed_by = <br />
| native_wikisource = <br />
| wikisource = <br />
| notes =<br />
| exclude_cover = <br />
| website = https://archive.org/details/cu31924029471137<br />
}}<br />
<br />
==Excerpts==<br />
{{quote|text=On March 12, 1841, the Rev. John E. Robie, of the Oneida Conference, a practical printer, began the publication of an independent paper at Auburn,which he called the Northern Advocate. <ref>source=Page 33</ref>}}<br />
<br />
{{quote|text=Its editors have been as follows: Freeborn G. Hibbard, Genesee Conference, 1841-42; William Hosmer, Genesee Conference, 1843 ; Nelson Rounds, Oneida Conference, 1844-45-46-47; William Hosmer, East Genesee Conference, 1848-49-50-51-52-53-54-55 ; Freeborn G. Hibbard, East Genesee Conference, 1856-57-58-59 ; Isaac S. Bingham, Black River Conference, 1860-61-62-63 ; Dallas D. Lore, Genesee Conference first four years, then transferred to the Central New York Conference, 1864-65-66-67-68-69-70-71-72-73-74; Orris H. Warren, Central New York Conference, 1875-76-77-78-79-80-81-82-83-84-85-86-87-88-89-90-91; James E. C. Sawyer, Troy Conference, 1892-93-94-95-96-97-98-99; Mr. {{has person|Bennett E Titus}}, 1900-01-02-03-04-05; Liston H.Pearce, Central New York Conference, 1906-07. <ref>page 34</ref>}}<br />
<br />
{{quote|text={{has person|Bennett E Titus|Mr. Titus}} is resident in Syracuse, N. Y <ref>page 35</ref>}}<br />
<br />
==References==<br />
<references /><br />
<br />
{{Citation section <br />
|type = with master<br />
|master = Archive.org<br />
|document date = 1908<br />
|external source name = History of the East Genesee Annual Conference : of the Methodist Episcopal Church<br />
|alt = <br />
|note = <br />
|url = https://archive.org/details/cu31924029471137<br />
}}</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=File:History_of_the_East_Genesee_Annual_Conference_-_of_the_Methodist_Episcopal_Church.pdf&diff=27814File:History of the East Genesee Annual Conference - of the Methodist Episcopal Church.pdf2022-03-15T06:48:57Z<p>Wikiadmin: /* Excerpts */</p>
<hr />
<div>== Summary ==<br />
{{Infobox book<br />
| italic title = [[Has title:History of the East Genesee Annual Conference : of the Methodist Episcopal Church]]<br />
| name = History of the East Genesee Annual Conference of the Methodist Episcopal Church<br />
| image = File:History of the East Genesee Annual Conference - of the Methodist Episcopal Church.pdf|page=7<br />
| image_size = <br />
| alt = History of the East Genesee Annual Conference<br />
| caption = History of the East Genesee Annual Conference of the Methodist Episcopal Church<br />
| author = Ray Allen<br />
| audio_read_by = <br />
| title_orig = <br />
| orig_lang_code = <br />
| title_working = <br />
| translator = <br />
| illustrator = <br />
| cover_artist = <br />
| country = <br />
| language = English<br />
| series = <br />
| release_number = <br />
| subject = Local History<br />
| genre = History<br />
| set_in = <br />
| publisher = Rochester, N.Y<br />
| publisher2 = <br />
| pub_date = <br />
| english_pub_date = <br />
| published = 1908<br />
| media_type = Digital Image<br />
| pages = <br />
| awards = <br />
| isbn = <br />
| isbn_note = <br />
| oclc = <br />
| dewey = <br />
| congress = <br />
| preceded_by = <br />
| followed_by = <br />
| native_wikisource = <br />
| wikisource = <br />
| notes =<br />
| exclude_cover = <br />
| website = https://archive.org/details/cu31924029471137<br />
}}<br />
<br />
==Excerpts==<br />
{{quote|text=On March 12, 1841, the Rev. John E. Robie, of the Oneida Conference, a practical printer, began the publication of an independent paper at Auburn,which he called the Northern Advocate. <ref>source=Page 33</ref>}}<br />
<br />
{{quote|text=Its editors have been as follows: Freeborn G. Hibbard, Genesee Conference, 1841-42; William Hosmer, Genesee Conference, 1843 ; Nelson Rounds, Oneida Conference, 1844-45-46-47; William Hosmer, East Genesee Conference, 1848-49-50-51-52-53-54-55 ; Freeborn G. Hibbard, East Genesee Conference, 1856-57-58-59 ; Isaac S. Bingham, Black River Conference, 1860-61-62-63 ; Dallas D. Lore, Genesee Conference first four years, then transferred to the Central New York Conference, 1864-65-66-67-68-69-70-71-72-73-74; Orris H. Warren, Central New York Conference, 1875-76-77-78-79-80-81-82-83-84-85-86-87-88-89-90-91; James E. C. Sawyer, Troy Conference, 1892-93-94-95-96-97-98-99; Mr. {{has person|Bennett E Titus}}, 1900-01-02-03-04-05; Liston H.Pearce, Central New York Conference, 1906-07. <ref>page 34</ref>}}<br />
<br />
{{quote|text={{has person|Bennet E Titus|Mr. Titus}} is resident in Syracuse, N. Y <ref>page 35</ref>}}<br />
<br />
==References==<br />
<references /><br />
<br />
{{Citation section <br />
|type = with master<br />
|master = Archive.org<br />
|document date = 1908<br />
|external source name = History of the East Genesee Annual Conference : of the Methodist Episcopal Church<br />
|alt = <br />
|note = <br />
|url = https://archive.org/details/cu31924029471137<br />
}}</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=File:History_of_the_East_Genesee_Annual_Conference_-_of_the_Methodist_Episcopal_Church.pdf&diff=27813File:History of the East Genesee Annual Conference - of the Methodist Episcopal Church.pdf2022-03-15T06:48:17Z<p>Wikiadmin: /* Excerpts */</p>
<hr />
<div>== Summary ==<br />
{{Infobox book<br />
| italic title = [[Has title:History of the East Genesee Annual Conference : of the Methodist Episcopal Church]]<br />
| name = History of the East Genesee Annual Conference of the Methodist Episcopal Church<br />
| image = File:History of the East Genesee Annual Conference - of the Methodist Episcopal Church.pdf|page=7<br />
| image_size = <br />
| alt = History of the East Genesee Annual Conference<br />
| caption = History of the East Genesee Annual Conference of the Methodist Episcopal Church<br />
| author = Ray Allen<br />
| audio_read_by = <br />
| title_orig = <br />
| orig_lang_code = <br />
| title_working = <br />
| translator = <br />
| illustrator = <br />
| cover_artist = <br />
| country = <br />
| language = English<br />
| series = <br />
| release_number = <br />
| subject = Local History<br />
| genre = History<br />
| set_in = <br />
| publisher = Rochester, N.Y<br />
| publisher2 = <br />
| pub_date = <br />
| english_pub_date = <br />
| published = 1908<br />
| media_type = Digital Image<br />
| pages = <br />
| awards = <br />
| isbn = <br />
| isbn_note = <br />
| oclc = <br />
| dewey = <br />
| congress = <br />
| preceded_by = <br />
| followed_by = <br />
| native_wikisource = <br />
| wikisource = <br />
| notes =<br />
| exclude_cover = <br />
| website = https://archive.org/details/cu31924029471137<br />
}}<br />
<br />
==Excerpts==<br />
{{quote|text=On March 12, 1841, the Rev. John E. Robie, of the Oneida Conference, a practical printer, began the publication of an independent paper at Auburn,which he called the Northern Advocate. <ref>source=Page 33</ref>}}<br />
<br />
{{quote|text=Its editors have been as follows: Freeborn G. Hibbard, Genesee Conference, 1841-42; William Hosmer, Genesee Conference, 1843 ; Nelson Rounds, Oneida Conference, 1844-45-46-47; William Hosmer, East Genesee Conference, 1848-49-50-51-52-53-54-55 ; Freeborn G. Hibbard, East Genesee Conference, 1856-57-58-59 ; Isaac S. Bingham, Black River Conference, 1860-61-62-63 ; Dallas D. Lore, Genesee Conference first four years, then transferred to the Central New York Conference, 1864-65-66-67-68-69-70-71-72-73-74; Orris H. Warren, Central New York Conference, 1875-76-77-78-79-80-81-82-83-84-85-86-87-88-89-90-91; James E. C. Sawyer, Troy Conference, 1892-93-94-95-96-97-98-99; Mr. {{has person|Bennett E. Titus}}, 1900-01-02-03-04-05; Liston H.Pearce, Central New York Conference, 1906-07. <ref>page 34</ref>}}<br />
<br />
{{quote|text={{has person|Bennet E. Titus|Mr. Titus}} is resident in Syracuse, N. Y <ref>page 35</ref>}}<br />
<br />
==References==<br />
<references /><br />
<br />
{{Citation section <br />
|type = with master<br />
|master = Archive.org<br />
|document date = 1908<br />
|external source name = History of the East Genesee Annual Conference : of the Methodist Episcopal Church<br />
|alt = <br />
|note = <br />
|url = https://archive.org/details/cu31924029471137<br />
}}</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Module:Yesno&diff=27812Module:Yesno2022-03-15T06:41:47Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>-- Function allowing for consistent treatment of boolean-like wikitext input.<br />
-- It works similarly to the template {{yesno}}.<br />
<br />
return function (val, default)<br />
-- If your wiki uses non-ascii characters for any of "yes", "no", etc., you<br />
-- should replace "val:lower()" with "mw.ustring.lower(val)" in the<br />
-- following line.<br />
val = type(val) == 'string' and val:lower() or val<br />
if val == nil then<br />
return nil<br />
elseif val == true <br />
or val == 'yes'<br />
or val == 'y'<br />
or val == 'true'<br />
or val == 't'<br />
or val == 'on'<br />
or tonumber(val) == 1<br />
then<br />
return true<br />
elseif val == false<br />
or val == 'no'<br />
or val == 'n'<br />
or val == 'false'<br />
or val == 'f'<br />
or val == 'off'<br />
or tonumber(val) == 0<br />
then<br />
return false<br />
else<br />
return default<br />
end<br />
end</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Module:Template_translation&diff=27810Module:Template translation2022-03-15T06:41:47Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>local this = {}<br />
<br />
function this.checkLanguage(subpage, default)<br />
--[[Check first if there's an any invalid character that would cause the<br />
mw.language.isKnownLanguageTag function() to throw an exception:<br />
- all ASCII controls in [\000-\031\127],<br />
- double quote ("), sharp sign (#), ampersand (&), apostrophe ('),<br />
- slash (/), colon (:), semicolon (;), lower than (<), greater than (>),<br />
- brackets and braces ([, ], {, }), pipe (|), backslash (\\)<br />
All other characters are accepted, including space and all non-ASCII<br />
characters (including \192, which is invalid in UTF-8).<br />
--]]<br />
if mw.language.isValidCode(subpage) and mw.language.isKnownLanguageTag(subpage)<br />
--[[However "SupportedLanguages" are too restrictive, as they discard many<br />
valid BCP47 script variants (only because MediaWiki still does not<br />
define automatic transliterators for them, e.g. "en-dsrt" or<br />
"fr-brai" for French transliteration in Braille), and country variants,<br />
(useful in localized data, even if they are no longer used for<br />
translations, such as zh-cn, also useful for legacy codes).<br />
We want to avoid matching subpagenames containing any uppercase letter,<br />
(even if they are considered valid in BCP 47, in which they are<br />
case-insensitive; they are not "SupportedLanguages" for MediaWiki, so<br />
they are not "KnownLanguageTags" for MediaWiki).<br />
To be more restrictive, we exclude any character<br />
* that is not ASCII and not a lowercase letter, minus-hyphen, or digit,<br />
or does not start by a letter or does not finish by a letter or digit;<br />
* or that has more than 8 characters between hyphens;<br />
* or that has two hyphens;<br />
* or with specific uses in template subpages and unusable as languages.<br />
--]]<br />
or string.find(subpage, "^[%l][%-%d%l]*[%d%l]$") ~= nil<br />
and string.find(subpage, "[%d%l][%d%l][%d%l][%d%l][%d%l][%d%l][%d%l][%d%l][%d%l]") == nil<br />
and string.find(subpage, "%-%-") == nil<br />
and subpage ~= "doc"<br />
and subpage ~= "layout"<br />
and subpage ~= "sandbox"<br />
and subpage ~= "testcases"<br />
and subpage ~= "init"<br />
and subpage ~= "preload"<br />
and subpage ~= "subpage"<br />
and subpage ~= "subpage2"<br />
and subpage ~= "sub-subpage"<br />
and subpage ~= "sub-sub-subpage"<br />
and subpage ~= "sub-sub-sub-subpage"<br />
then<br />
return subpage<br />
end<br />
-- Otherwise there's currently no known language subpage<br />
return default<br />
end<br />
<br />
--[[Get the last subpage of an arbitrary page if it is a translation.<br />
To be used from templates.<br />
]]<br />
function this.getLanguageSubpage(frame)<br />
local title = frame and frame.args[1]<br />
if not title or title == '' then<br />
title = mw.title.getCurrentTitle()<br />
end<br />
return this._getLanguageSubpage(title)<br />
end<br />
<br />
--[[Get the last subpage of an arbitrary page if it is a translation.<br />
To be used from Lua.<br />
]]<br />
function this._getLanguageSubpage(title)<br />
if type(title) == 'string' then<br />
title = mw.title.new(title)<br />
end<br />
if not title then<br />
-- invalid title<br />
return mw.language.getContentLanguage():getCode()<br />
end<br />
--[[This code does not work in all namespaces where the Translate tool works.<br />
-- It works in the main namespace on Meta because it allows subpages there<br />
-- It would not work in the main namespace of English Wikipedia (but the<br />
-- articles are monolignual on that wiki).<br />
-- On Meta-Wiki the main space uses subpages and its pages are translated.<br />
-- The Translate tool allows translatng pages in all namespaces, even if<br />
-- the namespace officially does not have subpages.<br />
-- On Meta-Wiki the Category namespace still does not have subpages enabled,<br />
-- even if they would be very useful for categorizing templates, that DO have<br />
-- subpages (for documentatio and tstboxes pages). This is a misconfiguration<br />
-- bug of Meta-Wiki. The work-around is to split the full title and then<br />
-- get the last titlepart.<br />
local subpage = title.subpageText<br />
--]]<br />
local titleparts = mw.text.split(title.fullText, '/')<br />
local subpage = titleparts[#titleparts]<br />
return this.checkLanguage(subpage, mw.language.getContentLanguage():getCode())<br />
end<br />
<br />
--[[Get the last subpage of the current page if it is a translation.<br />
]]<br />
function this.getCurrentLanguageSubpage()<br />
return this._getLanguageSubpage(mw.title.getCurrentTitle())<br />
end<br />
<br />
--[[Get the first part of the language code of the subpage, before the '-'.<br />
]]<br />
function this.getMainLanguageSubpage()<br />
parts = mw.text.split( this.getCurrentLanguageSubpage(), '-' )<br />
return parts[1]<br />
end<br />
<br />
--[[Get the last subpage of the current frame if it is a translation.<br />
Not used locally.<br />
]]<br />
function this.getFrameLanguageSubpage(frame)<br />
return this._getLanguageSubpage(frame:getParent():getTitle())<br />
end<br />
<br />
--[[Get the language of the current page.<br />
Not used locally.<br />
]]<br />
function this.getLanguage()<br />
local subpage = mw.title.getCurrentTitle().subpageText<br />
return this.checkLanguage(subpage, mw.language.getContentLanguage():getCode())<br />
end<br />
<br />
--[[Get the language of the current frame.<br />
Not used locally.<br />
]]<br />
function this.getFrameLanguage(frame)<br />
local titleparts = mw.text.split(frame:getParent():getTitle(), '/')<br />
local subpage = titleparts[#titleparts]<br />
return this.checkLanguage(subpage, mw.language.getContentLanguage():getCode())<br />
end<br />
<br />
function this.title(namespace, basepagename, subpage)<br />
local message, title<br />
local pagename = basepagename<br />
if (subpage or '') ~= ''<br />
then<br />
pagename = pagename .. '/' .. subpage<br />
end<br />
local valid, title = xpcall(function()<br />
return mw.title.new(pagename, namespace) -- costly<br />
end, function(msg) -- catch undocumented exception (!?)<br />
-- thrown when namespace does not exist. The doc still<br />
-- says it should return a title, even in that case...<br />
message = msg<br />
end)<br />
if valid and title ~= nil and (title.id or 0) ~= 0<br />
then<br />
return title<br />
end<br />
return { -- "pseudo" mw.title object with id = nil in case of error<br />
prefixedText = pagename, -- the only property we need below<br />
message = message -- only for debugging<br />
}<br />
end<br />
<br />
--[[If on a translation subpage (like Foobar/de), this function returns<br />
a given template in the same language, if the translation is available.<br />
Otherwise, the template is returned in its default language, without<br />
modification.<br />
This is aimed at replacing the current implementation of Template:TNTN.<br />
<br />
This version does not expand the returned template name: this solves the<br />
problem of self-recursion in TNT when translatable templates need themselves<br />
to transclude other translable templates (such as Tnavbar).<br />
]]<br />
function this.getTranslatedTemplate(frame, withStatus)<br />
local args = frame.args<br />
local pagename = args['template']<br />
<br />
--[[Check whether the pagename is actually in the Template namespace, or<br />
if we're transcluding a main-namespace page.<br />
(added for backward compatibility of Template:TNT)<br />
]]<br />
local title<br />
local namespace = args['tntns'] or ''<br />
if (namespace ~= '') -- Checks for tntns parameter for custom ns.<br />
then<br />
title = this.title(namespace, pagename) -- Costly<br />
else -- Supposes that set page is in ns10.<br />
namespace = 'Template'<br />
title = this.title(namespace, pagename) -- Costly<br />
if title.id == nil<br />
then -- not found in the Template namespace, assume the main namespace (for backward compatibility)<br />
namespace = ''<br />
title = this.title(namespace, pagename) -- Costly<br />
end<br />
end<br />
<br />
-- Get the last subpage and check if it matches a known language code.<br />
local subpage = args['uselang'] or ''<br />
if (subpage == '')<br />
then<br />
subpage = this.getCurrentLanguageSubpage()<br />
end<br />
if (subpage == '')<br />
then<br />
-- Check if a translation of the pagename exists in English<br />
local newtitle = this.title(namespace, pagename, 'en') -- Costly<br />
-- Use the translation when it exists<br />
if newtitle.id ~= nil<br />
then<br />
title = newtitle<br />
end<br />
else<br />
-- Check if a translation of the pagename exists in that language<br />
local newtitle = this.title(namespace, pagename, subpage) -- Costly<br />
if newtitle.id == nil<br />
then<br />
-- Check if a translation of the pagename exists in English<br />
newtitle = this.title(namespace, pagename, 'en') -- Costly<br />
end<br />
-- Use the translation when it exists<br />
if newtitle.id ~= nil<br />
then<br />
title = newtitle<br />
end<br />
end<br />
-- At this point the title should exist<br />
if withStatus then<br />
-- status returned to Lua function below<br />
return title.prefixedText, title.id ~= nil<br />
else<br />
-- returned directly to MediaWiki<br />
return title.prefixedText<br />
end<br />
end<br />
<br />
--[[If on a translation subpage (like Foobar/de), this function renders<br />
a given template in the same language, if the translation is available.<br />
Otherwise, the template is rendered in its default language, without<br />
modification.<br />
This is aimed at replacing the current implementation of Template:TNT.<br />
<br />
Note that translatable templates cannot transclude themselves other<br />
translatable templates, as it will recurse on TNT. Use TNTN instead<br />
to return only the effective template name to expand externally, with<br />
template parameters also provided externally.<br />
]]<br />
function this.renderTranslatedTemplate(frame)<br />
local title, found = this.getTranslatedTemplate(frame, true)<br />
-- At this point the title should exist prior to performing the expansion<br />
-- of the template, otherwise render a red link to the missing page<br />
-- (resolved in its assumed namespace). If we don't tet this here, a<br />
-- script error would be thrown. Returning a red link is consistant with<br />
-- MediaWiki behavior when attempting to transclude inexistant templates.<br />
if not found then<br />
return '[[' .. title .. ']]'<br />
end<br />
<br />
-- Copy args pseudo-table to a proper table so we can feed it to expandTemplate.<br />
-- Then render the pagename.<br />
local args = frame.args<br />
local pargs = (frame:getParent() or {}).args<br />
local arguments = {}<br />
if (args['noshift'] or '') == ''<br />
then<br />
for k, v in pairs(pargs) do<br />
-- numbered args >= 1 need to be shifted<br />
local n = tonumber(k) or 0<br />
if (n > 0)<br />
then<br />
if (n >= 2)<br />
then<br />
arguments[n - 1] = v<br />
end<br />
else<br />
arguments[k] = v<br />
end<br />
end<br />
else -- special case where TNT is used as autotranslate<br />
-- (don't shift again what is shifted in the invokation)<br />
for k, v in pairs(pargs) do<br />
arguments[k] = v<br />
end<br />
end<br />
arguments['template'] = title -- override the existing parameter of the base template name supplied with the full name of the actual template expanded<br />
arguments['tntns'] = nil -- discard the specified namespace override<br />
arguments['uselang'] = args['uselang'] -- argument forwarded into parent frame<br />
arguments['noshift'] = args['noshift'] -- argument forwarded into parent frame<br />
<br />
return frame:expandTemplate{title = ':' .. title, args = arguments}<br />
end<br />
<br />
--[[A helper for mocking TNT in Special:TemplateSandbox. TNT breaks<br />
TemplateSandbox; mocking it with this method means templates won't be<br />
localized but at least TemplateSandbox substitutions will work properly.<br />
Won't work with complex uses.<br />
]]<br />
function this.mockTNT(frame)<br />
local pargs = (frame:getParent() or {}).args<br />
local arguments = {}<br />
for k, v in pairs(pargs) do<br />
-- numbered args >= 1 need to be shifted<br />
local n = tonumber(k) or 0<br />
if (n > 0)<br />
then<br />
if (n >= 2)<br />
then<br />
arguments[n - 1] = v<br />
end<br />
else<br />
arguments[k] = v<br />
end<br />
end<br />
if not pargs[1]<br />
then<br />
return ''<br />
end<br />
return frame:expandTemplate{title = 'Template:' .. pargs[1], args = arguments}<br />
end<br />
<br />
return this</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Module:TNT&diff=27808Module:TNT2022-03-15T06:41:47Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>--<br />
-- INTRO: (!!! DO NOT RENAME THIS PAGE !!!)<br />
-- This module allows any template or module to be copy/pasted between<br />
-- wikis without any translation changes. All translation text is stored<br />
-- in the global Data:*.tab pages on Commons, and used everywhere.<br />
--<br />
-- SEE: https://www.mediawiki.org/wiki/Multilingual_Templates_and_Modules<br />
--<br />
-- ATTENTION:<br />
-- Please do NOT rename this module - it has to be identical on all wikis.<br />
-- This code is maintained at https://www.mediawiki.org/wiki/Module:TNT<br />
-- Please do not modify it anywhere else, as it may get copied and override your changes.<br />
-- Suggestions can be made at https://www.mediawiki.org/wiki/Module_talk:TNT<br />
--<br />
-- DESCRIPTION:<br />
-- The "msg" function uses a Commons dataset to translate a message<br />
-- with a given key (e.g. source-table), plus optional arguments<br />
-- to the wiki markup in the current content language.<br />
-- Use lang=xx to set language. Example:<br />
--<br />
-- {{#invoke:TNT | msg<br />
-- | I18n/Template:Graphs.tab <!-- https://commons.wikimedia.org/wiki/Data:I18n/Template:Graphs.tab --><br />
-- | source-table <!-- uses a translation message with id = "source-table" --><br />
-- | param1 }} <!-- optional parameter --><br />
--<br />
--<br />
-- The "doc" function will generate the <templatedata> parameter documentation for templates.<br />
-- This way all template parameters can be stored and localized in a single Commons dataset.<br />
-- NOTE: "doc" assumes that all documentation is located in Data:Templatedata/* on Commons.<br />
--<br />
-- {{#invoke:TNT | doc | Graph:Lines }}<br />
-- uses https://commons.wikimedia.org/wiki/Data:Templatedata/Graph:Lines.tab<br />
-- if the current page is Template:Graph:Lines/doc<br />
--<br />
<br />
local p = {}<br />
local i18nDataset = 'I18n/Module:TNT.tab'<br />
<br />
-- Forward declaration of the local functions<br />
local sanitizeDataset, loadData, link, formatMessage<br />
<br />
function p.msg(frame)<br />
local dataset, id<br />
local params = {}<br />
local lang = nil<br />
for k, v in pairs(frame.args) do<br />
if k == 1 then<br />
dataset = mw.text.trim(v)<br />
elseif k == 2 then<br />
id = mw.text.trim(v)<br />
elseif type(k) == 'number' then<br />
params[k - 2] = mw.text.trim(v)<br />
elseif k == 'lang' and v ~= '_' then<br />
lang = mw.text.trim(v)<br />
end<br />
end<br />
return formatMessage(dataset, id, params, lang)<br />
end<br />
<br />
-- Identical to p.msg() above, but used from other lua modules<br />
-- Parameters: name of dataset, message key, optional arguments<br />
-- Example with 2 params: format('I18n/Module:TNT', 'error_bad_msgkey', 'my-key', 'my-dataset')<br />
function p.format(dataset, key, ...)<br />
local checkType = require('libraryUtil').checkType<br />
checkType('format', 1, dataset, 'string')<br />
checkType('format', 2, key, 'string')<br />
return formatMessage(dataset, key, {...})<br />
end<br />
<br />
<br />
-- Identical to p.msg() above, but used from other lua modules with the language param<br />
-- Parameters: language code, name of dataset, message key, optional arguments<br />
-- Example with 2 params: formatInLanguage('es', I18n/Module:TNT', 'error_bad_msgkey', 'my-key', 'my-dataset')<br />
function p.formatInLanguage(lang, dataset, key, ...)<br />
local checkType = require('libraryUtil').checkType<br />
checkType('formatInLanguage', 1, lang, 'string')<br />
checkType('formatInLanguage', 2, dataset, 'string')<br />
checkType('formatInLanguage', 3, key, 'string')<br />
return formatMessage(dataset, key, {...}, lang)<br />
end<br />
<br />
-- Obsolete function that adds a 'c:' prefix to the first param.<br />
-- "Sandbox/Sample.tab" -> 'c:Data:Sandbox/Sample.tab'<br />
function p.link(frame)<br />
return link(frame.args[1])<br />
end<br />
<br />
function p.doc(frame)<br />
local dataset = 'Templatedata/' .. sanitizeDataset(frame.args[1])<br />
return frame:extensionTag('templatedata', p.getTemplateData(dataset)) ..<br />
formatMessage(i18nDataset, 'edit_doc', {link(dataset)})<br />
end<br />
<br />
function p.getTemplateData(dataset)<br />
-- TODO: add '_' parameter once lua starts reindexing properly for "all" languages<br />
local data = loadData(dataset)<br />
local names = {}<br />
for _, field in ipairs(data.schema.fields) do<br />
table.insert(names, field.name)<br />
end<br />
<br />
local params = {}<br />
local paramOrder = {}<br />
for _, row in ipairs(data.data) do<br />
local newVal = {}<br />
local name = nil<br />
for pos, columnName in ipairs(names) do<br />
if columnName == 'name' then<br />
name = row[pos]<br />
else<br />
newVal[columnName] = row[pos]<br />
end<br />
end<br />
if name then<br />
params[name] = newVal<br />
table.insert(paramOrder, name)<br />
end<br />
end<br />
<br />
-- Work around json encoding treating {"1":{...}} as an [{...}]<br />
params['zzz123']=''<br />
<br />
local json = mw.text.jsonEncode({<br />
params=params,<br />
paramOrder=paramOrder,<br />
description=data.description<br />
})<br />
<br />
json = string.gsub(json,'"zzz123":"",?', "")<br />
<br />
return json<br />
end<br />
<br />
-- Local functions<br />
<br />
sanitizeDataset = function(dataset)<br />
if not dataset then<br />
return nil<br />
end<br />
dataset = mw.text.trim(dataset)<br />
if dataset == '' then<br />
return nil<br />
elseif string.sub(dataset,-4) ~= '.tab' then<br />
return dataset .. '.tab'<br />
else<br />
return dataset<br />
end<br />
end<br />
<br />
loadData = function(dataset, lang)<br />
dataset = sanitizeDataset(dataset)<br />
if not dataset then<br />
error(formatMessage(i18nDataset, 'error_no_dataset', {}))<br />
end<br />
<br />
-- Give helpful error to thirdparties who try and copy this module.<br />
if not mw.ext or not mw.ext.data or not mw.ext.data.get then<br />
error(string.format([['''Missing JsonConfig extension, or not properly configured;<br />
Cannot load https://commons.wikimedia.org/wiki/Data:%s.<br />
See https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates''']], dataset))<br />
end<br />
<br />
local data = mw.ext.data.get(dataset, lang)<br />
<br />
if data == false then<br />
if dataset == i18nDataset then<br />
-- Prevent cyclical calls<br />
error('Missing Commons dataset ' .. i18nDataset)<br />
else<br />
error(formatMessage(i18nDataset, 'error_bad_dataset', {link(dataset)}))<br />
end<br />
end<br />
return data<br />
end<br />
<br />
-- Given a dataset name, convert it to a title with the 'commons:data:' prefix<br />
link = function(dataset)<br />
return 'c:Data:' .. mw.text.trim(dataset or '')<br />
end<br />
<br />
formatMessage = function(dataset, key, params, lang)<br />
for _, row in pairs(loadData(dataset, lang).data) do<br />
local id, msg = unpack(row)<br />
if id == key then<br />
local result = mw.message.newRawMessage(msg, unpack(params or {}))<br />
return result:plain()<br />
end<br />
end<br />
if dataset == i18nDataset then<br />
-- Prevent cyclical calls<br />
error('Invalid message key "' .. key .. '"')<br />
else<br />
error(formatMessage(i18nDataset, 'error_bad_msgkey', {key, link(dataset)}))<br />
end<br />
end<br />
<br />
return p</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Module:No_globals&diff=27806Module:No globals2022-03-15T06:41:47Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>local mt = getmetatable(_G) or {}<br />
function mt.__index (t, k)<br />
if k ~= 'arg' then<br />
error('Tried to read nil global ' .. tostring(k), 2)<br />
end<br />
return nil<br />
end<br />
function mt.__newindex(t, k, v)<br />
if k ~= 'arg' then<br />
error('Tried to write global ' .. tostring(k), 2)<br />
end<br />
rawset(t, k, v)<br />
end<br />
setmetatable(_G, mt)</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Module:Navbar/styles.css&diff=27804Module:Navbar/styles.css2022-03-15T06:41:47Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>/** {{Shared Template Warning}}<br />
* This TemplateStyles page is separately used for [[Template:Navbar]]<br />
* because of course there are two versions of the same template.<br />
* Be careful when adjusting styles accordingly.<br />
*/<br />
.navbar {<br />
display: inline;<br />
font-size: 88%;<br />
font-weight: normal;<br />
}<br />
<br />
.navbar ul {<br />
display: inline;<br />
white-space: nowrap;<br />
}<br />
<br />
.navbar li {<br />
word-spacing: -0.125em;<br />
}<br />
<br />
/* Navbar styling when nested in navbox */<br />
.navbox .navbar {<br />
display: block;<br />
font-size: 100%;<br />
}<br />
<br />
.navbox-title .navbar {<br />
/* @noflip */<br />
float: left;<br />
/* @noflip */<br />
text-align: left;<br />
/* @noflip */<br />
margin-right: 0.5em;<br />
width: 6em;<br />
}</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Module:Message_box&diff=27802Module:Message box2022-03-15T06:41:46Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>-- This is a meta-module for producing message box templates, including<br />
-- {{mbox}}, {{ambox}}, {{imbox}}, {{tmbox}}, {{ombox}}, {{cmbox}} and {{fmbox}}.<br />
<br />
-- Load necessary modules.<br />
require('Module:No globals')<br />
local getArgs<br />
local yesno = require('Module:Yesno')<br />
<br />
-- Get a language object for formatDate and ucfirst.<br />
local lang = mw.language.getContentLanguage()<br />
<br />
-- Define constants<br />
local CONFIG_MODULE = 'Module:Message box/configuration'<br />
local DEMOSPACES = {talk = 'tmbox', image = 'imbox', file = 'imbox', category = 'cmbox', article = 'ambox', main = 'ambox'}<br />
<br />
--------------------------------------------------------------------------------<br />
-- Helper functions<br />
--------------------------------------------------------------------------------<br />
<br />
local function getTitleObject(...)<br />
-- Get the title object, passing the function through pcall<br />
-- in case we are over the expensive function count limit.<br />
local success, title = pcall(mw.title.new, ...)<br />
if success then<br />
return title<br />
end<br />
end<br />
<br />
local function union(t1, t2)<br />
-- Returns the union of two arrays.<br />
local vals = {}<br />
for i, v in ipairs(t1) do<br />
vals[v] = true<br />
end<br />
for i, v in ipairs(t2) do<br />
vals[v] = true<br />
end<br />
local ret = {}<br />
for k in pairs(vals) do<br />
table.insert(ret, k)<br />
end<br />
table.sort(ret)<br />
return ret<br />
end<br />
<br />
local function getArgNums(args, prefix)<br />
local nums = {}<br />
for k, v in pairs(args) do<br />
local num = mw.ustring.match(tostring(k), '^' .. prefix .. '([1-9]%d*)$')<br />
if num then<br />
table.insert(nums, tonumber(num))<br />
end<br />
end<br />
table.sort(nums)<br />
return nums<br />
end<br />
<br />
--------------------------------------------------------------------------------<br />
-- Box class definition<br />
--------------------------------------------------------------------------------<br />
<br />
local MessageBox = {}<br />
MessageBox.__index = MessageBox<br />
<br />
function MessageBox.new(boxType, args, cfg)<br />
args = args or {}<br />
local obj = {}<br />
<br />
-- Set the title object and the namespace.<br />
obj.title = getTitleObject(args.page) or mw.title.getCurrentTitle()<br />
<br />
-- Set the config for our box type.<br />
obj.cfg = cfg[boxType]<br />
if not obj.cfg then<br />
local ns = obj.title.namespace<br />
-- boxType is "mbox" or invalid input<br />
if args.demospace and args.demospace ~= '' then<br />
-- implement demospace parameter of mbox<br />
local demospace = string.lower(args.demospace)<br />
if DEMOSPACES[demospace] then<br />
-- use template from DEMOSPACES<br />
obj.cfg = cfg[DEMOSPACES[demospace]]<br />
elseif string.find( demospace, 'talk' ) then<br />
-- demo as a talk page<br />
obj.cfg = cfg.tmbox<br />
else<br />
-- default to ombox<br />
obj.cfg = cfg.ombox<br />
end<br />
elseif ns == 0 then<br />
obj.cfg = cfg.ambox -- main namespace<br />
elseif ns == 6 then<br />
obj.cfg = cfg.imbox -- file namespace<br />
elseif ns == 14 then<br />
obj.cfg = cfg.cmbox -- category namespace<br />
else<br />
local nsTable = mw.site.namespaces[ns]<br />
if nsTable and nsTable.isTalk then<br />
obj.cfg = cfg.tmbox -- any talk namespace<br />
else<br />
obj.cfg = cfg.ombox -- other namespaces or invalid input<br />
end<br />
end<br />
end<br />
<br />
-- Set the arguments, and remove all blank arguments except for the ones<br />
-- listed in cfg.allowBlankParams.<br />
do<br />
local newArgs = {}<br />
for k, v in pairs(args) do<br />
if v ~= '' then<br />
newArgs[k] = v<br />
end<br />
end<br />
for i, param in ipairs(obj.cfg.allowBlankParams or {}) do<br />
newArgs[param] = args[param]<br />
end<br />
obj.args = newArgs<br />
end<br />
<br />
-- Define internal data structure.<br />
obj.categories = {}<br />
obj.classes = {}<br />
-- For lazy loading of [[Module:Category handler]].<br />
obj.hasCategories = false<br />
<br />
return setmetatable(obj, MessageBox)<br />
end<br />
<br />
function MessageBox:addCat(ns, cat, sort)<br />
if not cat then<br />
return nil<br />
end<br />
if sort then<br />
cat = string.format('[[Category:%s|%s]]', cat, sort)<br />
else<br />
cat = string.format('[[Category:%s]]', cat)<br />
end<br />
self.hasCategories = true<br />
self.categories[ns] = self.categories[ns] or {}<br />
table.insert(self.categories[ns], cat)<br />
end<br />
<br />
function MessageBox:addClass(class)<br />
if not class then<br />
return nil<br />
end<br />
table.insert(self.classes, class)<br />
end<br />
<br />
function MessageBox:setParameters()<br />
local args = self.args<br />
local cfg = self.cfg<br />
<br />
-- Get type data.<br />
self.type = args.type<br />
local typeData = cfg.types[self.type]<br />
self.invalidTypeError = cfg.showInvalidTypeError<br />
and self.type<br />
and not typeData<br />
typeData = typeData or cfg.types[cfg.default]<br />
self.typeClass = typeData.class<br />
self.typeImage = typeData.image<br />
<br />
-- Find if the box has been wrongly substituted.<br />
self.isSubstituted = cfg.substCheck and args.subst == 'SUBST'<br />
<br />
-- Find whether we are using a small message box.<br />
self.isSmall = cfg.allowSmall and (<br />
cfg.smallParam and args.small == cfg.smallParam<br />
or not cfg.smallParam and yesno(args.small)<br />
)<br />
<br />
-- Add attributes, classes and styles.<br />
self.id = args.id<br />
self.name = args.name<br />
if self.name then<br />
self:addClass('box-' .. string.gsub(self.name,' ','_'))<br />
end<br />
if yesno(args.plainlinks) ~= false then<br />
self:addClass('plainlinks')<br />
end<br />
for _, class in ipairs(cfg.classes or {}) do<br />
self:addClass(class)<br />
end<br />
if self.isSmall then<br />
self:addClass(cfg.smallClass or 'mbox-small')<br />
end<br />
self:addClass(self.typeClass)<br />
self:addClass(args.class)<br />
self.style = args.style<br />
self.attrs = args.attrs<br />
<br />
-- Set text style.<br />
self.textstyle = args.textstyle<br />
<br />
-- Find if we are on the template page or not. This functionality is only<br />
-- used if useCollapsibleTextFields is set, or if both cfg.templateCategory<br />
-- and cfg.templateCategoryRequireName are set.<br />
self.useCollapsibleTextFields = cfg.useCollapsibleTextFields<br />
if self.useCollapsibleTextFields<br />
or cfg.templateCategory<br />
and cfg.templateCategoryRequireName<br />
then<br />
if self.name then<br />
local templateName = mw.ustring.match(<br />
self.name,<br />
'^[tT][eE][mM][pP][lL][aA][tT][eE][%s_]*:[%s_]*(.*)$'<br />
) or self.name<br />
templateName = 'Template:' .. templateName<br />
self.templateTitle = getTitleObject(templateName)<br />
end<br />
self.isTemplatePage = self.templateTitle<br />
and mw.title.equals(self.title, self.templateTitle)<br />
end<br />
<br />
-- Process data for collapsible text fields. At the moment these are only<br />
-- used in {{ambox}}.<br />
if self.useCollapsibleTextFields then<br />
-- Get the self.issue value.<br />
if self.isSmall and args.smalltext then<br />
self.issue = args.smalltext<br />
else<br />
local sect<br />
if args.sect == '' then<br />
sect = 'This ' .. (cfg.sectionDefault or 'page')<br />
elseif type(args.sect) == 'string' then<br />
sect = 'This ' .. args.sect<br />
end<br />
local issue = args.issue<br />
issue = type(issue) == 'string' and issue ~= '' and issue or nil<br />
local text = args.text<br />
text = type(text) == 'string' and text or nil<br />
local issues = {}<br />
table.insert(issues, sect)<br />
table.insert(issues, issue)<br />
table.insert(issues, text)<br />
self.issue = table.concat(issues, ' ')<br />
end<br />
<br />
-- Get the self.talk value.<br />
local talk = args.talk<br />
-- Show talk links on the template page or template subpages if the talk<br />
-- parameter is blank.<br />
if talk == ''<br />
and self.templateTitle<br />
and (<br />
mw.title.equals(self.templateTitle, self.title)<br />
or self.title:isSubpageOf(self.templateTitle)<br />
)<br />
then<br />
talk = '#'<br />
elseif talk == '' then<br />
talk = nil<br />
end<br />
if talk then<br />
-- If the talk value is a talk page, make a link to that page. Else<br />
-- assume that it's a section heading, and make a link to the talk<br />
-- page of the current page with that section heading.<br />
local talkTitle = getTitleObject(talk)<br />
local talkArgIsTalkPage = true<br />
if not talkTitle or not talkTitle.isTalkPage then<br />
talkArgIsTalkPage = false<br />
talkTitle = getTitleObject(<br />
self.title.text,<br />
mw.site.namespaces[self.title.namespace].talk.id<br />
)<br />
end<br />
if talkTitle and talkTitle.exists then<br />
local talkText<br />
if self.isSmall then<br />
local talkLink = talkArgIsTalkPage and talk or (talkTitle.prefixedText .. '#' .. talk)<br />
talkText = string.format('([[%s|talk]])', talkLink)<br />
else<br />
talkText = 'Relevant discussion may be found on'<br />
if talkArgIsTalkPage then<br />
talkText = string.format(<br />
'%s [[%s|%s]].',<br />
talkText,<br />
talk,<br />
talkTitle.prefixedText<br />
)<br />
else<br />
talkText = string.format(<br />
'%s the [[%s#%s|talk page]].',<br />
talkText,<br />
talkTitle.prefixedText,<br />
talk<br />
)<br />
end<br />
end<br />
self.talk = talkText<br />
end<br />
end<br />
<br />
-- Get other values.<br />
self.fix = args.fix ~= '' and args.fix or nil<br />
local date<br />
if args.date and args.date ~= '' then<br />
date = args.date<br />
elseif args.date == '' and self.isTemplatePage then<br />
date = lang:formatDate('F Y')<br />
end<br />
if date then<br />
self.date = string.format(" <span class='date-container'>''(<span class='date'>%s</span>)''</span>", date)<br />
end<br />
self.info = args.info<br />
if yesno(args.removalnotice) then<br />
self.removalNotice = cfg.removalNotice<br />
end<br />
end<br />
<br />
-- Set the non-collapsible text field. At the moment this is used by all box<br />
-- types other than ambox, and also by ambox when small=yes.<br />
if self.isSmall then<br />
self.text = args.smalltext or args.text<br />
else<br />
self.text = args.text<br />
end<br />
<br />
-- Set the below row.<br />
self.below = cfg.below and args.below<br />
<br />
-- General image settings.<br />
self.imageCellDiv = not self.isSmall and cfg.imageCellDiv<br />
self.imageEmptyCell = cfg.imageEmptyCell<br />
if cfg.imageEmptyCellStyle then<br />
self.imageEmptyCellStyle = 'border:none;padding:0;width:1px'<br />
end<br />
<br />
-- Left image settings.<br />
local imageLeft = self.isSmall and args.smallimage or args.image<br />
if cfg.imageCheckBlank and imageLeft ~= 'blank' and imageLeft ~= 'none'<br />
or not cfg.imageCheckBlank and imageLeft ~= 'none'<br />
then<br />
self.imageLeft = imageLeft<br />
if not imageLeft then<br />
local imageSize = self.isSmall<br />
and (cfg.imageSmallSize or '30x30px')<br />
or '40x40px'<br />
self.imageLeft = string.format('[[File:%s|%s|link=|alt=]]', self.typeImage<br />
or 'Imbox notice.png', imageSize)<br />
end<br />
end<br />
<br />
-- Right image settings.<br />
local imageRight = self.isSmall and args.smallimageright or args.imageright<br />
if not (cfg.imageRightNone and imageRight == 'none') then<br />
self.imageRight = imageRight<br />
end<br />
end<br />
<br />
function MessageBox:setMainspaceCategories()<br />
local args = self.args<br />
local cfg = self.cfg<br />
<br />
if not cfg.allowMainspaceCategories then<br />
return nil<br />
end<br />
<br />
local nums = {}<br />
for _, prefix in ipairs{'cat', 'category', 'all'} do<br />
args[prefix .. '1'] = args[prefix]<br />
nums = union(nums, getArgNums(args, prefix))<br />
end<br />
<br />
-- The following is roughly equivalent to the old {{Ambox/category}}.<br />
local date = args.date<br />
date = type(date) == 'string' and date<br />
local preposition = 'from'<br />
for _, num in ipairs(nums) do<br />
local mainCat = args['cat' .. tostring(num)]<br />
or args['category' .. tostring(num)]<br />
local allCat = args['all' .. tostring(num)]<br />
mainCat = type(mainCat) == 'string' and mainCat<br />
allCat = type(allCat) == 'string' and allCat<br />
if mainCat and date and date ~= '' then<br />
local catTitle = string.format('%s %s %s', mainCat, preposition, date)<br />
self:addCat(0, catTitle)<br />
catTitle = getTitleObject('Category:' .. catTitle)<br />
if not catTitle or not catTitle.exists then<br />
self:addCat(0, 'Articles with invalid date parameter in template')<br />
end<br />
elseif mainCat and (not date or date == '') then<br />
self:addCat(0, mainCat)<br />
end<br />
if allCat then<br />
self:addCat(0, allCat)<br />
end<br />
end<br />
end<br />
<br />
function MessageBox:setTemplateCategories()<br />
local args = self.args<br />
local cfg = self.cfg<br />
<br />
-- Add template categories.<br />
if cfg.templateCategory then<br />
if cfg.templateCategoryRequireName then<br />
if self.isTemplatePage then<br />
self:addCat(10, cfg.templateCategory)<br />
end<br />
elseif not self.title.isSubpage then<br />
self:addCat(10, cfg.templateCategory)<br />
end<br />
end<br />
<br />
-- Add template error categories.<br />
if cfg.templateErrorCategory then<br />
local templateErrorCategory = cfg.templateErrorCategory<br />
local templateCat, templateSort<br />
if not self.name and not self.title.isSubpage then<br />
templateCat = templateErrorCategory<br />
elseif self.isTemplatePage then<br />
local paramsToCheck = cfg.templateErrorParamsToCheck or {}<br />
local count = 0<br />
for i, param in ipairs(paramsToCheck) do<br />
if not args[param] then<br />
count = count + 1<br />
end<br />
end<br />
if count > 0 then<br />
templateCat = templateErrorCategory<br />
templateSort = tostring(count)<br />
end<br />
if self.categoryNums and #self.categoryNums > 0 then<br />
templateCat = templateErrorCategory<br />
templateSort = 'C'<br />
end<br />
end<br />
self:addCat(10, templateCat, templateSort)<br />
end<br />
end<br />
<br />
function MessageBox:setAllNamespaceCategories()<br />
-- Set categories for all namespaces.<br />
if self.invalidTypeError then<br />
local allSort = (self.title.namespace == 0 and 'Main:' or '') .. self.title.prefixedText<br />
self:addCat('all', 'Wikipedia message box parameter needs fixing', allSort)<br />
end<br />
if self.isSubstituted then<br />
self:addCat('all', 'Pages with incorrectly substituted templates')<br />
end<br />
end<br />
<br />
function MessageBox:setCategories()<br />
if self.title.namespace == 0 then<br />
self:setMainspaceCategories()<br />
elseif self.title.namespace == 10 then<br />
self:setTemplateCategories()<br />
end<br />
self:setAllNamespaceCategories()<br />
end<br />
<br />
function MessageBox:renderCategories()<br />
if not self.hasCategories then<br />
-- No categories added, no need to pass them to Category handler so,<br />
-- if it was invoked, it would return the empty string.<br />
-- So we shortcut and return the empty string.<br />
return ""<br />
end<br />
-- Convert category tables to strings and pass them through<br />
-- [[Module:Category handler]].<br />
return require('Module:Category handler')._main{<br />
main = table.concat(self.categories[0] or {}),<br />
template = table.concat(self.categories[10] or {}),<br />
all = table.concat(self.categories.all or {}),<br />
nocat = self.args.nocat,<br />
page = self.args.page<br />
}<br />
end<br />
<br />
function MessageBox:export()<br />
local root = mw.html.create()<br />
<br />
-- Add the subst check error.<br />
if self.isSubstituted and self.name then<br />
root:tag('b')<br />
:addClass('error')<br />
:wikitext(string.format(<br />
'Template <code>%s[[Template:%s|%s]]%s</code> has been incorrectly substituted.',<br />
mw.text.nowiki('{{'), self.name, self.name, mw.text.nowiki('}}')<br />
))<br />
end<br />
<br />
-- Create the box table.<br />
local boxTable = root:tag('table')<br />
boxTable:attr('id', self.id or nil)<br />
for i, class in ipairs(self.classes or {}) do<br />
boxTable:addClass(class or nil)<br />
end<br />
boxTable<br />
:cssText(self.style or nil)<br />
:attr('role', 'presentation')<br />
<br />
if self.attrs then<br />
boxTable:attr(self.attrs)<br />
end<br />
<br />
-- Add the left-hand image.<br />
local row = boxTable:tag('tr')<br />
if self.imageLeft then<br />
local imageLeftCell = row:tag('td'):addClass('mbox-image')<br />
if self.imageCellDiv then<br />
-- If we are using a div, redefine imageLeftCell so that the image<br />
-- is inside it. Divs use style="width: 52px;", which limits the<br />
-- image width to 52px. If any images in a div are wider than that,<br />
-- they may overlap with the text or cause other display problems.<br />
imageLeftCell = imageLeftCell:tag('div'):css('width', '52px')<br />
end<br />
imageLeftCell:wikitext(self.imageLeft or nil)<br />
elseif self.imageEmptyCell then<br />
-- Some message boxes define an empty cell if no image is specified, and<br />
-- some don't. The old template code in templates where empty cells are<br />
-- specified gives the following hint: "No image. Cell with some width<br />
-- or padding necessary for text cell to have 100% width."<br />
row:tag('td')<br />
:addClass('mbox-empty-cell')<br />
:cssText(self.imageEmptyCellStyle or nil)<br />
end<br />
<br />
-- Add the text.<br />
local textCell = row:tag('td'):addClass('mbox-text')<br />
if self.useCollapsibleTextFields then<br />
-- The message box uses advanced text parameters that allow things to be<br />
-- collapsible. At the moment, only ambox uses this.<br />
textCell:cssText(self.textstyle or nil)<br />
local textCellDiv = textCell:tag('div')<br />
textCellDiv<br />
:addClass('mbox-text-span')<br />
:wikitext(self.issue or nil)<br />
if (self.talk or self.fix) then<br />
textCellDiv:tag('span')<br />
:addClass('hide-when-compact')<br />
:wikitext(self.talk and (' ' .. self.talk) or nil)<br />
:wikitext(self.fix and (' ' .. self.fix) or nil)<br />
end<br />
textCellDiv:wikitext(self.date and (' ' .. self.date) or nil)<br />
if self.info and not self.isSmall then<br />
textCellDiv<br />
:tag('span')<br />
:addClass('hide-when-compact')<br />
:wikitext(self.info and (' ' .. self.info) or nil)<br />
end<br />
if self.removalNotice then<br />
textCellDiv:tag('span')<br />
:addClass('hide-when-compact')<br />
:tag('i')<br />
:wikitext(string.format(" (%s)", self.removalNotice))<br />
end<br />
else<br />
-- Default text formatting - anything goes.<br />
textCell<br />
:cssText(self.textstyle or nil)<br />
:wikitext(self.text or nil)<br />
end<br />
<br />
-- Add the right-hand image.<br />
if self.imageRight then<br />
local imageRightCell = row:tag('td'):addClass('mbox-imageright')<br />
if self.imageCellDiv then<br />
-- If we are using a div, redefine imageRightCell so that the image<br />
-- is inside it.<br />
imageRightCell = imageRightCell:tag('div'):css('width', '52px')<br />
end<br />
imageRightCell<br />
:wikitext(self.imageRight or nil)<br />
end<br />
<br />
-- Add the below row.<br />
if self.below then<br />
boxTable:tag('tr')<br />
:tag('td')<br />
:attr('colspan', self.imageRight and '3' or '2')<br />
:addClass('mbox-text')<br />
:cssText(self.textstyle or nil)<br />
:wikitext(self.below or nil)<br />
end<br />
<br />
-- Add error message for invalid type parameters.<br />
if self.invalidTypeError then<br />
root:tag('div')<br />
:css('text-align', 'center')<br />
:wikitext(string.format(<br />
'This message box is using an invalid "type=%s" parameter and needs fixing.',<br />
self.type or ''<br />
))<br />
end<br />
<br />
-- Add categories.<br />
root:wikitext(self:renderCategories() or nil)<br />
<br />
return tostring(root)<br />
end<br />
<br />
--------------------------------------------------------------------------------<br />
-- Exports<br />
--------------------------------------------------------------------------------<br />
<br />
local p, mt = {}, {}<br />
<br />
function p._exportClasses()<br />
-- For testing.<br />
return {<br />
MessageBox = MessageBox<br />
}<br />
end<br />
<br />
function p.main(boxType, args, cfgTables)<br />
local box = MessageBox.new(boxType, args, cfgTables or mw.loadData(CONFIG_MODULE))<br />
box:setParameters()<br />
box:setCategories()<br />
return box:export()<br />
end<br />
<br />
function mt.__index(t, k)<br />
return function (frame)<br />
if not getArgs then<br />
getArgs = require('Module:Arguments').getArgs<br />
end<br />
return t.main(k, getArgs(frame, {trim = false, removeBlanks = false}))<br />
end<br />
end<br />
<br />
return setmetatable(p, mt)</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Module:Documentation/styles.css&diff=27800Module:Documentation/styles.css2022-03-15T06:41:46Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>/* {{pp|small=yes}} */<br />
.documentation,<br />
.documentation-metadata {<br />
border: 1px solid #a2a9b1;<br />
background-color: #ecfcf4;<br />
clear: both;<br />
}<br />
<br />
.documentation {<br />
margin: 1em 0 0 0;<br />
padding: 1em;<br />
}<br />
<br />
.documentation-metadata {<br />
margin: 0.2em 0; /* same margin left-right as .documentation */<br />
font-style: italic;<br />
padding: 0.4em 1em; /* same padding left-right as .documentation */<br />
}<br />
<br />
.documentation-startbox {<br />
padding-bottom: 3px;<br />
border-bottom: 1px solid #aaa;<br />
margin-bottom: 1ex;<br />
}<br />
<br />
.documentation-heading {<br />
font-weight: bold;<br />
font-size: 125%;<br />
}<br />
<br />
.documentation-clear { /* Don't want things to stick out where they shouldn't. */<br />
clear: both;<br />
}<br />
<br />
.documentation-toolbar {<br />
font-style: normal;<br />
font-size: 85%;<br />
}</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Module:Documentation/i18n&diff=27798Module:Documentation/i18n2022-03-15T06:41:46Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>local format = require('Module:TNT').format<br />
local i18n = {}<br />
<br />
i18n['cfg-error-msg-type'] = format('I18n/Documentation', 'cfg-error-msg-type')<br />
i18n['cfg-error-msg-empty'] = format('I18n/Documentation', 'cfg-error-msg-empty')<br />
<br />
-- cfg['template-namespace-heading']<br />
-- The heading shown in the template namespace.<br />
i18n['template-namespace-heading'] = format('I18n/Documentation', 'template-namespace-heading')<br />
<br />
-- cfg['module-namespace-heading']<br />
-- The heading shown in the module namespace.<br />
i18n['module-namespace-heading'] = format('I18n/Documentation', 'module-namespace-heading')<br />
<br />
-- cfg['file-namespace-heading']<br />
-- The heading shown in the file namespace.<br />
i18n['file-namespace-heading'] = format('I18n/Documentation', 'file-namespace-heading')<br />
<br />
-- cfg['other-namespaces-heading']<br />
-- The heading shown in other namespaces.<br />
i18n['other-namespaces-heading'] = format('I18n/Documentation', 'other-namespaces-heading')<br />
<br />
-- cfg['view-link-display']<br />
-- The text to display for "view" links.<br />
i18n['view-link-display'] = format('I18n/Documentation', 'view-link-display')<br />
<br />
-- cfg['edit-link-display']<br />
-- The text to display for "edit" links.<br />
i18n['edit-link-display'] = format('I18n/Documentation', 'edit-link-display')<br />
<br />
-- cfg['history-link-display']<br />
-- The text to display for "history" links.<br />
i18n['history-link-display'] = format('I18n/Documentation', 'history-link-display')<br />
<br />
-- cfg['purge-link-display']<br />
-- The text to display for "purge" links.<br />
i18n['purge-link-display'] = format('I18n/Documentation', 'purge-link-display')<br />
<br />
-- cfg['create-link-display']<br />
-- The text to display for "create" links.<br />
i18n['create-link-display'] = format('I18n/Documentation', 'create-link-display')<br />
<br />
return i18n</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Module:Documentation/config&diff=27796Module:Documentation/config2022-03-15T06:41:46Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>----------------------------------------------------------------------------------------------------<br />
--<br />
-- Configuration for Module:Documentation<br />
--<br />
-- Here you can set the values of the parameters and messages used in Module:Documentation to<br />
-- localise it to your wiki and your language. Unless specified otherwise, values given here<br />
-- should be string values.<br />
----------------------------------------------------------------------------------------------------<br />
<br />
local cfg = {} -- Do not edit this line.<br />
<br />
----------------------------------------------------------------------------------------------------<br />
-- Protection template configuration<br />
----------------------------------------------------------------------------------------------------<br />
<br />
-- cfg['protection-reason-edit']<br />
-- The protection reason for edit-protected templates to pass to<br />
-- [[Module:Protection banner]].<br />
cfg['protection-reason-edit'] = 'template'<br />
<br />
--[[<br />
----------------------------------------------------------------------------------------------------<br />
-- Sandbox notice configuration<br />
--<br />
-- On sandbox pages the module can display a template notifying users that the current page is a<br />
-- sandbox, and the location of test cases pages, etc. The module decides whether the page is a<br />
-- sandbox or not based on the value of cfg['sandbox-subpage']. The following settings configure the<br />
-- messages that the notices contains.<br />
----------------------------------------------------------------------------------------------------<br />
--]]<br />
<br />
-- cfg['sandbox-notice-image']<br />
-- The image displayed in the sandbox notice.<br />
cfg['sandbox-notice-image'] = '[[File:Sandbox.svg|50px|alt=|link=]]'<br />
<br />
--[[<br />
-- cfg['sandbox-notice-pagetype-template']<br />
-- cfg['sandbox-notice-pagetype-module']<br />
-- cfg['sandbox-notice-pagetype-other']<br />
-- The page type of the sandbox page. The message that is displayed depends on the current subject<br />
-- namespace. This message is used in either cfg['sandbox-notice-blurb'] or<br />
-- cfg['sandbox-notice-diff-blurb'].<br />
--]]<br />
cfg['sandbox-notice-pagetype-template'] = '[[Wikipedia:Template test cases|template sandbox]] page'<br />
cfg['sandbox-notice-pagetype-module'] = '[[Wikipedia:Template test cases|module sandbox]] page'<br />
cfg['sandbox-notice-pagetype-other'] = 'sandbox page'<br />
<br />
--[[<br />
-- cfg['sandbox-notice-blurb']<br />
-- cfg['sandbox-notice-diff-blurb']<br />
-- cfg['sandbox-notice-diff-display']<br />
-- Either cfg['sandbox-notice-blurb'] or cfg['sandbox-notice-diff-blurb'] is the opening sentence<br />
-- of the sandbox notice. The latter has a diff link, but the former does not. $1 is the page<br />
-- type, which is either cfg['sandbox-notice-pagetype-template'],<br />
-- cfg['sandbox-notice-pagetype-module'] or cfg['sandbox-notice-pagetype-other'] depending what<br />
-- namespace we are in. $2 is a link to the main template page, and $3 is a diff link between<br />
-- the sandbox and the main template. The display value of the diff link is set by <br />
-- cfg['sandbox-notice-compare-link-display'].<br />
--]]<br />
cfg['sandbox-notice-blurb'] = 'This is the $1 for $2.'<br />
cfg['sandbox-notice-diff-blurb'] = 'This is the $1 for $2 ($3).'<br />
cfg['sandbox-notice-compare-link-display'] = 'diff'<br />
<br />
--[[<br />
-- cfg['sandbox-notice-testcases-blurb']<br />
-- cfg['sandbox-notice-testcases-link-display']<br />
-- cfg['sandbox-notice-testcases-run-blurb']<br />
-- cfg['sandbox-notice-testcases-run-link-display']<br />
-- cfg['sandbox-notice-testcases-blurb'] is a sentence notifying the user that there is a test cases page<br />
-- corresponding to this sandbox that they can edit. $1 is a link to the test cases page.<br />
-- cfg['sandbox-notice-testcases-link-display'] is the display value for that link.<br />
-- cfg['sandbox-notice-testcases-run-blurb'] is a sentence notifying the user that there is a test cases page<br />
-- corresponding to this sandbox that they can edit, along with a link to run it. $1 is a link to the test<br />
-- cases page, and $2 is a link to the page to run it.<br />
-- cfg['sandbox-notice-testcases-run-link-display'] is the display value for the link to run the test<br />
-- cases.<br />
--]]<br />
cfg['sandbox-notice-testcases-blurb'] = 'See also the companion subpage for $1.'<br />
cfg['sandbox-notice-testcases-link-display'] = 'test cases'<br />
cfg['sandbox-notice-testcases-run-blurb'] = 'See also the companion subpage for $1 ($2).'<br />
cfg['sandbox-notice-testcases-run-link-display'] = 'run'<br />
<br />
-- cfg['sandbox-category']<br />
-- A category to add to all template sandboxes.<br />
cfg['sandbox-category'] = 'Template sandboxes'<br />
<br />
----------------------------------------------------------------------------------------------------<br />
-- Start box configuration<br />
----------------------------------------------------------------------------------------------------<br />
<br />
-- cfg['documentation-icon-wikitext']<br />
-- The wikitext for the icon shown at the top of the template.<br />
cfg['documentation-icon-wikitext'] = '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]'<br />
<br />
-- cfg['template-namespace-heading']<br />
-- The heading shown in the template namespace.<br />
cfg['template-namespace-heading'] = 'Template documentation'<br />
<br />
-- cfg['module-namespace-heading']<br />
-- The heading shown in the module namespace.<br />
cfg['module-namespace-heading'] = 'Module documentation'<br />
<br />
-- cfg['file-namespace-heading']<br />
-- The heading shown in the file namespace.<br />
cfg['file-namespace-heading'] = 'Summary'<br />
<br />
-- cfg['other-namespaces-heading']<br />
-- The heading shown in other namespaces.<br />
cfg['other-namespaces-heading'] = 'Documentation'<br />
<br />
-- cfg['view-link-display']<br />
-- The text to display for "view" links.<br />
cfg['view-link-display'] = 'view'<br />
<br />
-- cfg['edit-link-display']<br />
-- The text to display for "edit" links.<br />
cfg['edit-link-display'] = 'edit'<br />
<br />
-- cfg['history-link-display']<br />
-- The text to display for "history" links.<br />
cfg['history-link-display'] = 'history'<br />
<br />
-- cfg['purge-link-display']<br />
-- The text to display for "purge" links.<br />
cfg['purge-link-display'] = 'purge'<br />
<br />
-- cfg['create-link-display']<br />
-- The text to display for "create" links.<br />
cfg['create-link-display'] = 'create'<br />
<br />
----------------------------------------------------------------------------------------------------<br />
-- Link box (end box) configuration<br />
----------------------------------------------------------------------------------------------------<br />
<br />
-- cfg['transcluded-from-blurb']<br />
-- Notice displayed when the docs are transcluded from another page. $1 is a wikilink to that page.<br />
cfg['transcluded-from-blurb'] = 'The above [[Wikipedia:Template documentation|documentation]] is [[Help:Transclusion|transcluded]] from $1.'<br />
<br />
--[[<br />
-- cfg['create-module-doc-blurb']<br />
-- Notice displayed in the module namespace when the documentation subpage does not exist.<br />
-- $1 is a link to create the documentation page with the preload cfg['module-preload'] and the<br />
-- display cfg['create-link-display'].<br />
--]]<br />
cfg['create-module-doc-blurb'] = 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].'<br />
<br />
----------------------------------------------------------------------------------------------------<br />
-- Experiment blurb configuration<br />
----------------------------------------------------------------------------------------------------<br />
<br />
--[[<br />
-- cfg['experiment-blurb-template']<br />
-- cfg['experiment-blurb-module']<br />
-- The experiment blurb is the text inviting editors to experiment in sandbox and test cases pages.<br />
-- It is only shown in the template and module namespaces. With the default English settings, it<br />
-- might look like this:<br />
--<br />
-- Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.<br />
--<br />
-- In this example, "sandbox", "edit", "diff", "testcases", and "edit" would all be links.<br />
--<br />
-- There are two versions, cfg['experiment-blurb-template'] and cfg['experiment-blurb-module'], depending<br />
-- on what namespace we are in.<br />
-- <br />
-- Parameters:<br />
--<br />
-- $1 is a link to the sandbox page. If the sandbox exists, it is in the following format:<br />
--<br />
-- cfg['sandbox-link-display'] (cfg['sandbox-edit-link-display'] | cfg['compare-link-display'])<br />
-- <br />
-- If the sandbox doesn't exist, it is in the format:<br />
--<br />
-- cfg['sandbox-link-display'] (cfg['sandbox-create-link-display'] | cfg['mirror-link-display'])<br />
-- <br />
-- The link for cfg['sandbox-create-link-display'] link preloads the page with cfg['template-sandbox-preload']<br />
-- or cfg['module-sandbox-preload'], depending on the current namespace. The link for cfg['mirror-link-display']<br />
-- loads a default edit summary of cfg['mirror-edit-summary'].<br />
--<br />
-- $2 is a link to the test cases page. If the test cases page exists, it is in the following format:<br />
--<br />
-- cfg['testcases-link-display'] (cfg['testcases-edit-link-display'] | cfg['testcases-run-link-display'])<br />
--<br />
-- If the test cases page doesn't exist, it is in the format:<br />
-- <br />
-- cfg['testcases-link-display'] (cfg['testcases-create-link-display'])<br />
--<br />
-- If the test cases page doesn't exist, the link for cfg['testcases-create-link-display'] preloads the<br />
-- page with cfg['template-testcases-preload'] or cfg['module-testcases-preload'], depending on the current<br />
-- namespace.<br />
--]]<br />
cfg['experiment-blurb-template'] = "Editors can experiment in this template's $1 and $2 pages."<br />
cfg['experiment-blurb-module'] = "Editors can experiment in this module's $1 and $2 pages."<br />
<br />
----------------------------------------------------------------------------------------------------<br />
-- Sandbox link configuration<br />
----------------------------------------------------------------------------------------------------<br />
<br />
-- cfg['sandbox-subpage']<br />
-- The name of the template subpage typically used for sandboxes.<br />
cfg['sandbox-subpage'] = 'sandbox'<br />
<br />
-- cfg['template-sandbox-preload']<br />
-- Preload file for template sandbox pages.<br />
cfg['template-sandbox-preload'] = 'Template:Documentation/preload-sandbox'<br />
<br />
-- cfg['module-sandbox-preload']<br />
-- Preload file for Lua module sandbox pages.<br />
cfg['module-sandbox-preload'] = 'Template:Documentation/preload-module-sandbox'<br />
<br />
-- cfg['sandbox-link-display']<br />
-- The text to display for "sandbox" links.<br />
cfg['sandbox-link-display'] = 'sandbox'<br />
<br />
-- cfg['sandbox-edit-link-display']<br />
-- The text to display for sandbox "edit" links.<br />
cfg['sandbox-edit-link-display'] = 'edit'<br />
<br />
-- cfg['sandbox-create-link-display']<br />
-- The text to display for sandbox "create" links.<br />
cfg['sandbox-create-link-display'] = 'create'<br />
<br />
-- cfg['compare-link-display']<br />
-- The text to display for "compare" links.<br />
cfg['compare-link-display'] = 'diff'<br />
<br />
-- cfg['mirror-edit-summary']<br />
-- The default edit summary to use when a user clicks the "mirror" link. $1 is a wikilink to the<br />
-- template page.<br />
cfg['mirror-edit-summary'] = 'Create sandbox version of $1'<br />
<br />
-- cfg['mirror-link-display']<br />
-- The text to display for "mirror" links.<br />
cfg['mirror-link-display'] = 'mirror'<br />
<br />
-- cfg['mirror-link-preload']<br />
-- The page to preload when a user clicks the "mirror" link.<br />
cfg['mirror-link-preload'] = 'Template:Documentation/mirror'<br />
<br />
----------------------------------------------------------------------------------------------------<br />
-- Test cases link configuration<br />
----------------------------------------------------------------------------------------------------<br />
<br />
-- cfg['testcases-subpage']<br />
-- The name of the template subpage typically used for test cases.<br />
cfg['testcases-subpage'] = 'testcases'<br />
<br />
-- cfg['template-testcases-preload']<br />
-- Preload file for template test cases pages.<br />
cfg['template-testcases-preload'] = 'Template:Documentation/preload-testcases'<br />
<br />
-- cfg['module-testcases-preload']<br />
-- Preload file for Lua module test cases pages.<br />
cfg['module-testcases-preload'] = 'Template:Documentation/preload-module-testcases'<br />
<br />
-- cfg['testcases-link-display']<br />
-- The text to display for "testcases" links.<br />
cfg['testcases-link-display'] = 'testcases'<br />
<br />
-- cfg['testcases-edit-link-display']<br />
-- The text to display for test cases "edit" links.<br />
cfg['testcases-edit-link-display'] = 'edit'<br />
<br />
-- cfg['testcases-run-link-display']<br />
-- The text to display for test cases "run" links.<br />
cfg['testcases-run-link-display'] = 'run'<br />
<br />
-- cfg['testcases-create-link-display']<br />
-- The text to display for test cases "create" links.<br />
cfg['testcases-create-link-display'] = 'create'<br />
<br />
----------------------------------------------------------------------------------------------------<br />
-- Add categories blurb configuration<br />
----------------------------------------------------------------------------------------------------<br />
<br />
--[[<br />
-- cfg['add-categories-blurb']<br />
-- Text to direct users to add categories to the /doc subpage. Not used if the "content" or<br />
-- "docname fed" arguments are set, as then it is not clear where to add the categories. $1 is a<br />
-- link to the /doc subpage with a display value of cfg['doc-link-display'].<br />
--]]<br />
cfg['add-categories-blurb'] = 'Add categories to the $1 subpage.'<br />
<br />
-- cfg['doc-link-display']<br />
-- The text to display when linking to the /doc subpage.<br />
cfg['doc-link-display'] = '/doc'<br />
<br />
----------------------------------------------------------------------------------------------------<br />
-- Subpages link configuration<br />
----------------------------------------------------------------------------------------------------<br />
<br />
--[[<br />
-- cfg['subpages-blurb']<br />
-- The "Subpages of this template" blurb. $1 is a link to the main template's subpages with a<br />
-- display value of cfg['subpages-link-display']. In the English version this blurb is simply<br />
-- the link followed by a period, and the link display provides the actual text.<br />
--]]<br />
cfg['subpages-blurb'] = '$1.'<br />
<br />
--[[<br />
-- cfg['subpages-link-display']<br />
-- The text to display for the "subpages of this page" link. $1 is cfg['template-pagetype'],<br />
-- cfg['module-pagetype'] or cfg['default-pagetype'], depending on whether the current page is in<br />
-- the template namespace, the module namespace, or another namespace.<br />
--]]<br />
cfg['subpages-link-display'] = 'Subpages of this $1'<br />
<br />
-- cfg['template-pagetype']<br />
-- The pagetype to display for template pages.<br />
cfg['template-pagetype'] = 'template'<br />
<br />
-- cfg['module-pagetype']<br />
-- The pagetype to display for Lua module pages.<br />
cfg['module-pagetype'] = 'module'<br />
<br />
-- cfg['default-pagetype']<br />
-- The pagetype to display for pages other than templates or Lua modules.<br />
cfg['default-pagetype'] = 'page'<br />
<br />
----------------------------------------------------------------------------------------------------<br />
-- Doc link configuration<br />
----------------------------------------------------------------------------------------------------<br />
<br />
-- cfg['doc-subpage']<br />
-- The name of the subpage typically used for documentation pages.<br />
cfg['doc-subpage'] = 'doc'<br />
<br />
-- cfg['docpage-preload']<br />
-- Preload file for template documentation pages in all namespaces.<br />
cfg['docpage-preload'] = 'Template:Documentation/preload'<br />
<br />
-- cfg['module-preload']<br />
-- Preload file for Lua module documentation pages.<br />
cfg['module-preload'] = 'Template:Documentation/preload-module-doc'<br />
<br />
----------------------------------------------------------------------------------------------------<br />
-- HTML and CSS configuration<br />
----------------------------------------------------------------------------------------------------<br />
<br />
-- cfg['templatestyles']<br />
-- The name of the TemplateStyles page where CSS is kept.<br />
-- Sandbox CSS will be at Module:Documentation/sandbox/styles.css when needed.<br />
cfg['templatestyles'] = 'Module:Documentation/styles.css'<br />
<br />
-- cfg['container']<br />
-- Class which can be used to set flex or grid CSS on the<br />
-- two child divs documentation and documentation-metadata<br />
cfg['container'] = 'documentation-container'<br />
<br />
-- cfg['main-div-classes']<br />
-- Classes added to the main HTML "div" tag.<br />
cfg['main-div-classes'] = 'documentation'<br />
<br />
-- cfg['main-div-heading-class']<br />
-- Class for the main heading for templates and modules and assoc. talk spaces<br />
cfg['main-div-heading-class'] = 'documentation-heading'<br />
<br />
-- cfg['start-box-class']<br />
-- Class for the start box<br />
cfg['start-box-class'] = 'documentation-startbox'<br />
<br />
-- cfg['start-box-link-classes']<br />
-- Classes used for the [view][edit][history] or [create] links in the start box.<br />
-- mw-editsection-like is per [[Wikipedia:Village pump (technical)/Archive 117]]<br />
cfg['start-box-link-classes'] = 'mw-editsection-like plainlinks'<br />
<br />
-- cfg['end-box-class']<br />
-- Class for the end box.<br />
cfg['end-box-class'] = 'documentation-metadata'<br />
<br />
-- cfg['end-box-plainlinks']<br />
-- Plainlinks<br />
cfg['end-box-plainlinks'] = 'plainlinks'<br />
<br />
-- cfg['toolbar-class']<br />
-- Class added for toolbar links.<br />
cfg['toolbar-class'] = 'documentation-toolbar'<br />
<br />
-- cfg['clear']<br />
-- Just used to clear things.<br />
cfg['clear'] = 'documentation-clear'<br />
<br />
<br />
----------------------------------------------------------------------------------------------------<br />
-- Tracking category configuration<br />
----------------------------------------------------------------------------------------------------<br />
<br />
-- cfg['display-strange-usage-category']<br />
-- Set to true to enable output of cfg['strange-usage-category'] if the module is used on a /doc subpage<br />
-- or a /testcases subpage. This should be a boolean value (either true or false).<br />
cfg['display-strange-usage-category'] = true<br />
<br />
-- cfg['strange-usage-category']<br />
-- Category to output if cfg['display-strange-usage-category'] is set to true and the module is used on a<br />
-- /doc subpage or a /testcases subpage.<br />
cfg['strange-usage-category'] = 'Wikipedia pages with strange ((documentation)) usage'<br />
<br />
--[[<br />
----------------------------------------------------------------------------------------------------<br />
-- End configuration<br />
--<br />
-- Don't edit anything below this line.<br />
----------------------------------------------------------------------------------------------------<br />
--]]<br />
<br />
return cfg</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Module:Documentation&diff=27794Module:Documentation2022-03-15T06:41:46Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>-- This module implements {{documentation}}.<br />
<br />
-- Get required modules.<br />
local getArgs = require('Module:Arguments').getArgs<br />
<br />
-- Get the config table.<br />
local cfg = mw.loadData('Module:Documentation/config')<br />
<br />
local p = {}<br />
<br />
-- Often-used functions.<br />
local ugsub = mw.ustring.gsub<br />
<br />
----------------------------------------------------------------------------<br />
-- Helper functions<br />
--<br />
-- These are defined as local functions, but are made available in the p<br />
-- table for testing purposes.<br />
----------------------------------------------------------------------------<br />
<br />
local function message(cfgKey, valArray, expectType)<br />
--[[<br />
-- Gets a message from the cfg table and formats it if appropriate.<br />
-- The function raises an error if the value from the cfg table is not<br />
-- of the type expectType. The default type for expectType is 'string'.<br />
-- If the table valArray is present, strings such as $1, $2 etc. in the<br />
-- message are substituted with values from the table keys [1], [2] etc.<br />
-- For example, if the message "foo-message" had the value 'Foo $2 bar $1.',<br />
-- message('foo-message', {'baz', 'qux'}) would return "Foo qux bar baz."<br />
--]]<br />
local msg = cfg[cfgKey]<br />
expectType = expectType or 'string'<br />
if type(msg) ~= expectType then<br />
error('message: type error in message cfg.' .. cfgKey .. ' (' .. expectType .. ' expected, got ' .. type(msg) .. ')', 2)<br />
end<br />
if not valArray then<br />
return msg<br />
end<br />
<br />
local function getMessageVal(match)<br />
match = tonumber(match)<br />
return valArray[match] or error('message: no value found for key $' .. match .. ' in message cfg.' .. cfgKey, 4)<br />
end<br />
<br />
return ugsub(msg, '$([1-9][0-9]*)', getMessageVal)<br />
end<br />
<br />
p.message = message<br />
<br />
local function makeWikilink(page, display)<br />
if display then<br />
return mw.ustring.format('[[%s|%s]]', page, display)<br />
else<br />
return mw.ustring.format('[[%s]]', page)<br />
end<br />
end<br />
<br />
p.makeWikilink = makeWikilink<br />
<br />
local function makeCategoryLink(cat, sort)<br />
local catns = mw.site.namespaces[14].name<br />
return makeWikilink(catns .. ':' .. cat, sort)<br />
end<br />
<br />
p.makeCategoryLink = makeCategoryLink<br />
<br />
local function makeUrlLink(url, display)<br />
return mw.ustring.format('[%s %s]', url, display)<br />
end<br />
<br />
p.makeUrlLink = makeUrlLink<br />
<br />
local function makeToolbar(...)<br />
local ret = {}<br />
local lim = select('#', ...)<br />
if lim < 1 then<br />
return nil<br />
end<br />
for i = 1, lim do<br />
ret[#ret + 1] = select(i, ...)<br />
end<br />
-- 'documentation-toolbar'<br />
return '<span class="' .. message('toolbar-class') .. '">('<br />
.. table.concat(ret, ' &#124; ') .. ')</span>'<br />
end <br />
<br />
p.makeToolbar = makeToolbar<br />
<br />
----------------------------------------------------------------------------<br />
-- Argument processing<br />
----------------------------------------------------------------------------<br />
<br />
local function makeInvokeFunc(funcName)<br />
return function (frame)<br />
local args = getArgs(frame, {<br />
valueFunc = function (key, value)<br />
if type(value) == 'string' then<br />
value = value:match('^%s*(.-)%s*$') -- Remove whitespace.<br />
if key == 'heading' or value ~= '' then<br />
return value<br />
else<br />
return nil<br />
end<br />
else<br />
return value<br />
end<br />
end<br />
})<br />
return p[funcName](args)<br />
end<br />
end<br />
<br />
----------------------------------------------------------------------------<br />
-- Entry points<br />
----------------------------------------------------------------------------<br />
<br />
function p.nonexistent(frame)<br />
if mw.title.getCurrentTitle().subpageText == 'testcases' then<br />
return frame:expandTemplate{title = 'module test cases notice'}<br />
else<br />
return p.main(frame)<br />
end<br />
end<br />
<br />
p.main = makeInvokeFunc('_main')<br />
<br />
function p._main(args)<br />
--[[<br />
-- This function defines logic flow for the module.<br />
-- @args - table of arguments passed by the user<br />
--]]<br />
local env = p.getEnvironment(args)<br />
local root = mw.html.create()<br />
root<br />
:wikitext(p._getModuleWikitext(args, env))<br />
:wikitext(p.protectionTemplate(env))<br />
:wikitext(p.sandboxNotice(args, env))<br />
:tag('div')<br />
-- 'documentation-container'<br />
:addClass(message('container'))<br />
:attr('role', 'complementary')<br />
:attr('aria-labelledby', args.heading ~= '' and 'documentation-heading' or nil)<br />
:attr('aria-label', args.heading == '' and 'Documentation' or nil)<br />
:newline()<br />
:tag('div')<br />
-- 'documentation'<br />
:addClass(message('main-div-classes'))<br />
:newline()<br />
:wikitext(p._startBox(args, env))<br />
:wikitext(p._content(args, env))<br />
:tag('div')<br />
-- 'documentation-clear'<br />
:addClass(message('clear'))<br />
:done()<br />
:newline()<br />
:done()<br />
:wikitext(p._endBox(args, env))<br />
:done()<br />
:wikitext(p.addTrackingCategories(env))<br />
-- 'Module:Documentation/styles.css'<br />
return mw.getCurrentFrame():extensionTag (<br />
'templatestyles', '', {src=cfg['templatestyles']<br />
}) .. tostring(root)<br />
end<br />
<br />
----------------------------------------------------------------------------<br />
-- Environment settings<br />
----------------------------------------------------------------------------<br />
<br />
function p.getEnvironment(args)<br />
--[[<br />
-- Returns a table with information about the environment, including title<br />
-- objects and other namespace- or path-related data.<br />
-- @args - table of arguments passed by the user<br />
--<br />
-- Title objects include:<br />
-- env.title - the page we are making documentation for (usually the current title)<br />
-- env.templateTitle - the template (or module, file, etc.)<br />
-- env.docTitle - the /doc subpage.<br />
-- env.sandboxTitle - the /sandbox subpage.<br />
-- env.testcasesTitle - the /testcases subpage.<br />
--<br />
-- Data includes:<br />
-- env.protectionLevels - the protection levels table of the title object.<br />
-- env.subjectSpace - the number of the title's subject namespace.<br />
-- env.docSpace - the number of the namespace the title puts its documentation in.<br />
-- env.docpageBase - the text of the base page of the /doc, /sandbox and /testcases pages, with namespace.<br />
-- env.compareUrl - URL of the Special:ComparePages page comparing the sandbox with the template.<br />
-- <br />
-- All table lookups are passed through pcall so that errors are caught. If an error occurs, the value<br />
-- returned will be nil.<br />
--]]<br />
<br />
local env, envFuncs = {}, {}<br />
<br />
-- Set up the metatable. If triggered we call the corresponding function in the envFuncs table. The value<br />
-- returned by that function is memoized in the env table so that we don't call any of the functions<br />
-- more than once. (Nils won't be memoized.)<br />
setmetatable(env, {<br />
__index = function (t, key)<br />
local envFunc = envFuncs[key]<br />
if envFunc then<br />
local success, val = pcall(envFunc)<br />
if success then<br />
env[key] = val -- Memoise the value.<br />
return val<br />
end<br />
end<br />
return nil<br />
end<br />
}) <br />
<br />
function envFuncs.title()<br />
-- The title object for the current page, or a test page passed with args.page.<br />
local title<br />
local titleArg = args.page<br />
if titleArg then<br />
title = mw.title.new(titleArg)<br />
else<br />
title = mw.title.getCurrentTitle()<br />
end<br />
return title<br />
end<br />
<br />
function envFuncs.templateTitle()<br />
--[[<br />
-- The template (or module, etc.) title object.<br />
-- Messages:<br />
-- 'sandbox-subpage' --> 'sandbox'<br />
-- 'testcases-subpage' --> 'testcases'<br />
--]]<br />
local subjectSpace = env.subjectSpace<br />
local title = env.title<br />
local subpage = title.subpageText<br />
if subpage == message('sandbox-subpage') or subpage == message('testcases-subpage') then<br />
return mw.title.makeTitle(subjectSpace, title.baseText)<br />
else<br />
return mw.title.makeTitle(subjectSpace, title.text)<br />
end<br />
end<br />
<br />
function envFuncs.docTitle()<br />
--[[<br />
-- Title object of the /doc subpage.<br />
-- Messages:<br />
-- 'doc-subpage' --> 'doc'<br />
--]]<br />
local title = env.title<br />
local docname = args[1] -- User-specified doc page.<br />
local docpage<br />
if docname then<br />
docpage = docname<br />
else<br />
docpage = env.docpageBase .. '/' .. message('doc-subpage')<br />
end<br />
return mw.title.new(docpage)<br />
end<br />
<br />
function envFuncs.sandboxTitle()<br />
--[[<br />
-- Title object for the /sandbox subpage.<br />
-- Messages:<br />
-- 'sandbox-subpage' --> 'sandbox'<br />
--]]<br />
return mw.title.new(env.docpageBase .. '/' .. message('sandbox-subpage'))<br />
end<br />
<br />
function envFuncs.testcasesTitle()<br />
--[[<br />
-- Title object for the /testcases subpage.<br />
-- Messages:<br />
-- 'testcases-subpage' --> 'testcases'<br />
--]]<br />
return mw.title.new(env.docpageBase .. '/' .. message('testcases-subpage'))<br />
end<br />
<br />
function envFuncs.protectionLevels()<br />
-- The protection levels table of the title object.<br />
return env.title.protectionLevels<br />
end<br />
<br />
function envFuncs.subjectSpace()<br />
-- The subject namespace number.<br />
return mw.site.namespaces[env.title.namespace].subject.id<br />
end<br />
<br />
function envFuncs.docSpace()<br />
-- The documentation namespace number. For most namespaces this is the<br />
-- same as the subject namespace. However, pages in the Article, File,<br />
-- MediaWiki or Category namespaces must have their /doc, /sandbox and<br />
-- /testcases pages in talk space.<br />
local subjectSpace = env.subjectSpace<br />
if subjectSpace == 0 or subjectSpace == 6 or subjectSpace == 8 or subjectSpace == 14 then<br />
return subjectSpace + 1<br />
else<br />
return subjectSpace<br />
end<br />
end<br />
<br />
function envFuncs.docpageBase()<br />
-- The base page of the /doc, /sandbox, and /testcases subpages.<br />
-- For some namespaces this is the talk page, rather than the template page.<br />
local templateTitle = env.templateTitle<br />
local docSpace = env.docSpace<br />
local docSpaceText = mw.site.namespaces[docSpace].name<br />
-- Assemble the link. docSpace is never the main namespace, so we can hardcode the colon.<br />
return docSpaceText .. ':' .. templateTitle.text<br />
end<br />
<br />
function envFuncs.compareUrl()<br />
-- Diff link between the sandbox and the main template using [[Special:ComparePages]].<br />
local templateTitle = env.templateTitle<br />
local sandboxTitle = env.sandboxTitle<br />
if templateTitle.exists and sandboxTitle.exists then<br />
local compareUrl = mw.uri.fullUrl(<br />
'Special:ComparePages',<br />
{ page1 = templateTitle.prefixedText, page2 = sandboxTitle.prefixedText}<br />
)<br />
return tostring(compareUrl)<br />
else<br />
return nil<br />
end<br />
end <br />
<br />
return env<br />
end <br />
<br />
----------------------------------------------------------------------------<br />
-- Auxiliary templates<br />
----------------------------------------------------------------------------<br />
<br />
p.getModuleWikitext = makeInvokeFunc('_getModuleWikitext')<br />
<br />
function p._getModuleWikitext(args, env)<br />
local currentTitle = mw.title.getCurrentTitle()<br />
if currentTitle.contentModel ~= 'Scribunto' then return end<br />
pcall(require, currentTitle.prefixedText) -- if it fails, we don't care<br />
local moduleWikitext = package.loaded["Module:Module wikitext"]<br />
if moduleWikitext then<br />
return moduleWikitext.main()<br />
end<br />
end<br />
<br />
function p.sandboxNotice(args, env)<br />
--[=[<br />
-- Generates a sandbox notice for display above sandbox pages.<br />
-- @args - a table of arguments passed by the user<br />
-- @env - environment table containing title objects, etc., generated with p.getEnvironment<br />
-- <br />
-- Messages:<br />
-- 'sandbox-notice-image' --> '[[Image:Sandbox.svg|50px|alt=|link=]]'<br />
-- 'sandbox-notice-blurb' --> 'This is the $1 for $2.'<br />
-- 'sandbox-notice-diff-blurb' --> 'This is the $1 for $2 ($3).'<br />
-- 'sandbox-notice-pagetype-template' --> '[[Wikipedia:Template test cases|template sandbox]] page'<br />
-- 'sandbox-notice-pagetype-module' --> '[[Wikipedia:Template test cases|module sandbox]] page'<br />
-- 'sandbox-notice-pagetype-other' --> 'sandbox page'<br />
-- 'sandbox-notice-compare-link-display' --> 'diff'<br />
-- 'sandbox-notice-testcases-blurb' --> 'See also the companion subpage for $1.'<br />
-- 'sandbox-notice-testcases-link-display' --> 'test cases'<br />
-- 'sandbox-category' --> 'Template sandboxes'<br />
--]=]<br />
local title = env.title<br />
local sandboxTitle = env.sandboxTitle<br />
local templateTitle = env.templateTitle<br />
local subjectSpace = env.subjectSpace<br />
if not (subjectSpace and title and sandboxTitle and templateTitle<br />
and mw.title.equals(title, sandboxTitle)) then<br />
return nil<br />
end<br />
-- Build the table of arguments to pass to {{ombox}}. We need just two fields, "image" and "text".<br />
local omargs = {}<br />
omargs.image = message('sandbox-notice-image')<br />
-- Get the text. We start with the opening blurb, which is something like<br />
-- "This is the template sandbox for [[Template:Foo]] (diff)."<br />
local text = ''<br />
local pagetype<br />
if subjectSpace == 10 then<br />
pagetype = message('sandbox-notice-pagetype-template')<br />
elseif subjectSpace == 828 then<br />
pagetype = message('sandbox-notice-pagetype-module')<br />
else<br />
pagetype = message('sandbox-notice-pagetype-other')<br />
end<br />
local templateLink = makeWikilink(templateTitle.prefixedText)<br />
local compareUrl = env.compareUrl<br />
if compareUrl then<br />
local compareDisplay = message('sandbox-notice-compare-link-display')<br />
local compareLink = makeUrlLink(compareUrl, compareDisplay)<br />
text = text .. message('sandbox-notice-diff-blurb', {pagetype, templateLink, compareLink})<br />
else<br />
text = text .. message('sandbox-notice-blurb', {pagetype, templateLink})<br />
end<br />
-- Get the test cases page blurb if the page exists. This is something like<br />
-- "See also the companion subpage for [[Template:Foo/testcases|test cases]]."<br />
local testcasesTitle = env.testcasesTitle<br />
if testcasesTitle and testcasesTitle.exists then<br />
if testcasesTitle.contentModel == "Scribunto" then<br />
local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display')<br />
local testcasesRunLinkDisplay = message('sandbox-notice-testcases-run-link-display')<br />
local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay)<br />
local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay)<br />
text = text .. '<br />' .. message('sandbox-notice-testcases-run-blurb', {testcasesLink, testcasesRunLink})<br />
else<br />
local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display')<br />
local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay)<br />
text = text .. '<br />' .. message('sandbox-notice-testcases-blurb', {testcasesLink})<br />
end<br />
end<br />
-- Add the sandbox to the sandbox category.<br />
omargs.text = text .. makeCategoryLink(message('sandbox-category'))<br />
<br />
-- 'documentation-clear'<br />
return '<div class="' .. message('clear') .. '"></div>'<br />
.. require('Module:Message box').main('ombox', omargs)<br />
end<br />
<br />
function p.protectionTemplate(env)<br />
-- Generates the padlock icon in the top right.<br />
-- @env - environment table containing title objects, etc., generated with p.getEnvironment<br />
-- Messages:<br />
-- 'protection-template' --> 'pp-template'<br />
-- 'protection-template-args' --> {docusage = 'yes'}<br />
local protectionLevels = env.protectionLevels<br />
if not protectionLevels then<br />
return nil<br />
end<br />
local editProt = protectionLevels.edit and protectionLevels.edit[1]<br />
local moveProt = protectionLevels.move and protectionLevels.move[1]<br />
if editProt then<br />
-- The page is edit-protected.<br />
return require('Module:Protection banner')._main{<br />
message('protection-reason-edit'), small = true<br />
}<br />
elseif moveProt and moveProt ~= 'autoconfirmed' then<br />
-- The page is move-protected but not edit-protected. Exclude move<br />
-- protection with the level "autoconfirmed", as this is equivalent to<br />
-- no move protection at all.<br />
return require('Module:Protection banner')._main{<br />
action = 'move', small = true<br />
}<br />
else<br />
return nil<br />
end<br />
end<br />
<br />
----------------------------------------------------------------------------<br />
-- Start box<br />
----------------------------------------------------------------------------<br />
<br />
p.startBox = makeInvokeFunc('_startBox')<br />
<br />
function p._startBox(args, env)<br />
--[[<br />
-- This function generates the start box.<br />
-- @args - a table of arguments passed by the user<br />
-- @env - environment table containing title objects, etc., generated with p.getEnvironment<br />
-- <br />
-- The actual work is done by p.makeStartBoxLinksData and p.renderStartBoxLinks which make<br />
-- the [view] [edit] [history] [purge] links, and by p.makeStartBoxData and p.renderStartBox<br />
-- which generate the box HTML.<br />
--]]<br />
env = env or p.getEnvironment(args)<br />
local links<br />
local content = args.content<br />
if not content or args[1] then<br />
-- No need to include the links if the documentation is on the template page itself.<br />
local linksData = p.makeStartBoxLinksData(args, env)<br />
if linksData then<br />
links = p.renderStartBoxLinks(linksData)<br />
end<br />
end<br />
-- Generate the start box html.<br />
local data = p.makeStartBoxData(args, env, links)<br />
if data then<br />
return p.renderStartBox(data)<br />
else<br />
-- User specified no heading.<br />
return nil<br />
end<br />
end<br />
<br />
function p.makeStartBoxLinksData(args, env)<br />
--[[<br />
-- Does initial processing of data to make the [view] [edit] [history] [purge] links.<br />
-- @args - a table of arguments passed by the user<br />
-- @env - environment table containing title objects, etc., generated with p.getEnvironment<br />
-- <br />
-- Messages:<br />
-- 'view-link-display' --> 'view'<br />
-- 'edit-link-display' --> 'edit'<br />
-- 'history-link-display' --> 'history'<br />
-- 'purge-link-display' --> 'purge'<br />
-- 'module-preload' --> 'Template:Documentation/preload-module-doc'<br />
-- 'docpage-preload' --> 'Template:Documentation/preload'<br />
-- 'create-link-display' --> 'create'<br />
--]]<br />
local subjectSpace = env.subjectSpace<br />
local title = env.title<br />
local docTitle = env.docTitle<br />
if not title or not docTitle then<br />
return nil<br />
end<br />
if docTitle.isRedirect then <br />
docTitle = docTitle.redirectTarget<br />
end<br />
<br />
local data = {}<br />
data.title = title<br />
data.docTitle = docTitle<br />
-- View, display, edit, and purge links if /doc exists.<br />
data.viewLinkDisplay = message('view-link-display')<br />
data.editLinkDisplay = message('edit-link-display')<br />
data.historyLinkDisplay = message('history-link-display')<br />
data.purgeLinkDisplay = message('purge-link-display')<br />
-- Create link if /doc doesn't exist.<br />
local preload = args.preload<br />
if not preload then<br />
if subjectSpace == 828 then -- Module namespace<br />
preload = message('module-preload')<br />
else<br />
preload = message('docpage-preload')<br />
end<br />
end<br />
data.preload = preload<br />
data.createLinkDisplay = message('create-link-display')<br />
return data<br />
end<br />
<br />
function p.renderStartBoxLinks(data)<br />
--[[<br />
-- Generates the [view][edit][history][purge] or [create][purge] links from the data table.<br />
-- @data - a table of data generated by p.makeStartBoxLinksData<br />
--]]<br />
<br />
local function escapeBrackets(s)<br />
-- Escapes square brackets with HTML entities.<br />
s = s:gsub('%[', '&#91;') -- Replace square brackets with HTML entities.<br />
s = s:gsub('%]', '&#93;')<br />
return s<br />
end<br />
<br />
local ret<br />
local docTitle = data.docTitle<br />
local title = data.title<br />
local purgeLink = makeUrlLink(title:fullUrl{action = 'purge'}, data.purgeLinkDisplay)<br />
if docTitle.exists then<br />
local viewLink = makeWikilink(docTitle.prefixedText, data.viewLinkDisplay)<br />
local editLink = makeUrlLink(docTitle:fullUrl{action = 'edit'}, data.editLinkDisplay)<br />
local historyLink = makeUrlLink(docTitle:fullUrl{action = 'history'}, data.historyLinkDisplay)<br />
ret = '[%s] [%s] [%s] [%s]'<br />
ret = escapeBrackets(ret)<br />
ret = mw.ustring.format(ret, viewLink, editLink, historyLink, purgeLink)<br />
else<br />
local createLink = makeUrlLink(docTitle:fullUrl{action = 'edit', preload = data.preload}, data.createLinkDisplay)<br />
ret = '[%s] [%s]'<br />
ret = escapeBrackets(ret)<br />
ret = mw.ustring.format(ret, createLink, purgeLink)<br />
end<br />
return ret<br />
end<br />
<br />
function p.makeStartBoxData(args, env, links)<br />
--[=[<br />
-- Does initial processing of data to pass to the start-box render function, p.renderStartBox.<br />
-- @args - a table of arguments passed by the user<br />
-- @env - environment table containing title objects, etc., generated with p.getEnvironment<br />
-- @links - a string containing the [view][edit][history][purge] links - could be nil if there's an error.<br />
--<br />
-- Messages:<br />
-- 'documentation-icon-wikitext' --> '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]'<br />
-- 'template-namespace-heading' --> 'Template documentation'<br />
-- 'module-namespace-heading' --> 'Module documentation'<br />
-- 'file-namespace-heading' --> 'Summary'<br />
-- 'other-namespaces-heading' --> 'Documentation'<br />
-- 'testcases-create-link-display' --> 'create'<br />
--]=]<br />
local subjectSpace = env.subjectSpace<br />
if not subjectSpace then<br />
-- Default to an "other namespaces" namespace, so that we get at least some output<br />
-- if an error occurs.<br />
subjectSpace = 2<br />
end<br />
local data = {}<br />
<br />
-- Heading<br />
local heading = args.heading -- Blank values are not removed.<br />
if heading == '' then<br />
-- Don't display the start box if the heading arg is defined but blank.<br />
return nil<br />
end<br />
if heading then<br />
data.heading = heading<br />
elseif subjectSpace == 10 then -- Template namespace<br />
data.heading = message('documentation-icon-wikitext') .. ' ' .. message('template-namespace-heading')<br />
elseif subjectSpace == 828 then -- Module namespace<br />
data.heading = message('documentation-icon-wikitext') .. ' ' .. message('module-namespace-heading')<br />
elseif subjectSpace == 6 then -- File namespace<br />
data.heading = message('file-namespace-heading')<br />
else<br />
data.heading = message('other-namespaces-heading')<br />
end<br />
<br />
-- Heading CSS<br />
local headingStyle = args['heading-style']<br />
if headingStyle then<br />
data.headingStyleText = headingStyle<br />
else<br />
-- 'documentation-heading'<br />
data.headingClass = message('main-div-heading-class')<br />
end<br />
<br />
-- Data for the [view][edit][history][purge] or [create] links.<br />
if links then<br />
-- 'mw-editsection-like plainlinks'<br />
data.linksClass = message('start-box-link-classes')<br />
data.links = links<br />
end<br />
<br />
return data<br />
end<br />
<br />
function p.renderStartBox(data)<br />
-- Renders the start box html.<br />
-- @data - a table of data generated by p.makeStartBoxData.<br />
local sbox = mw.html.create('div')<br />
sbox<br />
-- 'documentation-startbox'<br />
:addClass(message('start-box-class'))<br />
:newline()<br />
:tag('span')<br />
:addClass(data.headingClass)<br />
:attr('id', 'documentation-heading')<br />
:cssText(data.headingStyleText)<br />
:wikitext(data.heading)<br />
local links = data.links<br />
if links then<br />
sbox:tag('span')<br />
:addClass(data.linksClass)<br />
:attr('id', data.linksId)<br />
:wikitext(links)<br />
end<br />
return tostring(sbox)<br />
end<br />
<br />
----------------------------------------------------------------------------<br />
-- Documentation content<br />
----------------------------------------------------------------------------<br />
<br />
p.content = makeInvokeFunc('_content')<br />
<br />
function p._content(args, env)<br />
-- Displays the documentation contents<br />
-- @args - a table of arguments passed by the user<br />
-- @env - environment table containing title objects, etc., generated with p.getEnvironment<br />
env = env or p.getEnvironment(args)<br />
local docTitle = env.docTitle<br />
local content = args.content<br />
if not content and docTitle and docTitle.exists then<br />
content = args._content or mw.getCurrentFrame():expandTemplate{title = docTitle.prefixedText}<br />
end<br />
-- The line breaks below are necessary so that "=== Headings ===" at the start and end<br />
-- of docs are interpreted correctly.<br />
return '\n' .. (content or '') .. '\n' <br />
end<br />
<br />
p.contentTitle = makeInvokeFunc('_contentTitle')<br />
<br />
function p._contentTitle(args, env)<br />
env = env or p.getEnvironment(args)<br />
local docTitle = env.docTitle<br />
if not args.content and docTitle and docTitle.exists then<br />
return docTitle.prefixedText<br />
else<br />
return ''<br />
end<br />
end<br />
<br />
----------------------------------------------------------------------------<br />
-- End box<br />
----------------------------------------------------------------------------<br />
<br />
p.endBox = makeInvokeFunc('_endBox')<br />
<br />
function p._endBox(args, env)<br />
--[=[<br />
-- This function generates the end box (also known as the link box).<br />
-- @args - a table of arguments passed by the user<br />
-- @env - environment table containing title objects, etc., generated with p.getEnvironment<br />
-- <br />
--]=]<br />
<br />
-- Get environment data.<br />
env = env or p.getEnvironment(args)<br />
local subjectSpace = env.subjectSpace<br />
local docTitle = env.docTitle<br />
if not subjectSpace or not docTitle then<br />
return nil<br />
end<br />
<br />
-- Check whether we should output the end box at all. Add the end<br />
-- box by default if the documentation exists or if we are in the<br />
-- user, module or template namespaces.<br />
local linkBox = args['link box']<br />
if linkBox == 'off'<br />
or not (<br />
docTitle.exists<br />
or subjectSpace == 2<br />
or subjectSpace == 828<br />
or subjectSpace == 10<br />
)<br />
then<br />
return nil<br />
end<br />
<br />
-- Assemble the link box.<br />
local text = ''<br />
if linkBox then<br />
text = text .. linkBox<br />
else<br />
text = text .. (p.makeDocPageBlurb(args, env) or '') -- "This documentation is transcluded from [[Foo]]." <br />
if subjectSpace == 2 or subjectSpace == 10 or subjectSpace == 828 then<br />
-- We are in the user, template or module namespaces.<br />
-- Add sandbox and testcases links.<br />
-- "Editors can experiment in this template's sandbox and testcases pages."<br />
text = text .. (p.makeExperimentBlurb(args, env) or '') .. '<br />'<br />
if not args.content and not args[1] then<br />
-- "Please add categories to the /doc subpage."<br />
-- Don't show this message with inline docs or with an explicitly specified doc page,<br />
-- as then it is unclear where to add the categories.<br />
text = text .. (p.makeCategoriesBlurb(args, env) or '')<br />
end<br />
text = text .. ' ' .. (p.makeSubpagesBlurb(args, env) or '') --"Subpages of this template"<br />
end<br />
end<br />
<br />
local box = mw.html.create('div')<br />
-- 'documentation-metadata'<br />
box:attr('role', 'note')<br />
:addClass(message('end-box-class'))<br />
-- 'plainlinks'<br />
:addClass(message('end-box-plainlinks'))<br />
:wikitext(text)<br />
:done()<br />
<br />
return '\n' .. tostring(box)<br />
end<br />
<br />
function p.makeDocPageBlurb(args, env)<br />
--[=[<br />
-- Makes the blurb "This documentation is transcluded from [[Template:Foo]] (edit, history)".<br />
-- @args - a table of arguments passed by the user<br />
-- @env - environment table containing title objects, etc., generated with p.getEnvironment<br />
-- <br />
-- Messages:<br />
-- 'edit-link-display' --> 'edit'<br />
-- 'history-link-display' --> 'history'<br />
-- 'transcluded-from-blurb' --> <br />
-- 'The above [[Wikipedia:Template documentation|documentation]] <br />
-- is [[Help:Transclusion|transcluded]] from $1.'<br />
-- 'module-preload' --> 'Template:Documentation/preload-module-doc'<br />
-- 'create-link-display' --> 'create'<br />
-- 'create-module-doc-blurb' --><br />
-- 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].'<br />
--]=]<br />
local docTitle = env.docTitle<br />
if not docTitle then<br />
return nil<br />
end<br />
local ret<br />
if docTitle.exists then<br />
-- /doc exists; link to it.<br />
local docLink = makeWikilink(docTitle.prefixedText)<br />
local editUrl = docTitle:fullUrl{action = 'edit'}<br />
local editDisplay = message('edit-link-display')<br />
local editLink = makeUrlLink(editUrl, editDisplay)<br />
local historyUrl = docTitle:fullUrl{action = 'history'}<br />
local historyDisplay = message('history-link-display')<br />
local historyLink = makeUrlLink(historyUrl, historyDisplay)<br />
ret = message('transcluded-from-blurb', {docLink})<br />
.. ' '<br />
.. makeToolbar(editLink, historyLink)<br />
.. '<br />'<br />
elseif env.subjectSpace == 828 then<br />
-- /doc does not exist; ask to create it.<br />
local createUrl = docTitle:fullUrl{action = 'edit', preload = message('module-preload')}<br />
local createDisplay = message('create-link-display')<br />
local createLink = makeUrlLink(createUrl, createDisplay)<br />
ret = message('create-module-doc-blurb', {createLink})<br />
.. '<br />'<br />
end<br />
return ret<br />
end<br />
<br />
function p.makeExperimentBlurb(args, env)<br />
--[[<br />
-- Renders the text "Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages."<br />
-- @args - a table of arguments passed by the user<br />
-- @env - environment table containing title objects, etc., generated with p.getEnvironment<br />
-- <br />
-- Messages:<br />
-- 'sandbox-link-display' --> 'sandbox'<br />
-- 'sandbox-edit-link-display' --> 'edit'<br />
-- 'compare-link-display' --> 'diff'<br />
-- 'module-sandbox-preload' --> 'Template:Documentation/preload-module-sandbox'<br />
-- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox'<br />
-- 'sandbox-create-link-display' --> 'create'<br />
-- 'mirror-edit-summary' --> 'Create sandbox version of $1'<br />
-- 'mirror-link-display' --> 'mirror'<br />
-- 'mirror-link-preload' --> 'Template:Documentation/mirror'<br />
-- 'sandbox-link-display' --> 'sandbox'<br />
-- 'testcases-link-display' --> 'testcases'<br />
-- 'testcases-edit-link-display'--> 'edit'<br />
-- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox'<br />
-- 'testcases-create-link-display' --> 'create'<br />
-- 'testcases-link-display' --> 'testcases'<br />
-- 'testcases-edit-link-display' --> 'edit'<br />
-- 'module-testcases-preload' --> 'Template:Documentation/preload-module-testcases'<br />
-- 'template-testcases-preload' --> 'Template:Documentation/preload-testcases'<br />
-- 'experiment-blurb-module' --> 'Editors can experiment in this module's $1 and $2 pages.'<br />
-- 'experiment-blurb-template' --> 'Editors can experiment in this template's $1 and $2 pages.'<br />
--]]<br />
local subjectSpace = env.subjectSpace<br />
local templateTitle = env.templateTitle<br />
local sandboxTitle = env.sandboxTitle<br />
local testcasesTitle = env.testcasesTitle<br />
local templatePage = templateTitle.prefixedText<br />
if not subjectSpace or not templateTitle or not sandboxTitle or not testcasesTitle then<br />
return nil<br />
end<br />
-- Make links.<br />
local sandboxLinks, testcasesLinks<br />
if sandboxTitle.exists then<br />
local sandboxPage = sandboxTitle.prefixedText<br />
local sandboxDisplay = message('sandbox-link-display')<br />
local sandboxLink = makeWikilink(sandboxPage, sandboxDisplay)<br />
local sandboxEditUrl = sandboxTitle:fullUrl{action = 'edit'}<br />
local sandboxEditDisplay = message('sandbox-edit-link-display')<br />
local sandboxEditLink = makeUrlLink(sandboxEditUrl, sandboxEditDisplay)<br />
local compareUrl = env.compareUrl<br />
local compareLink<br />
if compareUrl then<br />
local compareDisplay = message('compare-link-display')<br />
compareLink = makeUrlLink(compareUrl, compareDisplay)<br />
end<br />
sandboxLinks = sandboxLink .. ' ' .. makeToolbar(sandboxEditLink, compareLink)<br />
else<br />
local sandboxPreload<br />
if subjectSpace == 828 then<br />
sandboxPreload = message('module-sandbox-preload')<br />
else<br />
sandboxPreload = message('template-sandbox-preload')<br />
end<br />
local sandboxCreateUrl = sandboxTitle:fullUrl{action = 'edit', preload = sandboxPreload}<br />
local sandboxCreateDisplay = message('sandbox-create-link-display')<br />
local sandboxCreateLink = makeUrlLink(sandboxCreateUrl, sandboxCreateDisplay)<br />
local mirrorSummary = message('mirror-edit-summary', {makeWikilink(templatePage)})<br />
local mirrorPreload = message('mirror-link-preload')<br />
local mirrorUrl = sandboxTitle:fullUrl{action = 'edit', preload = mirrorPreload, summary = mirrorSummary}<br />
if subjectSpace == 828 then<br />
mirrorUrl = sandboxTitle:fullUrl{action = 'edit', preload = templateTitle.prefixedText, summary = mirrorSummary}<br />
end<br />
local mirrorDisplay = message('mirror-link-display')<br />
local mirrorLink = makeUrlLink(mirrorUrl, mirrorDisplay)<br />
sandboxLinks = message('sandbox-link-display') .. ' ' .. makeToolbar(sandboxCreateLink, mirrorLink)<br />
end<br />
if testcasesTitle.exists then<br />
local testcasesPage = testcasesTitle.prefixedText<br />
local testcasesDisplay = message('testcases-link-display')<br />
local testcasesLink = makeWikilink(testcasesPage, testcasesDisplay)<br />
local testcasesEditUrl = testcasesTitle:fullUrl{action = 'edit'}<br />
local testcasesEditDisplay = message('testcases-edit-link-display')<br />
local testcasesEditLink = makeUrlLink(testcasesEditUrl, testcasesEditDisplay)<br />
-- for Modules, add testcases run link if exists<br />
if testcasesTitle.contentModel == "Scribunto" and testcasesTitle.talkPageTitle and testcasesTitle.talkPageTitle.exists then<br />
local testcasesRunLinkDisplay = message('testcases-run-link-display')<br />
local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay)<br />
testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink, testcasesRunLink)<br />
else<br />
testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink)<br />
end<br />
else<br />
local testcasesPreload<br />
if subjectSpace == 828 then<br />
testcasesPreload = message('module-testcases-preload')<br />
else<br />
testcasesPreload = message('template-testcases-preload')<br />
end<br />
local testcasesCreateUrl = testcasesTitle:fullUrl{action = 'edit', preload = testcasesPreload}<br />
local testcasesCreateDisplay = message('testcases-create-link-display')<br />
local testcasesCreateLink = makeUrlLink(testcasesCreateUrl, testcasesCreateDisplay)<br />
testcasesLinks = message('testcases-link-display') .. ' ' .. makeToolbar(testcasesCreateLink)<br />
end<br />
local messageName<br />
if subjectSpace == 828 then<br />
messageName = 'experiment-blurb-module'<br />
else<br />
messageName = 'experiment-blurb-template'<br />
end<br />
return message(messageName, {sandboxLinks, testcasesLinks})<br />
end<br />
<br />
function p.makeCategoriesBlurb(args, env)<br />
--[[<br />
-- Generates the text "Please add categories to the /doc subpage."<br />
-- @args - a table of arguments passed by the user<br />
-- @env - environment table containing title objects, etc., generated with p.getEnvironment<br />
-- Messages:<br />
-- 'doc-link-display' --> '/doc'<br />
-- 'add-categories-blurb' --> 'Please add categories to the $1 subpage.'<br />
--]]<br />
local docTitle = env.docTitle<br />
if not docTitle then<br />
return nil<br />
end<br />
local docPathLink = makeWikilink(docTitle.prefixedText, message('doc-link-display'))<br />
return message('add-categories-blurb', {docPathLink})<br />
end<br />
<br />
function p.makeSubpagesBlurb(args, env)<br />
--[[<br />
-- Generates the "Subpages of this template" link.<br />
-- @args - a table of arguments passed by the user<br />
-- @env - environment table containing title objects, etc., generated with p.getEnvironment<br />
<br />
-- Messages:<br />
-- 'template-pagetype' --> 'template'<br />
-- 'module-pagetype' --> 'module'<br />
-- 'default-pagetype' --> 'page'<br />
-- 'subpages-link-display' --> 'Subpages of this $1'<br />
--]]<br />
local subjectSpace = env.subjectSpace<br />
local templateTitle = env.templateTitle<br />
if not subjectSpace or not templateTitle then<br />
return nil<br />
end<br />
local pagetype<br />
if subjectSpace == 10 then<br />
pagetype = message('template-pagetype')<br />
elseif subjectSpace == 828 then<br />
pagetype = message('module-pagetype')<br />
else<br />
pagetype = message('default-pagetype')<br />
end<br />
local subpagesLink = makeWikilink(<br />
'Special:PrefixIndex/' .. templateTitle.prefixedText .. '/',<br />
message('subpages-link-display', {pagetype})<br />
)<br />
return message('subpages-blurb', {subpagesLink})<br />
end<br />
<br />
----------------------------------------------------------------------------<br />
-- Tracking categories<br />
----------------------------------------------------------------------------<br />
<br />
function p.addTrackingCategories(env)<br />
--[[<br />
-- Check if {{documentation}} is transcluded on a /doc or /testcases page.<br />
-- @env - environment table containing title objects, etc., generated with p.getEnvironment<br />
<br />
-- Messages:<br />
-- 'display-strange-usage-category' --> true<br />
-- 'doc-subpage' --> 'doc'<br />
-- 'testcases-subpage' --> 'testcases'<br />
-- 'strange-usage-category' --> 'Wikipedia pages with strange ((documentation)) usage'<br />
-- <br />
-- /testcases pages in the module namespace are not categorised, as they may have<br />
-- {{documentation}} transcluded automatically.<br />
--]]<br />
local title = env.title<br />
local subjectSpace = env.subjectSpace<br />
if not title or not subjectSpace then<br />
return nil<br />
end<br />
local subpage = title.subpageText<br />
local ret = ''<br />
if message('display-strange-usage-category', nil, 'boolean')<br />
and (<br />
subpage == message('doc-subpage')<br />
or subjectSpace ~= 828 and subpage == message('testcases-subpage')<br />
)<br />
then<br />
ret = ret .. makeCategoryLink(message('strange-usage-category'))<br />
end<br />
return ret<br />
end<br />
<br />
return p</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Module:Arguments&diff=27792Module:Arguments2022-03-15T06:41:45Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>-- This module provides easy processing of arguments passed to Scribunto from<br />
-- #invoke. It is intended for use by other Lua modules, and should not be<br />
-- called from #invoke directly.<br />
<br />
local libraryUtil = require('libraryUtil')<br />
local checkType = libraryUtil.checkType<br />
<br />
local arguments = {}<br />
<br />
-- Generate four different tidyVal functions, so that we don't have to check the<br />
-- options every time we call it.<br />
<br />
local function tidyValDefault(key, val)<br />
if type(val) == 'string' then<br />
val = val:match('^%s*(.-)%s*$')<br />
if val == '' then<br />
return nil<br />
else<br />
return val<br />
end<br />
else<br />
return val<br />
end<br />
end<br />
<br />
local function tidyValTrimOnly(key, val)<br />
if type(val) == 'string' then<br />
return val:match('^%s*(.-)%s*$')<br />
else<br />
return val<br />
end<br />
end<br />
<br />
local function tidyValRemoveBlanksOnly(key, val)<br />
if type(val) == 'string' then<br />
if val:find('%S') then<br />
return val<br />
else<br />
return nil<br />
end<br />
else<br />
return val<br />
end<br />
end<br />
<br />
local function tidyValNoChange(key, val)<br />
return val<br />
end<br />
<br />
local function matchesTitle(given, title)<br />
local tp = type( given )<br />
return (tp == 'string' or tp == 'number') and mw.title.new( given ).prefixedText == title<br />
end<br />
<br />
local translate_mt = { __index = function(t, k) return k end }<br />
<br />
function arguments.getArgs(frame, options)<br />
checkType('getArgs', 1, frame, 'table', true)<br />
checkType('getArgs', 2, options, 'table', true)<br />
frame = frame or {}<br />
options = options or {}<br />
<br />
--[[<br />
-- Set up argument translation.<br />
--]]<br />
options.translate = options.translate or {}<br />
if getmetatable(options.translate) == nil then<br />
setmetatable(options.translate, translate_mt)<br />
end<br />
if options.backtranslate == nil then<br />
options.backtranslate = {}<br />
for k,v in pairs(options.translate) do<br />
options.backtranslate[v] = k<br />
end<br />
end<br />
if options.backtranslate and getmetatable(options.backtranslate) == nil then<br />
setmetatable(options.backtranslate, {<br />
__index = function(t, k)<br />
if options.translate[k] ~= k then<br />
return nil<br />
else<br />
return k<br />
end<br />
end<br />
})<br />
end<br />
<br />
--[[<br />
-- Get the argument tables. If we were passed a valid frame object, get the<br />
-- frame arguments (fargs) and the parent frame arguments (pargs), depending<br />
-- on the options set and on the parent frame's availability. If we weren't<br />
-- passed a valid frame object, we are being called from another Lua module<br />
-- or from the debug console, so assume that we were passed a table of args<br />
-- directly, and assign it to a new variable (luaArgs).<br />
--]]<br />
local fargs, pargs, luaArgs<br />
if type(frame.args) == 'table' and type(frame.getParent) == 'function' then<br />
if options.wrappers then<br />
--[[<br />
-- The wrappers option makes Module:Arguments look up arguments in<br />
-- either the frame argument table or the parent argument table, but<br />
-- not both. This means that users can use either the #invoke syntax<br />
-- or a wrapper template without the loss of performance associated<br />
-- with looking arguments up in both the frame and the parent frame.<br />
-- Module:Arguments will look up arguments in the parent frame<br />
-- if it finds the parent frame's title in options.wrapper;<br />
-- otherwise it will look up arguments in the frame object passed<br />
-- to getArgs.<br />
--]]<br />
local parent = frame:getParent()<br />
if not parent then<br />
fargs = frame.args<br />
else<br />
local title = parent:getTitle():gsub('/sandbox$', '')<br />
local found = false<br />
if matchesTitle(options.wrappers, title) then<br />
found = true<br />
elseif type(options.wrappers) == 'table' then<br />
for _,v in pairs(options.wrappers) do<br />
if matchesTitle(v, title) then<br />
found = true<br />
break<br />
end<br />
end<br />
end<br />
<br />
-- We test for false specifically here so that nil (the default) acts like true.<br />
if found or options.frameOnly == false then<br />
pargs = parent.args<br />
end<br />
if not found or options.parentOnly == false then<br />
fargs = frame.args<br />
end<br />
end<br />
else<br />
-- options.wrapper isn't set, so check the other options.<br />
if not options.parentOnly then<br />
fargs = frame.args<br />
end<br />
if not options.frameOnly then<br />
local parent = frame:getParent()<br />
pargs = parent and parent.args or nil<br />
end<br />
end<br />
if options.parentFirst then<br />
fargs, pargs = pargs, fargs<br />
end<br />
else<br />
luaArgs = frame<br />
end<br />
<br />
-- Set the order of precedence of the argument tables. If the variables are<br />
-- nil, nothing will be added to the table, which is how we avoid clashes<br />
-- between the frame/parent args and the Lua args.<br />
local argTables = {fargs}<br />
argTables[#argTables + 1] = pargs<br />
argTables[#argTables + 1] = luaArgs<br />
<br />
--[[<br />
-- Generate the tidyVal function. If it has been specified by the user, we<br />
-- use that; if not, we choose one of four functions depending on the<br />
-- options chosen. This is so that we don't have to call the options table<br />
-- every time the function is called.<br />
--]]<br />
local tidyVal = options.valueFunc<br />
if tidyVal then<br />
if type(tidyVal) ~= 'function' then<br />
error(<br />
"bad value assigned to option 'valueFunc'"<br />
.. '(function expected, got '<br />
.. type(tidyVal)<br />
.. ')',<br />
2<br />
)<br />
end<br />
elseif options.trim ~= false then<br />
if options.removeBlanks ~= false then<br />
tidyVal = tidyValDefault<br />
else<br />
tidyVal = tidyValTrimOnly<br />
end<br />
else<br />
if options.removeBlanks ~= false then<br />
tidyVal = tidyValRemoveBlanksOnly<br />
else<br />
tidyVal = tidyValNoChange<br />
end<br />
end<br />
<br />
--[[<br />
-- Set up the args, metaArgs and nilArgs tables. args will be the one<br />
-- accessed from functions, and metaArgs will hold the actual arguments. Nil<br />
-- arguments are memoized in nilArgs, and the metatable connects all of them<br />
-- together.<br />
--]]<br />
local args, metaArgs, nilArgs, metatable = {}, {}, {}, {}<br />
setmetatable(args, metatable)<br />
<br />
local function mergeArgs(tables)<br />
--[[<br />
-- Accepts multiple tables as input and merges their keys and values<br />
-- into one table. If a value is already present it is not overwritten;<br />
-- tables listed earlier have precedence. We are also memoizing nil<br />
-- values, which can be overwritten if they are 's' (soft).<br />
--]]<br />
for _, t in ipairs(tables) do<br />
for key, val in pairs(t) do<br />
if metaArgs[key] == nil and nilArgs[key] ~= 'h' then<br />
local tidiedVal = tidyVal(key, val)<br />
if tidiedVal == nil then<br />
nilArgs[key] = 's'<br />
else<br />
metaArgs[key] = tidiedVal<br />
end<br />
end<br />
end<br />
end<br />
end<br />
<br />
--[[<br />
-- Define metatable behaviour. Arguments are memoized in the metaArgs table,<br />
-- and are only fetched from the argument tables once. Fetching arguments<br />
-- from the argument tables is the most resource-intensive step in this<br />
-- module, so we try and avoid it where possible. For this reason, nil<br />
-- arguments are also memoized, in the nilArgs table. Also, we keep a record<br />
-- in the metatable of when pairs and ipairs have been called, so we do not<br />
-- run pairs and ipairs on the argument tables more than once. We also do<br />
-- not run ipairs on fargs and pargs if pairs has already been run, as all<br />
-- the arguments will already have been copied over.<br />
--]]<br />
<br />
metatable.__index = function (t, key)<br />
--[[<br />
-- Fetches an argument when the args table is indexed. First we check<br />
-- to see if the value is memoized, and if not we try and fetch it from<br />
-- the argument tables. When we check memoization, we need to check<br />
-- metaArgs before nilArgs, as both can be non-nil at the same time.<br />
-- If the argument is not present in metaArgs, we also check whether<br />
-- pairs has been run yet. If pairs has already been run, we return nil.<br />
-- This is because all the arguments will have already been copied into<br />
-- metaArgs by the mergeArgs function, meaning that any other arguments<br />
-- must be nil.<br />
--]]<br />
if type(key) == 'string' then<br />
key = options.translate[key]<br />
end<br />
local val = metaArgs[key]<br />
if val ~= nil then<br />
return val<br />
elseif metatable.donePairs or nilArgs[key] then<br />
return nil<br />
end<br />
for _, argTable in ipairs(argTables) do<br />
local argTableVal = tidyVal(key, argTable[key])<br />
if argTableVal ~= nil then<br />
metaArgs[key] = argTableVal<br />
return argTableVal<br />
end<br />
end<br />
nilArgs[key] = 'h'<br />
return nil<br />
end<br />
<br />
metatable.__newindex = function (t, key, val)<br />
-- This function is called when a module tries to add a new value to the<br />
-- args table, or tries to change an existing value.<br />
if type(key) == 'string' then<br />
key = options.translate[key]<br />
end<br />
if options.readOnly then<br />
error(<br />
'could not write to argument table key "'<br />
.. tostring(key)<br />
.. '"; the table is read-only',<br />
2<br />
)<br />
elseif options.noOverwrite and args[key] ~= nil then<br />
error(<br />
'could not write to argument table key "'<br />
.. tostring(key)<br />
.. '"; overwriting existing arguments is not permitted',<br />
2<br />
)<br />
elseif val == nil then<br />
--[[<br />
-- If the argument is to be overwritten with nil, we need to erase<br />
-- the value in metaArgs, so that __index, __pairs and __ipairs do<br />
-- not use a previous existing value, if present; and we also need<br />
-- to memoize the nil in nilArgs, so that the value isn't looked<br />
-- up in the argument tables if it is accessed again.<br />
--]]<br />
metaArgs[key] = nil<br />
nilArgs[key] = 'h'<br />
else<br />
metaArgs[key] = val<br />
end<br />
end<br />
<br />
local function translatenext(invariant)<br />
local k, v = next(invariant.t, invariant.k)<br />
invariant.k = k<br />
if k == nil then<br />
return nil<br />
elseif type(k) ~= 'string' or not options.backtranslate then<br />
return k, v<br />
else<br />
local backtranslate = options.backtranslate[k]<br />
if backtranslate == nil then<br />
-- Skip this one. This is a tail call, so this won't cause stack overflow<br />
return translatenext(invariant)<br />
else<br />
return backtranslate, v<br />
end<br />
end<br />
end<br />
<br />
metatable.__pairs = function ()<br />
-- Called when pairs is run on the args table.<br />
if not metatable.donePairs then<br />
mergeArgs(argTables)<br />
metatable.donePairs = true<br />
end<br />
return translatenext, { t = metaArgs }<br />
end<br />
<br />
local function inext(t, i)<br />
-- This uses our __index metamethod<br />
local v = t[i + 1]<br />
if v ~= nil then<br />
return i + 1, v<br />
end<br />
end<br />
<br />
metatable.__ipairs = function (t)<br />
-- Called when ipairs is run on the args table.<br />
return inext, t, 0<br />
end<br />
<br />
return args<br />
end<br />
<br />
return arguments</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Yesno&diff=27790Template:Yesno2022-03-15T06:41:45Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>{{<includeonly>safesubst:</includeonly>#switch: {{<includeonly>safesubst:</includeonly>lc: {{{1|¬}}} }}<br />
|no<br />
|n<br />
|f<br />
|false<br />
|off<br />
|0 = {{{no|<!-- null -->}}}<br />
| = {{{blank|{{{no|<!-- null -->}}}}}}<br />
|¬ = {{{¬|}}}<br />
|yes<br />
|y<br />
|t<br />
|true<br />
|on<br />
|1 = {{{yes|yes}}}<br />
|#default = {{{def|{{{yes|yes}}}}}}<br />
}}<noinclude><br />
{{Documentation}}<br />
</noinclude></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Xtag&diff=27788Template:Xtag2022-03-15T06:41:45Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div><onlyinclude>{{#if:{{yesno|{{{plain|}}}}}||<br />
{{#if:{{yesno|{{{wrap|}}}}}||<br />
<templatestyles src="Template:Nowrap/styles.css" /><br />
}}<code class="mw-highlight {{#if:{{yesno|{{{wrap|}}}}}||nowrap}}"><br />
}}{{#switch:{{{2|open}}}<br />
|c|close = {{{content|}}}{{#tag:span|&lrm;&lt;&#47;|class="p"}}<br />
|s|single<br />
|o|open<br />
|p|pair = {{#tag:span|&lrm;&lt;|class="p"}}<br />
}}{{#tag:span|{{#switch:{{{1|tag}}}<br />
|categorytree=[[mw:Special:MyLanguage/Extension:CategoryTree|{{{1}}}]]<br />
|charinsert=[[mw:Special:MyLanguage/Extension:CharInsert|{{{1}}}]]<br />
|hiero=[[mw:Special:MyLanguage/Extension:WikiHiero|{{{1}}}]]<br />
|imagemap=[[mw:Special:MyLanguage/Extension:ImageMap|{{{1}}}]]<br />
|inputbox=[[mw:Special:MyLanguage/Extension:InputBox|{{{1}}}]]<br />
|math=[[mw:Special:MyLanguage/Extension:Math|{{{1}}}]]<br />
|poem=[[mw:Special:MyLanguage/Extension:Poem|{{{1}}}]]<br />
|ref|references=[[mw:Special:MyLanguage/Extension:Cite|{{{1}}}]]<br />
|section=[[mw:Special:MyLanguage/Extension:Labeled Section Transclusion|{{{1}}}]]<br />
|score=[[mw:Special:MyLanguage/Help:Score|{{{1}}}]]<br />
|source|syntaxhighlight=[[mw:Special:MyLanguage/Extension:SyntaxHighlight|{{{1}}}]]<br />
|templatedata=[[mw:Special:MyLanguage/Help:TemplateData|{{{1}}}]]<br />
|templatestyles=[[mw:Special:MyLanguage/Help:TemplateStyles|{{{1}}}]]<br />
|timeline=[[mw:Special:MyLanguage/Extension:EasyTimeline|{{{1}}}]]<br />
<!--builtin--><br />
|gallery=[[mw:Special:MyLanguage/Help:Gallery|{{{1}}}]]<br />
|nowiki|pre=[[mw:Special:MyLanguage/Help:Formatting#%3C{{{1}}}%3E|{{{1}}}]]<br />
|includeonly|noinclude|onlyinclude|=[[mw:Special:MyLanguage/Help:Transclusion#%3C{{{1}}}%3E|{{{1}}}]]<br />
|#default={{{1|tag}}}<br />
}}|class="nt"}}{{#switch:{{{2|open}}}<br />
|c|close = <!--nothing--><br />
|s|single<br />
|o|open<br />
|p|pair = {{#if:{{{params|}}}|&#32;{{{params}}}}}<br />
}}{{#switch:{{{2|open}}}<br />
|c|close = <!--nothing--><br />
|s|single = &#32;{{#tag:span|&#47;&gt;|class="p"}}<br />
|o|open = {{#tag:span|&gt;|class="p"}}{{{content|}}}<br />
|p|pair = {{#tag:span|&gt;|class="p"}}{{{content|...}}}<br />
}}{{#switch:{{{2|open}}}<br />
|s|single<br />
|o|open = <!--nothing--><br />
|c|close = {{#tag:span|&gt;|class="p"}}<br />
|p|pair = {{#tag:span|&lrm;&lt;&#47;|class="p"}}{{#tag:span|{{#if:1|{{{1|tag}}}}}|class="nt"}}{{#tag:span|&gt;|class="p"}}<br />
}}{{#if:{{yesno|{{{plain|}}}}}||<br />
</code><br />
}}</onlyinclude><br />
{{Documentation}}</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Transclude&diff=27786Template:Transclude2022-03-15T06:41:44Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div><onlyinclude>{{#switch: {{NAMESPACE: {{{1}}} }}<br />
|#default = {{FULLPAGENAME: {{{1}}} }} <!-- leading namespace prefix, eg "Template:Foo" --><br />
|{{ns:0}} = <br />
{{#ifeq: {{NAMESPACE: {{{1}}} }} | {{NAMESPACE: Template{{{1}}} }}<br />
| Template:{{{1}}} <!-- no leading colon, eg "Foo" --><br />
| {{PAGENAME: {{{1}}} }} <!-- leading colon, eg ":Foo", so we want the article --><br />
}}<br />
}}</onlyinclude><br />
{{Documentation}}</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Tlx&diff=27784Template:Tlx2022-03-15T06:41:44Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>#REDIRECT [[Template:Template link expanded]]<br />
<br />
{{Redirect category shell|<br />
{{R from move}}<br />
}}</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Tl&diff=27782Template:Tl2022-03-15T06:41:44Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>#REDIRECT [[Template:Template link]]<br />
<br />
{{Redirect category shell|<br />
{{R from move}}<br />
}}</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:TemplateData_header/en&diff=27780Template:TemplateData header/en2022-03-15T06:41:44Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div><noinclude><br />
<languages/><br />
<onlyinclude>{{#switch:<br />
|=<br />
<div class="templatedata-header"><!--<br />
-->{{#if:{{yesno|{{{editlinks|}}}}}<!--<br />
-->|{{#ifexpr:<!--<br />
-->{{#if:{{{docpage|}}}<!--<br />
-->|{{#ifeq:{{FULLPAGENAME}}|{{transclude|{{{docpage}}}}}|0|1}}<!--<br />
-->|not{{IsDocSubpage|false=0}}<!--<br />
-->}}<!--<br />
-->|{{Navbar|{{{docpage|{{BASEPAGENAME}}/doc}}}|plain=1|brackets=1|style=float:{{dir|{{PAGELANGUAGE}}|left|right}};}}<!--<br />
-->}}<!--<br />
-->}}<br />
{{#if:{{{noheader|}}}||This is the [[Special:MyLanguage/Help:TemplateData|TemplateData]] documentation for this template used by [[Special:MyLanguage/VisualEditor|VisualEditor]] and other tools.}}<br />
<br />
'''{{{1|{{BASEPAGENAME}}}}}'''<br />
</div><includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|<!--<br />
-->|{{#if:{{IsDocSubpage|false=}}<!--<br />
-->|[[Category:TemplateData documentation{{#translation:}}]]<!--<br />
-->|[[Category:Templates using TemplateData{{#translation:}}]]<!--<br />
-->}}<!--<br />
-->}}</includeonly><br />
| #default=<br />
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:TemplateData header|noshift=1|uselang={{#if:{{pagelang}}|{{pagelang}}|{{int:lang}}}}}}<br />
}}</onlyinclude><br />
{{Documentation|content=<br />
<br />
Inserts a brief header for the template data section. Adds the /doc subpage to [[:Category:TemplateData documentation{{#translation:}}]] and the template page to [[:Category:Templates using TemplateData{{#translation:}}]].<br />
<br />
== Usage ==<br />
{{#tag:syntaxhighlight|<br />
==TemplateData== or ==Parameters== or ==Usage==<br />
{{((}}TemplateData header{{))}}<br />
{{^(}}templatedata{{)^}}{<br />
...<br />
}{{^(}}/templatedata{{)^}}<br />
|lang=html<br />
}}<br />
<br />
Use <code><nowiki>{{TemplateData header|Template name}}</nowiki></code> to display a name for the template other than the default, which is [[Help:Magic_words#Variables|<nowiki>{{BASEPAGENAME}}</nowiki>]].<br />
<dl><dd><br />
{{TemplateData header|Template name}}<br />
</dd></dl><br />
<br />
Use <code><nowiki>{{TemplateData header|noheader=1}}</nowiki></code> to omit the first sentence of the header text.<br />
<dl><dd><br />
{{TemplateData header|noheader=1}}<br />
</dd></dl><br />
<br />
==Parameters==<br />
{{TemplateData header/doc}}<br />
<br />
}}<br />
</noinclude></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:TemplateData_header&diff=27778Template:TemplateData header2022-03-15T06:41:43Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div><div class="templatedata-header">{{#if:{{{noheader|}}}|<!--<br />
noheader:<br />
-->{{Template parameter usage|based=y}}|<!--<br />
+header:<br />
-->This is the {{#if:{{{nolink|}}}|<!--<br />
+header, nolink TD<br />
-->TemplateData|<!--<br />
+header, +link [[TD]]; DEFAULT:<br />
-->[[Wikipedia:TemplateData|TemplateData]]}}<!--<br />
e.o. #if:nolink; DEFAULT:<br />
--> for this template used by [[mw:Extension:TemplateWizard|TemplateWizard]], [[Wikipedia:VisualEditor|VisualEditor]] and other tools. {{Template parameter usage|based=y}}<!--<br />
e.o. #if:noheader<br />
-->}}<br />
<br />
'''TemplateData for {{{1|{{BASEPAGENAME}}}}}'''<br />
</div><includeonly><!--<br />
<br />
check parameters<br />
-->{{#invoke:Check for unknown parameters|check<br />
|unknown={{template other|1=[[Category:Pages using TemplateData header with unknown parameters|_VALUE_]]}}<br />
|template=Template:TemplateData header<br />
|1 |nolink |noheader<br />
|preview=<div class="error" style="font-weight:normal">Unknown parameter '_VALUE_' in [[Template:TemplateData header]].</div><br />
}}<!--<br />
-->{{template other|{{sandbox other||<br />
[[Category:Templates using TemplateData]]<br />
<br />
}}}}</includeonly><!--<br />
<br />
--><noinclude>{{Documentation}}</noinclude></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:TemplateDataHeader&diff=27776Template:TemplateDataHeader2022-03-15T06:41:43Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>#REDIRECT [[Template:TemplateData header]]</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Tag&diff=27774Template:Tag2022-03-15T06:41:43Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>{{#if:{{{plain|}}}|<br />
|<code class="mw-highlight" style="{{#if:{{{wrap|}}}||white-space:nowrap}}"><br />
}}{{#switch:{{{2|pair}}}<br />
|c|close = <!--nothing--><br />
|s|single<br />
|o|open<br />
|p|pair = {{#tag:span|&lrm;&lt;|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#if:{{{params|}}}|&#32;{{{params}}}}}<br />
}}{{#switch:{{{2|pair}}}<br />
|c|close = {{{content|}}}<br />
|s|single = &#32;{{#tag:span|&#47;&gt;|class="p"}}<br />
|o|open = {{#tag:span|&gt;|class="p"}}{{{content|}}}<br />
|p|pair = {{#tag:span|&gt;|class="p"}}{{{content|...}}}<br />
}}{{#switch:{{{2|pair}}}<br />
|s|single<br />
|o|open = <!--nothing--><br />
|c|close<br />
|p|pair = {{#tag:span|&lrm;&lt;&#47;|class="p"}}{{#tag:span|{{{1|tag}}}|class="nt"}}{{#tag:span|&gt;|class="p"}}<br />
}}{{#if:{{{plain|}}}|<br />
|</code><br />
}}<noinclude><br />
{{Documentation}}<br />
</noinclude></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Quote/doc&diff=27772Template:Quote/doc2022-03-15T06:41:42Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>{{Documentation subpage}}<br />
<br />
<br />
== Usage ==<br />
<br />
{{tlx|Quote}} adds a block quotation to a page.<br />
<br />
This is easier to type and more wiki-like than the equivalent HTML {{tag|blockquote}} tags, and has additional pre-formatted attribution and source parameters. <!-- THIS WORKAROUND FAILED; see talk page and its archives. New workaround provided hereafter. It also contains a workaround for [[Bugzilla:6200]], which means you don't need to type {{tag|p}} tags manually. --><br />
<br />
<br />
=== Synopsis ===<br />
<br />
;Unnamed (positional) parameters<br />
<code><nowiki>{{quote|phrase|person|source}}</nowiki></code><br />
This markup will fail if any parameter contains an equals sign (=).<br />
<br />
;Numbered (positional) parameters<br />
<code><nowiki>{{quote|1=phrase|2=person|3=source}}</nowiki></code><br />
<br />
;Named parameters<br />
<code><nowiki>{{quote|text=phrase|sign=person|source=source}}</nowiki></code><br />
<br />
=== Example ===<br />
<br />
;Wikitext:<br />
<code><nowiki>{{Quote|text=Cry "Havoc" and let slip the dogs of war.|sign=William Shakespeare|source=''Julius Caesar'', act III, scene I}}</nowiki></code><br />
<br />
;Result:<br />
{{Quote|text=Cry "Havoc" and let slip the dogs of war.|sign=William Shakespeare|source=''Julius Caesar'', act III, scene I}}<br />
<br />
=== Restrictions ===<br />
<br />
If you do not provide quoted text, the template generates a parser error message, which will appear in red text in the rendered page.<br />
<br />
If any parameter's actual value contains an equals sign (=), you '''''must''''' use named parameters. (The equals sign gets interpreted as a named parameter otherwise.)<br />
<br />
If any parameter's actual value contains characters used for wiki markup syntax (such as pipe, brackets, single quotation marks, etc.), you may need to escape it. See [[Template:!]] and friends.<br />
<br />
Be wary of URLs which contain restricted characters. The equals sign is especially common.<br />
<br />
=== Multiple paragraphs ===<br />
<br />
<div style="float: right; padding: 0 1em;">{{navbar|Blockquote paragraphs|plain=y}}</div><br />
The {{tag|blockquote|o}} element and any templates that use it do not honor newlines:<br />
{{markup<br />
|<nowiki><blockquote><br />
Line 1<br />
Line 2<br />
Line 3<br />
Line 4<br />
</blockquote></nowiki><br />
|<blockquote><br />
Line 1<br />
Line 2<br />
Line 3<br />
Line 4<br />
</blockquote><br />
}}<br />
<br />
To resolve this, use the {{xtag|poem}} tag inside {{tag|blockquote|o}}:<br />
{{markup<br />
|<nowiki><blockquote><poem><br />
Line 1<br />
Line 2<br />
Line 3<br />
Line 4<br />
</poem></blockquote></nowiki><br />
|<blockquote><poem><br />
Line 1<br />
Line 2<br />
Line 3<br />
Line 4<br />
</poem></blockquote><br />
}}<br />
<br />
== TemplateData ==<br />
{{TemplateDataHeader}}<br />
<templatedata>{<br />
"description": "Adds a block quotation.",<br />
"params": {<br />
"text": {<br />
"label": "text",<br />
"description": "The text to quote",<br />
"type": "string",<br />
"required": false,<br />
"aliases": [ "1", "quote" ]<br />
},<br />
"sign": {<br />
"label": "sign",<br />
"description": "The person who is being quoted",<br />
"type": "string",<br />
"required": false,<br />
"aliases": [ "2", "cite" ]<br />
},<br />
"source": {<br />
"label": "source",<br />
"description": "A source for the quote",<br />
"type": "string",<br />
"required": false,<br />
"aliases": [ "3" ]<br />
}<br />
}<br />
}</templatedata><br />
<br />
== See also ==<br />
{{Quotation templates see also}}<br />
<br />
<includeonly><br />
<!-- ADD CATEGORIES AFTER THIS LINE --><br />
[[Category:Quotation templates|Quote]]<br />
[[Category:Semantic markup templates]]<br />
</includeonly></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Quotation_templates_see_also&diff=27770Template:Quotation templates see also2022-03-15T06:41:42Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>Similar templates comparison:<br />
<br />
* {{tl|Quote}} – quote without border, page-wide, smaller-sized attribution<br />
* {{tl|Quotation}} – quote with border, page-wide<br />
* {{tl|Cquote}} – pull-quote between graphic quotation marks, page-wide<br />
* {{tl|talk quotation}} – talk-page inline quotation<br />
<br />
* [[:Category:Quotation templates]] – more templates<!--<br />
--><noinclude><br />
==Usage==<br />
<br />
This template can be added in the "See also" section of the main templates of [[:Category: Quotation templates]]. There are no parameters:<br />
<br />
<PRE><br />
==See also==<br />
<br />
{{Quotation templates see also}}<br />
</PRE><br />
<br />
The section can provide more information, preferably in the same format with intro, such as:<br />
<br />
<PRE><br />
==See also==<br />
<br />
Direct variants:<br />
<br />
* [[Template:SameName2]] – identical but with italic text<br />
* [[Template:SameName3]] – identical but with bold text<br />
<br />
{{Quotation templates see also}}<br />
<br />
Useful related templates:<br />
<br />
* [[Template:Smaller-begin]] – header for smaller font<br />
* [[Template:Smaller-end]] – footer for smaller font<br />
</PRE><br />
<br />
[[Category:Quotation templates| <!--SPACE-->]]<br />
<br />
</noinclude></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Pagelang&diff=27768Template:Pagelang2022-03-15T06:41:42Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|{{{1|}}}}}|en<br />
|{{#ifeq:{{#titleparts:{{{1|{{PAGENAME}}}}}||-1}}|en<br />
|{{#invoke:Template translation|getLanguageSubpage|{{{1|}}}}}<br />
}}<br />
|{{#invoke:Template translation|getLanguageSubpage|{{{1|}}}}}<br />
}}<noinclude><br />
{{Documentation}}<br />
</noinclude></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Nowrap/styles.css&diff=27766Template:Nowrap/styles.css2022-03-15T06:41:41Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>.nowrap,<br />
.nowrap a:before,<br />
.nowrap .selflink:before {<br />
white-space: nowrap;<br />
}</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Navbar/en&diff=27764Template:Navbar/en2022-03-15T06:41:41Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div><noinclude><br />
<languages/><br />
</noinclude><templatestyles src="Module:Navbar/styles.css"/><span class="noprint plainlinks navbar" style="{{{style|}}}"><small><!--<br />
<br />
-->{{#if:{{{mini|}}}{{{plain|}}}|<!--nothing-->|<!--else:<br />
--><span style="{{{fontstyle|}}}">{{#if:{{{text|}}}|{{{text}}}|This box:}} </span>}}<!--<br />
<br />
-->{{#if:{{{brackets|}}}|<span style="{{{fontstyle|}}}">&#91;</span>}}<!--<br />
<br />
--><span style="white-space:nowrap;word-spacing:-.12em;"><!--<br />
-->[[{{transclude|{{{1}}}}}|<span style="{{{fontstyle|}}}" title="View this template"><!--<br />
-->{{#if:{{{mini|}}}|v|view}}</span>]]<!--<br />
<br />
--><span style="{{{fontstyle|}}}">&#32;<b>&middot;</b>&#32;</span><!--<br />
-->[{{fullurl:{{<noinclude><nowiki/></noinclude>TALKPAGENAME:{{transclude|{{{1}}}}}}}}} <span style="{{{fontstyle|}}}" title="Discuss this template"><!--<br />
-->{{#if:{{{mini|}}}|d|talk}}</span>]<!--<br />
<br />
-->{{#if:{{{noedit|}}}|<!--nothing-->|<!--else:<br />
--><span style="{{{fontstyle|}}}">&#32;<b>&middot;</b>&#32;</span><!--<br />
-->[{{fullurl:{{transclude|{{{1}}}}}|action=edit}} <span style="{{{fontstyle|}}}" title="Edit this template"><!--<br />
-->{{#if:{{{mini|}}}|e|edit}}</span>]}}<!--<br />
--></span><!--<br />
<br />
-->{{#if:{{{brackets|}}}|<span style="{{{fontstyle|}}}">&#93;</span>}}<!--<br />
<br />
--></small></span><noinclude><br />
{{Documentation|content=<br />
{{Uses TemplateStyles|Module:Navbar/styles.css}}<br />
== Usage ==<br />
<br />
=== General ===<br />
<br />
When one of the following examples is placed inside a given [[Special:MyLanguage/Help:Templates|template]], it adds navbar navigational functionality:<br />
<br />
: {{tlx|Navbar|Navbar|mini{{=}}1}}<br />
: {{tlx|Navbar|Navbar|plain{{=}}1}}<br />
: {{tlx|Navbar|Navbar|fontstyle{{=}}color:green}}<br />
<br />
The <code><nowiki>{{subst:PAGENAME}}</nowiki></code> will be substituted with the template's name when parsed by the servers.<br />
For example, {{tlx|Navbar|navbar/doc}} gives:<br />
<br />
{{Navbar|navbar/doc}}<br />
<br />
=== Font-size ===<br />
Font-size is <code>88%</code> when used in a navbar, and <code>100%</code> when nested in a navbox.<br />
In the navbar, the weight is "<code>normal</code>"; when nested in navbox, it takes on the outer setting.<br />
The middot is bold.<br />
<br />
== Examples ==<br />
<br />
=== Required parameters ===<br />
* {{tlx|Navbar|''template name''}} — the template name is required.<br />
<br />
=== Optional parameters ===<br />
{{(}}{{!}} class="wikitable"<br />
! Options<br />
! Parameters<br />
! Produces...<br />
{{!}}-<br />
{{!}} Basic<br />
{{!}} {{tlx|Navbar|2=''template name''}}<br />
{{!}} {{navbar|navbar/doc}}<br />
{{!}}-<br />
{{!}} Different text<br />
{{!}} {{tlx|Navbar|2=''template name''|3=text{{=}}This template:}}<br />
{{!}} {{navbar|navbar/doc|text=This template:}}<br />
{{!}}-<br />
{{!}} Without "This box:" text<br />
{{!}} {{tlx|Navbar|2=''template name''|3=plain{{=}}1}}<br />
{{!}} {{navbar|navbar/doc|plain=1}}<br />
{{!}}-<br />
{{!}} Short version<br />
{{!}} {{tlx|Navbar|2=''template name''|3=mini{{=}}1}}<br />
{{!}} {{navbar|navbar/doc|mini=1}}<br />
{{!}}-<br />
{{!}} With a color option<br />
{{!}} {{tlx|Navbar|2=''template name''|3=fontstyle{{=}}color:green}}<br />
{{!}} {{navbar|navbar/doc|fontstyle=color:green}}<br />
{{!}}-<br />
{{!}} With brackets<br />
{{!}} {{tlx|Navbar|2=''template name''|3=brackets{{=}}1}}<br />
{{!}} {{navbar|navbar/doc|brackets=1}}<br />
{{!}}-<br />
{{!}} Custom namespace<br />
{{!}} {{tlx|Navbar|2=''namespaced template name''|3=plain{{=}}1|4=brackets{{=}}1}}<br />
{{!}} {{navbar|User:Example|plain=1|brackets=1}}<br />
{{!}}{{)}}<br />
<br />
== TemplateData ==<br />
{{Navbar/doc}}<br />
<br />
== Notes ==<br />
Navbar is contained within a {{tag|div}} in order to accommodate a horizontal unnumbered list.<br />
This means it cannot be placed inside a {{tag|span}} or other inline element, because Tidy will 'fix' situations where it finds block elements inside inline elements.<br />
<br />
<!--- PLEASE ADD METADATA TO THE <includeonly> SECTION HERE ---><br />
<includeonly><br />
[[Category:Formatting templates{{#translation:}}]]<br />
</includeonly><br />
}}<br />
</noinclude></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Navbar&diff=27762Template:Navbar2022-03-15T06:41:40Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div><noinclude><br />
<languages/><br />
</noinclude><templatestyles src="Module:Navbar/styles.css"/><span class="noprint plainlinks navbar" style="{{{style|}}}"><small><!--<br />
<br />
-->{{#if:{{{mini|}}}{{{plain|}}}|<!--nothing-->|<!--else:<br />
--><span style="{{{fontstyle|}}}">{{#if:{{{text|}}}|{{{text}}}|<translate><!--T:1--> This box:</translate>}} </span>}}<!--<br />
<br />
-->{{#if:{{{brackets|}}}|<span style="{{{fontstyle|}}}">&#91;</span>}}<!--<br />
<br />
--><span style="white-space:nowrap;word-spacing:-.12em;"><!--<br />
-->[[{{transclude|{{{1}}}}}|<span style="{{{fontstyle|}}}" title="<translate nowrap><!--T:2--> View this template</translate>"><!--<br />
-->{{#if:{{{mini|}}}|<translate><!--T:3--> v</translate>|<translate><!--T:4--> view</translate>}}</span>]]<!--<br />
<br />
--><span style="{{{fontstyle|}}}">&#32;<b>&middot;</b>&#32;</span><!--<br />
-->[{{fullurl:{{<noinclude><nowiki/></noinclude>TALKPAGENAME:{{transclude|{{{1}}}}}}}}} <span style="{{{fontstyle|}}}" title="<translate nowrap><!--T:9--> Discuss this template</translate>"><!--<br />
-->{{#if:{{{mini|}}}|<translate><!--T:5--> d</translate>|<translate><!--T:6--> talk</translate>}}</span>]<!--<br />
<br />
-->{{#if:{{{noedit|}}}|<!--nothing-->|<!--else:<br />
--><span style="{{{fontstyle|}}}">&#32;<b>&middot;</b>&#32;</span><!--<br />
-->[{{fullurl:{{transclude|{{{1}}}}}|action=edit}} <span style="{{{fontstyle|}}}" title="<translate nowrap><!--T:10--> Edit this template</translate>"><!--<br />
-->{{#if:{{{mini|}}}|<translate><!--T:7--> e</translate>|<translate><!--T:8--> edit</translate>}}</span>]}}<!--<br />
--></span><!--<br />
<br />
-->{{#if:{{{brackets|}}}|<span style="{{{fontstyle|}}}">&#93;</span>}}<!--<br />
<br />
--></small></span><noinclude><br />
{{Documentation|content=<br />
{{Uses TemplateStyles|Module:Navbar/styles.css}}<br />
<translate><br />
== Usage == <!--T:11--><br />
<br />
=== General === <!--T:12--><br />
<br />
<!--T:13--><br />
When one of the following examples is placed inside a given [[<tvar name=1>Special:MyLanguage/Help:Templates</tvar>|template]], it adds navbar navigational functionality:<br />
</translate><br />
<br />
: {{tlx|Navbar|Navbar|mini{{=}}1}}<br />
: {{tlx|Navbar|Navbar|plain{{=}}1}}<br />
: {{tlx|Navbar|Navbar|fontstyle{{=}}color:green}}<br />
<br />
<translate><!--T:14--> The <tvar name=1><code><nowiki>{{subst:PAGENAME}}</nowiki></code></tvar> will be substituted with the template's name when parsed by the servers.</translate><br />
<translate><!--T:15--> For example, <tvar name=1>{{tlx|Navbar|navbar/doc}}</tvar> gives:</translate><br />
<br />
{{Navbar|navbar/doc}}<br />
<br />
<translate><br />
=== Font-size === <!--T:16--><br />
</translate><br />
<translate><!--T:17--> Font-size is <tvar name=1><code>88%</code></tvar> when used in a navbar, and <tvar name=2><code>100%</code></tvar> when nested in a navbox.</translate><br />
<translate><!--T:18--> In the navbar, the weight is "<tvar name=1><code>normal</code></tvar>"; when nested in navbox, it takes on the outer setting.</translate><br />
<translate><!--T:19--> The middot is bold.</translate><br />
<br />
<translate><br />
== Examples == <!--T:20--><br />
<br />
=== Required parameters === <!--T:21--><br />
</translate><br />
* {{tlx|Navbar|''<translate><!--T:22--> template name</translate>''}} — <translate><!--T:23--> the template name is required.</translate><br />
<br />
<translate><br />
=== Optional parameters === <!--T:24--><br />
</translate><br />
{{(}}{{!}} class="wikitable"<br />
! <translate><!--T:25--> Options</translate><br />
! <translate><!--T:26--> Parameters</translate><br />
! <translate><!--T:27--> Produces...</translate><br />
{{!}}-<br />
{{!}} <translate><!--T:28--> Basic</translate><br />
{{!}} {{tlx|Navbar|2=''<translate><!--T:29--> template name</translate>''}}<br />
{{!}} {{navbar|navbar/doc}}<br />
{{!}}-<br />
{{!}} <translate><!--T:30--> Different text</translate><br />
{{!}} {{tlx|Navbar|2=''<translate><!--T:31--> template name</translate>''|3=text{{=}}<translate><!--T:32--> This template:</translate>}}<br />
{{!}} {{navbar|navbar/doc|text=<translate><!--T:33--> This template:</translate>}}<br />
{{!}}-<br />
{{!}} <translate><!--T:34--> Without "This box:" text</translate><br />
{{!}} {{tlx|Navbar|2=''<translate><!--T:35--> template name</translate>''|3=plain{{=}}1}}<br />
{{!}} {{navbar|navbar/doc|plain=1}}<br />
{{!}}-<br />
{{!}} <translate><!--T:36--> Short version</translate><br />
{{!}} {{tlx|Navbar|2=''<translate><!--T:37--> template name</translate>''|3=mini{{=}}1}}<br />
{{!}} {{navbar|navbar/doc|mini=1}}<br />
{{!}}-<br />
{{!}} <translate><!--T:38--> With a color option</translate><br />
{{!}} {{tlx|Navbar|2=''<translate><!--T:39--> template name</translate>''|3=fontstyle{{=}}color:green}}<br />
{{!}} {{navbar|navbar/doc|fontstyle=color:green}}<br />
{{!}}-<br />
{{!}} <translate><!--T:40--> With brackets</translate><br />
{{!}} {{tlx|Navbar|2=''<translate><!--T:41--> template name</translate>''|3=brackets{{=}}1}}<br />
{{!}} {{navbar|navbar/doc|brackets=1}}<br />
{{!}}-<br />
{{!}} <translate><!--T:45--> Custom namespace</translate><br />
{{!}} {{tlx|Navbar|2=''<translate><!--T:46--> namespaced template name</translate>''|3=plain{{=}}1|4=brackets{{=}}1}}<br />
{{!}} {{navbar|User:Example|plain=1|brackets=1}}<br />
{{!}}{{)}}<br />
<br />
== TemplateData ==<br />
{{Navbar/doc}}<br />
<br />
<translate><br />
== Notes == <!--T:42--><br />
</translate><br />
<translate><!--T:43--> Navbar is contained within a <tvar name=1>{{tag|div}}</tvar> in order to accommodate a horizontal unnumbered list.</translate><br />
<translate><!--T:44--> This means it cannot be placed inside a <tvar name=1>{{tag|span}}</tvar> or other inline element, because Tidy will 'fix' situations where it finds block elements inside inline elements.</translate><br />
<br />
<!--- PLEASE ADD METADATA TO THE <includeonly> SECTION HERE ---><br />
<includeonly><br />
[[Category:Formatting templates{{#translation:}}]]<br />
</includeonly><br />
}}<br />
</noinclude></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Mono/styles.css&diff=27760Template:Mono/styles.css2022-03-15T06:41:39Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>/* {{pp-template}} */<br />
.monospaced {<br />
/* "monospace, monospace" per [[WP:MONO]] */<br />
font-family: monospace, monospace;<br />
}</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Markup/row/en&diff=27758Template:Markup/row/en2022-03-15T06:41:39Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div><noinclude><br />
<languages /><br />
{{(}}{{!}} style="width:90%; border-width: medium;"<br />
</noinclude>{{#switch:<br />
| =<br />
<br /><br />
{{!}}-<br />
{{!}} style="width:50%; background-color: #f9f9f9; border-width: 1px; padding: 5px; border-style: solid none none solid; border-color: #ddd; vertical-align:text-top;" {{!}} {{#tag:pre|{{{cell1|Markup}}}| style="border: none; margin:0; padding: 0; word-wrap: break-word; white-space: -moz-pre-wrap; white-space: -o-pre-wrap; white-space: -pre-wrap; white-space: pre-wrap"}}<br />
{{!}} style="width:50%; background-color: #f9f9f9; border-width: 1px; padding: 5px; border-style: solid solid none solid; border-color: #ddd; vertical-align:text-top;" {{!}} {{{cell2|Renders}}}<br />
| #default=<br />
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Markup/row|noshift=1|uselang={{int:lang}}}}<br />
}}<noinclude><br />
{{!}}-<br />
{{!}} style="width:50%; border-width: 1px; padding: 5px; border-style: solid none none none; border-color: #ddd; vertical-align:text-top;" {{!}}<br />
{{!}} style="width:50%; border-width: 1px; padding: 5px; border-style: solid none none none; border-color: #ddd; vertical-align:text-top;" {{!}}<br />
{{!}}{{)}}<br />
{{documentation}}<br />
</noinclude></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Markup/row&diff=27756Template:Markup/row2022-03-15T06:41:38Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div><noinclude><br />
<languages /><br />
{{(}}{{!}} style="width:90%; border-width: medium;"<br />
</noinclude>{{#switch:<translate></translate><br />
| =<br />
<br /><br />
{{!}}-<br />
{{!}} style="width:50%; background-color: #f9f9f9; border-width: 1px; padding: 5px; border-style: solid none none solid; border-color: #ddd; vertical-align:text-top;" {{!}} {{#tag:pre|{{{cell1|<translate><!--T:1--> Markup</translate>}}}| style="border: none; margin:0; padding: 0; word-wrap: break-word; white-space: -moz-pre-wrap; white-space: -o-pre-wrap; white-space: -pre-wrap; white-space: pre-wrap"}}<br />
{{!}} style="width:50%; background-color: #f9f9f9; border-width: 1px; padding: 5px; border-style: solid solid none solid; border-color: #ddd; vertical-align:text-top;" {{!}} {{{cell2|<translate><!--T:2--> Renders</translate>}}}<br />
| #default=<br />
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Markup/row|noshift=1|uselang={{int:lang}}}}<br />
}}<noinclude><br />
{{!}}-<br />
{{!}} style="width:50%; border-width: 1px; padding: 5px; border-style: solid none none none; border-color: #ddd; vertical-align:text-top;" {{!}}<br />
{{!}} style="width:50%; border-width: 1px; padding: 5px; border-style: solid none none none; border-color: #ddd; vertical-align:text-top;" {{!}}<br />
{{!}}{{)}}<br />
{{documentation}}<br />
</noinclude></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Markup/en&diff=27754Template:Markup/en2022-03-15T06:41:38Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div><noinclude><br />
<languages /><br />
</noinclude>{{#switch:<br />
| =<br />
{{(}}{{!}} style="table-layout: fixed; width: {{{width|100%}}}; border-width: medium; margin-left: {{{margin|0em}}};{{{style|}}}"<br />
{{#if: {{{title|}}} | {{!}}+ '''{{{title}}}'''}}<br />
{{#if: {{{notitle|}}} || ! style="width:50%" scope="col" {{!}} {{{t1|Markup}}}}}<br />
{{#if: {{{notitle|}}} || ! style="width:50%" scope="col" {{!}} {{{t2|Renders as}}}}}<!--<br />
-->{{#if: {{{1|}}}|{{Markup/row|cell1={{{1|}}}|cell2={{{2|}}}}}}}<!--<br />
-->{{#if: {{{3|}}}|{{Markup/row|cell1={{{3|}}}|cell2={{{4|}}}}}}}<!--<br />
-->{{#if: {{{5|}}}|{{Markup/row|cell1={{{5|}}}|cell2={{{6|}}}}}}}<!--<br />
-->{{#if: {{{7|}}}|{{Markup/row|cell1={{{7|}}}|cell2={{{8|}}}}}}}<!--<br />
-->{{#if: {{{9|}}}|{{Markup/row|cell1={{{9|}}}|cell2={{{10|}}}}}}}<!--<br />
-->{{#if: {{{11|}}}|{{Markup/row|cell1={{{11|}}}|cell2={{{12|}}}}}}}<!--<br />
-->{{#if: {{{13|}}}|{{Markup/row|cell1={{{13|}}}|cell2={{{14|}}}}}}}<!--<br />
-->{{#if: {{{15|}}}|{{Markup/row|cell1={{{15|}}}|cell2={{{16|}}}}}}}<!--<br />
-->{{#if: {{{17|}}}|{{Markup/row|cell1={{{17|}}}|cell2={{{18|}}}}}}}<!--<br />
-->{{#if: {{{19|}}}|{{Markup/row|cell1={{{19|}}}|cell2={{{20|}}}}}}}<!--<br />
-->{{#if: {{{21|}}}|{{Markup/row|cell1={{{21|}}}|cell2={{{22|}}}}}}}<!--<br />
-->{{#if: {{{23|}}}|{{Markup/row|cell1={{{23|}}}|cell2={{{24|}}}}}}}<!--<br />
-->{{#if: {{{25|}}}|{{Markup/row|cell1={{{25|}}}|cell2={{{26|}}}}}}}<!--<br />
-->{{#if: {{{27|}}}|{{Markup/row|cell1={{{27|}}}|cell2={{{28|}}}}}}}<!--<br />
-->{{#if: {{{29|}}}|{{Markup/row|cell1={{{29|}}}|cell2={{{30|}}}}}}}<!--<br />
-->{{#if: {{{31|}}}|{{Markup/row|cell1={{{31|}}}|cell2={{{32|}}}}}}}<!--<br />
-->{{#if: {{{33|}}}|{{Markup/row|cell1={{{33|}}}|cell2={{{34|}}}}}}}<!--<br />
-->{{#if: {{{35|}}}|{{Markup/row|cell1={{{35|}}}|cell2={{{36|}}}}}}}<!--<br />
-->{{#if: {{{37|}}}|{{Markup/row|cell1={{{37|}}}|cell2={{{38|}}}}}}}<!--<br />
-->{{#if: {{{39|}}}|{{Markup/row|cell1={{{39|}}}|cell2={{{40|}}}}}}}<br />
{{!}}-<br />
{{!}} style="width:50%; border-width: 1px; padding: 5px; border-style: solid none none none; border-color: #ddd; vertical-align:text-top;" {{!}}<br />
{{!}} style="width:50%; border-width: 1px; padding: 5px; border-style: solid none none none; border-color: #ddd; vertical-align:text-top;" {{!}}<br />
{{!}}{{)}}<br />
| #default=<br />
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Markup|noshift=1|uselang={{int:lang}}}}<br />
}}<noinclude><br />
{{documentation}}<br />
</noinclude></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Markup&diff=27752Template:Markup2022-03-15T06:41:38Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div><noinclude><br />
<languages /><br />
</noinclude>{{#switch:<translate></translate><br />
| =<br />
{{(}}{{!}} style="table-layout: fixed; width: {{{width|100%}}}; border-width: medium; margin-left: {{{margin|0em}}};{{{style|}}}"<br />
{{#if: {{{title|}}} | {{!}}+ '''{{{title}}}'''}}<br />
{{#if: {{{notitle|}}} || ! style="width:50%" scope="col" {{!}} {{{t1|<translate><!--T:1--> Markup</translate>}}}}}<br />
{{#if: {{{notitle|}}} || ! style="width:50%" scope="col" {{!}} {{{t2|<translate><!--T:2--> Renders as</translate>}}}}}<!--<br />
-->{{#if: {{{1|}}}|{{Markup/row|cell1={{{1|}}}|cell2={{{2|}}}}}}}<!--<br />
-->{{#if: {{{3|}}}|{{Markup/row|cell1={{{3|}}}|cell2={{{4|}}}}}}}<!--<br />
-->{{#if: {{{5|}}}|{{Markup/row|cell1={{{5|}}}|cell2={{{6|}}}}}}}<!--<br />
-->{{#if: {{{7|}}}|{{Markup/row|cell1={{{7|}}}|cell2={{{8|}}}}}}}<!--<br />
-->{{#if: {{{9|}}}|{{Markup/row|cell1={{{9|}}}|cell2={{{10|}}}}}}}<!--<br />
-->{{#if: {{{11|}}}|{{Markup/row|cell1={{{11|}}}|cell2={{{12|}}}}}}}<!--<br />
-->{{#if: {{{13|}}}|{{Markup/row|cell1={{{13|}}}|cell2={{{14|}}}}}}}<!--<br />
-->{{#if: {{{15|}}}|{{Markup/row|cell1={{{15|}}}|cell2={{{16|}}}}}}}<!--<br />
-->{{#if: {{{17|}}}|{{Markup/row|cell1={{{17|}}}|cell2={{{18|}}}}}}}<!--<br />
-->{{#if: {{{19|}}}|{{Markup/row|cell1={{{19|}}}|cell2={{{20|}}}}}}}<!--<br />
-->{{#if: {{{21|}}}|{{Markup/row|cell1={{{21|}}}|cell2={{{22|}}}}}}}<!--<br />
-->{{#if: {{{23|}}}|{{Markup/row|cell1={{{23|}}}|cell2={{{24|}}}}}}}<!--<br />
-->{{#if: {{{25|}}}|{{Markup/row|cell1={{{25|}}}|cell2={{{26|}}}}}}}<!--<br />
-->{{#if: {{{27|}}}|{{Markup/row|cell1={{{27|}}}|cell2={{{28|}}}}}}}<!--<br />
-->{{#if: {{{29|}}}|{{Markup/row|cell1={{{29|}}}|cell2={{{30|}}}}}}}<!--<br />
-->{{#if: {{{31|}}}|{{Markup/row|cell1={{{31|}}}|cell2={{{32|}}}}}}}<!--<br />
-->{{#if: {{{33|}}}|{{Markup/row|cell1={{{33|}}}|cell2={{{34|}}}}}}}<!--<br />
-->{{#if: {{{35|}}}|{{Markup/row|cell1={{{35|}}}|cell2={{{36|}}}}}}}<!--<br />
-->{{#if: {{{37|}}}|{{Markup/row|cell1={{{37|}}}|cell2={{{38|}}}}}}}<!--<br />
-->{{#if: {{{39|}}}|{{Markup/row|cell1={{{39|}}}|cell2={{{40|}}}}}}}<br />
{{!}}-<br />
{{!}} style="width:50%; border-width: 1px; padding: 5px; border-style: solid none none none; border-color: #ddd; vertical-align:text-top;" {{!}}<br />
{{!}} style="width:50%; border-width: 1px; padding: 5px; border-style: solid none none none; border-color: #ddd; vertical-align:text-top;" {{!}}<br />
{{!}}{{)}}<br />
| #default=<br />
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Markup|noshift=1|uselang={{int:lang}}}}<br />
}}<noinclude><br />
{{documentation}}<br />
</noinclude></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Lorem_ipsum&diff=27750Template:Lorem ipsum2022-03-15T06:41:37Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div><includeonly>{{#switch:{{{1}}}|1|#default={{Lorem Ipsum}}<br />
|2={{Lorem Ipsum}}<br/><br/>{{Lorem Ipsum}}<br/><br />
|3={{Lorem Ipsum}}<br/><br/>{{Lorem Ipsum}}<br/><br/>{{Lorem Ipsum}}<br/><br />
|4={{Lorem Ipsum}}<br/><br/>{{Lorem Ipsum}}<br/><br/>{{Lorem Ipsum}}<br/><br/>{{Lorem Ipsum}}<br/><br />
}}{{clear}}</includeonly><noinclude><br />
{{documentation|content=<br />
<br />
{{Lorem Ipsum}}<br />
<br />
;Purpose:Provide a quick "boilerplate" filler text used solely as a template debugging aid, to examine wrapping, nesting, and margins or padding in template design and testing. <br />
;Usage:This template merely displays the latin paragraph shown above, but does so up to four times defined by <nowiki>{{{1}}}</nowiki> and displays (calls) [[Template:Lorem Ipsum]] N=(1-4) times with appropriate line breaks.<br />
;related:<br />
*[[Template:Lorem Ipsum]], the source of that Latin paragraph.<br />
<br />
}}<br />
</noinclude></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Lorem_Ipsum&diff=27748Template:Lorem Ipsum2022-03-15T06:41:37Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>[[w:Lorem ipsum|Lorem ipsum]] dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br />
<noinclude><br />
</noinclude></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:IsDocSubpage&diff=27746Template:IsDocSubpage2022-03-15T06:41:37Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div><onlyinclude><includeonly>{{#ifexpr: (<br />
{{#ifeq:{{lc:{{SUBPAGENAME}}}}|{{lc:{{{override|doc}}}}}|1|0}} or (<br />
{{#ifeq:{{lc:{{#titleparts:{{FULLPAGENAME}}|-1|-2}}}}|{{lc:{{{override|doc}}}}}|1|0}}<br />
and {{#if:{{#invoke:Template translation|getLanguageSubpage}}|1|0}}<br />
)<br />
)<!--<br />
-->|{{{true|1}}}<!--<br />
-->|{{{false|}}}<!--<br />
-->}}</includeonly></onlyinclude><br />
{{Documentation}}<br />
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! --></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Documentation_subpage/en&diff=27744Template:Documentation subpage/en2022-03-15T06:41:36Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div><noinclude><br />
<languages/><br />
</noinclude>{{#switch:<br />
| =<br />
<includeonly><!--<br />
-->{{#if:{{IsDocSubpage|override={{{override|doc}}}|false=}}<br />
| <!--(this template has been transcluded on a /doc or /{{{override}}} page)--><br />
</includeonly><!--<br />
<br />
-->{{#ifeq:{{{doc-notice|show}}} |show<br />
| {{Mbox<br />
| type = notice<br />
| style = margin-bottom:1.0em;<br />
| image = [[File:OOjs UI icon book-ltr.svg|40px|alt=|link=]]<br />
| text =<br />
'''This is a [[w:Wikipedia:Template documentation|documentation]] [[Special:MyLanguage/Help:Subpages|subpage]] for {{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}.'''<br /><!--<br />
-->{{#if:{{{text2|}}}{{{text1|}}}<br />
|It contains usage information, [[Special:MyLanguage/Help:Categories|categories]] and other content that is not part of the original {{{text2|{{{text1}}}}}}.<br />
|It contains usage information, [[Special:MyLanguage/Help:Categories|categories]] and other content that is not part of the original {{SUBJECTSPACE}} page.<br />
}}<br />
}}<br />
}}<!--<br />
<br />
-->{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}<!--<br />
<br />
-->{{#if:{{{inhibit|}}} |<!--(don't categorize)--><br />
| <includeonly><!--<br />
-->{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}<br />
| [[Category:{{#switch:{{SUBJECTSPACE}}<br />
| Template | Project = Template<br />
| Module = Module<br />
| User = User<br />
| #default = MediaWiki<br />
}} documentation pages{{#translation:}}]]<br />
| [[Category:Documentation subpages without corresponding pages{{#translation:}}]]<br />
}}<!--<br />
--></includeonly><br />
}}<!--<br />
<br />
(completing initial #ifeq: at start of template:)<br />
--><includeonly><br />
| <!--(this template has not been transcluded on a /doc or /{{{override}}} page)--><br />
}}<!--<br />
--></includeonly><br />
| #default=<br />
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Documentation subpage|noshift=1|uselang={{int:lang}}}}<br />
}}<noinclude><br />
{{Documentation|content=<br />
<br />
== Usage ==<br />
<br />
Use this template on Template Documentation subpage (/doc).<br />
<br />
== See also ==<br />
*{{tl|Documentation}}<br />
*{{tl|tl}}<br />
<br />
}}<br />
</noinclude></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Documentation_subpage&diff=27742Template:Documentation subpage2022-03-15T06:41:36Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div><includeonly><!--<br />
-->{{#ifeq:{{lc:{{SUBPAGENAME}}}} |{{{override|doc}}}<br />
| <!--(this template has been transcluded on a /doc or /{{{override}}} page)--><br />
</includeonly><!--<br />
<br />
-->{{#ifeq:{{{doc-notice|show}}} |show<br />
| {{Mbox<br />
| type = notice<br />
| style = margin-bottom:1.0em;<br />
| image = [[File:Edit-copy green.svg|40px|alt=|link=]]<br />
| text =<br />
{{strong|This is a [[Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpages|subpage]]}} for {{terminate sentence|{{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}}}<br />It contains usage information, [[Wikipedia:Categorization|categories]] and other content that is not part of the original {{#if:{{{text2|}}} |{{{text2}}} |{{#if:{{{text1|}}} |{{{text1}}} |{{#ifeq:{{SUBJECTSPACE}} |{{ns:User}} |{{lc:{{SUBJECTSPACE}}}} template page |{{#if:{{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page|article}}}}}}}}. <br />
}}<br />
}}<!--<br />
<br />
-->{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}<!--<br />
<br />
-->{{#if:{{{inhibit|}}} |<!--(don't categorize)--><br />
| <includeonly><!--<br />
-->{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}<br />
| [[Category:{{#switch:{{SUBJECTSPACE}} |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]<br />
| [[Category:Documentation subpages without corresponding pages]]<br />
}}<!--<br />
--></includeonly><br />
}}<!--<br />
<br />
(completing initial #ifeq: at start of template:)<br />
--><includeonly><br />
| <!--(this template has not been transcluded on a /doc or /{{{override}}} page)--><br />
}}<!--<br />
--></includeonly><noinclude>{{Documentation}}</noinclude></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Documentation/en&diff=27740Template:Documentation/en2022-03-15T06:41:35Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div><noinclude><br />
<languages/><br />
</noinclude><includeonly>{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}</includeonly><noinclude><br />
{{documentation|content=<br />
<br />
{{Lua|Module:Documentation}}<br />
This template automatically displays a documentation box like the one you are seeing now, of which the content is sometimes transcluded from another page.<br />
It is intended for pages which are [[Special:MyLanguage/Help:Transclusion|transcluded]] in other pages, i.e. templates, whether in the template namespace or not.<br />
<br />
==Usage==<br />
<br />
===Customizing display===<br />
<br />
Overrides exist to customize the output in special cases:<br />
* <nowiki>{{</nowiki>documentation{{!}}'''heading'''=<nowiki>}}</nowiki> - change the text of the "documentation" heading. If this is set to blank, the entire heading line (including the first [edit] link) will also disappear.<br />
<br />
==Rationale==<br />
This template allows any page to use any documentation page, and makes it possible to protect templates while allowing anyone to edit the template's documentation and categories.<br />
It also reduces server resources by circumventing a [[w:Wikipedia:Template limits|technical limitation of templates]] (see a [[:en:Special:Diff/69888944|developer's explanation]]).<br />
<br />
==See also==<br />
* [[w:Template:Documentation subpage]]<br />
* {{tim|Documentation}}<br />
* [[w:Wikipedia:Template documentation]]<br />
<br />
}}<br />
[[Category:Formatting templates{{#translation:}}|Template documentation]]<br />
[[Category:Template documentation{{#translation:}}| ]]<br />
</noinclude><includeonly>{{#if:{{{content|}}}|<br />
[[Category:Template documentation pages{{#translation:}}]]<br />
}}</includeonly></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Documentation&diff=27738Template:Documentation2022-03-15T06:41:35Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}<noinclude><br />
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --><br />
</noinclude></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Clear&diff=27736Template:Clear2022-03-15T06:41:34Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div><div style="clear: {{{1|both}}};"></div><noinclude><br />
{{Documentation}}</noinclude></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:))&diff=27734Template:))2022-03-15T06:41:33Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>}}<noinclude><br />
{{documentation}}[[Category:Workaround templates]]<br />
</noinclude></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:)&diff=27732Template:)2022-03-15T06:41:33Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div><onlyinclude>}</onlyinclude><br />
{{Documentation}}</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:((&diff=27730Template:((2022-03-15T06:41:33Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div>{{<noinclude><br />
{{documentation}}[[Category:Workaround templates]]<br />
</noinclude></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:(&diff=27728Template:(2022-03-15T06:41:32Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div><onlyinclude>{</onlyinclude><br />
{{Documentation}}</div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Template:Quote&diff=27726Template:Quote2022-03-15T06:41:32Z<p>Wikiadmin: 1 revision imported</p>
<hr />
<div><blockquote class="templatequote"><div class="Bug6200">{{{text|{{{quote|{{{1|<noinclude>{{lorem ipsum}}</noinclude><includeonly>{{error|Error: No text given for quotation (or equals sign used in the actual argument to an unnamed parameter)}}</includeonly>}}}}}}}}}</div>{{#if:{{{sign|{{{cite|{{{2|<noinclude>TRUE</noinclude>}}}}}}}}}<br />
|<div class="templatequotecite">&#8212;{{{sign|{{{cite|{{{2|<noinclude>[[Someone's full name|Someone]]</noinclude>}}}}}}}}}{{#if:{{{source|{{{3|<noinclude>TRUE</noinclude>}}}}}}<br />
|,&nbsp;<cite>{{{source|{{{3|<noinclude>Source</noinclude>}}}}}}</cite><br />
}}</div><br />
}}</blockquote><noinclude><br />
{{documentation}}<br />
<!-- Add cats and interwikis to the /doc subpage, not here! --><br />
</noinclude></div>Wikiadminhttps://www.crewsgenealogy.com/index.php?title=Northern_Christian_Advocate&diff=27724Northern Christian Advocate2022-03-15T06:26:26Z<p>Wikiadmin: </p>
<hr />
<div>==Notes==<br />
* https://chroniclingamerica.loc.gov/lccn/sn83030707/<br />
** mentions the Northern Christian Advocate as a predecessor of the Christian Advocate.<br />
** this appears to be an automated type listing, so may not be accurate. <br />
* oldest record I can currently find - [http://auburn.advantage-preservation.com/viewer/?k=%22northern%20christian%20advocate%22&i=f&d=01011817-12312021&m=between&ord=k1&fn=northern_christian_advocate_usa_new_york_auburn_18630624_english_1&df=1&dt=10 June 1862]<br />
* misc mentions of the [[Northern Christian Advocate]]<br />
** https://en.wikipedia.org/wiki/William_Hosmer<br />
<br />
==Editors==<br />
* 1841 - 1842: John E. Robie<ref>{{Citation:History of the East Genesee Annual Conference - of the Methodist Episcopal Church.pdf/Citation Listing}}, Page 33</ref><br />
* 1842 - 1844: Freeborn C. Hibbard<ref>{{Citation:History of the East Genesee Annual Conference - of the Methodist Episcopal Church.pdf/Citation Listing}}, Page 33</ref><br />
* 1844 - 1856: William Hosmer<ref>https://en.wikipedia.org/wiki/William_Hosmer</ref><br />
* 1856 - 1860: Freeborn Garretson Hibbard<ref>https://en.wikipedia.org/wiki/Freeborn_Garretson_Hibbard</ref><br />
* 1900 - 1907: [[Bennett E Titus]]<ref>{{Citation:Northern Christian Advocate 1907-05-16 3-1.png/Citation Listing}}</ref><br />
<br />
==Research Log==<br />
{{searched for |term="Northern Christian Advocate" |date= 14 March 2022 |page=Google |url=https://www.google.com/search?q=northern+christian+advocate&sxsrf=APq-WBsevaTFq-2FQjs9xNE64SbqB5XUzA%3A1647271787381&source=hp&ei=a18vYrnhEf3TkPIPjeWSsA0&iflsig=AHkkrS4AAAAAYi9te_wRpClBtdxvJFIezEr5oy9DL89o&oq=north&gs_lcp=Cgdnd3Mtd2l6EAMYADIECCMQJzIECAAQQzIECAAQQzIHCC4Q1AIQQzIECAAQQzILCC4QxwEQrwEQkQIyBwgAELEDEEMyBQgAEJECMggIABCABBCxAzIFCAAQgAQ6DgguEIAEELEDEIMBENQCOg4ILhCABBCxAxDHARDRAzoICAAQsQMQgwE6CwguEIAEELEDENQCOg0ILhCxAxDHARDRAxBDOg4ILhCABBCxAxDHARCjAjoKCC4QxwEQrwEQQ1AAWIQEYOUQaABwAHgAgAGQAYgBvgWSAQMwLjWYAQCgAQE&sclient=gws-wiz }} <br />
{{Search result <br />
|accessed date = 24 March 2022<br />
|alt = <br />
|document date = 23 March 2022<br />
|external source name = About Northern Christian Advocate. [volume] (Auburn, N.Y.) 1844-1917<br />
|internal document name = Library of Congress<br />
|name = Northern Christian Advocate<br />
|note = <br />
|url = https://chroniclingamerica.loc.gov/lccn/sn83030707/<br />
}}<br />
<br />
==Documents==<br />
{{citation section/master}}<br />
<br />
==References==<br />
<references /></div>Wikiadmin