https://wiki.c3d2.de/w/index.php?title=Modul:About&feed=atom&action=history
Modul:About - Versionsgeschichte
2024-03-28T12:40:41Z
Versionsgeschichte dieser Seite in C3D2
MediaWiki 1.40.2
https://wiki.c3d2.de/w/index.php?title=Modul:About&diff=26825&oldid=prev
Eri!: 1 Version importiert
2017-11-26T14:07:25Z
<p>1 Version importiert</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="de">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Version vom 26. November 2017, 14:07 Uhr</td>
</tr><tr><td colspan="2" class="diff-notice" lang="de"><div class="mw-diff-empty">(kein Unterschied)</div>
</td></tr></table>
Eri!
https://wiki.c3d2.de/w/index.php?title=Modul:About&diff=26824&oldid=prev
*>Nihiltres: Updated from sandbox with support for otherText option passthrough
2016-07-16T21:33:40Z
<p>Updated from sandbox with support for otherText option passthrough</p>
<p><b>Neue Seite</b></p><div>local mArguments --initialize lazily<br />
local mHatnote = require('Module:Hatnote')<br />
local mHatList = require('Module:Hatnote list')<br />
local libraryUtil = require('libraryUtil')<br />
local checkType = libraryUtil.checkType<br />
local p = {}<br />
<br />
function p.about (frame)<br />
-- A passthrough that gets args from the frame and all<br />
<br />
mArguments = require('Module:Arguments')<br />
args = mArguments.getArgs(frame)<br />
return p._about(args)<br />
end<br />
<br />
<br />
function p._about (args, options)<br />
-- Produces "about" hatnote.<br />
<br />
-- Type checks and defaults<br />
checkType('_about', 1, args, 'table', true)<br />
args = args or {}<br />
checkType('_about', 2, options, 'table', true)<br />
options = options or {}<br />
local defaultOptions = {<br />
aboutForm = 'This %s is about %s. ',<br />
defaultPageType = 'page',<br />
namespace = mw.title.getCurrentTitle().namespace,<br />
otherText = nil, --included for complete list<br />
pageTypesByNamespace = {<br />
[0] = 'article',<br />
[14] = 'category'<br />
},<br />
sectionString = 'section'<br />
}<br />
for k, v in pairs(defaultOptions) do<br />
if options[k] == nil then options[k] = v end<br />
end<br />
<br />
-- Set initial "about" string<br />
local pageType = (args.section and options.sectionString) or<br />
options.pageTypesByNamespace[options.namespace] or<br />
options.defaultPageType<br />
local about = ''<br />
if args[1] then<br />
about = string.format(options.aboutForm, pageType, args[1])<br />
end<br />
<br />
--Allow passing through certain options<br />
local fsOptions = {<br />
otherText = options.otherText<br />
}<br />
<br />
-- Set for-see list<br />
local forSee = mHatList._forSee(args, 2, fsOptions)<br />
<br />
-- Concatenate and return<br />
return mHatnote._hatnote(about .. forSee)<br />
end<br />
<br />
return p</div>
*>Nihiltres