https://wiki.seshstation.com/index.php?title=Module:If_preview/configuration&feed=atom&action=history
Module:If preview/configuration - Revision history
2024-03-29T12:23:28Z
Revision history for this page on the wiki
MediaWiki 1.36.1
https://wiki.seshstation.com/index.php?title=Module:If_preview/configuration&diff=650&oldid=prev
SESHstation: 1 revision imported
2021-11-21T12:00:10Z
<p>1 revision imported</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 12:00, 21 November 2021</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>
SESHstation
https://wiki.seshstation.com/index.php?title=Module:If_preview/configuration&diff=649&oldid=prev
mdl>Izno: Protected "Module:If preview/configuration": match parent ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))
2021-05-05T18:56:00Z
<p>Protected "<a href="/Module:If_preview/configuration" title="Module:If preview/configuration">Module:If preview/configuration</a>": match parent ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</p>
<p><b>New page</b></p><div>--[[<br />
We perform the actual check for whether this is a preview here since<br />
preprocessing is relatively expensive.<br />
]]<br />
local frame = mw.getCurrentFrame()<br />
<br />
local function is_preview()<br />
local revision_id = frame:preprocess('{{REVISIONID}}')<br />
-- {{REVISIONID}} is usually the empty string when previewed.<br />
-- I don't know why we're checking for nil but hey, maybe someday things<br />
-- would have broken<br />
return revision_id == nil or revision_id == ''<br />
end<br />
<br />
local function templatestyles()<br />
return frame:extensionTag{<br />
name = 'templatestyles', args = { src = 'Module:If preview/styles.css' }<br />
}<br />
end<br />
<br />
return {<br />
preview = is_preview(),<br />
templatestyles = templatestyles(),<br />
warning_infrastructure = '%s<div class="preview-warning"><strong>Preview warning:</strong> %s</div>',<br />
missing_warning = 'The template has no warning text. Please add a warning.'<br />
}</div>
mdl>Izno