Page MenuHomeMiraheze

Wikipedia-20180205173907.xml

Authored By
Rob_Kam
Feb 5 2018, 17:43
Size
895 KB
Referenced Files
None
Subscribers
None

Wikipedia-20180205173907.xml

This file is larger than 256 KB, so syntax highlighting was skipped.
<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.10/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.10/ http://www.mediawiki.org/xml/export-0.10.xsd" version="0.10" xml:lang="en">
<siteinfo>
<sitename>Wikipedia</sitename>
<dbname>enwiki</dbname>
<base>https://en.wikipedia.org/wiki/Main_Page</base>
<generator>MediaWiki 1.31.0-wmf.17</generator>
<case>first-letter</case>
<namespaces>
<namespace key="-2" case="first-letter">Media</namespace>
<namespace key="-1" case="first-letter">Special</namespace>
<namespace key="0" case="first-letter" />
<namespace key="1" case="first-letter">Talk</namespace>
<namespace key="2" case="first-letter">User</namespace>
<namespace key="3" case="first-letter">User talk</namespace>
<namespace key="4" case="first-letter">Wikipedia</namespace>
<namespace key="5" case="first-letter">Wikipedia talk</namespace>
<namespace key="6" case="first-letter">File</namespace>
<namespace key="7" case="first-letter">File talk</namespace>
<namespace key="8" case="first-letter">MediaWiki</namespace>
<namespace key="9" case="first-letter">MediaWiki talk</namespace>
<namespace key="10" case="first-letter">Template</namespace>
<namespace key="11" case="first-letter">Template talk</namespace>
<namespace key="12" case="first-letter">Help</namespace>
<namespace key="13" case="first-letter">Help talk</namespace>
<namespace key="14" case="first-letter">Category</namespace>
<namespace key="15" case="first-letter">Category talk</namespace>
<namespace key="100" case="first-letter">Portal</namespace>
<namespace key="101" case="first-letter">Portal talk</namespace>
<namespace key="108" case="first-letter">Book</namespace>
<namespace key="109" case="first-letter">Book talk</namespace>
<namespace key="118" case="first-letter">Draft</namespace>
<namespace key="119" case="first-letter">Draft talk</namespace>
<namespace key="446" case="first-letter">Education Program</namespace>
<namespace key="447" case="first-letter">Education Program talk</namespace>
<namespace key="710" case="first-letter">TimedText</namespace>
<namespace key="711" case="first-letter">TimedText talk</namespace>
<namespace key="828" case="first-letter">Module</namespace>
<namespace key="829" case="first-letter">Module talk</namespace>
<namespace key="2300" case="first-letter">Gadget</namespace>
<namespace key="2301" case="first-letter">Gadget talk</namespace>
<namespace key="2302" case="case-sensitive">Gadget definition</namespace>
<namespace key="2303" case="case-sensitive">Gadget definition talk</namespace>
</namespaces>
</siteinfo>
<page>
<title>Template:!!</title>
<ns>10</ns>
<id>5994763</id>
<revision>
<id>632419369</id>
<parentid>632419294</parentid>
<timestamp>2014-11-04T14:12:38Z</timestamp>
<contributor>
<username>Pigsonthewing</username>
<id>26248</id>
</contributor>
<comment>stet</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="44">||&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>o9jjx0pl1nk3xv3maqyewo5ud79pa5g</sha1>
</revision>
</page>
<page>
<title>Template:!((</title>
<ns>10</ns>
<id>36487505</id>
<revision>
<id>620194580</id>
<parentid>620193684</parentid>
<timestamp>2014-08-07T05:34:55Z</timestamp>
<contributor>
<username>Plastikspork</username>
<id>5075409</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:!((: [[WP:High-risk templates|Highly visible template]] ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="42">[[&lt;noinclude&gt;{{documentation}}&lt;/noinclude&gt;</text>
<sha1>kx6wfr2em4x51ldy401n0q58z3lvxb8</sha1>
</revision>
</page>
<page>
<title>Template:))!</title>
<ns>10</ns>
<id>36487511</id>
<revision>
<id>620194518</id>
<parentid>620193376</parentid>
<timestamp>2014-08-07T05:34:06Z</timestamp>
<contributor>
<username>Plastikspork</username>
<id>5075409</id>
</contributor>
<minor/>
<comment>Protected Template:))!: [[WP:High-risk templates|Highly visible template]] ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="42">]]&lt;noinclude&gt;{{documentation}}&lt;/noinclude&gt;</text>
<sha1>9eedfl8595z67nnifo09swq3y20vmvs</sha1>
</revision>
</page>
<page>
<title>Template:-</title>
<ns>10</ns>
<id>1011446</id>
<redirect title="Template:Clear" />
<revision>
<id>769942854</id>
<parentid>769932535</parentid>
<timestamp>2017-03-12T14:41:31Z</timestamp>
<contributor>
<username>Paine Ellsworth</username>
<id>9092818</id>
</contributor>
<comment>add [[WP:RCAT|rcat]]</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="112">#REDIRECT [[Template:Clear]]
{{Redirect category shell|
{{R from modification}}
{{R from template shortcut}}
}}</text>
<sha1>7ftw22ju220o4mhfryrhdhdanb4vzun</sha1>
</revision>
</page>
<page>
<title>Template:1/2</title>
<ns>10</ns>
<id>25537134</id>
<revision>
<id>636441408</id>
<parentid>588068481</parentid>
<timestamp>2014-12-03T10:10:20Z</timestamp>
<contributor>
<username>Edokter</username>
<id>1624037</id>
</contributor>
<minor/>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="54">{{frac|1|2}}&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>ih7cqrj9jqgnsdovekpg7i95d9hqyyo</sha1>
</revision>
</page>
<page>
<title>Template:=</title>
<ns>10</ns>
<id>5762361</id>
<revision>
<id>690395465</id>
<parentid>579820445</parentid>
<timestamp>2015-11-13T02:17:24Z</timestamp>
<contributor>
<username>Fuhghettaboutit</username>
<id>665998</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:=: when I changed this to add template editors, I didn't realize it had cascding protection—so all my change did was make it appear as if it could be edited by them ([Edit=Allow only administrators] (indefinite) [...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="43">=&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>81y2jvjxw3y0febsqx5xbr4ikdc7nr6</sha1>
</revision>
</page>
<page>
<title>Template:Aligned table</title>
<ns>10</ns>
<id>41873333</id>
<revision>
<id>745333196</id>
<parentid>659217541</parentid>
<timestamp>2016-10-20T14:49:42Z</timestamp>
<contributor>
<username>Frietjes</username>
<id>13791031</id>
</contributor>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="110">{{&lt;includeonly&gt;safesubst:&lt;/includeonly&gt;#invoke:aligned table|table}}&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>2blrypc09jwqw1omu8ienw215a7iiri</sha1>
</revision>
</page>
<page>
<title>Template:Anchor</title>
<ns>10</ns>
<id>2236346</id>
<revision>
<id>629642299</id>
<parentid>586910254</parentid>
<timestamp>2014-10-14T23:35:24Z</timestamp>
<contributor>
<username>Frietjes</username>
<id>13791031</id>
</contributor>
<comment>add {{{|safesubst:}}} per talk</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="157">{{{{{|safesubst:}}}#invoke:anchor|main}}&lt;noinclude&gt;
{{Documentation}}
&lt;!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --&gt;
&lt;/noinclude&gt;</text>
<sha1>cjfgfxc6tpjgpyvzhnbfkngu6u3spzc</sha1>
</revision>
</page>
<page>
<title>Template:Asbox</title>
<ns>10</ns>
<id>13431031</id>
<revision>
<id>644713987</id>
<parentid>644575756</parentid>
<timestamp>2015-01-29T16:00:41Z</timestamp>
<contributor>
<username>Od Mishehu</username>
<id>461626</id>
</contributor>
<comment>let's see if it works now</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="163">&lt;includeonly&gt;{{#invoke:Asbox|main}}&lt;/includeonly&gt;&lt;noinclude&gt;
{{documentation}}
&lt;!-- Add categories to the /doc subpage and interwikis to Wikidata. --&gt;
&lt;/noinclude&gt;</text>
<sha1>ksm2ygwb5s1f3x9t0pn08ktjf3admyc</sha1>
</revision>
</page>
<page>
<title>Template:Asbox/stubtree</title>
<ns>10</ns>
<id>24115492</id>
<revision>
<id>756272865</id>
<parentid>736859310</parentid>
<timestamp>2016-12-23T03:20:31Z</timestamp>
<contributor>
<username>Enterprisey</username>
<id>16663390</id>
</contributor>
<comment>+docs</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="363">{{#ifeq:{{{1|{{PAGENAME}}}}}|Stub||{{#invoke:Asbox stubtree|subtree|pagename={{PAGENAME}}}}}}&lt;noinclude&gt;
{{doc|content=
{{Lua|Module:Asbox stubtree}}
This template exposes a module, [[Module:Asbox stubtree]], used in the implementation of the parent template, {{tl|Asbox}}. The module creates stub hierarchy boxes for stub template documentations.
}}
&lt;/noinclude&gt;</text>
<sha1>60np1ua8tf3e72osncg5sr2ptjg91kk</sha1>
</revision>
</page>
<page>
<title>Template:Asbox/templatepage</title>
<ns>10</ns>
<id>24064605</id>
<revision>
<id>675608606</id>
<parentid>675596766</parentid>
<timestamp>2015-08-11T16:35:45Z</timestamp>
<contributor>
<username>Edokter</username>
<id>1624037</id>
</contributor>
<minor/>
<comment>Reverted edits by [[Special:Contribs/M777|M777]] ([[User talk:M777|talk]]) to last version by Quest for Truth</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="91">{{#invoke:Asbox|templatepage&lt;noinclude&gt;|demo=doc|subject={{lua|Module:Asbox}}&lt;/noinclude&gt;}}</text>
<sha1>9lbbo5rpy4k38td0x29d0v4mlzflop5</sha1>
</revision>
</page>
<page>
<title>Template:Audio</title>
<ns>10</ns>
<id>1501273</id>
<revision>
<id>804355176</id>
<parentid>690278796</parentid>
<timestamp>2017-10-08T13:04:29Z</timestamp>
<contributor>
<username>Nardog</username>
<id>5908908</id>
</contributor>
<comment>implement a tracking category</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="769">&lt;span class=&quot;unicode haudio&quot;&gt;&lt;span class=&quot;fn&quot;&gt;&lt;span style=&quot;white-space:nowrap&quot;&gt;[[File:Loudspeaker.svg|11px|link=File:{{{1}}}|About this sound]]&amp;nbsp;&lt;/span&gt;[[:Media:{{{1|}}}|{{{2|{{{1|}}}}}}]]&lt;/span&gt;{{#ifeq:{{{help|}}}|no||&amp;nbsp;&lt;small class=&quot;metadata audiolinkinfo&quot; style=&quot;cursor:help;&quot;&gt;([[Wikipedia:Media help|&lt;span style=&quot;cursor:help;&quot;&gt;help&lt;/span&gt;]]·[[:File:{{{1|}}}|&lt;span style=&quot;cursor:help;&quot;&gt;info&lt;/span&gt;]])&lt;/small&gt;}}{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Articles with hAudio microformats]]}}&lt;/span&gt;&lt;!-- tracking category begin --&gt;{{#if:{{{1|}}}|{{#ifexist:Media:{{{1}}}||[[Category:Pages linking to missing files]]}}}}&lt;!-- tracking category end --&gt;&lt;noinclude&gt;
{{documentation}}&lt;!-- Add categories and interwikis to the /doc subpage, not here! --&gt;
&lt;/noinclude&gt;</text>
<sha1>r2t0tmfgdey2t8cnjkn9x2fux9sit2i</sha1>
</revision>
</page>
<page>
<title>Template:Aye</title>
<ns>10</ns>
<id>4894684</id>
<revision>
<id>579822072</id>
<parentid>434910756</parentid>
<timestamp>2013-11-02T02:47:04Z</timestamp>
<contributor>
<username>Fuhghettaboutit</username>
<id>665998</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:Aye: Enable access by template editors ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="131">&lt;onlyinclude&gt;[[File:Green check.svg|13px|alt=Green tick|link=]]&lt;SPAN STYLE=&quot;display:none&quot;&gt;Y&lt;/SPAN&gt;&lt;/onlyinclude&gt;
{{documentation}}</text>
<sha1>5gycadl77izrbytpnok054pl5fozou2</sha1>
</revision>
</page>
<page>
<title>Template:Big</title>
<ns>10</ns>
<id>5816860</id>
<revision>
<id>750708882</id>
<parentid>750708828</parentid>
<timestamp>2016-11-21T11:09:43Z</timestamp>
<contributor>
<username>Materialscientist</username>
<id>7852030</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Big]]&quot; ([Edit=Require template editor access] (indefinite) [Move=Require administrator access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="177">&lt;span style=&quot;font-size: 120%;&quot;&gt;{{{1}}}&lt;/span&gt;&lt;noinclude&gt;
{{Documentation}}
&lt;!-- Please add categories to the /doc subpage; interwikis go to Wikidata, thank you. --&gt;
&lt;/noinclude&gt;</text>
<sha1>h2e0f82fasmre1wg7mmooho2xrnyw8f</sha1>
</revision>
</page>
<page>
<title>Template:Bigmath</title>
<ns>10</ns>
<id>17789023</id>
<revision>
<id>517552400</id>
<parentid>400489395</parentid>
<timestamp>2012-10-13T10:42:43Z</timestamp>
<contributor>
<username>Edokter</username>
<id>1624037</id>
</contributor>
<minor/>
<comment>format</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="77">{{math|size=165%|{{{1|}}}{{{2|}}}}}&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>7rhjsekryk1w85n4jd27qhsn1gg8sq4</sha1>
</revision>
</page>
<page>
<title>Template:Bug</title>
<ns>10</ns>
<id>4017378</id>
<revision>
<id>675609216</id>
<parentid>675605807</parentid>
<timestamp>2015-08-11T16:38:36Z</timestamp>
<contributor>
<username>Edokter</username>
<id>1624037</id>
</contributor>
<minor/>
<comment>Reverted edits by [[Special:Contribs/M777|M777]] ([[User talk:M777|talk]]) to last version by Multichill</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="368">&lt;noinclude&gt;{{Deprecated template|Bug|Phab|date=February 2015}}&lt;/noinclude&gt;[[bugzilla:{{{1}}}|bug {{{1}}}]]{{#if:{{{comment|}}}|&amp;#32;(comment [[bugzilla:{{{1}}}&amp;#35;c{{{comment}}}|#{{{comment}}}]])}}{{#if:{{{label|}}}|&amp;#32;({{{label}}})}}&lt;span style=&quot;display:none;&quot;&gt;http://bugzilla.wikimedia.org/show_bug.cgi?id={{{1}}}&lt;/span&gt;&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>m8h9a40lglba2notu9mqk6n6ldalv6t</sha1>
</revision>
</page>
<page>
<title>Template:!!/doc</title>
<ns>10</ns>
<id>7287732</id>
<revision>
<id>775446660</id>
<parentid>732644492</parentid>
<timestamp>2017-04-14T22:52:02Z</timestamp>
<contributor>
<ip>71.208.236.238</ip>
</contributor>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="1613">{{Documentation subpage}}
{{High-risk|170,000+}}
This is an auxiliary [[Help:Template|template]] that allows one to encode &quot;&lt;code&gt;||&lt;/code&gt;&quot; (two pipes or [[vertical bar]]s) within template parameters. If it is '''unnecessary''' to get a &quot;&lt;code&gt;||&lt;/code&gt;&quot;, it is better to use &quot;&lt;code&gt;&amp;amp;#124;&amp;amp;#124;&lt;/code&gt;&quot;. However the &quot;&lt;code&gt;||&lt;/code&gt;&quot; delimiter for a [[Wikipedia:Manual of Style/Tables|Wiki table]] has to be [[:Category:Escape character templates|escaped by a template]] if it is used within a template.
== Notes ==
There is usually no such problem with &quot;&lt;code&gt;!!&lt;/code&gt;&quot; (exclamation marks). This problem only affects &quot;&lt;code&gt;||&lt;/code&gt;&quot; (vertical bars) in conjunction with the [[m:Help:Parameter default]] mechanism within tables. However, in table rows starting with &quot;&lt;code&gt;!&lt;/code&gt;&quot; there can be problems with &quot;&lt;code&gt;!!&lt;/code&gt;&quot; being interpreted as a cell separator. Try replacing it with &quot;&lt;code&gt;&amp;amp;#33;&amp;amp;#33;&lt;/code&gt;&quot;.
This template cannot be [[Wikipedia:Substitution|substituted]].
== Parameters ==
&lt;TemplateData&gt;{
&quot;description&quot;: &quot;Escapes double pipe characters within template parameters&quot;,
&quot;params&quot;: {}
}&lt;/TemplateData&gt;
== See also ==
* [[mw:Help:Template#A parameter value containing a pipe character]]
* {{tlx|(!}} Open table
* {{tlx|!}} this is not a template but a &quot;magic word&quot; see [[mw:Help:Magic words#Other]] and {{tim|!}}
* {{tlx|!-}} Start of a table row
* {{tlx|!)}} Close table
*[[Wikipedia:Conditional tables]]
&lt;includeonly&gt;
[[Category:Wikipedia character-substitution templates]]
[[Category:Table templates]]
[[Category:Template namespace templates]]
&lt;/includeonly&gt;</text>
<sha1>ruym3yq8y7ueunjc0dearnzeww6k7l6</sha1>
</revision>
</page>
<page>
<title>Template:Documentation</title>
<ns>10</ns>
<id>13529042</id>
<revision>
<id>714754089</id>
<parentid>714753814</parentid>
<timestamp>2016-04-11T17:18:54Z</timestamp>
<contributor>
<username>Rich Farmbrough</username>
<id>82835</id>
</contributor>
<comment>Undid revision 714753814 by [[Special:Contributions/Rich Farmbrough|Rich Farmbrough]] ([[User talk:Rich Farmbrough|talk]])</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="182">{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}&lt;noinclude&gt;
&lt;!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --&gt;
&lt;/noinclude&gt;</text>
<sha1>o4ddn701tao1ufdnkxe1wdgz5b5ga84</sha1>
</revision>
</page>
<page>
<title>Template:Documentation subpage</title>
<ns>10</ns>
<id>7890381</id>
<revision>
<id>617432645</id>
<parentid>608599904</parentid>
<timestamp>2014-07-18T09:37:22Z</timestamp>
<contributor>
<username>Sardanaphalus</username>
<id>427947</id>
</contributor>
<comment>Added 1.0em margin so template looks less a part of subsequent content and amended code layout -- hope neither of these too controversial</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="1667">&lt;includeonly&gt;&lt;!--
--&gt;{{#ifeq:{{lc:{{SUBPAGENAME}}}} |{{{override|doc}}}
| &lt;!--(this template has been transcluded on a /doc or /{{{override}}} page)--&gt;
&lt;/includeonly&gt;&lt;!--
--&gt;{{#ifeq:{{{doc-notice|show}}} |show
| {{Mbox
| type = notice
| style = margin-bottom:1.0em;
| image = [[File:Edit-copy green.svg|40px|alt=|link=]]
| text =
'''This is a [[Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpages|subpage]] for {{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}'''.&lt;br /&gt;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}}}}}}}}.
}}
}}&lt;!--
--&gt;{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}&lt;!--
--&gt;{{#if:{{{inhibit|}}} |&lt;!--(don't categorize)--&gt;
| &lt;includeonly&gt;&lt;!--
--&gt;{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}
| [[Category:{{#switch:{{SUBJECTSPACE}} |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
| [[Category:Documentation subpages without corresponding pages]]
}}&lt;!--
--&gt;&lt;/includeonly&gt;
}}&lt;!--
(completing initial #ifeq: at start of template:)
--&gt;&lt;includeonly&gt;
| &lt;!--(this template has not been transcluded on a /doc or /{{{override}}} page)--&gt;
}}&lt;!--
--&gt;&lt;/includeonly&gt;&lt;noinclude&gt;{{Documentation}}&lt;/noinclude&gt;</text>
<sha1>iwoex9r4jjje2jlwm8eygcyef0s6hzx</sha1>
</revision>
</page>
<page>
<title>Template:High-risk</title>
<ns>10</ns>
<id>11453893</id>
<revision>
<id>819682280</id>
<parentid>793779436</parentid>
<timestamp>2018-01-10T18:59:05Z</timestamp>
<contributor>
<username>Primefac</username>
<id>11508456</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:High-risk]]&quot;: [[WP:SEMI|semi-protecting]] highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or con...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="1567">{{ombox
| type = content
| image = [[File:Ambox warning orange.svg|40px|alt=Warning|link=]]
| imageright =
| text =
'''This {{
#switch:{{NAMESPACE}}
|Module=Lua module
|#default=template
}} is used on &lt;span class=&quot;plainlinks&quot;&gt;[https://tools.wmflabs.org/templatecount/index.php?lang=en&amp;namespace={{NAMESPACENUMBER:{{FULLPAGENAME}}}}&amp;name={{urlencode:{{
#switch: {{SUBPAGENAME}}
| doc | sandbox = {{BASEPAGENAME}}
| #default = {{PAGENAME}}
}}}} {{#if:{{{1|}}}|{{formatnum:{{{1}}}}}|a very large number of}} pages]&lt;/span&gt;.'''&lt;br /&gt;To avoid large-scale disruption and unnecessary server load, any changes to this {{
#switch:{{NAMESPACE}}
|Module=module
|#default=template
}} should first be tested in its [[{{
#switch: {{SUBPAGENAME}}
| doc | sandbox = {{SUBJECTSPACE}}:{{BASEPAGENAME}}
| #default = {{SUBJECTPAGENAME}}
}}/sandbox|/sandbox]] or [[{{
#switch: {{SUBPAGENAME}}
| doc | sandbox = {{SUBJECTSPACE}}:{{BASEPAGENAME}}
| #default = {{SUBJECTPAGENAME}}
}}/testcases|/testcases]] subpages{{
#switch:{{NAMESPACE}}
|Module=.
|#default=&amp;#32;or in your own [[Wikipedia:Subpages#How to create user subpages|user subpage]].
}} The tested changes can then be added to this page in a single edit. Please consider discussing any changes {{#if:{{{2|}}}|at [[{{{2}}}]]|on the [[{{
#switch: {{SUBPAGENAME}}
| doc | sandbox = {{TALKSPACE}}:{{BASEPAGENAME}}
| #default = {{TALKPAGENAME}}
}}|talk page]]}} before implementing them.
}}&lt;noinclude&gt;
{{Documentation}}
&lt;!-- Add categories to the /doc subpage; interwikis go to Wikidata, thank you! --&gt;
&lt;/noinclude&gt;</text>
<sha1>giefz1gm6mqvskshl7su66k8llchhwq</sha1>
</revision>
</page>
<page>
<title>Template:Ombox</title>
<ns>10</ns>
<id>17522403</id>
<revision>
<id>577969039</id>
<parentid>463278061</parentid>
<timestamp>2013-10-20T12:45:08Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<comment>switch to Lua version</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="146">{{#invoke:Message box|ombox}}&lt;noinclude&gt;
{{documentation}}
&lt;!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --&gt;
&lt;/noinclude&gt;</text>
<sha1>1o93yrjvq6v2ylug2k0uaaltljurje2</sha1>
</revision>
</page>
<page>
<title>Template:Resize</title>
<ns>10</ns>
<id>7736359</id>
<revision>
<id>772120884</id>
<parentid>634340879</parentid>
<timestamp>2017-03-25T12:38:46Z</timestamp>
<contributor>
<username>Jo-Jo Eumerus</username>
<id>17449355</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Resize]]&quot;: Allowing template editors on some templates with full protection dating back to pre-[[WP:TPROT|TPROT]] times which aren't too often or too sensitively used. ([Edit=Require template editor access] (ind...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="251">{{#if:{{{2|}}}
|&lt;span style=&quot;font-size:{{{1|}}};&quot;&gt;{{{2|}}}&lt;/span&gt;
|&lt;span style=&quot;font-size:90%;&quot;&gt;{{{1}}}&lt;/span&gt;
}}&lt;noinclude&gt;
{{documentation}}
{{Resize/TemplateData}}
&lt;!--PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS--&gt;
&lt;/noinclude&gt;</text>
<sha1>8vlkuf84dyzx2md9so6zxdwn47bheg6</sha1>
</revision>
</page>
<page>
<title>Template:Smaller</title>
<ns>10</ns>
<id>5117873</id>
<revision>
<id>668584667</id>
<parentid>662442951</parentid>
<timestamp>2015-06-25T07:36:48Z</timestamp>
<contributor>
<username>Salix alba</username>
<id>212526</id>
</contributor>
<comment>needs a separate TemplateData page so works with VE</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="102">{{Resize|90%|{{{1}}}}}&lt;noinclude&gt;
{{Documentation|Template:Resize/doc}}
{{/TemplateData}}
&lt;/noinclude&gt;</text>
<sha1>k1qtrx9lyxt4z46c4w03964r8vs2pzc</sha1>
</revision>
</page>
<page>
<title>Template:Tim</title>
<ns>10</ns>
<id>3318104</id>
<revision>
<id>775470198</id>
<parentid>775470141</parentid>
<timestamp>2017-04-15T02:32:48Z</timestamp>
<contributor>
<ip>86.148.234.55</ip>
</contributor>
<comment>Undid revision 775470141 by [[Special:Contributions/86.148.234.55|86.148.234.55]] ([[User talk:86.148.234.55|talk]])</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="225">[[m:Template:{{{1|{{PAGENAME}}}}}]]&amp;nbsp;{{smaller|([[m:Special:Whatlinkshere/Template:{{{1|{{PAGENAME}}}}}|backlinks]] [{{fullurl:m:Template:{{{1|{{PAGENAME}}}}}|action=edit}} edit])}}&lt;noinclude&gt;{{Documentation}}&lt;/noinclude&gt;</text>
<sha1>1dt53co25p7j5yi61n5x4n80eyyc5b5</sha1>
</revision>
</page>
<page>
<title>Template:Tlx</title>
<ns>10</ns>
<id>4497810</id>
<revision>
<id>821674175</id>
<parentid>618336566</parentid>
<timestamp>2018-01-21T23:12:17Z</timestamp>
<contributor>
<username>Redrose64</username>
<id>9612106</id>
</contributor>
<comment>[[MOS:ELLIPSIS]]</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="1051">&lt;includeonly&gt;&lt;!--
--&gt;&lt;code&gt;&lt;!--
--&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt;{{#if:{{{subst|}}} |[[Help:Substitution|subst]]:}}&lt;!--
--&gt;[[{{{LANG|}}}{{{SISTER|}}}{{ns:Template}}:{{{1|}}}|{{{1|}}}]]&lt;!--
--&gt;{{#if:{{{2|}}} |&amp;#124;{{{2}}}}}&lt;!--
--&gt;{{#if:{{{3|}}} |&amp;#124;{{{3}}}}}&lt;!--
--&gt;{{#if:{{{4|}}} |&amp;#124;{{{4}}}}}&lt;!--
--&gt;{{#if:{{{5|}}} |&amp;#124;{{{5}}}}}&lt;!--
--&gt;{{#if:{{{6|}}} |&amp;#124;{{{6}}}}}&lt;!--
--&gt;{{#if:{{{7|}}} |&amp;#124;{{{7}}}}}&lt;!--
--&gt;{{#if:{{{8|}}} |&amp;#124;{{{8}}}}}&lt;!--
--&gt;{{#if:{{{9|}}} |&amp;#124;{{{9}}}}}&lt;!--
--&gt;{{#if:{{{10|}}} |&amp;#124;{{{10}}}}}&lt;!--
--&gt;{{#if:{{{11|}}} |&amp;#124;{{{11}}}}}&lt;!--
--&gt;{{#if:{{{12|}}} |&amp;#124;''...''}}&lt;!--
--&gt;&lt;nowiki&gt;}}&lt;/nowiki&gt;&lt;!--
--&gt;&lt;/code&gt;&lt;!--
--&gt;&lt;/includeonly&gt;&lt;noinclude&gt;
{{Documentation}}&lt;/noinclude&gt;</text>
<sha1>0dyhbuugzgzyax8gcf5l4wyycg4mps7</sha1>
</revision>
</page>
<page>
<title>Module:Arguments</title>
<ns>828</ns>
<id>41298065</id>
<revision>
<id>696500078</id>
<parentid>668829606</parentid>
<timestamp>2015-12-23T16:07:27Z</timestamp>
<contributor>
<username>Xaosflux</username>
<id>502540</id>
</contributor>
<minor/>
<comment>Changed protection level of Module:Arguments: used in the mediawiki interface ex: [[MediaWiki:Watchlist-details]] ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="10054">-- This module provides easy processing of arguments passed to Scribunto from
-- #invoke. It is intended for use by other Lua modules, and should not be
-- called from #invoke directly.
local libraryUtil = require('libraryUtil')
local checkType = libraryUtil.checkType
local arguments = {}
-- Generate four different tidyVal functions, so that we don't have to check the
-- options every time we call it.
local function tidyValDefault(key, val)
if type(val) == 'string' then
val = val:match('^%s*(.-)%s*$')
if val == '' then
return nil
else
return val
end
else
return val
end
end
local function tidyValTrimOnly(key, val)
if type(val) == 'string' then
return val:match('^%s*(.-)%s*$')
else
return val
end
end
local function tidyValRemoveBlanksOnly(key, val)
if type(val) == 'string' then
if val:find('%S') then
return val
else
return nil
end
else
return val
end
end
local function tidyValNoChange(key, val)
return val
end
local function matchesTitle(given, title)
local tp = type( given )
return (tp == 'string' or tp == 'number') and mw.title.new( given ).prefixedText == title
end
local translate_mt = { __index = function(t, k) return k end }
function arguments.getArgs(frame, options)
checkType('getArgs', 1, frame, 'table', true)
checkType('getArgs', 2, options, 'table', true)
frame = frame or {}
options = options or {}
--[[
-- Set up argument translation.
--]]
options.translate = options.translate or {}
if getmetatable(options.translate) == nil then
setmetatable(options.translate, translate_mt)
end
if options.backtranslate == nil then
options.backtranslate = {}
for k,v in pairs(options.translate) do
options.backtranslate[v] = k
end
end
if options.backtranslate and getmetatable(options.backtranslate) == nil then
setmetatable(options.backtranslate, {
__index = function(t, k)
if options.translate[k] ~= k then
return nil
else
return k
end
end
})
end
--[[
-- Get the argument tables. If we were passed a valid frame object, get the
-- frame arguments (fargs) and the parent frame arguments (pargs), depending
-- on the options set and on the parent frame's availability. If we weren't
-- passed a valid frame object, we are being called from another Lua module
-- or from the debug console, so assume that we were passed a table of args
-- directly, and assign it to a new variable (luaArgs).
--]]
local fargs, pargs, luaArgs
if type(frame.args) == 'table' and type(frame.getParent) == 'function' then
if options.wrappers then
--[[
-- The wrappers option makes Module:Arguments look up arguments in
-- either the frame argument table or the parent argument table, but
-- not both. This means that users can use either the #invoke syntax
-- or a wrapper template without the loss of performance associated
-- with looking arguments up in both the frame and the parent frame.
-- Module:Arguments will look up arguments in the parent frame
-- if it finds the parent frame's title in options.wrapper;
-- otherwise it will look up arguments in the frame object passed
-- to getArgs.
--]]
local parent = frame:getParent()
if not parent then
fargs = frame.args
else
local title = parent:getTitle():gsub('/sandbox$', '')
local found = false
if matchesTitle(options.wrappers, title) then
found = true
elseif type(options.wrappers) == 'table' then
for _,v in pairs(options.wrappers) do
if matchesTitle(v, title) then
found = true
break
end
end
end
-- We test for false specifically here so that nil (the default) acts like true.
if found or options.frameOnly == false then
pargs = parent.args
end
if not found or options.parentOnly == false then
fargs = frame.args
end
end
else
-- options.wrapper isn't set, so check the other options.
if not options.parentOnly then
fargs = frame.args
end
if not options.frameOnly then
local parent = frame:getParent()
pargs = parent and parent.args or nil
end
end
if options.parentFirst then
fargs, pargs = pargs, fargs
end
else
luaArgs = frame
end
-- Set the order of precedence of the argument tables. If the variables are
-- nil, nothing will be added to the table, which is how we avoid clashes
-- between the frame/parent args and the Lua args.
local argTables = {fargs}
argTables[#argTables + 1] = pargs
argTables[#argTables + 1] = luaArgs
--[[
-- Generate the tidyVal function. If it has been specified by the user, we
-- use that; if not, we choose one of four functions depending on the
-- options chosen. This is so that we don't have to call the options table
-- every time the function is called.
--]]
local tidyVal = options.valueFunc
if tidyVal then
if type(tidyVal) ~= 'function' then
error(
&quot;bad value assigned to option 'valueFunc'&quot;
.. '(function expected, got '
.. type(tidyVal)
.. ')',
2
)
end
elseif options.trim ~= false then
if options.removeBlanks ~= false then
tidyVal = tidyValDefault
else
tidyVal = tidyValTrimOnly
end
else
if options.removeBlanks ~= false then
tidyVal = tidyValRemoveBlanksOnly
else
tidyVal = tidyValNoChange
end
end
--[[
-- Set up the args, metaArgs and nilArgs tables. args will be the one
-- accessed from functions, and metaArgs will hold the actual arguments. Nil
-- arguments are memoized in nilArgs, and the metatable connects all of them
-- together.
--]]
local args, metaArgs, nilArgs, metatable = {}, {}, {}, {}
setmetatable(args, metatable)
local function mergeArgs(tables)
--[[
-- Accepts multiple tables as input and merges their keys and values
-- into one table. If a value is already present it is not overwritten;
-- tables listed earlier have precedence. We are also memoizing nil
-- values, which can be overwritten if they are 's' (soft).
--]]
for _, t in ipairs(tables) do
for key, val in pairs(t) do
if metaArgs[key] == nil and nilArgs[key] ~= 'h' then
local tidiedVal = tidyVal(key, val)
if tidiedVal == nil then
nilArgs[key] = 's'
else
metaArgs[key] = tidiedVal
end
end
end
end
end
--[[
-- Define metatable behaviour. Arguments are memoized in the metaArgs table,
-- and are only fetched from the argument tables once. Fetching arguments
-- from the argument tables is the most resource-intensive step in this
-- module, so we try and avoid it where possible. For this reason, nil
-- arguments are also memoized, in the nilArgs table. Also, we keep a record
-- in the metatable of when pairs and ipairs have been called, so we do not
-- run pairs and ipairs on the argument tables more than once. We also do
-- not run ipairs on fargs and pargs if pairs has already been run, as all
-- the arguments will already have been copied over.
--]]
metatable.__index = function (t, key)
--[[
-- Fetches an argument when the args table is indexed. First we check
-- to see if the value is memoized, and if not we try and fetch it from
-- the argument tables. When we check memoization, we need to check
-- metaArgs before nilArgs, as both can be non-nil at the same time.
-- If the argument is not present in metaArgs, we also check whether
-- pairs has been run yet. If pairs has already been run, we return nil.
-- This is because all the arguments will have already been copied into
-- metaArgs by the mergeArgs function, meaning that any other arguments
-- must be nil.
--]]
if type(key) == 'string' then
key = options.translate[key]
end
local val = metaArgs[key]
if val ~= nil then
return val
elseif metatable.donePairs or nilArgs[key] then
return nil
end
for _, argTable in ipairs(argTables) do
local argTableVal = tidyVal(key, argTable[key])
if argTableVal ~= nil then
metaArgs[key] = argTableVal
return argTableVal
end
end
nilArgs[key] = 'h'
return nil
end
metatable.__newindex = function (t, key, val)
-- This function is called when a module tries to add a new value to the
-- args table, or tries to change an existing value.
if type(key) == 'string' then
key = options.translate[key]
end
if options.readOnly then
error(
'could not write to argument table key &quot;'
.. tostring(key)
.. '&quot;; the table is read-only',
2
)
elseif options.noOverwrite and args[key] ~= nil then
error(
'could not write to argument table key &quot;'
.. tostring(key)
.. '&quot;; overwriting existing arguments is not permitted',
2
)
elseif val == nil then
--[[
-- If the argument is to be overwritten with nil, we need to erase
-- the value in metaArgs, so that __index, __pairs and __ipairs do
-- not use a previous existing value, if present; and we also need
-- to memoize the nil in nilArgs, so that the value isn't looked
-- up in the argument tables if it is accessed again.
--]]
metaArgs[key] = nil
nilArgs[key] = 'h'
else
metaArgs[key] = val
end
end
local function translatenext(invariant)
local k, v = next(invariant.t, invariant.k)
invariant.k = k
if k == nil then
return nil
elseif type(k) ~= 'string' or not options.backtranslate then
return k, v
else
local backtranslate = options.backtranslate[k]
if backtranslate == nil then
-- Skip this one. This is a tail call, so this won't cause stack overflow
return translatenext(invariant)
else
return backtranslate, v
end
end
end
metatable.__pairs = function ()
-- Called when pairs is run on the args table.
if not metatable.donePairs then
mergeArgs(argTables)
metatable.donePairs = true
end
return translatenext, { t = metaArgs }
end
local function inext(t, i)
-- This uses our __index metamethod
local v = t[i + 1]
if v ~= nil then
return i + 1, v
end
end
metatable.__ipairs = function (t)
-- Called when ipairs is run on the args table.
return inext, t, 0
end
return args
end
return arguments</text>
<sha1>5qx9tzlul9ser30uxj9nbasjt92cevn</sha1>
</revision>
</page>
<page>
<title>Module:Category handler</title>
<ns>828</ns>
<id>39772274</id>
<revision>
<id>617942873</id>
<parentid>616811662</parentid>
<timestamp>2014-07-22T05:08:26Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<comment>allow invocations specifying the page parameter to use the mw.loadData optimisations, and don't call mw.title.new every time</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="7871">--------------------------------------------------------------------------------
-- --
-- CATEGORY HANDLER --
-- --
-- This module implements the {{category handler}} template in Lua, --
-- with a few improvements: all namespaces and all namespace aliases --
-- are supported, and namespace names are detected automatically for --
-- the local wiki. This module requires [[Module:Namespace detect]] --
-- and [[Module:Yesno]] to be available on the local wiki. It can be --
-- configured for different wikis by altering the values in --
-- [[Module:Category handler/config]], and pages can be blacklisted --
-- from categorisation by using [[Module:Category handler/blacklist]]. --
-- --
--------------------------------------------------------------------------------
-- Load required modules
local yesno = require('Module:Yesno')
-- Lazily load things we don't always need
local mShared, mappings
local p = {}
--------------------------------------------------------------------------------
-- Helper functions
--------------------------------------------------------------------------------
local function trimWhitespace(s, removeBlanks)
if type(s) ~= 'string' then
return s
end
s = s:match('^%s*(.-)%s*$')
if removeBlanks then
if s ~= '' then
return s
else
return nil
end
else
return s
end
end
--------------------------------------------------------------------------------
-- CategoryHandler class
--------------------------------------------------------------------------------
local CategoryHandler = {}
CategoryHandler.__index = CategoryHandler
function CategoryHandler.new(data, args)
local obj = setmetatable({ _data = data, _args = args }, CategoryHandler)
-- Set the title object
do
local pagename = obj:parameter('demopage')
local success, titleObj
if pagename then
success, titleObj = pcall(mw.title.new, pagename)
end
if success and titleObj then
obj.title = titleObj
if titleObj == mw.title.getCurrentTitle() then
obj._usesCurrentTitle = true
end
else
obj.title = mw.title.getCurrentTitle()
obj._usesCurrentTitle = true
end
end
-- Set suppression parameter values
for _, key in ipairs{'nocat', 'categories'} do
local value = obj:parameter(key)
value = trimWhitespace(value, true)
obj['_' .. key] = yesno(value)
end
do
local subpage = obj:parameter('subpage')
local category2 = obj:parameter('category2')
if type(subpage) == 'string' then
subpage = mw.ustring.lower(subpage)
end
if type(category2) == 'string' then
subpage = mw.ustring.lower(category2)
end
obj._subpage = trimWhitespace(subpage, true)
obj._category2 = trimWhitespace(category2) -- don't remove blank values
end
return obj
end
function CategoryHandler:parameter(key)
local parameterNames = self._data.parameters[key]
local pntype = type(parameterNames)
if pntype == 'string' or pntype == 'number' then
return self._args[parameterNames]
elseif pntype == 'table' then
for _, name in ipairs(parameterNames) do
local value = self._args[name]
if value ~= nil then
return value
end
end
return nil
else
error(string.format(
'invalid config key &quot;%s&quot;',
tostring(key)
), 2)
end
end
function CategoryHandler:isSuppressedByArguments()
return
-- See if a category suppression argument has been set.
self._nocat == true
or self._categories == false
or (
self._category2
and self._category2 ~= self._data.category2Yes
and self._category2 ~= self._data.category2Negative
)
-- Check whether we are on a subpage, and see if categories are
-- suppressed based on our subpage status.
or self._subpage == self._data.subpageNo and self.title.isSubpage
or self._subpage == self._data.subpageOnly and not self.title.isSubpage
end
function CategoryHandler:shouldSkipBlacklistCheck()
-- Check whether the category suppression arguments indicate we
-- should skip the blacklist check.
return self._nocat == false
or self._categories == true
or self._category2 == self._data.category2Yes
end
function CategoryHandler:matchesBlacklist()
if self._usesCurrentTitle then
return self._data.currentTitleMatchesBlacklist
else
mShared = mShared or require('Module:Category handler/shared')
return mShared.matchesBlacklist(
self.title.prefixedText,
mw.loadData('Module:Category handler/blacklist')
)
end
end
function CategoryHandler:isSuppressed()
-- Find if categories are suppressed by either the arguments or by
-- matching the blacklist.
return self:isSuppressedByArguments()
or not self:shouldSkipBlacklistCheck() and self:matchesBlacklist()
end
function CategoryHandler:getNamespaceParameters()
if self._usesCurrentTitle then
return self._data.currentTitleNamespaceParameters
else
if not mappings then
mShared = mShared or require('Module:Category handler/shared')
mappings = mShared.getParamMappings(true) -- gets mappings with mw.loadData
end
return mShared.getNamespaceParameters(
self.title,
mappings
)
end
end
function CategoryHandler:namespaceParametersExist()
-- Find whether any namespace parameters have been specified.
-- We use the order &quot;all&quot; --&gt; namespace params --&gt; &quot;other&quot; as this is what
-- the old template did.
if self:parameter('all') then
return true
end
if not mappings then
mShared = mShared or require('Module:Category handler/shared')
mappings = mShared.getParamMappings(true) -- gets mappings with mw.loadData
end
for ns, params in pairs(mappings) do
for i, param in ipairs(params) do
if self._args[param] then
return true
end
end
end
if self:parameter('other') then
return true
end
return false
end
function CategoryHandler:getCategories()
local params = self:getNamespaceParameters()
local nsCategory
for i, param in ipairs(params) do
local value = self._args[param]
if value ~= nil then
nsCategory = value
break
end
end
if nsCategory ~= nil or self:namespaceParametersExist() then
-- Namespace parameters exist - advanced usage.
if nsCategory == nil then
nsCategory = self:parameter('other')
end
local ret = {self:parameter('all')}
local numParam = tonumber(nsCategory)
if numParam and numParam &gt;= 1 and math.floor(numParam) == numParam then
-- nsCategory is an integer
ret[#ret + 1] = self._args[numParam]
else
ret[#ret + 1] = nsCategory
end
if #ret &lt; 1 then
return nil
else
return table.concat(ret)
end
elseif self._data.defaultNamespaces[self.title.namespace] then
-- Namespace parameters don't exist, simple usage.
return self._args[1]
end
return nil
end
--------------------------------------------------------------------------------
-- Exports
--------------------------------------------------------------------------------
local p = {}
function p._exportClasses()
-- Used for testing purposes.
return {
CategoryHandler = CategoryHandler
}
end
function p._main(args, data)
data = data or mw.loadData('Module:Category handler/data')
local handler = CategoryHandler.new(data, args)
if handler:isSuppressed() then
return nil
end
return handler:getCategories()
end
function p.main(frame, data)
data = data or mw.loadData('Module:Category handler/data')
local args = require('Module:Arguments').getArgs(frame, {
wrappers = data.wrappers,
valueFunc = function (k, v)
v = trimWhitespace(v)
if type(k) == 'number' then
if v ~= '' then
return v
else
return nil
end
else
return v
end
end
})
return p._main(args, data)
end
return p</text>
<sha1>letwavu3yvlayfzew66uuwixmwebq5b</sha1>
</revision>
</page>
<page>
<title>Module:Category handler/blacklist</title>
<ns>828</ns>
<id>43232926</id>
<revision>
<id>757409491</id>
<parentid>757402070</parentid>
<timestamp>2016-12-30T14:53:53Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<comment>on second thoughts, blacklisting sandboxes for all templates is probably a bad idea</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="764">-- This module contains the blacklist used by [[Module:Category handler]].
-- Pages that match Lua patterns in this list will not be categorised unless
-- categorisation is explicitly requested.
return {
'^Main Page$', -- don't categorise the main page.
-- Don't categorise the following pages or their subpages.
-- &quot;%f[/\0]&quot; matches if the next character is &quot;/&quot; or the end of the string.
'^Wikipedia:Cascade%-protected items%f[/\0]',
'^User:UBX%f[/\0]', -- The userbox &quot;template&quot; space.
'^User talk:UBX%f[/\0]',
-- Don't categorise subpages of these pages, but allow
-- categorisation of the base page.
'^Wikipedia:Template messages/.*$',
-- Don't categorise archives.
'/[aA]rchive',
&quot;^Wikipedia:Administrators' noticeboard/IncidentArchive%d+$&quot;,
}</text>
<sha1>hwue3i1eua4tsdxlsbcs4f5syudywbe</sha1>
</revision>
</page>
<page>
<title>Module:Category handler/config</title>
<ns>828</ns>
<id>42291997</id>
<revision>
<id>616764079</id>
<parentid>616045566</parentid>
<timestamp>2014-07-13T09:05:36Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<minor/>
<comment>Protected Module:Category handler/config: [[WP:High-risk templates|High-risk Lua module]] ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="5755">--------------------------------------------------------------------------------
-- [[Module:Category handler]] configuration data --
-- Language-specific parameter names and values can be set here. --
-- For blacklist config, see [[Module:Category handler/blacklist]]. --
--------------------------------------------------------------------------------
local cfg = {} -- Don't edit this line.
--------------------------------------------------------------------------------
-- Start configuration data --
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Parameter names --
-- These configuration items specify custom parameter names. --
-- To add one extra name, you can use this format: --
-- --
-- foo = 'parameter name', --
-- --
-- To add multiple names, you can use this format: --
-- --
-- foo = {'parameter name 1', 'parameter name 2', 'parameter name 3'}, --
--------------------------------------------------------------------------------
cfg.parameters = {
-- The nocat and categories parameter suppress
-- categorisation. They are used with Module:Yesno, and work as follows:
--
-- cfg.nocat:
-- Result of yesno() Effect
-- true Categorisation is suppressed
-- false Categorisation is allowed, and
-- the blacklist check is skipped
-- nil Categorisation is allowed
--
-- cfg.categories:
-- Result of yesno() Effect
-- true Categorisation is allowed, and
-- the blacklist check is skipped
-- false Categorisation is suppressed
-- nil Categorisation is allowed
nocat = 'nocat',
categories = 'categories',
-- The parameter name for the legacy &quot;category2&quot; parameter. This skips the
-- blacklist if set to the cfg.category2Yes value, and suppresses
-- categorisation if present but equal to anything other than
-- cfg.category2Yes or cfg.category2Negative.
category2 = 'category2',
-- cfg.subpage is the parameter name to specify how to behave on subpages.
subpage = 'subpage',
-- The parameter for data to return in all namespaces.
all = 'all',
-- The parameter name for data to return if no data is specified for the
-- namespace that is detected.
other = 'other',
-- The parameter name used to specify a page other than the current page;
-- used for testing and demonstration.
demopage = 'page',
}
--------------------------------------------------------------------------------
-- Parameter values --
-- These are set values that can be used with certain parameters. Only one --
-- value can be specified, like this: --
-- --
-- cfg.foo = 'value name' -- --
--------------------------------------------------------------------------------
-- The following settings are used with the cfg.category2 parameter. Setting
-- cfg.category2 to cfg.category2Yes skips the blacklist, and if cfg.category2
-- is present but equal to anything other than cfg.category2Yes or
-- cfg.category2Negative then it supresses cateogrisation.
cfg.category2Yes = 'yes'
cfg.category2Negative = '¬'
-- The following settings are used with the cfg.subpage parameter.
-- cfg.subpageNo is the value to specify to not categorise on subpages;
-- cfg.subpageOnly is the value to specify to only categorise on subpages.
cfg.subpageNo = 'no'
cfg.subpageOnly = 'only'
--------------------------------------------------------------------------------
-- Default namespaces --
-- This is a table of namespaces to categorise by default. The keys are the --
-- namespace numbers. --
--------------------------------------------------------------------------------
cfg.defaultNamespaces = {
[ 0] = true, -- main
[ 6] = true, -- file
[ 12] = true, -- help
[ 14] = true, -- category
[100] = true, -- portal
[108] = true, -- book
}
--------------------------------------------------------------------------------
-- Wrappers --
-- This is a wrapper template or a list of wrapper templates to be passed to --
-- [[Module:Arguments]]. --
--------------------------------------------------------------------------------
cfg.wrappers = 'Template:Category handler'
--------------------------------------------------------------------------------
-- End configuration data --
--------------------------------------------------------------------------------
return cfg -- Don't edit this line.</text>
<sha1>6ga9hbq2pdwalsvx68i53dmbr421rq5</sha1>
</revision>
</page>
<page>
<title>Module:Category handler/data</title>
<ns>828</ns>
<id>43233647</id>
<revision>
<id>616764105</id>
<parentid>616020360</parentid>
<timestamp>2014-07-13T09:05:55Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<minor/>
<comment>Protected Module:Category handler/data: [[WP:High-risk templates|High-risk Lua module]] ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="631">-- This module assembles data to be passed to [[Module:Category handler]] using
-- mw.loadData. This includes the configuration data and whether the current
-- page matches the title blacklist.
local data = require('Module:Category handler/config')
local mShared = require('Module:Category handler/shared')
local blacklist = require('Module:Category handler/blacklist')
local title = mw.title.getCurrentTitle()
data.currentTitleMatchesBlacklist = mShared.matchesBlacklist(
title.prefixedText,
blacklist
)
data.currentTitleNamespaceParameters = mShared.getNamespaceParameters(
title,
mShared.getParamMappings()
)
return data</text>
<sha1>k26mwixuaeijisfddb0sxkg82iux8v4</sha1>
</revision>
</page>
<page>
<title>Module:Category handler/shared</title>
<ns>828</ns>
<id>43232937</id>
<revision>
<id>616764145</id>
<parentid>616020201</parentid>
<timestamp>2014-07-13T09:06:15Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<minor/>
<comment>Protected Module:Category handler/shared: [[WP:High-risk templates|High-risk Lua module]] ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="888">-- This module contains shared functions used by [[Module:Category handler]]
-- and its submodules.
local p = {}
function p.matchesBlacklist(page, blacklist)
for i, pattern in ipairs(blacklist) do
local match = mw.ustring.match(page, pattern)
if match then
return true
end
end
return false
end
function p.getParamMappings(useLoadData)
local dataPage = 'Module:Namespace detect/data'
if useLoadData then
return mw.loadData(dataPage).mappings
else
return require(dataPage).mappings
end
end
function p.getNamespaceParameters(titleObj, mappings)
-- We don't use title.nsText for the namespace name because it adds
-- underscores.
local mappingsKey
if titleObj.isTalkPage then
mappingsKey = 'talk'
else
mappingsKey = mw.site.namespaces[titleObj.namespace].name
end
mappingsKey = mw.ustring.lower(mappingsKey)
return mappings[mappingsKey] or {}
end
return p</text>
<sha1>omlsnhudxz6juptvtxz7ns97jutbzc5</sha1>
</revision>
</page>
<page>
<title>Module:Documentation</title>
<ns>828</ns>
<id>40256557</id>
<revision>
<id>729280556</id>
<parentid>725653683</parentid>
<timestamp>2016-07-11T04:31:31Z</timestamp>
<contributor>
<username>Andy M. Wang</username>
<id>516856</id>
</contributor>
<comment>rm alt text on icon, since the adjacent text, &quot;Template documentation&quot; or &quot;Module documentation&quot;, is sufficient alternative text (per [[Special:Diff/729145419|edit request]])</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="36685">-- This module implements {{documentation}}.
-- Get required modules.
local getArgs = require('Module:Arguments').getArgs
local messageBox = require('Module:Message box')
-- Get the config table.
local cfg = mw.loadData('Module:Documentation/config')
local p = {}
-- Often-used functions.
local ugsub = mw.ustring.gsub
----------------------------------------------------------------------------
-- Helper functions
--
-- These are defined as local functions, but are made available in the p
-- table for testing purposes.
----------------------------------------------------------------------------
local function message(cfgKey, valArray, expectType)
--[[
-- Gets a message from the cfg table and formats it if appropriate.
-- The function raises an error if the value from the cfg table is not
-- of the type expectType. The default type for expectType is 'string'.
-- If the table valArray is present, strings such as $1, $2 etc. in the
-- message are substituted with values from the table keys [1], [2] etc.
-- For example, if the message &quot;foo-message&quot; had the value 'Foo $2 bar $1.',
-- message('foo-message', {'baz', 'qux'}) would return &quot;Foo qux bar baz.&quot;
--]]
local msg = cfg[cfgKey]
expectType = expectType or 'string'
if type(msg) ~= expectType then
error('message: type error in message cfg.' .. cfgKey .. ' (' .. expectType .. ' expected, got ' .. type(msg) .. ')', 2)
end
if not valArray then
return msg
end
local function getMessageVal(match)
match = tonumber(match)
return valArray[match] or error('message: no value found for key $' .. match .. ' in message cfg.' .. cfgKey, 4)
end
local ret = ugsub(msg, '$([1-9][0-9]*)', getMessageVal)
return ret
end
p.message = message
local function makeWikilink(page, display)
if display then
return mw.ustring.format('[[%s|%s]]', page, display)
else
return mw.ustring.format('[[%s]]', page)
end
end
p.makeWikilink = makeWikilink
local function makeCategoryLink(cat, sort)
local catns = mw.site.namespaces[14].name
return makeWikilink(catns .. ':' .. cat, sort)
end
p.makeCategoryLink = makeCategoryLink
local function makeUrlLink(url, display)
return mw.ustring.format('[%s %s]', url, display)
end
p.makeUrlLink = makeUrlLink
local function makeToolbar(...)
local ret = {}
local lim = select('#', ...)
if lim &lt; 1 then
return nil
end
for i = 1, lim do
ret[#ret + 1] = select(i, ...)
end
return '&lt;small style=&quot;font-style: normal;&quot;&gt;(' .. table.concat(ret, ' &amp;#124; ') .. ')&lt;/small&gt;'
end
p.makeToolbar = makeToolbar
----------------------------------------------------------------------------
-- Argument processing
----------------------------------------------------------------------------
local function makeInvokeFunc(funcName)
return function (frame)
local args = getArgs(frame, {
valueFunc = function (key, value)
if type(value) == 'string' then
value = value:match('^%s*(.-)%s*$') -- Remove whitespace.
if key == 'heading' or value ~= '' then
return value
else
return nil
end
else
return value
end
end
})
return p[funcName](args)
end
end
----------------------------------------------------------------------------
-- Main function
----------------------------------------------------------------------------
p.main = makeInvokeFunc('_main')
function p._main(args)
--[[
-- This function defines logic flow for the module.
-- @args - table of arguments passed by the user
--
-- Messages:
-- 'main-div-id' --&gt; 'template-documentation'
-- 'main-div-classes' --&gt; 'template-documentation iezoomfix'
--]]
local env = p.getEnvironment(args)
local root = mw.html.create()
root
:wikitext(p.protectionTemplate(env))
:wikitext(p.sandboxNotice(args, env))
-- This div tag is from {{documentation/start box}}, but moving it here
-- so that we don't have to worry about unclosed tags.
:tag('div')
:attr('id', message('main-div-id'))
:addClass(message('main-div-classes'))
:newline()
:wikitext(p._startBox(args, env))
:wikitext(p._content(args, env))
:tag('div')
:css('clear', 'both') -- So right or left floating items don't stick out of the doc box.
:newline()
:done()
:done()
:wikitext(p._endBox(args, env))
:wikitext(p.addTrackingCategories(env))
return tostring(root)
end
----------------------------------------------------------------------------
-- Environment settings
----------------------------------------------------------------------------
function p.getEnvironment(args)
--[[
-- Returns a table with information about the environment, including title objects and other namespace- or
-- path-related data.
-- @args - table of arguments passed by the user
--
-- Title objects include:
-- env.title - the page we are making documentation for (usually the current title)
-- env.templateTitle - the template (or module, file, etc.)
-- env.docTitle - the /doc subpage.
-- env.sandboxTitle - the /sandbox subpage.
-- env.testcasesTitle - the /testcases subpage.
-- env.printTitle - the print version of the template, located at the /Print subpage.
--
-- Data includes:
-- env.protectionLevels - the protection levels table of the title object.
-- env.subjectSpace - the number of the title's subject namespace.
-- env.docSpace - the number of the namespace the title puts its documentation in.
-- env.docpageBase - the text of the base page of the /doc, /sandbox and /testcases pages, with namespace.
-- env.compareUrl - URL of the Special:ComparePages page comparing the sandbox with the template.
--
-- All table lookups are passed through pcall so that errors are caught. If an error occurs, the value
-- returned will be nil.
--]]
local env, envFuncs = {}, {}
-- Set up the metatable. If triggered we call the corresponding function in the envFuncs table. The value
-- returned by that function is memoized in the env table so that we don't call any of the functions
-- more than once. (Nils won't be memoized.)
setmetatable(env, {
__index = function (t, key)
local envFunc = envFuncs[key]
if envFunc then
local success, val = pcall(envFunc)
if success then
env[key] = val -- Memoise the value.
return val
end
end
return nil
end
})
function envFuncs.title()
-- The title object for the current page, or a test page passed with args.page.
local title
local titleArg = args.page
if titleArg then
title = mw.title.new(titleArg)
else
title = mw.title.getCurrentTitle()
end
return title
end
function envFuncs.templateTitle()
--[[
-- The template (or module, etc.) title object.
-- Messages:
-- 'sandbox-subpage' --&gt; 'sandbox'
-- 'testcases-subpage' --&gt; 'testcases'
--]]
local subjectSpace = env.subjectSpace
local title = env.title
local subpage = title.subpageText
if subpage == message('sandbox-subpage') or subpage == message('testcases-subpage') then
return mw.title.makeTitle(subjectSpace, title.baseText)
else
return mw.title.makeTitle(subjectSpace, title.text)
end
end
function envFuncs.docTitle()
--[[
-- Title object of the /doc subpage.
-- Messages:
-- 'doc-subpage' --&gt; 'doc'
--]]
local title = env.title
local docname = args[1] -- User-specified doc page.
local docpage
if docname then
docpage = docname
else
docpage = env.docpageBase .. '/' .. message('doc-subpage')
end
return mw.title.new(docpage)
end
function envFuncs.sandboxTitle()
--[[
-- Title object for the /sandbox subpage.
-- Messages:
-- 'sandbox-subpage' --&gt; 'sandbox'
--]]
return mw.title.new(env.docpageBase .. '/' .. message('sandbox-subpage'))
end
function envFuncs.testcasesTitle()
--[[
-- Title object for the /testcases subpage.
-- Messages:
-- 'testcases-subpage' --&gt; 'testcases'
--]]
return mw.title.new(env.docpageBase .. '/' .. message('testcases-subpage'))
end
function envFuncs.printTitle()
--[[
-- Title object for the /Print subpage.
-- Messages:
-- 'print-subpage' --&gt; 'Print'
--]]
return env.templateTitle:subPageTitle(message('print-subpage'))
end
function envFuncs.protectionLevels()
-- The protection levels table of the title object.
return env.title.protectionLevels
end
function envFuncs.subjectSpace()
-- The subject namespace number.
return mw.site.namespaces[env.title.namespace].subject.id
end
function envFuncs.docSpace()
-- The documentation namespace number. For most namespaces this is the same as the
-- subject namespace. However, pages in the Article, File, MediaWiki or Category
-- namespaces must have their /doc, /sandbox and /testcases pages in talk space.
local subjectSpace = env.subjectSpace
if subjectSpace == 0 or subjectSpace == 6 or subjectSpace == 8 or subjectSpace == 14 then
return subjectSpace + 1
else
return subjectSpace
end
end
function envFuncs.docpageBase()
-- The base page of the /doc, /sandbox, and /testcases subpages.
-- For some namespaces this is the talk page, rather than the template page.
local templateTitle = env.templateTitle
local docSpace = env.docSpace
local docSpaceText = mw.site.namespaces[docSpace].name
-- Assemble the link. docSpace is never the main namespace, so we can hardcode the colon.
return docSpaceText .. ':' .. templateTitle.text
end
function envFuncs.compareUrl()
-- Diff link between the sandbox and the main template using [[Special:ComparePages]].
local templateTitle = env.templateTitle
local sandboxTitle = env.sandboxTitle
if templateTitle.exists and sandboxTitle.exists then
local compareUrl = mw.uri.fullUrl(
'Special:ComparePages',
{page1 = templateTitle.prefixedText, page2 = sandboxTitle.prefixedText}
)
return tostring(compareUrl)
else
return nil
end
end
return env
end
----------------------------------------------------------------------------
-- Auxiliary templates
----------------------------------------------------------------------------
function p.sandboxNotice(args, env)
--[=[
-- Generates a sandbox notice for display above sandbox pages.
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
--
-- Messages:
-- 'sandbox-notice-image' --&gt; '[[Image:Sandbox.svg|50px|alt=|link=]]'
-- 'sandbox-notice-blurb' --&gt; 'This is the $1 for $2.'
-- 'sandbox-notice-diff-blurb' --&gt; 'This is the $1 for $2 ($3).'
-- 'sandbox-notice-pagetype-template' --&gt; '[[Wikipedia:Template test cases|template sandbox]] page'
-- 'sandbox-notice-pagetype-module' --&gt; '[[Wikipedia:Template test cases|module sandbox]] page'
-- 'sandbox-notice-pagetype-other' --&gt; 'sandbox page'
-- 'sandbox-notice-compare-link-display' --&gt; 'diff'
-- 'sandbox-notice-testcases-blurb' --&gt; 'See also the companion subpage for $1.'
-- 'sandbox-notice-testcases-link-display' --&gt; 'test cases'
-- 'sandbox-category' --&gt; 'Template sandboxes'
--]=]
local title = env.title
local sandboxTitle = env.sandboxTitle
local templateTitle = env.templateTitle
local subjectSpace = env.subjectSpace
if not (subjectSpace and title and sandboxTitle and templateTitle and mw.title.equals(title, sandboxTitle)) then
return nil
end
-- Build the table of arguments to pass to {{ombox}}. We need just two fields, &quot;image&quot; and &quot;text&quot;.
local omargs = {}
omargs.image = message('sandbox-notice-image')
-- Get the text. We start with the opening blurb, which is something like
-- &quot;This is the template sandbox for [[Template:Foo]] (diff).&quot;
local text = ''
local pagetype
if subjectSpace == 10 then
pagetype = message('sandbox-notice-pagetype-template')
elseif subjectSpace == 828 then
pagetype = message('sandbox-notice-pagetype-module')
else
pagetype = message('sandbox-notice-pagetype-other')
end
local templateLink = makeWikilink(templateTitle.prefixedText)
local compareUrl = env.compareUrl
if compareUrl then
local compareDisplay = message('sandbox-notice-compare-link-display')
local compareLink = makeUrlLink(compareUrl, compareDisplay)
text = text .. message('sandbox-notice-diff-blurb', {pagetype, templateLink, compareLink})
else
text = text .. message('sandbox-notice-blurb', {pagetype, templateLink})
end
-- Get the test cases page blurb if the page exists. This is something like
-- &quot;See also the companion subpage for [[Template:Foo/testcases|test cases]].&quot;
local testcasesTitle = env.testcasesTitle
if testcasesTitle and testcasesTitle.exists then
if testcasesTitle.namespace == mw.site.namespaces.Module.id then
local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display')
local testcasesRunLinkDisplay = message('sandbox-notice-testcases-run-link-display')
local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay)
local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay)
text = text .. '&lt;br /&gt;' .. message('sandbox-notice-testcases-run-blurb', {testcasesLink, testcasesRunLink})
else
local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display')
local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay)
text = text .. '&lt;br /&gt;' .. message('sandbox-notice-testcases-blurb', {testcasesLink})
end
end
-- Add the sandbox to the sandbox category.
text = text .. makeCategoryLink(message('sandbox-category'))
omargs.text = text
local ret = '&lt;div style=&quot;clear: both;&quot;&gt;&lt;/div&gt;'
ret = ret .. messageBox.main('ombox', omargs)
return ret
end
function p.protectionTemplate(env)
-- Generates the padlock icon in the top right.
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
-- Messages:
-- 'protection-template' --&gt; 'pp-template'
-- 'protection-template-args' --&gt; {docusage = 'yes'}
local protectionLevels, mProtectionBanner
local title = env.title
protectionLevels = env.protectionLevels
if not protectionLevels then
return nil
end
local editProt = protectionLevels.edit and protectionLevels.edit[1]
local moveProt = protectionLevels.move and protectionLevels.move[1]
if editProt then
-- The page is edit-protected.
mProtectionBanner = require('Module:Protection banner')
local reason = message('protection-reason-edit')
return mProtectionBanner._main{reason, small = true}
elseif moveProt and moveProt ~= 'autoconfirmed' then
-- The page is move-protected but not edit-protected. Exclude move
-- protection with the level &quot;autoconfirmed&quot;, as this is equivalent to
-- no move protection at all.
mProtectionBanner = require('Module:Protection banner')
return mProtectionBanner._main{action = 'move', small = true}
else
return nil
end
end
----------------------------------------------------------------------------
-- Start box
----------------------------------------------------------------------------
p.startBox = makeInvokeFunc('_startBox')
function p._startBox(args, env)
--[[
-- This function generates the start box.
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
--
-- The actual work is done by p.makeStartBoxLinksData and p.renderStartBoxLinks which make
-- the [view] [edit] [history] [purge] links, and by p.makeStartBoxData and p.renderStartBox
-- which generate the box HTML.
--]]
env = env or p.getEnvironment(args)
local links
local content = args.content
if not content then
-- No need to include the links if the documentation is on the template page itself.
local linksData = p.makeStartBoxLinksData(args, env)
if linksData then
links = p.renderStartBoxLinks(linksData)
end
end
-- Generate the start box html.
local data = p.makeStartBoxData(args, env, links)
if data then
return p.renderStartBox(data)
else
-- User specified no heading.
return nil
end
end
function p.makeStartBoxLinksData(args, env)
--[[
-- Does initial processing of data to make the [view] [edit] [history] [purge] links.
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
--
-- Messages:
-- 'view-link-display' --&gt; 'view'
-- 'edit-link-display' --&gt; 'edit'
-- 'history-link-display' --&gt; 'history'
-- 'purge-link-display' --&gt; 'purge'
-- 'file-docpage-preload' --&gt; 'Template:Documentation/preload-filespace'
-- 'module-preload' --&gt; 'Template:Documentation/preload-module-doc'
-- 'docpage-preload' --&gt; 'Template:Documentation/preload'
-- 'create-link-display' --&gt; 'create'
--]]
local subjectSpace = env.subjectSpace
local title = env.title
local docTitle = env.docTitle
if not title or not docTitle then
return nil
end
local data = {}
data.title = title
data.docTitle = docTitle
-- View, display, edit, and purge links if /doc exists.
data.viewLinkDisplay = message('view-link-display')
data.editLinkDisplay = message('edit-link-display')
data.historyLinkDisplay = message('history-link-display')
data.purgeLinkDisplay = message('purge-link-display')
-- Create link if /doc doesn't exist.
local preload = args.preload
if not preload then
if subjectSpace == 6 then -- File namespace
preload = message('file-docpage-preload')
elseif subjectSpace == 828 then -- Module namespace
preload = message('module-preload')
else
preload = message('docpage-preload')
end
end
data.preload = preload
data.createLinkDisplay = message('create-link-display')
return data
end
function p.renderStartBoxLinks(data)
--[[
-- Generates the [view][edit][history][purge] or [create] links from the data table.
-- @data - a table of data generated by p.makeStartBoxLinksData
--]]
local function escapeBrackets(s)
-- Escapes square brackets with HTML entities.
s = s:gsub('%[', '&amp;#91;') -- Replace square brackets with HTML entities.
s = s:gsub('%]', '&amp;#93;')
return s
end
local ret
local docTitle = data.docTitle
local title = data.title
if docTitle.exists then
local viewLink = makeWikilink(docTitle.prefixedText, data.viewLinkDisplay)
local editLink = makeUrlLink(docTitle:fullUrl{action = 'edit'}, data.editLinkDisplay)
local historyLink = makeUrlLink(docTitle:fullUrl{action = 'history'}, data.historyLinkDisplay)
local purgeLink = makeUrlLink(title:fullUrl{action = 'purge'}, data.purgeLinkDisplay)
ret = '[%s] [%s] [%s] [%s]'
ret = escapeBrackets(ret)
ret = mw.ustring.format(ret, viewLink, editLink, historyLink, purgeLink)
else
local createLink = makeUrlLink(docTitle:fullUrl{action = 'edit', preload = data.preload}, data.createLinkDisplay)
ret = '[%s]'
ret = escapeBrackets(ret)
ret = mw.ustring.format(ret, createLink)
end
return ret
end
function p.makeStartBoxData(args, env, links)
--[=[
-- Does initial processing of data to pass to the start-box render function, p.renderStartBox.
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
-- @links - a string containing the [view][edit][history][purge] links - could be nil if there's an error.
--
-- Messages:
-- 'documentation-icon-wikitext' --&gt; '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]'
-- 'template-namespace-heading' --&gt; 'Template documentation'
-- 'module-namespace-heading' --&gt; 'Module documentation'
-- 'file-namespace-heading' --&gt; 'Summary'
-- 'other-namespaces-heading' --&gt; 'Documentation'
-- 'start-box-linkclasses' --&gt; 'mw-editsection-like plainlinks'
-- 'start-box-link-id' --&gt; 'doc_editlinks'
-- 'testcases-create-link-display' --&gt; 'create'
--]=]
local subjectSpace = env.subjectSpace
if not subjectSpace then
-- Default to an &quot;other namespaces&quot; namespace, so that we get at least some output
-- if an error occurs.
subjectSpace = 2
end
local data = {}
-- Heading
local heading = args.heading -- Blank values are not removed.
if heading == '' then
-- Don't display the start box if the heading arg is defined but blank.
return nil
end
if heading then
data.heading = heading
elseif subjectSpace == 10 then -- Template namespace
data.heading = message('documentation-icon-wikitext') .. ' ' .. message('template-namespace-heading')
elseif subjectSpace == 828 then -- Module namespace
data.heading = message('documentation-icon-wikitext') .. ' ' .. message('module-namespace-heading')
elseif subjectSpace == 6 then -- File namespace
data.heading = message('file-namespace-heading')
else
data.heading = message('other-namespaces-heading')
end
-- Heading CSS
local headingStyle = args['heading-style']
if headingStyle then
data.headingStyleText = headingStyle
elseif subjectSpace == 10 then
-- We are in the template or template talk namespaces.
data.headingFontWeight = 'bold'
data.headingFontSize = '125%'
else
data.headingFontSize = '150%'
end
-- Data for the [view][edit][history][purge] or [create] links.
if links then
data.linksClass = message('start-box-linkclasses')
data.linksId = message('start-box-link-id')
data.links = links
end
return data
end
function p.renderStartBox(data)
-- Renders the start box html.
-- @data - a table of data generated by p.makeStartBoxData.
local sbox = mw.html.create('div')
sbox
:css('padding-bottom', '3px')
:css('border-bottom', '1px solid #aaa')
:css('margin-bottom', '1ex')
:newline()
:tag('span')
:cssText(data.headingStyleText)
:css('font-weight', data.headingFontWeight)
:css('font-size', data.headingFontSize)
:wikitext(data.heading)
local links = data.links
if links then
sbox:tag('span')
:addClass(data.linksClass)
:attr('id', data.linksId)
:wikitext(links)
end
return tostring(sbox)
end
----------------------------------------------------------------------------
-- Documentation content
----------------------------------------------------------------------------
p.content = makeInvokeFunc('_content')
function p._content(args, env)
-- Displays the documentation contents
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
env = env or p.getEnvironment(args)
local docTitle = env.docTitle
local content = args.content
if not content and docTitle and docTitle.exists then
content = args._content or mw.getCurrentFrame():expandTemplate{title = docTitle.prefixedText}
end
-- The line breaks below are necessary so that &quot;=== Headings ===&quot; at the start and end
-- of docs are interpreted correctly.
return '\n' .. (content or '') .. '\n'
end
p.contentTitle = makeInvokeFunc('_contentTitle')
function p._contentTitle(args, env)
env = env or p.getEnvironment(args)
local docTitle = env.docTitle
if not args.content and docTitle and docTitle.exists then
return docTitle.prefixedText
else
return ''
end
end
----------------------------------------------------------------------------
-- End box
----------------------------------------------------------------------------
p.endBox = makeInvokeFunc('_endBox')
function p._endBox(args, env)
--[=[
-- This function generates the end box (also known as the link box).
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
--
-- Messages:
-- 'fmbox-id' --&gt; 'documentation-meta-data'
-- 'fmbox-style' --&gt; 'background-color: #ecfcf4'
-- 'fmbox-textstyle' --&gt; 'font-style: italic'
--
-- The HTML is generated by the {{fmbox}} template, courtesy of [[Module:Message box]].
--]=]
-- Get environment data.
env = env or p.getEnvironment(args)
local subjectSpace = env.subjectSpace
local docTitle = env.docTitle
if not subjectSpace or not docTitle then
return nil
end
-- Check whether we should output the end box at all. Add the end
-- box by default if the documentation exists or if we are in the
-- user, module or template namespaces.
local linkBox = args['link box']
if linkBox == 'off'
or not (
docTitle.exists
or subjectSpace == 2
or subjectSpace == 828
or subjectSpace == 10
)
then
return nil
end
-- Assemble the arguments for {{fmbox}}.
local fmargs = {}
fmargs.id = message('fmbox-id') -- Sets 'documentation-meta-data'
fmargs.image = 'none'
fmargs.style = message('fmbox-style') -- Sets 'background-color: #ecfcf4'
fmargs.textstyle = message('fmbox-textstyle') -- 'font-style: italic;'
-- Assemble the fmbox text field.
local text = ''
if linkBox then
text = text .. linkBox
else
text = text .. (p.makeDocPageBlurb(args, env) or '') -- &quot;This documentation is transcluded from [[Foo]].&quot;
if subjectSpace == 2 or subjectSpace == 10 or subjectSpace == 828 then
-- We are in the user, template or module namespaces.
-- Add sandbox and testcases links.
-- &quot;Editors can experiment in this template's sandbox and testcases pages.&quot;
text = text .. (p.makeExperimentBlurb(args, env) or '')
text = text .. '&lt;br /&gt;'
if not args.content and not args[1] then
-- &quot;Please add categories to the /doc subpage.&quot;
-- Don't show this message with inline docs or with an explicitly specified doc page,
-- as then it is unclear where to add the categories.
text = text .. (p.makeCategoriesBlurb(args, env) or '')
end
text = text .. ' ' .. (p.makeSubpagesBlurb(args, env) or '') --&quot;Subpages of this template&quot;
local printBlurb = p.makePrintBlurb(args, env) -- Two-line blurb about print versions of templates.
if printBlurb then
text = text .. '&lt;br /&gt;' .. printBlurb
end
end
end
fmargs.text = text
return messageBox.main('fmbox', fmargs)
end
function p.makeDocPageBlurb(args, env)
--[=[
-- Makes the blurb &quot;This documentation is transcluded from [[Template:Foo]] (edit, history)&quot;.
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
--
-- Messages:
-- 'edit-link-display' --&gt; 'edit'
-- 'history-link-display' --&gt; 'history'
-- 'transcluded-from-blurb' --&gt;
-- 'The above [[Wikipedia:Template documentation|documentation]]
-- is [[Wikipedia:Transclusion|transcluded]] from $1.'
-- 'module-preload' --&gt; 'Template:Documentation/preload-module-doc'
-- 'create-link-display' --&gt; 'create'
-- 'create-module-doc-blurb' --&gt;
-- 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].'
--]=]
local docTitle = env.docTitle
if not docTitle then
return nil
end
local ret
if docTitle.exists then
-- /doc exists; link to it.
local docLink = makeWikilink(docTitle.prefixedText)
local editUrl = docTitle:fullUrl{action = 'edit'}
local editDisplay = message('edit-link-display')
local editLink = makeUrlLink(editUrl, editDisplay)
local historyUrl = docTitle:fullUrl{action = 'history'}
local historyDisplay = message('history-link-display')
local historyLink = makeUrlLink(historyUrl, historyDisplay)
ret = message('transcluded-from-blurb', {docLink})
.. ' '
.. makeToolbar(editLink, historyLink)
.. '&lt;br /&gt;'
elseif env.subjectSpace == 828 then
-- /doc does not exist; ask to create it.
local createUrl = docTitle:fullUrl{action = 'edit', preload = message('module-preload')}
local createDisplay = message('create-link-display')
local createLink = makeUrlLink(createUrl, createDisplay)
ret = message('create-module-doc-blurb', {createLink})
.. '&lt;br /&gt;'
end
return ret
end
function p.makeExperimentBlurb(args, env)
--[[
-- Renders the text &quot;Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.&quot;
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
--
-- Messages:
-- 'sandbox-link-display' --&gt; 'sandbox'
-- 'sandbox-edit-link-display' --&gt; 'edit'
-- 'compare-link-display' --&gt; 'diff'
-- 'module-sandbox-preload' --&gt; 'Template:Documentation/preload-module-sandbox'
-- 'template-sandbox-preload' --&gt; 'Template:Documentation/preload-sandbox'
-- 'sandbox-create-link-display' --&gt; 'create'
-- 'mirror-edit-summary' --&gt; 'Create sandbox version of $1'
-- 'mirror-link-display' --&gt; 'mirror'
-- 'mirror-link-preload' --&gt; 'Template:Documentation/mirror'
-- 'sandbox-link-display' --&gt; 'sandbox'
-- 'testcases-link-display' --&gt; 'testcases'
-- 'testcases-edit-link-display'--&gt; 'edit'
-- 'template-sandbox-preload' --&gt; 'Template:Documentation/preload-sandbox'
-- 'testcases-create-link-display' --&gt; 'create'
-- 'testcases-link-display' --&gt; 'testcases'
-- 'testcases-edit-link-display' --&gt; 'edit'
-- 'module-testcases-preload' --&gt; 'Template:Documentation/preload-module-testcases'
-- 'template-testcases-preload' --&gt; 'Template:Documentation/preload-testcases'
-- 'experiment-blurb-module' --&gt; 'Editors can experiment in this module's $1 and $2 pages.'
-- 'experiment-blurb-template' --&gt; 'Editors can experiment in this template's $1 and $2 pages.'
--]]
local subjectSpace = env.subjectSpace
local templateTitle = env.templateTitle
local sandboxTitle = env.sandboxTitle
local testcasesTitle = env.testcasesTitle
local templatePage = templateTitle.prefixedText
if not subjectSpace or not templateTitle or not sandboxTitle or not testcasesTitle then
return nil
end
-- Make links.
local sandboxLinks, testcasesLinks
if sandboxTitle.exists then
local sandboxPage = sandboxTitle.prefixedText
local sandboxDisplay = message('sandbox-link-display')
local sandboxLink = makeWikilink(sandboxPage, sandboxDisplay)
local sandboxEditUrl = sandboxTitle:fullUrl{action = 'edit'}
local sandboxEditDisplay = message('sandbox-edit-link-display')
local sandboxEditLink = makeUrlLink(sandboxEditUrl, sandboxEditDisplay)
local compareUrl = env.compareUrl
local compareLink
if compareUrl then
local compareDisplay = message('compare-link-display')
compareLink = makeUrlLink(compareUrl, compareDisplay)
end
sandboxLinks = sandboxLink .. ' ' .. makeToolbar(sandboxEditLink, compareLink)
else
local sandboxPreload
if subjectSpace == 828 then
sandboxPreload = message('module-sandbox-preload')
else
sandboxPreload = message('template-sandbox-preload')
end
local sandboxCreateUrl = sandboxTitle:fullUrl{action = 'edit', preload = sandboxPreload}
local sandboxCreateDisplay = message('sandbox-create-link-display')
local sandboxCreateLink = makeUrlLink(sandboxCreateUrl, sandboxCreateDisplay)
local mirrorSummary = message('mirror-edit-summary', {makeWikilink(templatePage)})
local mirrorPreload = message('mirror-link-preload')
local mirrorUrl = sandboxTitle:fullUrl{action = 'edit', preload = mirrorPreload, summary = mirrorSummary}
if subjectSpace == 828 then
mirrorUrl = sandboxTitle:fullUrl{action = 'edit', preload = templateTitle.prefixedText, summary = mirrorSummary}
end
local mirrorDisplay = message('mirror-link-display')
local mirrorLink = makeUrlLink(mirrorUrl, mirrorDisplay)
sandboxLinks = message('sandbox-link-display') .. ' ' .. makeToolbar(sandboxCreateLink, mirrorLink)
end
if testcasesTitle.exists then
local testcasesPage = testcasesTitle.prefixedText
local testcasesDisplay = message('testcases-link-display')
local testcasesLink = makeWikilink(testcasesPage, testcasesDisplay)
local testcasesEditUrl = testcasesTitle:fullUrl{action = 'edit'}
local testcasesEditDisplay = message('testcases-edit-link-display')
local testcasesEditLink = makeUrlLink(testcasesEditUrl, testcasesEditDisplay)
-- for Modules, add testcases run link if exists
if subjectSpace == 828 and testcasesTitle.talkPageTitle and testcasesTitle.talkPageTitle.exists then
local testcasesRunLinkDisplay = message('testcases-run-link-display')
local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay)
testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink, testcasesRunLink)
else
testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink)
end
else
local testcasesPreload
if subjectSpace == 828 then
testcasesPreload = message('module-testcases-preload')
else
testcasesPreload = message('template-testcases-preload')
end
local testcasesCreateUrl = testcasesTitle:fullUrl{action = 'edit', preload = testcasesPreload}
local testcasesCreateDisplay = message('testcases-create-link-display')
local testcasesCreateLink = makeUrlLink(testcasesCreateUrl, testcasesCreateDisplay)
testcasesLinks = message('testcases-link-display') .. ' ' .. makeToolbar(testcasesCreateLink)
end
local messageName
if subjectSpace == 828 then
messageName = 'experiment-blurb-module'
else
messageName = 'experiment-blurb-template'
end
return message(messageName, {sandboxLinks, testcasesLinks})
end
function p.makeCategoriesBlurb(args, env)
--[[
-- Generates the text &quot;Please add categories to the /doc subpage.&quot;
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
-- Messages:
-- 'doc-link-display' --&gt; '/doc'
-- 'add-categories-blurb' --&gt; 'Please add categories to the $1 subpage.'
--]]
local docTitle = env.docTitle
if not docTitle then
return nil
end
local docPathLink = makeWikilink(docTitle.prefixedText, message('doc-link-display'))
return message('add-categories-blurb', {docPathLink})
end
function p.makeSubpagesBlurb(args, env)
--[[
-- Generates the &quot;Subpages of this template&quot; link.
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
-- Messages:
-- 'template-pagetype' --&gt; 'template'
-- 'module-pagetype' --&gt; 'module'
-- 'default-pagetype' --&gt; 'page'
-- 'subpages-link-display' --&gt; 'Subpages of this $1'
--]]
local subjectSpace = env.subjectSpace
local templateTitle = env.templateTitle
if not subjectSpace or not templateTitle then
return nil
end
local pagetype
if subjectSpace == 10 then
pagetype = message('template-pagetype')
elseif subjectSpace == 828 then
pagetype = message('module-pagetype')
else
pagetype = message('default-pagetype')
end
local subpagesLink = makeWikilink(
'Special:PrefixIndex/' .. templateTitle.prefixedText .. '/',
message('subpages-link-display', {pagetype})
)
return message('subpages-blurb', {subpagesLink})
end
function p.makePrintBlurb(args, env)
--[=[
-- Generates the blurb displayed when there is a print version of the template available.
-- @args - a table of arguments passed by the user
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
--
-- Messages:
-- 'print-link-display' --&gt; '/Print'
-- 'print-blurb' --&gt; 'A [[Help:Books/for experts#Improving the book layout|print version]]'
-- .. ' of this template exists at $1.'
-- .. ' If you make a change to this template, please update the print version as well.'
-- 'display-print-category' --&gt; true
-- 'print-category' --&gt; 'Templates with print versions'
--]=]
local printTitle = env.printTitle
if not printTitle then
return nil
end
local ret
if printTitle.exists then
local printLink = makeWikilink(printTitle.prefixedText, message('print-link-display'))
ret = message('print-blurb', {printLink})
local displayPrintCategory = message('display-print-category', nil, 'boolean')
if displayPrintCategory then
ret = ret .. makeCategoryLink(message('print-category'))
end
end
return ret
end
----------------------------------------------------------------------------
-- Tracking categories
----------------------------------------------------------------------------
function p.addTrackingCategories(env)
--[[
-- Check if {{documentation}} is transcluded on a /doc or /testcases page.
-- @env - environment table containing title objects, etc., generated with p.getEnvironment
-- Messages:
-- 'display-strange-usage-category' --&gt; true
-- 'doc-subpage' --&gt; 'doc'
-- 'testcases-subpage' --&gt; 'testcases'
-- 'strange-usage-category' --&gt; 'Wikipedia pages with strange ((documentation)) usage'
--
-- /testcases pages in the module namespace are not categorised, as they may have
-- {{documentation}} transcluded automatically.
--]]
local title = env.title
local subjectSpace = env.subjectSpace
if not title or not subjectSpace then
return nil
end
local subpage = title.subpageText
local ret = ''
if message('display-strange-usage-category', nil, 'boolean')
and (
subpage == message('doc-subpage')
or subjectSpace ~= 828 and subpage == message('testcases-subpage')
)
then
ret = ret .. makeCategoryLink(message('strange-usage-category'))
end
return ret
end
return p</text>
<sha1>jf2f51u5rzim7qgb93sv92cvfe6ak0s</sha1>
</revision>
</page>
<page>
<title>Module:Documentation/config</title>
<ns>828</ns>
<id>41520829</id>
<revision>
<id>729280654</id>
<parentid>717457729</parentid>
<timestamp>2016-07-11T04:32:48Z</timestamp>
<contributor>
<username>Andy M. Wang</username>
<id>516856</id>
</contributor>
<comment>rm alt text on icon, since the adjacent text is sufficient alternative text (per [[Special:Diff/729145419|edit request]])</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="18622">----------------------------------------------------------------------------------------------------
--
-- Configuration for Module:Documentation
--
-- Here you can set the values of the parameters and messages used in Module:Documentation to
-- localise it to your wiki and your language. Unless specified otherwise, values given here
-- should be string values.
----------------------------------------------------------------------------------------------------
local cfg = {} -- Do not edit this line.
----------------------------------------------------------------------------------------------------
-- Protection template configuration
----------------------------------------------------------------------------------------------------
-- cfg['protection-reason-edit']
-- The protection reason for edit-protected templates to pass to
-- [[Module:Protection banner]].
cfg['protection-reason-edit'] = 'template'
--[[
----------------------------------------------------------------------------------------------------
-- Sandbox notice configuration
--
-- On sandbox pages the module can display a template notifying users that the current page is a
-- sandbox, and the location of test cases pages, etc. The module decides whether the page is a
-- sandbox or not based on the value of cfg['sandbox-subpage']. The following settings configure the
-- messages that the notices contains.
----------------------------------------------------------------------------------------------------
--]]
-- cfg['sandbox-notice-image']
-- The image displayed in the sandbox notice.
cfg['sandbox-notice-image'] = '[[Image:Sandbox.svg|50px|alt=|link=]]'
--[[
-- cfg['sandbox-notice-pagetype-template']
-- cfg['sandbox-notice-pagetype-module']
-- cfg['sandbox-notice-pagetype-other']
-- The page type of the sandbox page. The message that is displayed depends on the current subject
-- namespace. This message is used in either cfg['sandbox-notice-blurb'] or
-- cfg['sandbox-notice-diff-blurb'].
--]]
cfg['sandbox-notice-pagetype-template'] = '[[Wikipedia:Template test cases|template sandbox]] page'
cfg['sandbox-notice-pagetype-module'] = '[[Wikipedia:Template test cases|module sandbox]] page'
cfg['sandbox-notice-pagetype-other'] = 'sandbox page'
--[[
-- cfg['sandbox-notice-blurb']
-- cfg['sandbox-notice-diff-blurb']
-- cfg['sandbox-notice-diff-display']
-- Either cfg['sandbox-notice-blurb'] or cfg['sandbox-notice-diff-blurb'] is the opening sentence
-- of the sandbox notice. The latter has a diff link, but the former does not. $1 is the page
-- type, which is either cfg['sandbox-notice-pagetype-template'],
-- cfg['sandbox-notice-pagetype-module'] or cfg['sandbox-notice-pagetype-other'] depending what
-- namespace we are in. $2 is a link to the main template page, and $3 is a diff link between
-- the sandbox and the main template. The display value of the diff link is set by
-- cfg['sandbox-notice-compare-link-display'].
--]]
cfg['sandbox-notice-blurb'] = 'This is the $1 for $2.'
cfg['sandbox-notice-diff-blurb'] = 'This is the $1 for $2 ($3).'
cfg['sandbox-notice-compare-link-display'] = 'diff'
--[[
-- cfg['sandbox-notice-testcases-blurb']
-- cfg['sandbox-notice-testcases-link-display']
-- cfg['sandbox-notice-testcases-run-blurb']
-- cfg['sandbox-notice-testcases-run-link-display']
-- cfg['sandbox-notice-testcases-blurb'] is a sentence notifying the user that there is a test cases page
-- corresponding to this sandbox that they can edit. $1 is a link to the test cases page.
-- cfg['sandbox-notice-testcases-link-display'] is the display value for that link.
-- cfg['sandbox-notice-testcases-run-blurb'] is a sentence notifying the user that there is a test cases page
-- corresponding to this sandbox that they can edit, along with a link to run it. $1 is a link to the test
-- cases page, and $2 is a link to the page to run it.
-- cfg['sandbox-notice-testcases-run-link-display'] is the display value for the link to run the test
-- cases.
--]]
cfg['sandbox-notice-testcases-blurb'] = 'See also the companion subpage for $1.'
cfg['sandbox-notice-testcases-link-display'] = 'test cases'
cfg['sandbox-notice-testcases-run-blurb'] = 'See also the companion subpage for $1 ($2).'
cfg['sandbox-notice-testcases-run-link-display'] = 'run'
-- cfg['sandbox-category']
-- A category to add to all template sandboxes.
cfg['sandbox-category'] = 'Template sandboxes'
----------------------------------------------------------------------------------------------------
-- Start box configuration
----------------------------------------------------------------------------------------------------
-- cfg['documentation-icon-wikitext']
-- The wikitext for the icon shown at the top of the template.
cfg['documentation-icon-wikitext'] = '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]'
-- cfg['template-namespace-heading']
-- The heading shown in the template namespace.
cfg['template-namespace-heading'] = 'Template documentation'
-- cfg['module-namespace-heading']
-- The heading shown in the module namespace.
cfg['module-namespace-heading'] = 'Module documentation'
-- cfg['file-namespace-heading']
-- The heading shown in the file namespace.
cfg['file-namespace-heading'] = 'Summary'
-- cfg['other-namespaces-heading']
-- The heading shown in other namespaces.
cfg['other-namespaces-heading'] = 'Documentation'
-- cfg['view-link-display']
-- The text to display for &quot;view&quot; links.
cfg['view-link-display'] = 'view'
-- cfg['edit-link-display']
-- The text to display for &quot;edit&quot; links.
cfg['edit-link-display'] = 'edit'
-- cfg['history-link-display']
-- The text to display for &quot;history&quot; links.
cfg['history-link-display'] = 'history'
-- cfg['purge-link-display']
-- The text to display for &quot;purge&quot; links.
cfg['purge-link-display'] = 'purge'
-- cfg['create-link-display']
-- The text to display for &quot;create&quot; links.
cfg['create-link-display'] = 'create'
----------------------------------------------------------------------------------------------------
-- Link box (end box) configuration
----------------------------------------------------------------------------------------------------
-- cfg['transcluded-from-blurb']
-- Notice displayed when the docs are transcluded from another page. $1 is a wikilink to that page.
cfg['transcluded-from-blurb'] = 'The above [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from $1.'
--[[
-- cfg['create-module-doc-blurb']
-- Notice displayed in the module namespace when the documentation subpage does not exist.
-- $1 is a link to create the documentation page with the preload cfg['module-preload'] and the
-- display cfg['create-link-display'].
--]]
cfg['create-module-doc-blurb'] = 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].'
----------------------------------------------------------------------------------------------------
-- Experiment blurb configuration
----------------------------------------------------------------------------------------------------
--[[
-- cfg['experiment-blurb-template']
-- cfg['experiment-blurb-module']
-- The experiment blurb is the text inviting editors to experiment in sandbox and test cases pages.
-- It is only shown in the template and module namespaces. With the default English settings, it
-- might look like this:
--
-- Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
--
-- In this example, &quot;sandbox&quot;, &quot;edit&quot;, &quot;diff&quot;, &quot;testcases&quot;, and &quot;edit&quot; would all be links.
--
-- There are two versions, cfg['experiment-blurb-template'] and cfg['experiment-blurb-module'], depending
-- on what namespace we are in.
--
-- Parameters:
--
-- $1 is a link to the sandbox page. If the sandbox exists, it is in the following format:
--
-- cfg['sandbox-link-display'] (cfg['sandbox-edit-link-display'] | cfg['compare-link-display'])
--
-- If the sandbox doesn't exist, it is in the format:
--
-- cfg['sandbox-link-display'] (cfg['sandbox-create-link-display'] | cfg['mirror-link-display'])
--
-- The link for cfg['sandbox-create-link-display'] link preloads the page with cfg['template-sandbox-preload']
-- or cfg['module-sandbox-preload'], depending on the current namespace. The link for cfg['mirror-link-display']
-- loads a default edit summary of cfg['mirror-edit-summary'].
--
-- $2 is a link to the test cases page. If the test cases page exists, it is in the following format:
--
-- cfg['testcases-link-display'] (cfg['testcases-edit-link-display'] | cfg['testcases-run-link-display'])
--
-- If the test cases page doesn't exist, it is in the format:
--
-- cfg['testcases-link-display'] (cfg['testcases-create-link-display'])
--
-- If the test cases page doesn't exist, the link for cfg['testcases-create-link-display'] preloads the
-- page with cfg['template-testcases-preload'] or cfg['module-testcases-preload'], depending on the current
-- namespace.
--]]
cfg['experiment-blurb-template'] = &quot;Editors can experiment in this template's $1 and $2 pages.&quot;
cfg['experiment-blurb-module'] = &quot;Editors can experiment in this module's $1 and $2 pages.&quot;
----------------------------------------------------------------------------------------------------
-- Sandbox link configuration
----------------------------------------------------------------------------------------------------
-- cfg['sandbox-subpage']
-- The name of the template subpage typically used for sandboxes.
cfg['sandbox-subpage'] = 'sandbox'
-- cfg['template-sandbox-preload']
-- Preload file for template sandbox pages.
cfg['template-sandbox-preload'] = 'Template:Documentation/preload-sandbox'
-- cfg['module-sandbox-preload']
-- Preload file for Lua module sandbox pages.
cfg['module-sandbox-preload'] = 'Template:Documentation/preload-module-sandbox'
-- cfg['sandbox-link-display']
-- The text to display for &quot;sandbox&quot; links.
cfg['sandbox-link-display'] = 'sandbox'
-- cfg['sandbox-edit-link-display']
-- The text to display for sandbox &quot;edit&quot; links.
cfg['sandbox-edit-link-display'] = 'edit'
-- cfg['sandbox-create-link-display']
-- The text to display for sandbox &quot;create&quot; links.
cfg['sandbox-create-link-display'] = 'create'
-- cfg['compare-link-display']
-- The text to display for &quot;compare&quot; links.
cfg['compare-link-display'] = 'diff'
-- cfg['mirror-edit-summary']
-- The default edit summary to use when a user clicks the &quot;mirror&quot; link. $1 is a wikilink to the
-- template page.
cfg['mirror-edit-summary'] = 'Create sandbox version of $1'
-- cfg['mirror-link-display']
-- The text to display for &quot;mirror&quot; links.
cfg['mirror-link-display'] = 'mirror'
-- cfg['mirror-link-preload']
-- The page to preload when a user clicks the &quot;mirror&quot; link.
cfg['mirror-link-preload'] = 'Template:Documentation/mirror'
----------------------------------------------------------------------------------------------------
-- Test cases link configuration
----------------------------------------------------------------------------------------------------
-- cfg['testcases-subpage']
-- The name of the template subpage typically used for test cases.
cfg['testcases-subpage'] = 'testcases'
-- cfg['template-testcases-preload']
-- Preload file for template test cases pages.
cfg['template-testcases-preload'] = 'Template:Documentation/preload-testcases'
-- cfg['module-testcases-preload']
-- Preload file for Lua module test cases pages.
cfg['module-testcases-preload'] = 'Template:Documentation/preload-module-testcases'
-- cfg['testcases-link-display']
-- The text to display for &quot;testcases&quot; links.
cfg['testcases-link-display'] = 'testcases'
-- cfg['testcases-edit-link-display']
-- The text to display for test cases &quot;edit&quot; links.
cfg['testcases-edit-link-display'] = 'edit'
-- cfg['testcases-run-link-display']
-- The text to display for test cases &quot;run&quot; links.
cfg['testcases-run-link-display'] = 'run'
-- cfg['testcases-create-link-display']
-- The text to display for test cases &quot;create&quot; links.
cfg['testcases-create-link-display'] = 'create'
----------------------------------------------------------------------------------------------------
-- Add categories blurb configuration
----------------------------------------------------------------------------------------------------
--[[
-- cfg['add-categories-blurb']
-- Text to direct users to add categories to the /doc subpage. Not used if the &quot;content&quot; or
-- &quot;docname fed&quot; arguments are set, as then it is not clear where to add the categories. $1 is a
-- link to the /doc subpage with a display value of cfg['doc-link-display'].
--]]
cfg['add-categories-blurb'] = 'Please add categories to the $1 subpage.'
-- cfg['doc-link-display']
-- The text to display when linking to the /doc subpage.
cfg['doc-link-display'] = '/doc'
----------------------------------------------------------------------------------------------------
-- Subpages link configuration
----------------------------------------------------------------------------------------------------
--[[
-- cfg['subpages-blurb']
-- The &quot;Subpages of this template&quot; blurb. $1 is a link to the main template's subpages with a
-- display value of cfg['subpages-link-display']. In the English version this blurb is simply
-- the link followed by a period, and the link display provides the actual text.
--]]
cfg['subpages-blurb'] = '$1.'
--[[
-- cfg['subpages-link-display']
-- The text to display for the &quot;subpages of this page&quot; link. $1 is cfg['template-pagetype'],
-- cfg['module-pagetype'] or cfg['default-pagetype'], depending on whether the current page is in
-- the template namespace, the module namespace, or another namespace.
--]]
cfg['subpages-link-display'] = 'Subpages of this $1'
-- cfg['template-pagetype']
-- The pagetype to display for template pages.
cfg['template-pagetype'] = 'template'
-- cfg['module-pagetype']
-- The pagetype to display for Lua module pages.
cfg['module-pagetype'] = 'module'
-- cfg['default-pagetype']
-- The pagetype to display for pages other than templates or Lua modules.
cfg['default-pagetype'] = 'page'
----------------------------------------------------------------------------------------------------
-- Doc link configuration
----------------------------------------------------------------------------------------------------
-- cfg['doc-subpage']
-- The name of the subpage typically used for documentation pages.
cfg['doc-subpage'] = 'doc'
-- cfg['file-docpage-preload']
-- Preload file for documentation page in the file namespace.
cfg['file-docpage-preload'] = 'Template:Documentation/preload-filespace'
-- cfg['docpage-preload']
-- Preload file for template documentation pages in all namespaces.
cfg['docpage-preload'] = 'Template:Documentation/preload'
-- cfg['module-preload']
-- Preload file for Lua module documentation pages.
cfg['module-preload'] = 'Template:Documentation/preload-module-doc'
----------------------------------------------------------------------------------------------------
-- Print version configuration
----------------------------------------------------------------------------------------------------
-- cfg['print-subpage']
-- The name of the template subpage used for print versions.
cfg['print-subpage'] = 'Print'
-- cfg['print-link-display']
-- The text to display when linking to the /Print subpage.
cfg['print-link-display'] = '/Print'
-- cfg['print-blurb']
-- Text to display if a /Print subpage exists. $1 is a link to the subpage with a display value of cfg['print-link-display'].
cfg['print-blurb'] = 'A [[Help:Books/for experts#Improving the book layout|print version]] of this template exists at $1.'
.. ' If you make a change to this template, please update the print version as well.'
-- cfg['display-print-category']
-- Set to true to enable output of cfg['print-category'] if a /Print subpage exists.
-- This should be a boolean value (either true or false).
cfg['display-print-category'] = true
-- cfg['print-category']
-- Category to output if cfg['display-print-category'] is set to true, and a /Print subpage exists.
cfg['print-category'] = 'Templates with print versions'
----------------------------------------------------------------------------------------------------
-- HTML and CSS configuration
----------------------------------------------------------------------------------------------------
-- cfg['main-div-id']
-- The &quot;id&quot; attribute of the main HTML &quot;div&quot; tag.
cfg['main-div-id'] = 'template-documentation'
-- cfg['main-div-classes']
-- The CSS classes added to the main HTML &quot;div&quot; tag.
cfg['main-div-classes'] = 'template-documentation iezoomfix'
-- cfg['start-box-linkclasses']
-- The CSS classes used for the [view][edit][history] or [create] links in the start box.
cfg['start-box-linkclasses'] = 'mw-editsection-like plainlinks'
-- cfg['start-box-link-id']
-- The HTML &quot;id&quot; attribute for the links in the start box.
cfg['start-box-link-id'] = 'doc_editlinks'
----------------------------------------------------------------------------------------------------
-- {{fmbox}} template configuration
----------------------------------------------------------------------------------------------------
-- cfg['fmbox-id']
-- The id sent to the &quot;id&quot; parameter of the {{fmbox}} template.
cfg['fmbox-id'] = 'documentation-meta-data'
-- cfg['fmbox-style']
-- The value sent to the style parameter of {{fmbox}}.
cfg['fmbox-style'] = 'background-color: #ecfcf4'
-- cfg['fmbox-textstyle']
-- The value sent to the &quot;textstyle parameter of {{fmbox}}.
cfg['fmbox-textstyle'] = 'font-style: italic'
----------------------------------------------------------------------------------------------------
-- Tracking category configuration
----------------------------------------------------------------------------------------------------
-- cfg['display-strange-usage-category']
-- Set to true to enable output of cfg['strange-usage-category'] if the module is used on a /doc subpage
-- or a /testcases subpage. This should be a boolean value (either true or false).
cfg['display-strange-usage-category'] = true
-- cfg['strange-usage-category']
-- Category to output if cfg['display-strange-usage-category'] is set to true and the module is used on a
-- /doc subpage or a /testcases subpage.
cfg['strange-usage-category'] = 'Wikipedia pages with strange ((documentation)) usage'
--[[
----------------------------------------------------------------------------------------------------
-- End configuration
--
-- Don't edit anything below this line.
----------------------------------------------------------------------------------------------------
--]]
return cfg</text>
<sha1>6hym6c6py8yoseohy71qvk7kafcy1p5</sha1>
</revision>
</page>
<page>
<title>Module:Effective protection expiry</title>
<ns>828</ns>
<id>48785459</id>
<revision>
<id>744227741</id>
<parentid>740797535</parentid>
<timestamp>2016-10-13T22:30:40Z</timestamp>
<contributor>
<username>Jackmcbarn</username>
<id>19285809</id>
</contributor>
<comment>don't error if the page isn't under PC</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="1494">local p = {}
-- Returns the expiry of a restriction of an action on a given title, or unknown if it cannot be known.
-- If no title is specified, the title of the page being displayed is used.
function p._main(action, pagename)
local title
if type(pagename) == 'table' and pagename.prefixedText then
title = pagename
elseif pagename then
title = mw.title.new(pagename)
else
title = mw.title.getCurrentTitle()
end
pagename = title.prefixedText
if action == 'autoreview' then
local stabilitySettings = mw.ext.FlaggedRevs.getStabilitySettings(title)
return stabilitySettings and stabilitySettings.expiry or 'unknown'
elseif action ~= 'edit' and action ~= 'move' and action ~= 'create' and action ~= 'upload' then
error( 'First parameter must be one of edit, move, create, upload, autoreview', 2 )
end
local rawExpiry = mw.getCurrentFrame():callParserFunction('PROTECTIONEXPIRY', action, pagename)
if rawExpiry == 'infinity' then
return 'infinity'
elseif rawExpiry == '' then
return 'unknown'
else
local year, month, day, hour, minute, second = rawExpiry:match(
'^(%d%d%d%d)(%d%d)(%d%d)(%d%d)(%d%d)(%d%d)$'
)
if year then
return string.format(
'%s-%s-%sT%s:%s:%s',
year, month, day, hour, minute, second
)
else
error('internal error in Module:Effective protection expiry; malformed expiry timestamp')
end
end
end
setmetatable(p, { __index = function(t, k)
return function(frame)
return t._main(k, frame.args[1])
end
end })
return p</text>
<sha1>i1wms02y1w048cq6uttka18a5pjzp63</sha1>
</revision>
</page>
<page>
<title>Module:Effective protection level</title>
<ns>828</ns>
<id>41617327</id>
<revision>
<id>713934935</id>
<parentid>708059351</parentid>
<timestamp>2016-04-06T17:04:11Z</timestamp>
<contributor>
<username>Jackmcbarn</username>
<id>19285809</id>
</contributor>
<comment>handle extendedconfirmed</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="3018">local p = {}
-- Returns the permission required to perform a given action on a given title.
-- If no title is specified, the title of the page being displayed is used.
function p._main(action, pagename)
local title
if type(pagename) == 'table' and pagename.prefixedText then
title = pagename
elseif pagename then
title = mw.title.new(pagename)
else
title = mw.title.getCurrentTitle()
end
pagename = title.prefixedText
if action == 'autoreview' then
local level = mw.ext.FlaggedRevs.getStabilitySettings(title)
level = level and level.autoreview
if level == 'review' then
return 'reviewer'
elseif level ~= '' then
return level
else
return nil -- not '*'. a page not being PC-protected is distinct from it being PC-protected with anyone able to review. also not '', as that would mean PC-protected but nobody can review
end
elseif action ~= 'edit' and action ~= 'move' and action ~= 'create' and action ~= 'upload' then
error( 'First parameter must be one of edit, move, create, upload, autoreview', 2 )
end
if title.namespace == 8 then -- MediaWiki namespace
return 'sysop'
elseif title.namespace == 2 and title.isSubpage and ( title.contentModel == 'javascript' or title.contentModel == 'css' ) then -- user JS or CSS page
return 'sysop'
end
local level = title.protectionLevels[action] and title.protectionLevels[action][1]
if level == 'sysop' or level == 'editprotected' then
return 'sysop'
elseif title.cascadingProtection.restrictions[action] and title.cascadingProtection.restrictions[action][1] then -- used by a cascading-protected page
return 'sysop'
elseif level == 'templateeditor' then
return 'templateeditor'
elseif action == 'move' then
local blacklistentry = mw.ext.TitleBlacklist.test('edit', pagename) -- Testing action edit is correct, since this is for the source page. The target page name gets tested with action move.
if blacklistentry and not blacklistentry.params.autoconfirmed then
return 'templateeditor'
elseif title.namespace == 6 then
return 'filemover'
elseif level == 'extendedconfirmed' then
return 'extendedconfirmed'
else
return 'autoconfirmed'
end
end
local blacklistentry = mw.ext.TitleBlacklist.test(action, pagename)
if blacklistentry then
if not blacklistentry.params.autoconfirmed then
return 'templateeditor'
elseif level == 'extendedconfirmed' then
return 'extendedconfirmed'
else
return 'autoconfirmed'
end
elseif level == 'editsemiprotected' then -- create-semiprotected pages return this for some reason
return 'autoconfirmed'
elseif level then
return level
elseif action == 'upload' then
return 'autoconfirmed'
elseif action == 'create' and title.namespace % 2 == 0 and title.namespace ~= 118 then -- You need to be registered, but not autoconfirmed, to create non-talk pages other than drafts
return 'user'
else
return '*'
end
end
setmetatable(p, { __index = function(t, k)
return function(frame)
return t._main(k, frame.args[1])
end
end })
return p</text>
<sha1>6hocqvqqlqw255k1l856h6hwlqsf6e1</sha1>
</revision>
</page>
<page>
<title>Module:File link</title>
<ns>828</ns>
<id>42903140</id>
<revision>
<id>638642222</id>
<parentid>638639021</parentid>
<timestamp>2014-12-18T14:05:07Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<comment>when calling this from wikitext use a more readable error message for missing file parameters</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="2544">-- This module provides a library for formatting file wikilinks.
local yesno = require('Module:Yesno')
local checkType = require('libraryUtil').checkType
local p = {}
function p._main(args)
checkType('_main', 1, args, 'table')
-- This is basically libraryUtil.checkTypeForNamedArg, but we are rolling our
-- own function to get the right error level.
local function checkArg(key, val, level)
if type(val) ~= 'string' then
error(string.format(
&quot;type error in '%s' parameter of '_main' (expected string, got %s)&quot;,
key, type(val)
), level)
end
end
local ret = {}
-- Adds a positional parameter to the buffer.
local function addPositional(key)
local val = args[key]
if not val then
return nil
end
checkArg(key, val, 4)
ret[#ret + 1] = val
end
-- Adds a named parameter to the buffer. We assume that the parameter name
-- is the same as the argument key.
local function addNamed(key)
local val = args[key]
if not val then
return nil
end
checkArg(key, val, 4)
ret[#ret + 1] = key .. '=' .. val
end
-- Filename
checkArg('file', args.file, 3)
ret[#ret + 1] = 'File:' .. args.file
-- Format
if args.format then
checkArg('format', args.format)
if args.formatfile then
checkArg('formatfile', args.formatfile)
ret[#ret + 1] = args.format .. '=' .. args.formatfile
else
ret[#ret + 1] = args.format
end
end
-- Border
if yesno(args.border) then
ret[#ret + 1] = 'border'
end
addPositional('location')
addPositional('alignment')
addPositional('size')
addNamed('upright')
addNamed('link')
addNamed('alt')
addNamed('page')
addNamed('class')
addNamed('lang')
addNamed('start')
addNamed('end')
addNamed('thumbtime')
addPositional('caption')
return string.format('[[%s]]', table.concat(ret, '|'))
end
function p.main(frame)
local origArgs = require('Module:Arguments').getArgs(frame, {
wrappers = 'Template:File link'
})
if not origArgs.file then
error(&quot;'file' parameter missing from [[Template:File link]]&quot;, 0)
end
-- Copy the arguments that were passed to a new table to avoid looking up
-- every possible parameter in the frame object.
local args = {}
for k, v in pairs(origArgs) do
-- Make _BLANK a special argument to add a blank parameter. For use in
-- conditional templates etc. it is useful for blank arguments to be
-- ignored, but we still need a way to specify them so that we can do
-- things like [[File:Example.png|link=]].
if v == '_BLANK' then
v = ''
end
args[k] = v
end
return p._main(args)
end
return p</text>
<sha1>bzc22v133v9z5yc4aisazripn6l94p8</sha1>
</revision>
</page>
<page>
<title>Module:Message box</title>
<ns>828</ns>
<id>40574910</id>
<revision>
<id>803399820</id>
<parentid>742383679</parentid>
<timestamp>2017-10-02T09:03:51Z</timestamp>
<contributor>
<username>WOSlinker</username>
<id>3138265</id>
</contributor>
<comment>change span to div to reduce lint errors</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="16807">-- This is a meta-module for producing message box templates, including
-- {{mbox}}, {{ambox}}, {{imbox}}, {{tmbox}}, {{ombox}}, {{cmbox}} and {{fmbox}}.
-- Load necessary modules.
require('Module:No globals')
local getArgs
local categoryHandler = require('Module:Category handler')._main
local yesno = require('Module:Yesno')
-- Get a language object for formatDate and ucfirst.
local lang = mw.language.getContentLanguage()
-- Define constants
local CONFIG_MODULE = 'Module:Message box/configuration'
--------------------------------------------------------------------------------
-- Helper functions
--------------------------------------------------------------------------------
local function getTitleObject(...)
-- Get the title object, passing the function through pcall
-- in case we are over the expensive function count limit.
local success, title = pcall(mw.title.new, ...)
if success then
return title
end
end
local function union(t1, t2)
-- Returns the union of two arrays.
local vals = {}
for i, v in ipairs(t1) do
vals[v] = true
end
for i, v in ipairs(t2) do
vals[v] = true
end
local ret = {}
for k in pairs(vals) do
table.insert(ret, k)
end
table.sort(ret)
return ret
end
local function getArgNums(args, prefix)
local nums = {}
for k, v in pairs(args) do
local num = mw.ustring.match(tostring(k), '^' .. prefix .. '([1-9]%d*)$')
if num then
table.insert(nums, tonumber(num))
end
end
table.sort(nums)
return nums
end
--------------------------------------------------------------------------------
-- Box class definition
--------------------------------------------------------------------------------
local MessageBox = {}
MessageBox.__index = MessageBox
function MessageBox.new(boxType, args, cfg)
args = args or {}
local obj = {}
-- Set the title object and the namespace.
obj.title = getTitleObject(args.page) or mw.title.getCurrentTitle()
-- Set the config for our box type.
obj.cfg = cfg[boxType]
if not obj.cfg then
local ns = obj.title.namespace
-- boxType is &quot;mbox&quot; or invalid input
if ns == 0 then
obj.cfg = cfg.ambox -- main namespace
elseif ns == 6 then
obj.cfg = cfg.imbox -- file namespace
elseif ns == 14 then
obj.cfg = cfg.cmbox -- category namespace
else
local nsTable = mw.site.namespaces[ns]
if nsTable and nsTable.isTalk then
obj.cfg = cfg.tmbox -- any talk namespace
else
obj.cfg = cfg.ombox -- other namespaces or invalid input
end
end
end
-- Set the arguments, and remove all blank arguments except for the ones
-- listed in cfg.allowBlankParams.
do
local newArgs = {}
for k, v in pairs(args) do
if v ~= '' then
newArgs[k] = v
end
end
for i, param in ipairs(obj.cfg.allowBlankParams or {}) do
newArgs[param] = args[param]
end
obj.args = newArgs
end
-- Define internal data structure.
obj.categories = {}
obj.classes = {}
return setmetatable(obj, MessageBox)
end
function MessageBox:addCat(ns, cat, sort)
if not cat then
return nil
end
if sort then
cat = string.format('[[Category:%s|%s]]', cat, sort)
else
cat = string.format('[[Category:%s]]', cat)
end
self.categories[ns] = self.categories[ns] or {}
table.insert(self.categories[ns], cat)
end
function MessageBox:addClass(class)
if not class then
return nil
end
table.insert(self.classes, class)
end
function MessageBox:setParameters()
local args = self.args
local cfg = self.cfg
-- Get type data.
self.type = args.type
local typeData = cfg.types[self.type]
self.invalidTypeError = cfg.showInvalidTypeError
and self.type
and not typeData
typeData = typeData or cfg.types[cfg.default]
self.typeClass = typeData.class
self.typeImage = typeData.image
-- Find if the box has been wrongly substituted.
self.isSubstituted = cfg.substCheck and args.subst == 'SUBST'
-- Find whether we are using a small message box.
self.isSmall = cfg.allowSmall and (
cfg.smallParam and args.small == cfg.smallParam
or not cfg.smallParam and yesno(args.small)
)
-- Add attributes, classes and styles.
self.id = args.id
if yesno(args.plainlinks) ~= false then
self:addClass('plainlinks')
end
for _, class in ipairs(cfg.classes or {}) do
self:addClass(class)
end
if self.isSmall then
self:addClass(cfg.smallClass or 'mbox-small')
end
self:addClass(self.typeClass)
self:addClass(args.class)
self.style = args.style
self.attrs = args.attrs
-- Set text style.
self.textstyle = args.textstyle
-- Find if we are on the template page or not. This functionality is only
-- used if useCollapsibleTextFields is set, or if both cfg.templateCategory
-- and cfg.templateCategoryRequireName are set.
self.useCollapsibleTextFields = cfg.useCollapsibleTextFields
if self.useCollapsibleTextFields
or cfg.templateCategory
and cfg.templateCategoryRequireName
then
self.name = args.name
if self.name then
local templateName = mw.ustring.match(
self.name,
'^[tT][eE][mM][pP][lL][aA][tT][eE][%s_]*:[%s_]*(.*)$'
) or self.name
templateName = 'Template:' .. templateName
self.templateTitle = getTitleObject(templateName)
end
self.isTemplatePage = self.templateTitle
and mw.title.equals(self.title, self.templateTitle)
end
-- Process data for collapsible text fields. At the moment these are only
-- used in {{ambox}}.
if self.useCollapsibleTextFields then
-- Get the self.issue value.
if self.isSmall and args.smalltext then
self.issue = args.smalltext
else
local sect
if args.sect == '' then
sect = 'This ' .. (cfg.sectionDefault or 'page')
elseif type(args.sect) == 'string' then
sect = 'This ' .. args.sect
end
local issue = args.issue
issue = type(issue) == 'string' and issue ~= '' and issue or nil
local text = args.text
text = type(text) == 'string' and text or nil
local issues = {}
table.insert(issues, sect)
table.insert(issues, issue)
table.insert(issues, text)
self.issue = table.concat(issues, ' ')
end
-- Get the self.talk value.
local talk = args.talk
-- Show talk links on the template page or template subpages if the talk
-- parameter is blank.
if talk == ''
and self.templateTitle
and (
mw.title.equals(self.templateTitle, self.title)
or self.title:isSubpageOf(self.templateTitle)
)
then
talk = '#'
elseif talk == '' then
talk = nil
end
if talk then
-- If the talk value is a talk page, make a link to that page. Else
-- assume that it's a section heading, and make a link to the talk
-- page of the current page with that section heading.
local talkTitle = getTitleObject(talk)
local talkArgIsTalkPage = true
if not talkTitle or not talkTitle.isTalkPage then
talkArgIsTalkPage = false
talkTitle = getTitleObject(
self.title.text,
mw.site.namespaces[self.title.namespace].talk.id
)
end
if talkTitle and talkTitle.exists then
local talkText = 'Relevant discussion may be found on'
if talkArgIsTalkPage then
talkText = string.format(
'%s [[%s|%s]].',
talkText,
talk,
talkTitle.prefixedText
)
else
talkText = string.format(
'%s the [[%s#%s|talk page]].',
talkText,
talkTitle.prefixedText,
talk
)
end
self.talk = talkText
end
end
-- Get other values.
self.fix = args.fix ~= '' and args.fix or nil
local date
if args.date and args.date ~= '' then
date = args.date
elseif args.date == '' and self.isTemplatePage then
date = lang:formatDate('F Y')
end
if date then
self.date = string.format(&quot; &lt;small&gt;''(%s)''&lt;/small&gt;&quot;, date)
end
self.info = args.info
if yesno(args.removalnotice) then
self.removalNotice = cfg.removalNotice
end
end
-- Set the non-collapsible text field. At the moment this is used by all box
-- types other than ambox, and also by ambox when small=yes.
if self.isSmall then
self.text = args.smalltext or args.text
else
self.text = args.text
end
-- Set the below row.
self.below = cfg.below and args.below
-- General image settings.
self.imageCellDiv = not self.isSmall and cfg.imageCellDiv
self.imageEmptyCell = cfg.imageEmptyCell
if cfg.imageEmptyCellStyle then
self.imageEmptyCellStyle = 'border:none;padding:0px;width:1px'
end
-- Left image settings.
local imageLeft = self.isSmall and args.smallimage or args.image
if cfg.imageCheckBlank and imageLeft ~= 'blank' and imageLeft ~= 'none'
or not cfg.imageCheckBlank and imageLeft ~= 'none'
then
self.imageLeft = imageLeft
if not imageLeft then
local imageSize = self.isSmall
and (cfg.imageSmallSize or '30x30px')
or '40x40px'
self.imageLeft = string.format('[[File:%s|%s|link=|alt=]]', self.typeImage
or 'Imbox notice.png', imageSize)
end
end
-- Right image settings.
local imageRight = self.isSmall and args.smallimageright or args.imageright
if not (cfg.imageRightNone and imageRight == 'none') then
self.imageRight = imageRight
end
end
function MessageBox:setMainspaceCategories()
local args = self.args
local cfg = self.cfg
if not cfg.allowMainspaceCategories then
return nil
end
local nums = {}
for _, prefix in ipairs{'cat', 'category', 'all'} do
args[prefix .. '1'] = args[prefix]
nums = union(nums, getArgNums(args, prefix))
end
-- The following is roughly equivalent to the old {{Ambox/category}}.
local date = args.date
date = type(date) == 'string' and date
local preposition = 'from'
for _, num in ipairs(nums) do
local mainCat = args['cat' .. tostring(num)]
or args['category' .. tostring(num)]
local allCat = args['all' .. tostring(num)]
mainCat = type(mainCat) == 'string' and mainCat
allCat = type(allCat) == 'string' and allCat
if mainCat and date and date ~= '' then
local catTitle = string.format('%s %s %s', mainCat, preposition, date)
self:addCat(0, catTitle)
catTitle = getTitleObject('Category:' .. catTitle)
if not catTitle or not catTitle.exists then
self:addCat(0, 'Articles with invalid date parameter in template')
end
elseif mainCat and (not date or date == '') then
self:addCat(0, mainCat)
end
if allCat then
self:addCat(0, allCat)
end
end
end
function MessageBox:setTemplateCategories()
local args = self.args
local cfg = self.cfg
-- Add template categories.
if cfg.templateCategory then
if cfg.templateCategoryRequireName then
if self.isTemplatePage then
self:addCat(10, cfg.templateCategory)
end
elseif not self.title.isSubpage then
self:addCat(10, cfg.templateCategory)
end
end
-- Add template error categories.
if cfg.templateErrorCategory then
local templateErrorCategory = cfg.templateErrorCategory
local templateCat, templateSort
if not self.name and not self.title.isSubpage then
templateCat = templateErrorCategory
elseif self.isTemplatePage then
local paramsToCheck = cfg.templateErrorParamsToCheck or {}
local count = 0
for i, param in ipairs(paramsToCheck) do
if not args[param] then
count = count + 1
end
end
if count &gt; 0 then
templateCat = templateErrorCategory
templateSort = tostring(count)
end
if self.categoryNums and #self.categoryNums &gt; 0 then
templateCat = templateErrorCategory
templateSort = 'C'
end
end
self:addCat(10, templateCat, templateSort)
end
end
function MessageBox:setAllNamespaceCategories()
-- Set categories for all namespaces.
if self.invalidTypeError then
local allSort = (self.title.namespace == 0 and 'Main:' or '') .. self.title.prefixedText
self:addCat('all', 'Wikipedia message box parameter needs fixing', allSort)
end
if self.isSubstituted then
self:addCat('all', 'Pages with incorrectly substituted templates')
end
end
function MessageBox:setCategories()
if self.title.namespace == 0 then
self:setMainspaceCategories()
elseif self.title.namespace == 10 then
self:setTemplateCategories()
end
self:setAllNamespaceCategories()
end
function MessageBox:renderCategories()
-- Convert category tables to strings and pass them through
-- [[Module:Category handler]].
return categoryHandler{
main = table.concat(self.categories[0] or {}),
template = table.concat(self.categories[10] or {}),
all = table.concat(self.categories.all or {}),
nocat = self.args.nocat,
page = self.args.page
}
end
function MessageBox:export()
local root = mw.html.create()
-- Add the subst check error.
if self.isSubstituted and self.name then
root:tag('b')
:addClass('error')
:wikitext(string.format(
'Template &lt;code&gt;%s[[Template:%s|%s]]%s&lt;/code&gt; has been incorrectly substituted.',
mw.text.nowiki('{{'), self.name, self.name, mw.text.nowiki('}}')
))
end
-- Create the box table.
local boxTable = root:tag('table')
boxTable:attr('id', self.id or nil)
for i, class in ipairs(self.classes or {}) do
boxTable:addClass(class or nil)
end
boxTable
:cssText(self.style or nil)
:attr('role', 'presentation')
if self.attrs then
boxTable:attr(self.attrs)
end
-- Add the left-hand image.
local row = boxTable:tag('tr')
if self.imageLeft then
local imageLeftCell = row:tag('td'):addClass('mbox-image')
if self.imageCellDiv then
-- If we are using a div, redefine imageLeftCell so that the image
-- is inside it. Divs use style=&quot;width: 52px;&quot;, which limits the
-- image width to 52px. If any images in a div are wider than that,
-- they may overlap with the text or cause other display problems.
imageLeftCell = imageLeftCell:tag('div'):css('width', '52px')
end
imageLeftCell:wikitext(self.imageLeft or nil)
elseif self.imageEmptyCell then
-- Some message boxes define an empty cell if no image is specified, and
-- some don't. The old template code in templates where empty cells are
-- specified gives the following hint: &quot;No image. Cell with some width
-- or padding necessary for text cell to have 100% width.&quot;
row:tag('td')
:addClass('mbox-empty-cell')
:cssText(self.imageEmptyCellStyle or nil)
end
-- Add the text.
local textCell = row:tag('td'):addClass('mbox-text')
if self.useCollapsibleTextFields then
-- The message box uses advanced text parameters that allow things to be
-- collapsible. At the moment, only ambox uses this.
textCell:cssText(self.textstyle or nil)
local textCellDiv = textCell:tag('div')
textCellDiv
:addClass('mbox-text-span')
:wikitext(self.issue or nil)
if (self.talk or self.fix) and not self.isSmall then
textCellDiv:tag('span')
:addClass('hide-when-compact')
:wikitext(self.talk and (' ' .. self.talk) or nil)
:wikitext(self.fix and (' ' .. self.fix) or nil)
end
textCellDiv:wikitext(self.date and (' ' .. self.date) or nil)
if self.info and not self.isSmall then
textCellDiv
:tag('span')
:addClass('hide-when-compact')
:wikitext(self.info and (' ' .. self.info) or nil)
end
if self.removalNotice then
textCellDiv:tag('small')
:addClass('hide-when-compact')
:tag('i')
:wikitext(string.format(&quot; (%s)&quot;, self.removalNotice))
end
else
-- Default text formatting - anything goes.
textCell
:cssText(self.textstyle or nil)
:wikitext(self.text or nil)
end
-- Add the right-hand image.
if self.imageRight then
local imageRightCell = row:tag('td'):addClass('mbox-imageright')
if self.imageCellDiv then
-- If we are using a div, redefine imageRightCell so that the image
-- is inside it.
imageRightCell = imageRightCell:tag('div'):css('width', '52px')
end
imageRightCell
:wikitext(self.imageRight or nil)
end
-- Add the below row.
if self.below then
boxTable:tag('tr')
:tag('td')
:attr('colspan', self.imageRight and '3' or '2')
:addClass('mbox-text')
:cssText(self.textstyle or nil)
:wikitext(self.below or nil)
end
-- Add error message for invalid type parameters.
if self.invalidTypeError then
root:tag('div')
:css('text-align', 'center')
:wikitext(string.format(
'This message box is using an invalid &quot;type=%s&quot; parameter and needs fixing.',
self.type or ''
))
end
-- Add categories.
root:wikitext(self:renderCategories() or nil)
return tostring(root)
end
--------------------------------------------------------------------------------
-- Exports
--------------------------------------------------------------------------------
local p, mt = {}, {}
function p._exportClasses()
-- For testing.
return {
MessageBox = MessageBox
}
end
function p.main(boxType, args, cfgTables)
local box = MessageBox.new(boxType, args, cfgTables or mw.loadData(CONFIG_MODULE))
box:setParameters()
box:setCategories()
return box:export()
end
function mt.__index(t, k)
return function (frame)
if not getArgs then
getArgs = require('Module:Arguments').getArgs
end
return t.main(k, getArgs(frame, {trim = false, removeBlanks = false}))
end
end
return setmetatable(p, mt)</text>
<sha1>o82985w14pvc3irjmn280op991seq7t</sha1>
</revision>
</page>
<page>
<title>Module:Message box/configuration</title>
<ns>828</ns>
<id>40627038</id>
<revision>
<id>742383738</id>
<parentid>717357572</parentid>
<timestamp>2016-10-03T11:04:13Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<comment>allow all templates to disable the plainlinks class</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="6091">--------------------------------------------------------------------------------
-- Message box configuration --
-- --
-- This module contains configuration data for [[Module:Message box]]. --
--------------------------------------------------------------------------------
return {
ambox = {
types = {
speedy = {
class = 'ambox-speedy',
image = 'Ambox warning pn.svg'
},
delete = {
class = 'ambox-delete',
image = 'Ambox warning pn.svg'
},
content = {
class = 'ambox-content',
image = 'Ambox important.svg'
},
style = {
class = 'ambox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'ambox-move',
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'ambox-protection',
image = 'Padlock-silver-medium.svg'
},
notice = {
class = 'ambox-notice',
image = 'Information icon4.svg'
}
},
default = 'notice',
allowBlankParams = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'},
allowSmall = true,
smallParam = 'left',
smallClass = 'mbox-small-left',
substCheck = true,
classes = {'metadata', 'ambox'},
imageEmptyCell = true,
imageCheckBlank = true,
imageSmallSize = '20x20px',
imageCellDiv = true,
useCollapsibleTextFields = true,
imageRightNone = true,
sectionDefault = 'article',
allowMainspaceCategories = true,
templateCategory = 'Article message templates',
templateCategoryRequireName = true,
templateErrorCategory = 'Article message templates with missing parameters',
templateErrorParamsToCheck = {'issue', 'fix', 'subst'},
removalNotice = '[[Help:Maintenance template removal|Learn how and when to remove this template message]]'
},
cmbox = {
types = {
speedy = {
class = 'cmbox-speedy',
image = 'Ambox warning pn.svg'
},
delete = {
class = 'cmbox-delete',
image = 'Ambox warning pn.svg'
},
content = {
class = 'cmbox-content',
image = 'Ambox important.svg'
},
style = {
class = 'cmbox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'cmbox-move',
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'cmbox-protection',
image = 'Padlock-silver-medium.svg'
},
notice = {
class = 'cmbox-notice',
image = 'Information icon4.svg'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'cmbox'},
imageEmptyCell = true
},
fmbox = {
types = {
warning = {
class = 'fmbox-warning',
image = 'Ambox warning pn.svg'
},
editnotice = {
class = 'fmbox-editnotice',
image = 'Information icon4.svg'
},
system = {
class = 'fmbox-system',
image = 'Information icon4.svg'
}
},
default = 'system',
showInvalidTypeError = true,
classes = {'fmbox'},
imageEmptyCell = false,
imageRightNone = false
},
imbox = {
types = {
speedy = {
class = 'imbox-speedy',
image = 'Ambox warning pn.svg'
},
delete = {
class = 'imbox-delete',
image = 'Ambox warning pn.svg'
},
content = {
class = 'imbox-content',
image = 'Ambox important.svg'
},
style = {
class = 'imbox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'imbox-move',
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'imbox-protection',
image = 'Padlock-silver-medium.svg'
},
license = {
class = 'imbox-license licensetpl',
image = 'Imbox license.png' -- @todo We need an SVG version of this
},
featured = {
class = 'imbox-featured',
image = 'Cscr-featured.svg'
},
notice = {
class = 'imbox-notice',
image = 'Information icon4.svg'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'imbox'},
imageEmptyCell = true,
below = true,
templateCategory = 'File message boxes'
},
ombox = {
types = {
speedy = {
class = 'ombox-speedy',
image = 'Ambox warning pn.svg'
},
delete = {
class = 'ombox-delete',
image = 'Ambox warning pn.svg'
},
content = {
class = 'ombox-content',
image = 'Ambox important.svg'
},
style = {
class = 'ombox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'ombox-move',
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'ombox-protection',
image = 'Padlock-silver-medium.svg'
},
notice = {
class = 'ombox-notice',
image = 'Information icon4.svg'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'ombox'},
allowSmall = true,
imageEmptyCell = true,
imageRightNone = true
},
tmbox = {
types = {
speedy = {
class = 'tmbox-speedy',
image = 'Ambox warning pn.svg'
},
delete = {
class = 'tmbox-delete',
image = 'Ambox warning pn.svg'
},
content = {
class = 'tmbox-content',
image = 'Ambox important.svg'
},
style = {
class = 'tmbox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'tmbox-move',
image = 'Merge-split-transwiki default.svg'
},
protection = {
class = 'tmbox-protection',
image = 'Padlock-silver-medium.svg'
},
notice = {
class = 'tmbox-notice',
image = 'Information icon4.svg'
}
},
default = 'notice',
showInvalidTypeError = true,
classes = {'tmbox'},
allowSmall = true,
imageRightNone = true,
imageEmptyCell = true,
imageEmptyCellStyle = true,
templateCategory = 'Talk message boxes'
}
}</text>
<sha1>16xsc67jviirmw0nf2yuxvotqd7rygq</sha1>
</revision>
</page>
<page>
<title>Module:Namespace detect/config</title>
<ns>828</ns>
<id>42256703</id>
<revision>
<id>602886681</id>
<parentid>602823531</parentid>
<timestamp>2014-04-05T17:03:49Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<comment>use cfg.demopage rather than cfg.page now that the default parameter has been changed on the /data page</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="3545">--------------------------------------------------------------------------------
-- Namespace detect configuration data --
-- --
-- This module stores configuration data for Module:Namespace detect. Here --
-- you can localise the module to your wiki's language. --
-- --
-- To activate a configuration item, you need to uncomment it. This means --
-- that you need to remove the text &quot;-- &quot; at the start of the line. --
--------------------------------------------------------------------------------
local cfg = {} -- Don't edit this line.
--------------------------------------------------------------------------------
-- Parameter names --
-- These configuration items specify custom parameter names. Values added --
-- here will work in addition to the default English parameter names. --
-- To add one extra name, you can use this format: --
-- --
-- cfg.foo = 'parameter name' --
-- --
-- To add multiple names, you can use this format: --
-- --
-- cfg.foo = {'parameter name 1', 'parameter name 2', 'parameter name 3'} --
--------------------------------------------------------------------------------
---- This parameter displays content for the main namespace:
-- cfg.main = 'main'
---- This parameter displays in talk namespaces:
-- cfg.talk = 'talk'
---- This parameter displays content for &quot;other&quot; namespaces (namespaces for which
---- parameters have not been specified):
-- cfg.other = 'other'
---- This parameter makes talk pages behave as though they are the corresponding
---- subject namespace. Note that this parameter is used with [[Module:Yesno]].
---- Edit that module to change the default values of &quot;yes&quot;, &quot;no&quot;, etc.
-- cfg.subjectns = 'subjectns'
---- This parameter sets a demonstration namespace:
-- cfg.demospace = 'demospace'
---- This parameter sets a specific page to compare:
cfg.demopage = 'page'
--------------------------------------------------------------------------------
-- Table configuration --
-- These configuration items allow customisation of the &quot;table&quot; function, --
-- used to generate a table of possible parameters in the module --
-- documentation. --
--------------------------------------------------------------------------------
---- The header for the namespace column in the wikitable containing the list of
---- possible subject-space parameters.
-- cfg.wikitableNamespaceHeader = 'Namespace'
---- The header for the wikitable containing the list of possible subject-space
---- parameters.
-- cfg.wikitableAliasesHeader = 'Aliases'
--------------------------------------------------------------------------------
-- End of configuration data --
--------------------------------------------------------------------------------
return cfg -- Don't edit this line.</text>
<sha1>1o6ozz56i8q0xgyl6xa41n2v7kelhli</sha1>
</revision>
</page>
<page>
<title>Module:Namespace detect/data</title>
<ns>828</ns>
<id>42257476</id>
<revision>
<id>602886511</id>
<parentid>602823622</parentid>
<timestamp>2014-04-05T17:02:16Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<comment>bug fix - use the demospace parameter as both key and value in the argKeys table</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="2569">--------------------------------------------------------------------------------
-- Namespace detect data --
-- This module holds data for [[Module:Namespace detect]] to be loaded per --
-- page, rather than per #invoke, for performance reasons. --
--------------------------------------------------------------------------------
local cfg = require('Module:Namespace detect/config')
local function addKey(t, key, defaultKey)
if key ~= defaultKey then
t[#t + 1] = key
end
end
-- Get a table of parameters to query for each default parameter name.
-- This allows wikis to customise parameter names in the cfg table while
-- ensuring that default parameter names will always work. The cfg table
-- values can be added as a string, or as an array of strings.
local defaultKeys = {
'main',
'talk',
'other',
'subjectns',
'demospace',
'demopage'
}
local argKeys = {}
for i, defaultKey in ipairs(defaultKeys) do
argKeys[defaultKey] = {defaultKey}
end
for defaultKey, t in pairs(argKeys) do
local cfgValue = cfg[defaultKey]
local cfgValueType = type(cfgValue)
if cfgValueType == 'string' then
addKey(t, cfgValue, defaultKey)
elseif cfgValueType == 'table' then
for i, key in ipairs(cfgValue) do
addKey(t, key, defaultKey)
end
end
cfg[defaultKey] = nil -- Free the cfg value as we don't need it any more.
end
local function getParamMappings()
--[[
-- Returns a table of how parameter names map to namespace names. The keys
-- are the actual namespace names, in lower case, and the values are the
-- possible parameter names for that namespace, also in lower case. The
-- table entries are structured like this:
-- {
-- [''] = {'main'},
-- ['wikipedia'] = {'wikipedia', 'project', 'wp'},
-- ...
-- }
--]]
local mappings = {}
local mainNsName = mw.site.subjectNamespaces[0].name
mainNsName = mw.ustring.lower(mainNsName)
mappings[mainNsName] = mw.clone(argKeys.main)
mappings['talk'] = mw.clone(argKeys.talk)
for nsid, ns in pairs(mw.site.subjectNamespaces) do
if nsid ~= 0 then -- Exclude main namespace.
local nsname = mw.ustring.lower(ns.name)
local canonicalName = mw.ustring.lower(ns.canonicalName)
mappings[nsname] = {nsname}
if canonicalName ~= nsname then
table.insert(mappings[nsname], canonicalName)
end
for _, alias in ipairs(ns.aliases) do
table.insert(mappings[nsname], mw.ustring.lower(alias))
end
end
end
return mappings
end
return {
argKeys = argKeys,
cfg = cfg,
mappings = getParamMappings()
}</text>
<sha1>ojp6d3pc8mql5nufaqdg576c9so3479</sha1>
</revision>
</page>
<page>
<title>Module:No globals</title>
<ns>828</ns>
<id>42567026</id>
<revision>
<id>606781024</id>
<parentid>605595284</parentid>
<timestamp>2014-05-02T15:35:56Z</timestamp>
<contributor>
<username>Jackmcbarn</username>
<id>19285809</id>
</contributor>
<comment>rm name exception</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="307">local mt = getmetatable(_G) or {}
function mt.__index (t, k)
if k ~= 'arg' then
error('Tried to read nil global ' .. tostring(k), 2)
end
return nil
end
function mt.__newindex(t, k, v)
if k ~= 'arg' then
error('Tried to write global ' .. tostring(k), 2)
end
rawset(t, k, v)
end
setmetatable(_G, mt)</text>
<sha1>gggsv54pq7f94l3up48hr91qtxnskdm</sha1>
</revision>
</page>
<page>
<title>Module:Protection banner</title>
<ns>828</ns>
<id>42040984</id>
<revision>
<id>741795115</id>
<parentid>732908599</parentid>
<timestamp>2016-09-29T18:32:41Z</timestamp>
<contributor>
<username>Cenarium</username>
<id>5711305</id>
</contributor>
<comment>remove expiry param (now also automatically retrieved for autoreview) and needsexpiry check</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="25486">-- This module implements {{pp-meta}} and its daughter templates such as
-- {{pp-dispute}}, {{pp-vandalism}} and {{pp-sock}}.
-- Initialise necessary modules.
require('Module:No globals')
local makeFileLink = require('Module:File link')._main
local effectiveProtectionLevel = require('Module:Effective protection level')._main
local effectiveProtectionExpiry = require('Module:Effective protection expiry')._main
local yesno = require('Module:Yesno')
-- Lazily initialise modules and objects we don't always need.
local getArgs, makeMessageBox, lang
-- Set constants.
local CONFIG_MODULE = 'Module:Protection banner/config'
--------------------------------------------------------------------------------
-- Helper functions
--------------------------------------------------------------------------------
local function makeCategoryLink(cat, sort)
if cat then
return string.format(
'[[%s:%s|%s]]',
mw.site.namespaces[14].name,
cat,
sort
)
end
end
-- Validation function for the expiry and the protection date
local function validateDate(dateString, dateType)
if not lang then
lang = mw.language.getContentLanguage()
end
local success, result = pcall(lang.formatDate, lang, 'U', dateString)
if success then
result = tonumber(result)
if result then
return result
end
end
error(string.format(
'invalid %s: %s',
dateType,
tostring(dateString)
), 4)
end
local function makeFullUrl(page, query, display)
return string.format(
'[%s %s]',
tostring(mw.uri.fullUrl(page, query)),
display
)
end
-- Given a directed graph formatted as node -&gt; table of direct successors,
-- get a table of all nodes reachable from a given node (though always
-- including the given node).
local function getReachableNodes(graph, start)
local toWalk, retval = {[start] = true}, {}
while true do
-- Can't use pairs() since we're adding and removing things as we're iterating
local k = next(toWalk) -- This always gets the &quot;first&quot; key
if k == nil then
return retval
end
toWalk[k] = nil
retval[k] = true
for _,v in ipairs(graph[k]) do
if not retval[v] then
toWalk[v] = true
end
end
end
end
--------------------------------------------------------------------------------
-- Protection class
--------------------------------------------------------------------------------
local Protection = {}
Protection.__index = Protection
Protection.supportedActions = {
edit = true,
move = true,
autoreview = true,
upload = true
}
Protection.bannerConfigFields = {
'text',
'explanation',
'tooltip',
'alt',
'link',
'image'
}
function Protection.new(args, cfg, title)
local obj = {}
obj._cfg = cfg
obj.title = title or mw.title.getCurrentTitle()
-- Set action
if not args.action then
obj.action = 'edit'
elseif Protection.supportedActions[args.action] then
obj.action = args.action
else
error(string.format(
'invalid action: %s',
tostring(args.action)
), 3)
end
-- Set level
obj.level = args.demolevel or effectiveProtectionLevel(obj.action, obj.title)
if not obj.level or (obj.action == 'move' and obj.level == 'autoconfirmed') then
-- Users need to be autoconfirmed to move pages anyway, so treat
-- semi-move-protected pages as unprotected.
obj.level = '*'
end
-- Set expiry
local effectiveExpiry = effectiveProtectionExpiry(obj.action, obj.title)
if effectiveExpiry == 'infinity' then
obj.expiry = 'indef'
elseif effectiveExpiry ~= 'unknown' then
obj.expiry = validateDate(effectiveExpiry, 'expiry date')
end
-- Set reason
if args[1] then
obj.reason = mw.ustring.lower(args[1])
if obj.reason:find('|') then
error('reasons cannot contain the pipe character (&quot;|&quot;)', 3)
end
end
-- Set protection date
if args.date then
obj.protectionDate = validateDate(args.date, 'protection date')
end
-- Set banner config
do
obj.bannerConfig = {}
local configTables = {}
if cfg.banners[obj.action] then
configTables[#configTables + 1] = cfg.banners[obj.action][obj.reason]
end
if cfg.defaultBanners[obj.action] then
configTables[#configTables + 1] = cfg.defaultBanners[obj.action][obj.level]
configTables[#configTables + 1] = cfg.defaultBanners[obj.action].default
end
configTables[#configTables + 1] = cfg.masterBanner
for i, field in ipairs(Protection.bannerConfigFields) do
for j, t in ipairs(configTables) do
if t[field] then
obj.bannerConfig[field] = t[field]
break
end
end
end
end
return setmetatable(obj, Protection)
end
function Protection:isProtected()
return self.level ~= '*'
end
function Protection:isTemporary()
return type(self.expiry) == 'number'
end
function Protection:makeProtectionCategory()
local cfg = self._cfg
local title = self.title
-- Exit if the page is not protected.
if not self:isProtected() then
return ''
end
-- Get the expiry key fragment.
local expiryFragment
if self.expiry == 'indef' then
expiryFragment = self.expiry
elseif type(self.expiry) == 'number' then
expiryFragment = 'temp'
end
-- Get the namespace key fragment.
local namespaceFragment = cfg.categoryNamespaceKeys[title.namespace]
if not namespaceFragment and title.namespace % 2 == 1 then
namespaceFragment = 'talk'
end
-- Define the order that key fragments are tested in. This is done with an
-- array of tables containing the value to be tested, along with its
-- position in the cfg.protectionCategories table.
local order = {
{val = expiryFragment, keypos = 1},
{val = namespaceFragment, keypos = 2},
{val = self.reason, keypos = 3},
{val = self.level, keypos = 4},
{val = self.action, keypos = 5}
}
--[[
-- The old protection templates used an ad-hoc protection category system,
-- with some templates prioritising namespaces in their categories, and
-- others prioritising the protection reason. To emulate this in this module
-- we use the config table cfg.reasonsWithNamespacePriority to set the
-- reasons for which namespaces have priority over protection reason.
-- If we are dealing with one of those reasons, move the namespace table to
-- the end of the order table, i.e. give it highest priority. If not, the
-- reason should have highest priority, so move that to the end of the table
-- instead.
--]]
table.insert(order, table.remove(order, self.reason and cfg.reasonsWithNamespacePriority[self.reason] and 2 or 3))
--[[
-- Define the attempt order. Inactive subtables (subtables with nil &quot;value&quot;
-- fields) are moved to the end, where they will later be given the key
-- &quot;all&quot;. This is to cut down on the number of table lookups in
-- cfg.protectionCategories, which grows exponentially with the number of
-- non-nil keys. We keep track of the number of active subtables with the
-- noActive parameter.
--]]
local noActive, attemptOrder
do
local active, inactive = {}, {}
for i, t in ipairs(order) do
if t.val then
active[#active + 1] = t
else
inactive[#inactive + 1] = t
end
end
noActive = #active
attemptOrder = active
for i, t in ipairs(inactive) do
attemptOrder[#attemptOrder + 1] = t
end
end
--[[
-- Check increasingly generic key combinations until we find a match. If a
-- specific category exists for the combination of key fragments we are
-- given, that match will be found first. If not, we keep trying different
-- key fragment combinations until we match using the key
-- &quot;all-all-all-all-all&quot;.
--
-- To generate the keys, we index the key subtables using a binary matrix
-- with indexes i and j. j is only calculated up to the number of active
-- subtables. For example, if there were three active subtables, the matrix
-- would look like this, with 0 corresponding to the key fragment &quot;all&quot;, and
-- 1 corresponding to other key fragments.
--
-- j 1 2 3
-- i
-- 1 1 1 1
-- 2 0 1 1
-- 3 1 0 1
-- 4 0 0 1
-- 5 1 1 0
-- 6 0 1 0
-- 7 1 0 0
-- 8 0 0 0
--
-- Values of j higher than the number of active subtables are set
-- to the string &quot;all&quot;.
--
-- A key for cfg.protectionCategories is constructed for each value of i.
-- The position of the value in the key is determined by the keypos field in
-- each subtable.
--]]
local cats = cfg.protectionCategories
for i = 1, 2^noActive do
local key = {}
for j, t in ipairs(attemptOrder) do
if j &gt; noActive then
key[t.keypos] = 'all'
else
local quotient = i / 2 ^ (j - 1)
quotient = math.ceil(quotient)
if quotient % 2 == 1 then
key[t.keypos] = t.val
else
key[t.keypos] = 'all'
end
end
end
key = table.concat(key, '|')
local attempt = cats[key]
if attempt then
return makeCategoryLink(attempt, title.text)
end
end
return ''
end
function Protection:isIncorrect()
local expiry = self.expiry
return not self:isProtected()
or type(expiry) == 'number' and expiry &lt; os.time()
end
function Protection:isTemplateProtectedNonTemplate()
local action, namespace = self.action, self.title.namespace
return self.level == 'templateeditor'
and (
(action ~= 'edit' and action ~= 'move')
or (namespace ~= 10 and namespace ~= 828)
)
end
function Protection:makeCategoryLinks()
local msg = self._cfg.msg
local ret = { self:makeProtectionCategory() }
if self:isIncorrect() then
ret[#ret + 1] = makeCategoryLink(
msg['tracking-category-incorrect'],
self.title.text
)
end
if self:isTemplateProtectedNonTemplate() then
ret[#ret + 1] = makeCategoryLink(
msg['tracking-category-template'],
self.title.text
)
end
return table.concat(ret)
end
--------------------------------------------------------------------------------
-- Blurb class
--------------------------------------------------------------------------------
local Blurb = {}
Blurb.__index = Blurb
Blurb.bannerTextFields = {
text = true,
explanation = true,
tooltip = true,
alt = true,
link = true
}
function Blurb.new(protectionObj, args, cfg)
return setmetatable({
_cfg = cfg,
_protectionObj = protectionObj,
_args = args
}, Blurb)
end
-- Private methods --
function Blurb:_formatDate(num)
-- Formats a Unix timestamp into dd Month, YYYY format.
lang = lang or mw.language.getContentLanguage()
local success, date = pcall(
lang.formatDate,
lang,
self._cfg.msg['expiry-date-format'] or 'j F Y',
'@' .. tostring(num)
)
if success then
return date
end
end
function Blurb:_getExpandedMessage(msgKey)
return self:_substituteParameters(self._cfg.msg[msgKey])
end
function Blurb:_substituteParameters(msg)
if not self._params then
local parameterFuncs = {}
parameterFuncs.CURRENTVERSION = self._makeCurrentVersionParameter
parameterFuncs.EDITREQUEST = self._makeEditRequestParameter
parameterFuncs.EXPIRY = self._makeExpiryParameter
parameterFuncs.EXPLANATIONBLURB = self._makeExplanationBlurbParameter
parameterFuncs.IMAGELINK = self._makeImageLinkParameter
parameterFuncs.INTROBLURB = self._makeIntroBlurbParameter
parameterFuncs.INTROFRAGMENT = self._makeIntroFragmentParameter
parameterFuncs.PAGETYPE = self._makePagetypeParameter
parameterFuncs.PROTECTIONBLURB = self._makeProtectionBlurbParameter
parameterFuncs.PROTECTIONDATE = self._makeProtectionDateParameter
parameterFuncs.PROTECTIONLEVEL = self._makeProtectionLevelParameter
parameterFuncs.PROTECTIONLOG = self._makeProtectionLogParameter
parameterFuncs.TALKPAGE = self._makeTalkPageParameter
parameterFuncs.TOOLTIPBLURB = self._makeTooltipBlurbParameter
parameterFuncs.TOOLTIPFRAGMENT = self._makeTooltipFragmentParameter
parameterFuncs.VANDAL = self._makeVandalTemplateParameter
self._params = setmetatable({}, {
__index = function (t, k)
local param
if parameterFuncs[k] then
param = parameterFuncs[k](self)
end
param = param or ''
t[k] = param
return param
end
})
end
msg = msg:gsub('${(%u+)}', self._params)
return msg
end
function Blurb:_makeCurrentVersionParameter()
-- A link to the page history or the move log, depending on the kind of
-- protection.
local pagename = self._protectionObj.title.prefixedText
if self._protectionObj.action == 'move' then
-- We need the move log link.
return makeFullUrl(
'Special:Log',
{type = 'move', page = pagename},
self:_getExpandedMessage('current-version-move-display')
)
else
-- We need the history link.
return makeFullUrl(
pagename,
{action = 'history'},
self:_getExpandedMessage('current-version-edit-display')
)
end
end
function Blurb:_makeEditRequestParameter()
local mEditRequest = require('Module:Submit an edit request')
local action = self._protectionObj.action
local level = self._protectionObj.level
-- Get the edit request type.
local requestType
if action == 'edit' then
if level == 'autoconfirmed' then
requestType = 'semi'
elseif level == 'extendedconfirmed' then
requestType = 'extended'
elseif level == 'templateeditor' then
requestType = 'template'
end
end
requestType = requestType or 'full'
-- Get the display value.
local display = self:_getExpandedMessage('edit-request-display')
return mEditRequest._link{type = requestType, display = display}
end
function Blurb:_makeExpiryParameter()
local expiry = self._protectionObj.expiry
if type(expiry) == 'number' then
return self:_formatDate(expiry)
else
return expiry
end
end
function Blurb:_makeExplanationBlurbParameter()
-- Cover special cases first.
if self._protectionObj.title.namespace == 8 then
-- MediaWiki namespace
return self:_getExpandedMessage('explanation-blurb-nounprotect')
end
-- Get explanation blurb table keys
local action = self._protectionObj.action
local level = self._protectionObj.level
local talkKey = self._protectionObj.title.isTalkPage and 'talk' or 'subject'
-- Find the message in the explanation blurb table and substitute any
-- parameters.
local explanations = self._cfg.explanationBlurbs
local msg
if explanations[action][level] and explanations[action][level][talkKey] then
msg = explanations[action][level][talkKey]
elseif explanations[action][level] and explanations[action][level].default then
msg = explanations[action][level].default
elseif explanations[action].default and explanations[action].default[talkKey] then
msg = explanations[action].default[talkKey]
elseif explanations[action].default and explanations[action].default.default then
msg = explanations[action].default.default
else
error(string.format(
'could not find explanation blurb for action &quot;%s&quot;, level &quot;%s&quot; and talk key &quot;%s&quot;',
action,
level,
talkKey
), 8)
end
return self:_substituteParameters(msg)
end
function Blurb:_makeImageLinkParameter()
local imageLinks = self._cfg.imageLinks
local action = self._protectionObj.action
local level = self._protectionObj.level
local msg
if imageLinks[action][level] then
msg = imageLinks[action][level]
elseif imageLinks[action].default then
msg = imageLinks[action].default
else
msg = imageLinks.edit.default
end
return self:_substituteParameters(msg)
end
function Blurb:_makeIntroBlurbParameter()
if self._protectionObj:isTemporary() then
return self:_getExpandedMessage('intro-blurb-expiry')
else
return self:_getExpandedMessage('intro-blurb-noexpiry')
end
end
function Blurb:_makeIntroFragmentParameter()
if self._protectionObj:isTemporary() then
return self:_getExpandedMessage('intro-fragment-expiry')
else
return self:_getExpandedMessage('intro-fragment-noexpiry')
end
end
function Blurb:_makePagetypeParameter()
local pagetypes = self._cfg.pagetypes
return pagetypes[self._protectionObj.title.namespace]
or pagetypes.default
or error('no default pagetype defined', 8)
end
function Blurb:_makeProtectionBlurbParameter()
local protectionBlurbs = self._cfg.protectionBlurbs
local action = self._protectionObj.action
local level = self._protectionObj.level
local msg
if protectionBlurbs[action][level] then
msg = protectionBlurbs[action][level]
elseif protectionBlurbs[action].default then
msg = protectionBlurbs[action].default
elseif protectionBlurbs.edit.default then
msg = protectionBlurbs.edit.default
else
error('no protection blurb defined for protectionBlurbs.edit.default', 8)
end
return self:_substituteParameters(msg)
end
function Blurb:_makeProtectionDateParameter()
local protectionDate = self._protectionObj.protectionDate
if type(protectionDate) == 'number' then
return self:_formatDate(protectionDate)
else
return protectionDate
end
end
function Blurb:_makeProtectionLevelParameter()
local protectionLevels = self._cfg.protectionLevels
local action = self._protectionObj.action
local level = self._protectionObj.level
local msg
if protectionLevels[action][level] then
msg = protectionLevels[action][level]
elseif protectionLevels[action].default then
msg = protectionLevels[action].default
elseif protectionLevels.edit.default then
msg = protectionLevels.edit.default
else
error('no protection level defined for protectionLevels.edit.default', 8)
end
return self:_substituteParameters(msg)
end
function Blurb:_makeProtectionLogParameter()
local pagename = self._protectionObj.title.prefixedText
if self._protectionObj.action == 'autoreview' then
-- We need the pending changes log.
return makeFullUrl(
'Special:Log',
{type = 'stable', page = pagename},
self:_getExpandedMessage('pc-log-display')
)
else
-- We need the protection log.
return makeFullUrl(
'Special:Log',
{type = 'protect', page = pagename},
self:_getExpandedMessage('protection-log-display')
)
end
end
function Blurb:_makeTalkPageParameter()
return string.format(
'[[%s:%s#%s|%s]]',
mw.site.namespaces[self._protectionObj.title.namespace].talk.name,
self._protectionObj.title.text,
self._args.section or 'top',
self:_getExpandedMessage('talk-page-link-display')
)
end
function Blurb:_makeTooltipBlurbParameter()
if self._protectionObj:isTemporary() then
return self:_getExpandedMessage('tooltip-blurb-expiry')
else
return self:_getExpandedMessage('tooltip-blurb-noexpiry')
end
end
function Blurb:_makeTooltipFragmentParameter()
if self._protectionObj:isTemporary() then
return self:_getExpandedMessage('tooltip-fragment-expiry')
else
return self:_getExpandedMessage('tooltip-fragment-noexpiry')
end
end
function Blurb:_makeVandalTemplateParameter()
return require('Module:Vandal-m')._main{
self._args.user or self._protectionObj.title.baseText
}
end
-- Public methods --
function Blurb:makeBannerText(key)
-- Validate input.
if not key or not Blurb.bannerTextFields[key] then
error(string.format(
'&quot;%s&quot; is not a valid banner config field',
tostring(key)
), 2)
end
-- Generate the text.
local msg = self._protectionObj.bannerConfig[key]
if type(msg) == 'string' then
return self:_substituteParameters(msg)
elseif type(msg) == 'function' then
msg = msg(self._protectionObj, self._args)
if type(msg) ~= 'string' then
error(string.format(
'bad output from banner config function with key &quot;%s&quot;'
.. ' (expected string, got %s)',
tostring(key),
type(msg)
), 4)
end
return self:_substituteParameters(msg)
end
end
--------------------------------------------------------------------------------
-- BannerTemplate class
--------------------------------------------------------------------------------
local BannerTemplate = {}
BannerTemplate.__index = BannerTemplate
function BannerTemplate.new(protectionObj, cfg)
local obj = {}
obj._cfg = cfg
-- Set the image filename.
local imageFilename = protectionObj.bannerConfig.image
if imageFilename then
obj._imageFilename = imageFilename
else
-- If an image filename isn't specified explicitly in the banner config,
-- generate it from the protection status and the namespace.
local action = protectionObj.action
local level = protectionObj.level
local namespace = protectionObj.title.namespace
local reason = protectionObj.reason
-- Deal with special cases first.
if (
namespace == 10
or namespace == 828
or reason and obj._cfg.indefImageReasons[reason]
)
and action == 'edit'
and level == 'sysop'
and not protectionObj:isTemporary()
then
-- Fully protected modules and templates get the special red &quot;indef&quot;
-- padlock.
obj._imageFilename = obj._cfg.msg['image-filename-indef']
else
-- Deal with regular protection types.
local images = obj._cfg.images
if images[action] then
if images[action][level] then
obj._imageFilename = images[action][level]
elseif images[action].default then
obj._imageFilename = images[action].default
end
end
end
end
return setmetatable(obj, BannerTemplate)
end
function BannerTemplate:renderImage()
local filename = self._imageFilename
or self._cfg.msg['image-filename-default']
or 'Transparent.gif'
return makeFileLink{
file = filename,
size = (self.imageWidth or 20) .. 'px',
alt = self._imageAlt,
link = self._imageLink,
caption = self.imageCaption
}
end
--------------------------------------------------------------------------------
-- Banner class
--------------------------------------------------------------------------------
local Banner = setmetatable({}, BannerTemplate)
Banner.__index = Banner
function Banner.new(protectionObj, blurbObj, cfg)
local obj = BannerTemplate.new(protectionObj, cfg) -- This doesn't need the blurb.
obj.imageWidth = 40
obj.imageCaption = blurbObj:makeBannerText('alt') -- Large banners use the alt text for the tooltip.
obj._reasonText = blurbObj:makeBannerText('text')
obj._explanationText = blurbObj:makeBannerText('explanation')
obj._page = protectionObj.title.prefixedText -- Only makes a difference in testing.
return setmetatable(obj, Banner)
end
function Banner:__tostring()
-- Renders the banner.
makeMessageBox = makeMessageBox or require('Module:Message box').main
local reasonText = self._reasonText or error('no reason text set', 2)
local explanationText = self._explanationText
local mbargs = {
page = self._page,
type = 'protection',
image = self:renderImage(),
text = string.format(
&quot;'''%s'''%s&quot;,
reasonText,
explanationText and '&lt;br /&gt;' .. explanationText or ''
)
}
return makeMessageBox('mbox', mbargs)
end
--------------------------------------------------------------------------------
-- Padlock class
--------------------------------------------------------------------------------
local Padlock = setmetatable({}, BannerTemplate)
Padlock.__index = Padlock
function Padlock.new(protectionObj, blurbObj, cfg)
local obj = BannerTemplate.new(protectionObj, cfg) -- This doesn't need the blurb.
obj.imageWidth = 20
obj.imageCaption = blurbObj:makeBannerText('tooltip')
obj._imageAlt = blurbObj:makeBannerText('alt')
obj._imageLink = blurbObj:makeBannerText('link')
obj._indicatorName = cfg.padlockIndicatorNames[protectionObj.action]
or cfg.padlockIndicatorNames.default
or 'pp-default'
return setmetatable(obj, Padlock)
end
function Padlock:__tostring()
local frame = mw.getCurrentFrame()
-- The nowiki tag helps prevent whitespace at the top of articles.
return frame:extensionTag{name = 'nowiki'} .. frame:extensionTag{
name = 'indicator',
args = {name = self._indicatorName},
content = self:renderImage()
}
end
--------------------------------------------------------------------------------
-- Exports
--------------------------------------------------------------------------------
local p = {}
function p._exportClasses()
-- This is used for testing purposes.
return {
Protection = Protection,
Blurb = Blurb,
BannerTemplate = BannerTemplate,
Banner = Banner,
Padlock = Padlock,
}
end
function p._main(args, cfg, title)
args = args or {}
cfg = cfg or require(CONFIG_MODULE)
local protectionObj = Protection.new(args, cfg, title)
local ret = {}
-- If a page's edit protection is equally or more restrictive than its
-- protection from some other action, then don't bother displaying anything
-- for the other action (except categories).
if protectionObj.action == 'edit' or
args.demolevel or
not getReachableNodes(
cfg.hierarchy,
protectionObj.level
)[effectiveProtectionLevel('edit', protectionObj.title)]
then
-- Initialise the blurb object
local blurbObj = Blurb.new(protectionObj, args, cfg)
-- Render the banner
if protectionObj:isProtected() then
ret[#ret + 1] = tostring(
(yesno(args.small) and Padlock or Banner)
.new(protectionObj, blurbObj, cfg)
)
end
end
-- Render the categories
if yesno(args.category) ~= false then
ret[#ret + 1] = protectionObj:makeCategoryLinks()
end
return table.concat(ret)
end
function p.main(frame, cfg)
cfg = cfg or require(CONFIG_MODULE)
-- Find default args, if any.
local parent = frame.getParent and frame:getParent()
local defaultArgs = parent and cfg.wrappers[parent:getTitle():gsub('/sandbox$', '')]
-- Find user args, and use the parent frame if we are being called from a
-- wrapper template.
getArgs = getArgs or require('Module:Arguments').getArgs
local userArgs = getArgs(frame, {
parentOnly = defaultArgs,
frameOnly = not defaultArgs
})
-- Build the args table. User-specified args overwrite default args.
local args = {}
for k, v in pairs(defaultArgs or {}) do
args[k] = v
end
for k, v in pairs(userArgs) do
args[k] = v
end
return p._main(args, cfg)
end
return p</text>
<sha1>ice162y8kua930ie41kredxjaxhzy3y</sha1>
</revision>
</page>
<page>
<title>Module:Protection banner/config</title>
<ns>828</ns>
<id>42982788</id>
<revision>
<id>822561967</id>
<parentid>819333371</parentid>
<timestamp>2018-01-27T02:46:16Z</timestamp>
<contributor>
<username>BrownHairedGirl</username>
<id>754619</id>
</contributor>
<comment>protectionCategories = { ['all|all|all|all|all'] = 'Wikipedia fully protected pages', // per [[Wikipedia:Categories_for_discussion/Log/2018_January_5#Category:Wikipedia_protected_pages]]</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="46794">-- This module provides configuration data for [[Module:Protection banner]].
return {
--------------------------------------------------------------------------------
--
-- BANNER DATA
--
--------------------------------------------------------------------------------
--[[
-- Banner data consists of six fields:
-- * text - the main protection text that appears at the top of protection
-- banners.
-- * explanation - the text that appears below the main protection text, used
-- to explain the details of the protection.
-- * tooltip - the tooltip text you see when you move the mouse over a small
-- padlock icon.
-- * link - the page that the small padlock icon links to.
-- * alt - the alt text for the small padlock icon. This is also used as tooltip
-- text for the large protection banners.
-- * image - the padlock image used in both protection banners and small padlock
-- icons.
--
-- The module checks in three separate tables to find a value for each field.
-- First it checks the banners table, which has values specific to the reason
-- for the page being protected. Then the module checks the defaultBanners
-- table, which has values specific to each protection level. Finally, the
-- module checks the masterBanner table, which holds data for protection
-- templates to use if no data has been found in the previous two tables.
--
-- The values in the banner data can take parameters. These are specified
-- using ${TEXTLIKETHIS} (a dollar sign preceding a parameter name
-- enclosed in curly braces).
--
-- Available parameters:
--
-- ${CURRENTVERSION} - a link to the page history or the move log, with the
-- display message &quot;current-version-edit-display&quot; or
-- &quot;current-version-move-display&quot;.
--
-- ${EDITREQUEST} - a link to create an edit request for the current page.
--
-- ${EXPLANATIONBLURB} - an explanation blurb, e.g. &quot;Please discuss any changes
-- on the talk page; you may submit a request to ask an administrator to make
-- an edit if it is minor or supported by consensus.&quot;
--
-- ${IMAGELINK} - a link to set the image to, depending on the protection
-- action and protection level.
--
-- ${INTROBLURB} - the PROTECTIONBLURB parameter, plus the expiry if an expiry
-- is set. E.g. &quot;Editing of this page by new or unregistered users is currently
-- disabled until dd Month YYYY.&quot;
--
-- ${INTROFRAGMENT} - the same as ${INTROBLURB}, but without final punctuation
-- so that it can be used in run-on sentences.
--
-- ${PAGETYPE} - the type of the page, e.g. &quot;article&quot; or &quot;template&quot;.
-- Defined in the cfg.pagetypes table.
--
-- ${PROTECTIONBLURB} - a blurb explaining the protection level of the page, e.g.
-- &quot;Editing of this page by new or unregistered users is currently disabled&quot;
--
-- ${PROTECTIONDATE} - the protection date, if it has been supplied to the
-- template.
--
-- ${PROTECTIONLEVEL} - the protection level, e.g. &quot;fully protected&quot; or
-- &quot;semi-protected&quot;.
--
-- ${PROTECTIONLOG} - a link to the protection log or the pending changes log,
-- depending on the protection action.
--
-- ${TALKPAGE} - a link to the talk page. If a section is specified, links
-- straight to that talk page section.
--
-- ${TOOLTIPBLURB} - uses the PAGETYPE, PROTECTIONTYPE and EXPIRY parameters to
-- create a blurb like &quot;This template is semi-protected&quot;, or &quot;This article is
-- move-protected until DD Month YYYY&quot;.
--
-- ${VANDAL} - links for the specified username (or the root page name)
-- using Module:Vandal-m.
--
-- Functions
--
-- For advanced users, it is possible to use Lua functions instead of strings
-- in the banner config tables. Using functions gives flexibility that is not
-- possible just by using parameters. Functions take two arguments, the
-- protection object and the template arguments, and they must output a string.
--
-- For example:
--
-- text = function (protectionObj, args)
-- if protectionObj.level == 'autoconfirmed' then
-- return 'foo'
-- else
-- return 'bar'
-- end
-- end
--
-- Some protection object properties and methods that may be useful:
-- protectionObj.action - the protection action
-- protectionObj.level - the protection level
-- protectionObj.reason - the protection reason
-- protectionObj.expiry - the expiry. Nil if unset, the string &quot;indef&quot; if set
-- to indefinite, and the protection time in unix time if temporary.
-- protectionObj.protectionDate - the protection date in unix time, or nil if
-- unspecified.
-- protectionObj.bannerConfig - the banner config found by the module. Beware
-- of editing the config field used by the function, as it could create an
-- infinite loop.
-- protectionObj:isProtected - returns a boolean showing whether the page is
-- protected.
-- protectionObj:isTemporary - returns a boolean showing whether the expiry is
-- temporary.
-- protectionObj:isIncorrect - returns a boolean showing whether the protection
-- template is incorrect.
--]]
-- The master banner data, used if no values have been found in banners or
-- defaultBanners.
masterBanner = {
text = '${INTROBLURB}',
explanation = '${EXPLANATIONBLURB}',
tooltip = '${TOOLTIPBLURB}',
link = '${IMAGELINK}',
alt = 'Page ${PROTECTIONLEVEL}'
},
-- The default banner data. This holds banner data for different protection
-- levels.
-- *required* - this table needs edit, move, autoreview and upload subtables.
defaultBanners = {
edit = {},
move = {},
autoreview = {
autoconfirmed = {
alt = 'Page protected with pending changes level 1',
tooltip = 'All edits by unregistered and new users are subject to review prior to becoming visible to unregistered users',
image = 'Padlock-silver-light.svg'
},
default = {
alt = 'Page protected with pending changes level 2',
tooltip = 'All edits by users who are not reviewers or administrators are'
.. ' subject to review prior to becoming visible to unregistered users',
image = 'Padlock-orange.svg'
}
},
upload = {}
},
-- The banner data. This holds banner data for different protection reasons.
-- In fact, the reasons specified in this table control which reasons are
-- valid inputs to the first positional parameter.
--
-- There is also a non-standard &quot;description&quot; field that can be used for items
-- in this table. This is a description of the protection reason for use in the
-- module documentation.
--
-- *required* - this table needs edit, move, autoreview and upload subtables.
banners = {
edit = {
blp = {
description = 'For pages protected to promote compliance with the'
.. ' [[Wikipedia:Biographies of living persons'
.. '|biographies of living persons]] policy',
text = '${INTROFRAGMENT} to promote compliance with'
.. ' [[Wikipedia:Biographies of living persons'
.. &quot;|Wikipedia's&amp;nbsp;policy on&amp;nbsp;the&amp;nbsp;biographies&quot;
.. ' of&amp;nbsp;living&amp;nbsp;people]].',
tooltip = '${TOOLTIPFRAGMENT} to promote compliance with the policy on'
.. ' biographies of living people',
},
dmca = {
description = 'For pages protected by the Wikimedia Foundation'
.. ' due to [[Digital Millennium Copyright Act]] takedown requests',
explanation = function (protectionObj, args)
local ret = 'Pursuant to a rights owner notice under the Digital'
.. ' Millennium Copyright Act (DMCA) regarding some content'
.. ' in this article, the Wikimedia Foundation acted under'
.. ' applicable law and took down and restricted the content'
.. ' in question.'
if args.notice then
ret = ret .. ' A copy of the received notice can be found here: '
.. args.notice .. '.'
end
ret = ret .. ' For more information, including websites discussing'
.. ' how to file a counter-notice, please see'
.. &quot; [[Wikipedia:Office actions]] and the article's ${TALKPAGE}.&quot;
.. &quot;'''Do not remove this template from the article until the&quot;
.. &quot; restrictions are withdrawn'''.&quot;
return ret
end,
image = 'Padlock-black.svg',
},
dispute = {
description = 'For pages protected due to editing disputes',
text = function (protectionObj, args)
-- Find the value of &quot;disputes&quot;.
local display = 'disputes'
local disputes
if args.section then
disputes = string.format(
'[[%s:%s#%s|%s]]',
mw.site.namespaces[protectionObj.title.namespace].talk.name,
protectionObj.title.text,
args.section,
display
)
else
disputes = display
end
-- Make the blurb, depending on the expiry.
local msg
if type(protectionObj.expiry) == 'number' then
msg = '${INTROFRAGMENT} or until editing %s have been resolved.'
else
msg = '${INTROFRAGMENT} until editing %s have been resolved.'
end
return string.format(msg, disputes)
end,
explanation = &quot;This protection is '''not''' an endorsement of the&quot;
.. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}',
tooltip = '${TOOLTIPFRAGMENT} due to editing disputes',
},
ecp = {
description = 'For articles in topic areas authorized by'
.. ' [[Wikipedia:Arbitration Committee|ArbCom]] or'
.. ' meets the criteria for community use',
tooltip = 'This ${PAGETYPE} is extended-confirmed protected',
alt = 'Extended-protected ${PAGETYPE}',
},
mainpage = {
description = 'For pages protected for being displayed on the [[Main Page]]',
text = 'This file is currently'
.. ' [[Wikipedia:This page is protected|protected]] from'
.. ' editing because it is currently or will soon be displayed'
.. ' on the [[Main Page]].',
explanation = 'Images on the Main Page are protected due to their high'
.. ' visibility. Please discuss any necessary changes on the ${TALKPAGE}.'
.. '&lt;br /&gt;&lt;span style=&quot;font-size:90%;&quot;&gt;'
.. &quot;'''Administrators:''' Once this image is definitely off the Main Page,&quot;
.. ' please unprotect this file, or reduce to semi-protection,'
.. ' as appropriate.&lt;/span&gt;',
},
office = {
description = 'For pages protected by the Wikimedia Foundation',
text = function (protectionObj, args)
local ret = 'This ${PAGETYPE} is currently under the'
.. ' scrutiny of the'
.. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]'
.. ' and is protected.'
if protectionObj.protectionDate then
ret = ret .. ' It has been protected since ${PROTECTIONDATE}.'
end
return ret
end,
explanation = &quot;If you can edit this page, please discuss all changes and&quot;
.. &quot; additions on the ${TALKPAGE} first. '''Do not remove protection from this&quot;
.. &quot; page unless you are authorized by the Wikimedia Foundation to do&quot;
.. &quot; so.'''&quot;,
image = 'Padlock-black.svg',
},
reset = {
description = 'For pages protected by the Wikimedia Foundation and'
.. ' &quot;reset&quot; to a bare-bones version',
text = 'This ${PAGETYPE} is currently under the'
.. ' scrutiny of the'
.. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]'
.. ' and is protected.',
explanation = function (protectionObj, args)
local ret = ''
if protectionObj.protectionDate then
ret = ret .. 'On ${PROTECTIONDATE} this ${PAGETYPE} was'
else
ret = ret .. 'This ${PAGETYPE} has been'
end
ret = ret .. ' reduced to a'
.. ' simplified, &quot;bare bones&quot; version so that it may be completely'
.. ' rewritten to ensure it meets the policies of'
.. ' [[WP:NPOV|Neutral Point of View]] and [[WP:V|Verifiability]].'
.. ' Standard Wikipedia policies will apply to its rewriting—which'
.. ' will eventually be open to all editors—and will be strictly'
.. ' enforced. The ${PAGETYPE} has been ${PROTECTIONLEVEL} while'
.. ' it is being rebuilt.\n\n'
.. 'Any insertion of material directly from'
.. ' pre-protection revisions of the ${PAGETYPE} will be removed, as'
.. ' will any material added to the ${PAGETYPE} that is not properly'
.. ' sourced. The associated talk page(s) were also cleared on the'
.. &quot; same date.\n\n&quot;
.. &quot;If you can edit this page, please discuss all changes and&quot;
.. &quot; additions on the ${TALKPAGE} first. '''Do not override&quot;
.. &quot; this action, and do not remove protection from this page,&quot;
.. &quot; unless you are authorized by the Wikimedia Foundation&quot;
.. &quot; to do so. No editor may remove this notice.'''&quot;
return ret
end,
image = 'Padlock-black.svg',
},
sock = {
description = 'For pages protected due to'
.. ' [[Wikipedia:Sock puppetry|sock puppetry]]',
text = '${INTROFRAGMENT} to prevent [[Wikipedia:Sock puppetry|sock puppets]] of'
.. ' [[Wikipedia:Blocking policy|blocked]] or'
.. ' [[Wikipedia:Banning policy|banned users]]'
.. ' from editing it.',
tooltip = '${TOOLTIPFRAGMENT} to prevent sock puppets of blocked or banned users from'
.. ' editing it',
},
template = {
description = 'For [[Wikipedia:High-risk templates|high-risk]]'
.. ' templates and Lua modules',
text = 'This is a permanently [[Help:Protection|protected]] ${PAGETYPE},'
.. ' as it is [[Wikipedia:High-risk templates|high-risk]].',
explanation = 'Please discuss any changes on the ${TALKPAGE}; you may'
.. ' ${EDITREQUEST} to ask an'
.. ' [[Wikipedia:Administrators|administrator]] or'
.. ' [[Wikipedia:Template editor|template editor]] to make an edit if'
.. ' it is [[Help:Minor edit#When to mark an edit as a minor edit'
.. '|uncontroversial]] or supported by'
.. ' [[Wikipedia:Consensus|consensus]]. You can also'
.. ' [[Wikipedia:Requests for page protection|request]] that the page be'
.. ' unprotected.',
tooltip = 'This high-risk ${PAGETYPE} is permanently ${PROTECTIONLEVEL}'
.. ' to prevent vandalism',
alt = 'Permanently protected ${PAGETYPE}',
},
usertalk = {
description = 'For pages protected against disruptive edits by a'
.. ' particular user',
text = '${INTROFRAGMENT} to prevent ${VANDAL} from using it to make disruptive edits,'
.. ' such as abusing the'
.. ' &amp;#123;&amp;#123;[[Template:unblock|unblock]]&amp;#125;&amp;#125; template.',
explanation = 'If you cannot edit this user talk page and you need to'
.. ' make a change or leave a message, you can'
.. ' [[Wikipedia:Requests for page protection'
.. '#Current requests for edits to a protected page'
.. '|request an edit]],'
.. ' [[Wikipedia:Requests for page protection'
.. '#Current requests for reduction in protection level'
.. '|request unprotection]],'
.. ' [[Special:Userlogin|log in]],'
.. ' or [[Special:UserLogin/signup|create an account]].',
},
vandalism = {
description = 'For pages protected against'
.. ' [[Wikipedia:Vandalism|vandalism]]',
text = '${INTROFRAGMENT} due to [[Wikipedia:Vandalism|vandalism]].',
explanation = function (protectionObj, args)
local ret = ''
if protectionObj.level == 'sysop' then
ret = ret .. &quot;This protection is '''not''' an endorsement of the&quot;
.. ' ${CURRENTVERSION}. '
end
return ret .. '${EXPLANATIONBLURB}'
end,
tooltip = '${TOOLTIPFRAGMENT} due to vandalism',
}
},
move = {
dispute = {
description = 'For pages protected against page moves due to'
.. ' disputes over the page title',
explanation = &quot;This protection is '''not''' an endorsement of the&quot;
.. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}',
image = 'Padlock-olive.svg'
},
vandalism = {
description = 'For pages protected against'
.. ' [[Wikipedia:Vandalism#Page-move vandalism'
.. ' |page-move vandalism]]'
}
},
autoreview = {},
upload = {}
},
--------------------------------------------------------------------------------
--
-- GENERAL DATA TABLES
--
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Protection blurbs
--------------------------------------------------------------------------------
-- This table produces the protection blurbs available with the
-- ${PROTECTIONBLURB} parameter. It is sorted by protection action and
-- protection level, and is checked by the module in the following order:
-- 1. page's protection action, page's protection level
-- 2. page's protection action, default protection level
-- 3. &quot;edit&quot; protection action, default protection level
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move, autoreview and upload subtables.
protectionBlurbs = {
edit = {
default = 'This ${PAGETYPE} is currently [[Help:Protection|'
.. 'protected]] from editing',
autoconfirmed = 'Editing of this ${PAGETYPE} by [[Wikipedia:User access'
.. ' levels#New users|new]] or [[Wikipedia:User access levels#Unregistered'
.. ' users|unregistered]] users is currently [[Help:Protection|disabled]]',
extendedconfirmed = 'This ${PAGETYPE} is ${PROTECTIONLEVEL} as a result of'
.. ' [[Wikipedia:Arbitration Committee|ArbCom]] enforcement or meets the'
.. ' [[Wikipedia:Protection policy#extended|criteria for community use]]',
},
move = {
default = 'This ${PAGETYPE} is currently [[Help:Protection|protected]]'
.. ' from [[Help:Moving a page|page moves]]'
},
autoreview = {
autoconfirmed = 'All edits made to this ${PAGETYPE} by'
.. ' [[Wikipedia:User access levels#New users|new]] or'
.. ' [[Wikipedia:User access levels#Unregistered users|unregistered]]'
.. ' users are currently'
.. ' [[Wikipedia:Pending changes|subject to review]]',
default = 'All edits made to this ${PAGETYPE} by users who are not'
.. ' [[Wikipedia:Reviewing|reviewers]] or'
.. ' [[Wikipedia:Administrators|administrators]] are currently'
.. ' [[Wikipedia:Pending changes|subject to review]]'
},
upload = {
default = 'Uploading new versions of this ${PAGETYPE} is currently disabled'
}
},
--------------------------------------------------------------------------------
-- Explanation blurbs
--------------------------------------------------------------------------------
-- This table produces the explanation blurbs available with the
-- ${EXPLANATIONBLURB} parameter. It is sorted by protection action,
-- protection level, and whether the page is a talk page or not. If the page is
-- a talk page it will have a talk key of &quot;talk&quot;; otherwise it will have a talk
-- key of &quot;subject&quot;. The table is checked in the following order:
-- 1. page's protection action, page's protection level, page's talk key
-- 2. page's protection action, page's protection level, default talk key
-- 3. page's protection action, default protection level, page's talk key
-- 4. page's protection action, default protection level, default talk key
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move, autoreview and upload subtables.
explanationBlurbs = {
edit = {
autoconfirmed = {
subject = 'See the [[Wikipedia:Protection policy|'
.. 'protection policy]] and ${PROTECTIONLOG} for more details. If you'
.. ' cannot edit this ${PAGETYPE} and you wish to make a change, you can'
.. ' ${EDITREQUEST}, discuss changes on the ${TALKPAGE},'
.. ' [[Wikipedia:Requests for page protection'
.. '#Current requests for reduction in protection level'
.. '|request unprotection]], [[Special:Userlogin|log in]], or'
.. ' [[Special:UserLogin/signup|create an account]].',
default = 'See the [[Wikipedia:Protection policy|'
.. 'protection policy]] and ${PROTECTIONLOG} for more details. If you'
.. ' cannot edit this ${PAGETYPE} and you wish to make a change, you can'
.. ' [[Wikipedia:Requests for page protection'
.. '#Current requests for reduction in protection level'
.. '|request unprotection]], [[Special:Userlogin|log in]], or'
.. ' [[Special:UserLogin/signup|create an account]].',
},
extendedconfirmed = {
default = 'Extended confirmed protection prevents edits from all IP editors'
.. ' and registered users with fewer than 30 days tenure and 500 edits.'
.. ' The [[Wikipedia:Protection policy#extended|policy on community use]]'
.. ' specifies that extended confirmed protection can be applied to combat'
.. ' disruption, given that semi-protection has proven to be ineffective.'
.. ' Please discuss any changes on the ${TALKPAGE}; you may'
.. ' ${EDITREQUEST} to ask for unconversial changes supported by'
.. ' [[Wikipedia:Consensus|consensus]].'
},
default = {
subject = 'See the [[Wikipedia:Protection policy|'
.. 'protection policy]] and ${PROTECTIONLOG} for more details.'
.. ' Please discuss any changes on the ${TALKPAGE}; you'
.. ' may ${EDITREQUEST} to ask an'
.. ' [[Wikipedia:Administrators|administrator]] to make an edit if it'
.. ' is [[Help:Minor edit#When to mark an edit as a minor edit'
.. '|uncontroversial]] or supported by [[Wikipedia:Consensus'
.. '|consensus]]. You may also [[Wikipedia:Requests for'
.. ' page protection#Current requests for reduction in protection level'
.. '|request]] that this page be unprotected.',
default = 'See the [[Wikipedia:Protection policy|'
.. 'protection policy]] and ${PROTECTIONLOG} for more details.'
.. ' You may [[Wikipedia:Requests for page'
.. ' protection#Current requests for edits to a protected page|request an'
.. ' edit]] to this page, or [[Wikipedia:Requests for'
.. ' page protection#Current requests for reduction in protection level'
.. '|ask]] for it to be unprotected.'
}
},
move = {
default = {
subject = 'See the [[Wikipedia:Protection policy|'
.. 'protection policy]] and ${PROTECTIONLOG} for more details.'
.. ' The page may still be edited but cannot be moved'
.. ' until unprotected. Please discuss any suggested moves on the'
.. ' ${TALKPAGE} or at [[Wikipedia:Requested moves]]. You can also'
.. ' [[Wikipedia:Requests for page protection|request]] that the page be'
.. ' unprotected.',
default = 'See the [[Wikipedia:Protection policy|'
.. 'protection policy]] and ${PROTECTIONLOG} for more details.'
.. ' The page may still be edited but cannot be moved'
.. ' until unprotected. Please discuss any suggested moves at'
.. ' [[Wikipedia:Requested moves]]. You can also'
.. ' [[Wikipedia:Requests for page protection|request]] that the page be'
.. ' unprotected.'
}
},
autoreview = {
default = {
reviewer = 'See the [[Wikipedia:Protection policy|'
.. 'protection policy]] and ${PROTECTIONLOG} for more details.'
.. ' Edits to this ${PAGETYPE} will not be visible to readers'
.. ' until they are accepted by a reviewer or an administrator.'
.. ' To avoid the need for your edits to be reviewed, you may'
.. ' [[Wikipedia:Requests for page protection'
.. '#Current requests for reduction in protection level'
.. '|request unprotection]]. Experienced editors may also'
.. ' request the [[Wikipedia:Reviewing|reviewer user right]].',
default = 'See the [[Wikipedia:Protection policy|'
.. 'protection policy]] and ${PROTECTIONLOG} for more details.'
.. ' Edits to this ${PAGETYPE} by new and unregistered users'
.. ' will not be visible to readers until they are accepted by'
.. ' a reviewer. To avoid the need for your edits to be'
.. ' reviewed, you may'
.. ' [[Wikipedia:Requests for page protection'
.. '#Current requests for reduction in protection level'
.. '|request unprotection]], [[Special:Userlogin|log in]], or'
.. ' [[Special:UserLogin/signup|create an account]].'
},
},
upload = {
default = {
default = 'See the [[Wikipedia:Protection policy|'
.. 'protection policy]] and ${PROTECTIONLOG} for more details.'
.. ' The page may still be edited but new versions of the file'
.. ' cannot be uploaded until it is unprotected. You can'
.. ' request that a new version be uploaded by using a'
.. ' [[Wikipedia:Edit requests|protected edit request]], or you'
.. ' can [[Wikipedia:Requests for page protection|request]]'
.. ' that the file be unprotected.'
}
}
},
--------------------------------------------------------------------------------
-- Protection levels
--------------------------------------------------------------------------------
-- This table provides the data for the ${PROTECTIONLEVEL} parameter, which
-- produces a short label for different protection levels. It is sorted by
-- protection action and protection level, and is checked in the following
-- order:
-- 1. page's protection action, page's protection level
-- 2. page's protection action, default protection level
-- 3. &quot;edit&quot; protection action, default protection level
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move, autoreview and upload subtables.
protectionLevels = {
edit = {
default = 'protected',
templateeditor = 'template-protected',
extendedconfirmed = 'extended-protected',
autoconfirmed = 'semi-protected',
},
move = {
default = 'move-protected'
},
autoreview = {
},
upload = {
default = 'upload-protected'
}
},
--------------------------------------------------------------------------------
-- Images
--------------------------------------------------------------------------------
-- This table lists different padlock images for each protection action and
-- protection level. It is used if an image is not specified in any of the
-- banner data tables, and if the page does not satisfy the conditions for using
-- the ['image-filename-indef'] image. It is checked in the following order:
-- 1. page's protection action, page's protection level
-- 2. page's protection action, default protection level
images = {
edit = {
default = 'Padlock.svg',
templateeditor = 'Padlock-pink.svg',
extendedconfirmed = 'Padlock-blue.svg',
autoconfirmed = 'Padlock-silver.svg'
},
move = {
default = 'Padlock-olive.svg',
},
autoreview = {
autoconfirmed = 'Padlock-silver-light.svg',
default = 'Padlock-orange.svg'
},
upload = {
default = 'Padlock-purple.svg'
}
},
-- Pages with a reason specified in this table will show the special &quot;indef&quot;
-- padlock, defined in the 'image-filename-indef' message, if no expiry is set.
indefImageReasons = {
template = true
},
--------------------------------------------------------------------------------
-- Image links
--------------------------------------------------------------------------------
-- This table provides the data for the ${IMAGELINK} parameter, which gets
-- the image link for small padlock icons based on the page's protection action
-- and protection level. It is checked in the following order:
-- 1. page's protection action, page's protection level
-- 2. page's protection action, default protection level
-- 3. &quot;edit&quot; protection action, default protection level
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move, autoreview and upload subtables.
imageLinks = {
edit = {
default = 'Wikipedia:Protection policy#full',
templateeditor = 'Wikipedia:Protection policy#template',
extendedconfirmed = 'Wikipedia:Protection policy#extended',
autoconfirmed = 'Wikipedia:Protection policy#semi'
},
move = {
default = 'Wikipedia:Protection policy#move'
},
autoreview = {
autoconfirmed = 'Wikipedia:Protection policy#pc1',
reviewer = 'Wikipedia:Protection policy#pc2'
},
upload = {
default = 'Wikipedia:Protection policy#upload'
}
},
--------------------------------------------------------------------------------
-- Padlock indicator names
--------------------------------------------------------------------------------
-- This table provides the &quot;name&quot; attribute for the &lt;indicator&gt; extension tag
-- with which small padlock icons are generated. All indicator tags on a page
-- are displayed in alphabetical order based on this attribute, and with
-- indicator tags with duplicate names, the last tag on the page wins.
-- The attribute is chosen based on the protection action; table keys must be a
-- protection action name or the string &quot;default&quot;.
padlockIndicatorNames = {
autoreview = 'pp-autoreview',
default = 'pp-default'
},
--------------------------------------------------------------------------------
-- Protection categories
--------------------------------------------------------------------------------
--[[
-- The protection categories are stored in the protectionCategories table.
-- Keys to this table are made up of the following strings:
--
-- 1. the expiry date
-- 2. the namespace
-- 3. the protection reason (e.g. &quot;dispute&quot; or &quot;vandalism&quot;)
-- 4. the protection level (e.g. &quot;sysop&quot; or &quot;autoconfirmed&quot;)
-- 5. the action (e.g. &quot;edit&quot; or &quot;move&quot;)
--
-- When the module looks up a category in the table, first it will will check to
-- see a key exists that corresponds to all five parameters. For example, a
-- user page semi-protected from vandalism for two weeks would have the key
-- &quot;temp-user-vandalism-autoconfirmed-edit&quot;. If no match is found, the module
-- changes the first part of the key to &quot;all&quot; and checks the table again. It
-- keeps checking increasingly generic key combinations until it finds the
-- field, or until it reaches the key &quot;all-all-all-all-all&quot;.
--
-- The module uses a binary matrix to determine the order in which to search.
-- This is best demonstrated by a table. In this table, the &quot;0&quot; values
-- represent &quot;all&quot;, and the &quot;1&quot; values represent the original data (e.g.
-- &quot;indef&quot; or &quot;file&quot; or &quot;vandalism&quot;).
--
-- expiry namespace reason level action
-- order
-- 1 1 1 1 1 1
-- 2 0 1 1 1 1
-- 3 1 0 1 1 1
-- 4 0 0 1 1 1
-- 5 1 1 0 1 1
-- 6 0 1 0 1 1
-- 7 1 0 0 1 1
-- 8 0 0 0 1 1
-- 9 1 1 1 0 1
-- 10 0 1 1 0 1
-- 11 1 0 1 0 1
-- 12 0 0 1 0 1
-- 13 1 1 0 0 1
-- 14 0 1 0 0 1
-- 15 1 0 0 0 1
-- 16 0 0 0 0 1
-- 17 1 1 1 1 0
-- 18 0 1 1 1 0
-- 19 1 0 1 1 0
-- 20 0 0 1 1 0
-- 21 1 1 0 1 0
-- 22 0 1 0 1 0
-- 23 1 0 0 1 0
-- 24 0 0 0 1 0
-- 25 1 1 1 0 0
-- 26 0 1 1 0 0
-- 27 1 0 1 0 0
-- 28 0 0 1 0 0
-- 29 1 1 0 0 0
-- 30 0 1 0 0 0
-- 31 1 0 0 0 0
-- 32 0 0 0 0 0
--
-- In this scheme the action has the highest priority, as it is the last
-- to change, and the expiry has the least priority, as it changes the most.
-- The priorities of the expiry, the protection level and the action are
-- fixed, but the priorities of the reason and the namespace can be swapped
-- through the use of the cfg.bannerDataNamespaceHasPriority table.
--]]
-- If the reason specified to the template is listed in this table,
-- namespace data will take priority over reason data in the protectionCategories
-- table.
reasonsWithNamespacePriority = {
vandalism = true,
},
-- The string to use as a namespace key for the protectionCategories table for each
-- namespace number.
categoryNamespaceKeys = {
[ 2] = 'user',
[ 3] = 'user',
[ 4] = 'project',
[ 6] = 'file',
[ 8] = 'mediawiki',
[ 10] = 'template',
[ 12] = 'project',
[ 14] = 'category',
[100] = 'portal',
[828] = 'module',
},
protectionCategories = {
['all|all|all|all|all'] = 'Wikipedia fully protected pages',
['all|all|office|all|all'] = 'Wikipedia Office-protected pages',
['all|all|reset|all|all'] = 'Wikipedia Office-protected pages',
['all|all|dmca|all|all'] = 'Wikipedia Office-protected pages',
['all|all|mainpage|all|all'] = 'Wikipedia fully-protected main page files',
['all|all|all|extendedconfirmed|all'] = 'Wikipedia pages under 30-500 editing restriction',
['all|all|ecp|extendedconfirmed|all'] = 'Wikipedia pages under 30-500 editing restriction',
['all|template|all|all|edit'] = 'Wikipedia fully-protected templates',
['all|all|all|autoconfirmed|edit'] = 'Wikipedia semi-protected pages',
['indef|all|all|autoconfirmed|edit'] = 'Wikipedia indefinitely semi-protected pages',
['all|all|blp|autoconfirmed|edit'] = 'Wikipedia indefinitely semi-protected biographies of living people',
['temp|all|blp|autoconfirmed|edit'] = 'Wikipedia temporarily semi-protected biographies of living people',
['all|all|dispute|autoconfirmed|edit'] = 'Wikipedia pages semi-protected due to dispute',
['all|all|sock|autoconfirmed|edit'] = 'Wikipedia pages semi-protected from banned users',
['all|all|vandalism|autoconfirmed|edit'] = 'Wikipedia pages semi-protected against vandalism',
['all|category|all|autoconfirmed|edit'] = 'Wikipedia semi-protected categories',
['all|file|all|autoconfirmed|edit'] = 'Wikipedia semi-protected files',
['all|portal|all|autoconfirmed|edit'] = 'Wikipedia semi-protected portals',
['all|project|all|autoconfirmed|edit'] = 'Wikipedia semi-protected project pages',
['all|talk|all|autoconfirmed|edit'] = 'Wikipedia semi-protected talk pages',
['all|template|all|autoconfirmed|edit'] = 'Wikipedia semi-protected templates',
['all|user|all|autoconfirmed|edit'] = 'Wikipedia semi-protected user and user talk pages',
['all|template|all|templateeditor|edit'] = 'Wikipedia template-protected templates',
['all|all|blp|sysop|edit'] = 'Wikipedia indefinitely protected biographies of living people',
['temp|all|blp|sysop|edit'] = 'Wikipedia temporarily protected biographies of living people',
['all|all|dispute|sysop|edit'] = 'Wikipedia pages protected due to dispute',
['all|all|sock|sysop|edit'] = 'Wikipedia pages protected from banned users',
['all|all|vandalism|sysop|edit'] = 'Wikipedia pages protected against vandalism',
['all|category|all|sysop|edit'] = 'Wikipedia protected categories',
['all|file|all|sysop|edit'] = 'Wikipedia fully-protected files',
['all|project|all|sysop|edit'] = 'Wikipedia fully-protected project pages',
['all|talk|all|sysop|edit'] = 'Wikipedia fully-protected talk pages',
['all|template|all|sysop|edit'] = 'Wikipedia fully-protected templates',
['all|user|all|sysop|edit'] = 'Wikipedia protected user and user talk pages',
['all|module|all|all|edit'] = 'Wikipedia fully-protected modules',
['all|module|all|templateeditor|edit'] = 'Wikipedia template-protected modules',
['all|module|all|autoconfirmed|edit'] = 'Wikipedia semi-protected modules',
['all|all|all|sysop|move'] = 'Wikipedia move-protected pages',
['indef|all|all|sysop|move'] = 'Wikipedia indefinitely move-protected pages',
['all|all|dispute|sysop|move'] = 'Wikipedia pages move-protected due to dispute',
['all|all|vandalism|sysop|move'] = 'Wikipedia pages move-protected due to vandalism',
['all|portal|all|sysop|move'] = 'Wikipedia move-protected portals',
['all|portal|all|sysop|move'] = 'Wikipedia move-protected portals',
['all|project|all|sysop|move'] = 'Wikipedia move-protected project pages',
['all|talk|all|sysop|move'] = 'Wikipedia move-protected talk pages',
['all|template|all|sysop|move'] = 'Wikipedia move-protected templates',
['all|user|all|sysop|move'] = 'Wikipedia move-protected user and user talk pages',
['all|all|all|autoconfirmed|autoreview'] = 'Wikipedia pending changes protected pages',
['all|all|all|reviewer|autoreview'] = 'Wikipedia pending changes protected pages (level 2)',
['all|file|all|all|upload'] = 'Wikipedia upload-protected files',
},
--------------------------------------------------------------------------------
-- Expiry category config
--------------------------------------------------------------------------------
-- This table configures the expiry category behaviour for each protection
-- action.
-- * If set to true, setting that action will always categorise the page if
-- an expiry parameter is not set.
-- * If set to false, setting that action will never categorise the page.
-- * If set to nil, the module will categorise the page if:
-- 1) an expiry parameter is not set, and
-- 2) a reason is provided, and
-- 3) the specified reason is not blacklisted in the reasonsWithoutExpiryCheck
-- table.
expiryCheckActions = {
edit = nil,
move = false,
autoreview = true,
upload = false
},
reasonsWithoutExpiryCheck = {
blp = true,
template = true,
},
--------------------------------------------------------------------------------
-- Pagetypes
--------------------------------------------------------------------------------
-- This table produces the page types available with the ${PAGETYPE} parameter.
-- Keys are namespace numbers, or the string &quot;default&quot; for the default value.
pagetypes = {
[0] = 'article',
[6] = 'file',
[10] = 'template',
[14] = 'category',
[828] = 'module',
default = 'page'
},
--------------------------------------------------------------------------------
-- Strings marking indefinite protection
--------------------------------------------------------------------------------
-- This table contains values passed to the expiry parameter that mean the page
-- is protected indefinitely.
indefStrings = {
['indef'] = true,
['indefinite'] = true,
['indefinitely'] = true,
['infinite'] = true,
},
--------------------------------------------------------------------------------
-- Group hierarchy
--------------------------------------------------------------------------------
-- This table maps each group to all groups that have a superset of the original
-- group's page editing permissions.
hierarchy = {
sysop = {},
reviewer = {'sysop'},
filemover = {'sysop'},
templateeditor = {'sysop'},
extendedconfirmed = {'sysop'},
autoconfirmed = {'reviewer', 'filemover', 'templateeditor', 'extendedconfirmed'},
user = {'autoconfirmed'},
['*'] = {'user'}
},
--------------------------------------------------------------------------------
-- Wrapper templates and their default arguments
--------------------------------------------------------------------------------
-- This table contains wrapper templates used with the module, and their
-- default arguments. Templates specified in this table should contain the
-- following invocation, and no other template content:
--
-- {{#invoke:Protection banner|main}}
--
-- If other content is desired, it can be added between
-- &lt;noinclude&gt;...&lt;/noinclude&gt; tags.
--
-- When a user calls one of these wrapper templates, they will use the
-- default arguments automatically. However, users can override any of the
-- arguments.
wrappers = {
['Template:Pp'] = {},
['Template:Pp-30-500'] = {'ecp'},
['Template:Pp-blp'] = {'blp'},
-- we don't need Template:Pp-create
['Template:Pp-dispute'] = {'dispute'},
['Template:Pp-main-page'] = {'mainpage'},
['Template:Pp-move'] = {action = 'move'},
['Template:Pp-move-dispute'] = {'dispute', action = 'move'},
-- we don't need Template:Pp-move-indef
['Template:Pp-move-vandalism'] = {'vandalism', action = 'move'},
['Template:Pp-office'] = {'office'},
['Template:Pp-office-dmca'] = {'dmca'},
['Template:Pp-pc1'] = {action = 'autoreview', small = true},
['Template:Pp-pc2'] = {action = 'autoreview', small = true},
['Template:Pp-reset'] = {'reset'},
['Template:Pp-semi-indef'] = {small = true},
['Template:Pp-sock'] = {'sock'},
['Template:Pp-template'] = {'template', small = true},
['Template:Pp-upload'] = {action = 'upload'},
['Template:Pp-usertalk'] = {'usertalk'},
['Template:Pp-vandalism'] = {'vandalism'},
},
--------------------------------------------------------------------------------
--
-- MESSAGES
--
--------------------------------------------------------------------------------
msg = {
--------------------------------------------------------------------------------
-- Intro blurb and intro fragment
--------------------------------------------------------------------------------
-- These messages specify what is produced by the ${INTROBLURB} and
-- ${INTROFRAGMENT} parameters. If the protection is temporary they use the
-- intro-blurb-expiry or intro-fragment-expiry, and if not they use
-- intro-blurb-noexpiry or intro-fragment-noexpiry.
-- It is possible to use banner parameters in these messages.
['intro-blurb-expiry'] = '${PROTECTIONBLURB} until ${EXPIRY}.',
['intro-blurb-noexpiry'] = '${PROTECTIONBLURB}.',
['intro-fragment-expiry'] = '${PROTECTIONBLURB} until ${EXPIRY},',
['intro-fragment-noexpiry'] = '${PROTECTIONBLURB}',
--------------------------------------------------------------------------------
-- Tooltip blurb
--------------------------------------------------------------------------------
-- These messages specify what is produced by the ${TOOLTIPBLURB} parameter.
-- If the protection is temporary the tooltip-blurb-expiry message is used, and
-- if not the tooltip-blurb-noexpiry message is used.
-- It is possible to use banner parameters in these messages.
['tooltip-blurb-expiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY}.',
['tooltip-blurb-noexpiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL}.',
['tooltip-fragment-expiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY},',
['tooltip-fragment-noexpiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL}',
--------------------------------------------------------------------------------
-- Special explanation blurb
--------------------------------------------------------------------------------
-- An explanation blurb for pages that cannot be unprotected, e.g. for pages
-- in the MediaWiki namespace.
-- It is possible to use banner parameters in this message.
['explanation-blurb-nounprotect'] = 'See the [[Wikipedia:Protection policy|'
.. 'protection policy]] and ${PROTECTIONLOG} for more details.'
.. ' Please discuss any changes on the ${TALKPAGE}; you'
.. ' may ${EDITREQUEST} to ask an'
.. ' [[Wikipedia:Administrators|administrator]] to make an edit if it'
.. ' is [[Help:Minor edit#When to mark an edit as a minor edit'
.. '|uncontroversial]] or supported by [[Wikipedia:Consensus'
.. '|consensus]].',
--------------------------------------------------------------------------------
-- Protection log display values
--------------------------------------------------------------------------------
-- These messages determine the display values for the protection log link
-- or the pending changes log link produced by the ${PROTECTIONLOG} parameter.
-- It is possible to use banner parameters in these messages.
['protection-log-display'] = 'protection log',
['pc-log-display'] = 'pending changes log',
--------------------------------------------------------------------------------
-- Current version display values
--------------------------------------------------------------------------------
-- These messages determine the display values for the page history link
-- or the move log link produced by the ${CURRENTVERSION} parameter.
-- It is possible to use banner parameters in these messages.
['current-version-move-display'] = 'current title',
['current-version-edit-display'] = 'current version',
--------------------------------------------------------------------------------
-- Talk page
--------------------------------------------------------------------------------
-- This message determines the display value of the talk page link produced
-- with the ${TALKPAGE} parameter.
-- It is possible to use banner parameters in this message.
['talk-page-link-display'] = 'talk page',
--------------------------------------------------------------------------------
-- Edit requests
--------------------------------------------------------------------------------
-- This message determines the display value of the edit request link produced
-- with the ${EDITREQUEST} parameter.
-- It is possible to use banner parameters in this message.
['edit-request-display'] = 'submit an edit request',
--------------------------------------------------------------------------------
-- Expiry date format
--------------------------------------------------------------------------------
-- This is the format for the blurb expiry date. It should be valid input for
-- the first parameter of the #time parser function.
['expiry-date-format'] = 'F j, Y',
--------------------------------------------------------------------------------
-- Tracking categories
--------------------------------------------------------------------------------
-- These messages determine which tracking categories the module outputs.
['tracking-category-incorrect'] = 'Wikipedia pages with incorrect protection templates',
['tracking-category-template'] = 'Wikipedia template-protected pages other than templates and modules',
--------------------------------------------------------------------------------
-- Images
--------------------------------------------------------------------------------
-- These are images that are not defined by their protection action and protection level.
['image-filename-indef'] = 'Padlock.svg',
['image-filename-default'] = 'Transparent.gif',
--------------------------------------------------------------------------------
-- End messages
--------------------------------------------------------------------------------
}
--------------------------------------------------------------------------------
-- End configuration
--------------------------------------------------------------------------------
}</text>
<sha1>hhzqd28fj5olzin4eeygno4totrmfh7</sha1>
</revision>
</page>
<page>
<title>Module:Yesno</title>
<ns>828</ns>
<id>38665046</id>
<revision>
<id>659459801</id>
<parentid>604718900</parentid>
<timestamp>2015-04-27T10:43:30Z</timestamp>
<contributor>
<username>MSGJ</username>
<id>42630</id>
</contributor>
<comment>recognise &quot;t&quot; for true and &quot;f&quot; for false, per request</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="710">-- Function allowing for consistent treatment of boolean-like wikitext input.
-- It works similarly to the template {{yesno}}.
return function (val, default)
-- If your wiki uses non-ascii characters for any of &quot;yes&quot;, &quot;no&quot;, etc., you
-- should replace &quot;val:lower()&quot; with &quot;mw.ustring.lower(val)&quot; in the
-- following line.
val = type(val) == 'string' and val:lower() or val
if val == nil then
return nil
elseif val == true
or val == 'yes'
or val == 'y'
or val == 'true'
or val == 't'
or tonumber(val) == 1
then
return true
elseif val == false
or val == 'no'
or val == 'n'
or val == 'false'
or val == 'f'
or tonumber(val) == 0
then
return false
else
return default
end
end</text>
<sha1>266x81qzpz9iq1b5gft4zsdy5qzbnwi</sha1>
</revision>
</page>
<page>
<title>Template:!(</title>
<ns>10</ns>
<id>22222301</id>
<revision>
<id>579820095</id>
<parentid>388441588</parentid>
<timestamp>2013-11-02T02:26:45Z</timestamp>
<contributor>
<username>Fuhghettaboutit</username>
<id>665998</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:!(: Enable access by template editors ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="41">[&lt;noinclude&gt;{{documentation}}&lt;/noinclude&gt;</text>
<sha1>6vijsq3zwt5xugaaojfotqflpcklz8r</sha1>
</revision>
</page>
<page>
<title>Template:!((/doc</title>
<ns>10</ns>
<id>36487541</id>
<revision>
<id>815714868</id>
<parentid>815708688</parentid>
<timestamp>2017-12-16T16:56:13Z</timestamp>
<contributor>
<username>Zzuuzz</username>
<id>365454</id>
</contributor>
<minor/>
<comment>Reverted edits by [[Special:Contribs/172.56.7.112|172.56.7.112]] ([[User talk:172.56.7.112|talk]]) to last version by Sro23</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="193">{{Documentation subpage}}
{{Auxiliary template common notice}}
&lt;includeonly&gt;
[[Category:Wikipedia character-substitution templates]]
[[Category:Templates used by fb templates]]
&lt;/includeonly&gt;</text>
<sha1>rcw4sce11ntsgxakn53bkeaqsy9w5ew</sha1>
</revision>
</page>
<page>
<title>Template:(</title>
<ns>10</ns>
<id>17282104</id>
<revision>
<id>690395454</id>
<parentid>579820161</parentid>
<timestamp>2015-11-13T02:17:23Z</timestamp>
<contributor>
<username>Fuhghettaboutit</username>
<id>665998</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:(: when I changed this to add template editors, I didn't realize it had cascding protection—so all my change did was make it appear as if it could be edited by them ([Edit=Allow only administrators] (indefinite) [...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="43">{&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>bo68003d0rx5gzaxu8kxrb3a6qyoyjo</sha1>
</revision>
</page>
<page>
<title>Template:((</title>
<ns>10</ns>
<id>13219896</id>
<revision>
<id>690395453</id>
<parentid>579820172</parentid>
<timestamp>2015-11-13T02:17:23Z</timestamp>
<contributor>
<username>Fuhghettaboutit</username>
<id>665998</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:((: when I changed this to add template editors, I didn't realize it had cascding protection—so all my change did was make it appear as if it could be edited by them ([Edit=Allow only administrators] (indefinite)...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="44">{{&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>7ddca00qmssfls0dctzbj32xy1q28ir</sha1>
</revision>
</page>
<page>
<title>Template:(((</title>
<ns>10</ns>
<id>20750143</id>
<revision>
<id>425705039</id>
<parentid>400492194</parentid>
<timestamp>2011-04-24T19:13:49Z</timestamp>
<contributor>
<username>Nsaa</username>
<id>113357</id>
</contributor>
<comment>moving out</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="45">{{{&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>p09oe358xifexyxixwqlowpxpmqlo9g</sha1>
</revision>
</page>
<page>
<title>Template:)</title>
<ns>10</ns>
<id>17282118</id>
<revision>
<id>690395457</id>
<parentid>579820181</parentid>
<timestamp>2015-11-13T02:17:23Z</timestamp>
<contributor>
<username>Fuhghettaboutit</username>
<id>665998</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:): when I changed this to add template editors, I didn't realize it had cascding protection—so all my change did was make it appear as if it could be edited by them ([Edit=Allow only administrators] (indefinite) [...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="43">}&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>trjzkxjnoc4j3s8syx7lt7qs0fnlhua</sha1>
</revision>
</page>
<page>
<title>Template:)!</title>
<ns>10</ns>
<id>22222300</id>
<revision>
<id>690395456</id>
<parentid>579820189</parentid>
<timestamp>2015-11-13T02:17:23Z</timestamp>
<contributor>
<username>Fuhghettaboutit</username>
<id>665998</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:)!: when I changed this to add template editors, I didn't realize it had cascding protection—so all my change did was make it appear as if it could be edited by them ([Edit=Allow only administrators] (indefinite)...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="41">]&lt;noinclude&gt;{{documentation}}&lt;/noinclude&gt;</text>
<sha1>2nv60f9w4w11w483rmqnlsw1v6c6dai</sha1>
</revision>
</page>
<page>
<title>Template:))</title>
<ns>10</ns>
<id>13219644</id>
<revision>
<id>774487220</id>
<parentid>388441714</parentid>
<timestamp>2017-04-08T20:03:55Z</timestamp>
<contributor>
<username>Jo-Jo Eumerus</username>
<id>17449355</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:))]]&quot;: [[WP:High-risk templates|Highly visible template]]: Allowing template editors ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="44">}}&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>fmm8htexq13hwrjrvzcsiy59gv65l36</sha1>
</revision>
</page>
<page>
<title>Template:)))</title>
<ns>10</ns>
<id>28476790</id>
<revision>
<id>522279113</id>
<parentid>505070416</parentid>
<timestamp>2012-11-10T03:47:04Z</timestamp>
<contributor>
<username>Zenexer</username>
<id>5962034</id>
</contributor>
<comment>Restored template to its original purpose; it now lines up with {{(((}}, {{))}}, etc. Please do not change this metatemplate for your own purposes, as it has an important use case.</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="45">}}}&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>002a69ugw3az2pvs9vxuj7ng65ojzln</sha1>
</revision>
</page>
<page>
<title>Template:Auxiliary template common notice</title>
<ns>10</ns>
<id>29191222</id>
<revision>
<id>745333884</id>
<parentid>745333851</parentid>
<timestamp>2016-10-20T14:54:21Z</timestamp>
<contributor>
<username>Frietjes</username>
<id>13791031</id>
</contributor>
<comment>/* See also */</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="3098">__NOTOC__
Use this template to produce the [[Character (computing)|character]] or characters &quot;{{thinsp|&lt;includeonly&gt;{{ {{BASEPAGENAME}} }}&lt;/includeonly&gt;&lt;noinclude&gt;{{small|[''character/s appear here'']}}&lt;/noinclude&gt;}}&quot; as ordinary text rather than as part of a link&amp;nbsp;&lt;code&gt;&lt;nowiki&gt;[[ ]]&lt;/nowiki&gt;&lt;/code&gt;, [[Wikipedia:Transclusion|transclusion]]&amp;nbsp;&lt;code&gt;&lt;nowiki&gt;{{ }}&lt;/nowiki&gt;&lt;/code&gt;, variable&amp;nbsp;&lt;code&gt;&lt;nowiki&gt;{{{ }}}&lt;/nowiki&gt;&lt;/code&gt;, etc.&lt;!--
--&gt;{{#if:{{{entity|}}} |&lt;br/&gt;The [[Character encodings in HTML#HTML character references|HTML character code]] &quot;&lt;code&gt;&amp;amp;{{{entity}}};&lt;/code&gt;&quot; may also be used to produce the same result.}}
==Similar templates==
{| class=&quot;wikitable&quot; style=&quot;text-align:center&quot;
|-
! scope=&quot;col&quot; style=&quot;width:7.0em;&quot; | Template
! scope=&quot;col&quot; style=&quot;width:5.75em;&quot; | Output
! scope=&quot;col&quot; style=&quot;width:9.0em;&quot; | HTML alternative
|- style=&quot;vertical-align:top&quot;
| {{tlp|!!}}
| &lt;nowiki&gt;||&lt;/nowiki&gt;
| &amp;amp;#124;&amp;amp;#124;
|- style=&quot;vertical-align:top&quot;
| {{tlp|!(}}
| {{!(}}
| &amp;amp;#91;
|- style=&quot;vertical-align:top&quot;
| {{tlp|)!}}
| {{)!}}
| &amp;amp;#93;
|- style=&quot;vertical-align:top&quot;
| {{tlp|!((}}
| {{!((}}
| &amp;amp;#91;&amp;amp;#91;
|- style=&quot;vertical-align:top&quot;
| {{tlp|))!}}
| {{))!}}
| &amp;amp;#93;&amp;amp;#93;
|- style=&quot;vertical-align:top&quot;
| {{tlp|(}}
| {{(}}
| &amp;amp;#123;
|- style=&quot;vertical-align:top&quot;
| {{tlp|)}}
| {{)}}
| &amp;amp;#125;
|- style=&quot;vertical-align:top&quot;
| {{tlp|((}}
| {{((}}
| &amp;amp;#123;&amp;amp;#123;
|- style=&quot;vertical-align:top&quot;
| {{tlp|))}}
| {{))}}
| &amp;amp;#125;&amp;amp;#125;
|- style=&quot;vertical-align:top&quot;
| {{tlp|(((}}
| {{(((}}
| &amp;amp;#123;&amp;amp;#123;&amp;amp;#123;
|- style=&quot;vertical-align:top&quot;
| {{tlp|)))}}
| {{)))}}
| &amp;amp;#125;&amp;amp;#125;&amp;amp;#125;
|}
* '''Note:''' [[Template:!|Template:{{thinsp|!}}]] was also a template but was converted into a [[MW:Help:Magic word#Other|Magic Word]], you can also use the HTML alternative of &amp;amp;#124; and either will give you an output of |
==See also==
* [[Template:\|Template:{{thinsp|\}}]], which produces &quot;&amp;nbsp;&lt;nowiki&gt;/&lt;/nowiki&gt;&quot; (i.e. a [[Slash (punctuation)|(forward-)slash]] character preceded by a [[non-breaking space]])
* [[Template:=|Template:{{thinsp|&amp;#61;}}]], which produces an [[Equals sign|equals-sign]] as ordinary text
* [[Template:Brackets]] to produce text such as &quot;{{brackets|example text}}&quot; (i.e. unlinked)
* [[Template:Tlf]] to produce text such as &quot;{{tlf|example text}}&quot;
'''Other [[Bracket#Curly brackets or braces &amp;#123; &amp;#125;|brace]]-rendering templates'''
* [[Template:Braces]], to produce text such as &quot;{{braces|example text}}&quot; (i.e. untranscluded).
* [[Template:Mset]], to produce text such as &quot;{{mset|1, 2, ..., N}}&quot; (i.e., a mathematical set)
* [[Template:Square bracket open]], which produces &quot;{{thinsp|[}}&quot; or, as &lt;kbd&gt;&lt;nowiki&gt;{{square bracket open|2}}&lt;/nowiki&gt;&lt;/kbd&gt;, &quot;{{thinsp|&lt;nowiki&gt;[[&lt;/nowiki&gt;}}&quot;.
* [[Template:Square bracket close]], which produces &quot;{{thinsp|]}}&quot; or, as &lt;kbd&gt;&lt;nowiki&gt;{{square bracket close|2}}&lt;/nowiki&gt;&lt;/kbd&gt;, &quot;{{thinsp|&lt;nowiki&gt;]]&lt;/nowiki&gt;}}&quot;.
[[Category:Template namespace templates]]
&lt;noinclude&gt;[[Category:Wikipedia character-substitution templates| ]]&lt;/noinclude&gt;</text>
<sha1>boc8p16me3wg3qzc2aw2ahfwnja5lxb</sha1>
</revision>
</page>
<page>
<title>Template:Braces</title>
<ns>10</ns>
<id>6757881</id>
<revision>
<id>819685517</id>
<parentid>756613207</parentid>
<timestamp>2018-01-10T19:16:36Z</timestamp>
<contributor>
<username>Primefac</username>
<id>11508456</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Braces]]&quot;: [[WP:SEMI|semi-protecting]] highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefi...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="655">{{#if:{{{code|{{{tt|}}}}}}|&lt;code&gt;}}&lt;!--
--&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt;{{{1|{{thinsp}}}}}&lt;!--
--&gt;{{#if:{{{2|}}} |{{thinsp}}{{!}}{{thinsp}}{{{2}}}}}&lt;!--
--&gt;{{#if:{{{3|}}} |{{thinsp}}{{!}}{{thinsp}}{{{3}}}}}&lt;!--
--&gt;{{#if:{{{4|}}} |{{thinsp}}{{!}}{{thinsp}}{{{4}}}}}&lt;!--
--&gt;{{#if:{{{5|}}} |{{thinsp}}{{!}}{{thinsp}}{{{5}}}}}&lt;!--
--&gt;{{#if:{{{6|}}} |{{thinsp}}{{!}}{{thinsp}}{{{6}}}}}&lt;!--
--&gt;{{#if:{{{7|}}} |{{thinsp}}{{!}}{{thinsp}}{{{7}}}}}&lt;!--
--&gt;{{#if:{{{8|}}} |{{thinsp}}{{!}}{{thinsp}}{{{8}}}}}&lt;!--
--&gt;{{#if:{{{9|}}} |{{thinsp}}{{!}}{{thinsp}}{{{9}}}}}&lt;!--
--&gt;&lt;nowiki&gt;}}&lt;/nowiki&gt;&lt;!--
--&gt;{{#if:{{{code|{{{tt|}}}}}}|&lt;/code&gt;}}&lt;noinclude&gt;{{Documentation}}&lt;/noinclude&gt;</text>
<sha1>1ab74omodaicbzav1p1h177xylxlr8x</sha1>
</revision>
</page>
<page>
<title>Template:Brackets</title>
<ns>10</ns>
<id>3340183</id>
<revision>
<id>807225559</id>
<parentid>682167241</parentid>
<timestamp>2017-10-26T18:08:39Z</timestamp>
<contributor>
<username>Waldir</username>
<id>182472</id>
</contributor>
<comment>+descriptions</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="659">[[&lt;nowiki/&gt;{{{1}}}&lt;nowiki/&gt;]{{#if:{{{2|}}}|{{{2}}}}}]&lt;noinclude&gt;
{{Documentation
| content =
This template provides way to wrap content in double [[square brackets]].
Examples:
*&lt;nowiki&gt;{{brackets|test}}&lt;/nowiki&gt; produces: {{brackets|test}}
*&lt;nowiki&gt;{{brackets|test|more}}&lt;/nowiki&gt; produces: {{brackets|test|more}}
*&lt;nowiki&gt;{{brackets|:ja:山本五十六}}&lt;/nowiki&gt; produces: {{brackets|:ja:山本五十六}}
===See also===
* {{tl|Braces}} — to wrap content in double [[curly brackets]]
* {{tl|Bracket}} — to wrap content in single [[square brackets]]
[[Category:Wikipedia character-substitution templates]]
}}&lt;!--(end Documentation)--&gt;
&lt;/noinclude&gt;</text>
<sha1>icp2y2lzh16z224mmkl4wstr15duzxe</sha1>
</revision>
</page>
<page>
<title>Template:Mset</title>
<ns>10</ns>
<id>31363051</id>
<revision>
<id>632587118</id>
<parentid>422292684</parentid>
<timestamp>2014-11-05T18:30:35Z</timestamp>
<contributor>
<username>Frietjes</username>
<id>13791031</id>
</contributor>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="87">{{(}}{{{1|}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}{{)}}&lt;noinclude&gt;{{Documentation}}&lt;/noinclude&gt;</text>
<sha1>9pxzj2dlt1unrbxuy6uw8s2fsvhmjqy</sha1>
</revision>
</page>
<page>
<title>Template:Template link with parameters</title>
<ns>10</ns>
<id>1567462</id>
<revision>
<id>761532389</id>
<parentid>761532021</parentid>
<timestamp>2017-01-23T13:38:38Z</timestamp>
<contributor>
<username>MSGJ</username>
<id>42630</id>
</contributor>
<minor/>
<comment>tidy up</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="616">&lt;span class=&quot;nowrap&quot;&gt;&amp;#123;&amp;#123;[[Template:{{{1}}}|{{{1}}}]]&lt;!--
--&gt;{{#ifeq:{{{2|x}}}|{{{2|}}}| &amp;#124;{{{2}}} }}&lt;!--
--&gt;{{#ifeq:{{{3|x}}}|{{{3|}}}| &amp;#124;{{{3}}} }}&lt;!--
--&gt;{{#ifeq:{{{4|x}}}|{{{4|}}}| &amp;#124;{{{4}}} }}&lt;!--
--&gt;{{#ifeq:{{{5|x}}}|{{{5|}}}| &amp;#124;{{{5}}} }}&lt;!--
--&gt;{{#ifeq:{{{6|x}}}|{{{6|}}}| &amp;#124;{{{6}}} }}&lt;!--
--&gt;{{#ifeq:{{{7|x}}}|{{{7|}}}| &amp;#124;{{{7}}} }}&lt;!--
--&gt;{{#ifeq:{{{8|x}}}|{{{8|}}}| &amp;#124;{{{8}}} }}&lt;!--
--&gt;{{#ifeq:{{{9|x}}}|{{{9|}}}| &amp;#124;{{{9}}} }}&lt;!--
--&gt;&amp;#125;&amp;#125;&lt;/span&gt;&lt;noinclude&gt;
{{documentation}}
&lt;!-- Add categories and interwikis to the /doc subpage, not here! --&gt;
&lt;/noinclude&gt;</text>
<sha1>lg9e22t66ubls217bck9o86z41sr30j</sha1>
</revision>
</page>
<page>
<title>Template:Thin space</title>
<ns>10</ns>
<id>28983734</id>
<revision>
<id>783984645</id>
<parentid>766639214</parentid>
<timestamp>2017-06-05T20:55:14Z</timestamp>
<contributor>
<username>Nardog</username>
<id>5908908</id>
</contributor>
<comment>fix syntax highlight</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="180">&lt;noinclude&gt;{{#tag:syntaxhighlight|&lt;/noinclude&gt;&lt;span style=&quot;white-space:nowrap&quot;&gt;&amp;thinsp;&lt;/span&gt;{{#if:{{{1|}}}|{{{1}}}&amp;thinsp;}}&lt;noinclude&gt;|lang=html}}
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>6obf5z71xslpp8cgn7a6acesmvuhcq2</sha1>
</revision>
</page>
<page>
<title>Template:Thinsp</title>
<ns>10</ns>
<id>50534547</id>
<redirect title="Template:Thin space" />
<revision>
<id>744431975</id>
<parentid>720127852</parentid>
<timestamp>2016-10-15T05:06:31Z</timestamp>
<contributor>
<username>Paine Ellsworth</username>
<id>9092818</id>
</contributor>
<comment>add [[WP:RCAT|rcat]]s</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="133">#REDIRECT [[Template:Thin space]]
{{Redirect category shell|
{{R from move}}
{{R from modification}}
{{R from template shortcut}}
}}</text>
<sha1>4941qieximsr0q2fo341kznw6m833it</sha1>
</revision>
</page>
<page>
<title>Template:Tlf</title>
<ns>10</ns>
<id>16451586</id>
<revision>
<id>722494583</id>
<parentid>558397063</parentid>
<timestamp>2016-05-28T14:18:30Z</timestamp>
<contributor>
<username>Ymblanter</username>
<id>14596827</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:Tlf: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require administrator access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="644">&lt;span class=&quot;nowrap&quot;&gt;&amp;#123;&amp;#123;{{#if:{{{1|}}}|{{{1}}}| tlf&amp;#124;...}}&lt;!--
--&gt;{{#ifeq:{{{2|x}}}|{{{2|}}}| &amp;#124;{{{2}}} | }}&lt;!--
--&gt;{{#ifeq:{{{3|x}}}|{{{3|}}}| &amp;#124;{{{3}}} | }}&lt;!--
--&gt;{{#ifeq:{{{4|x}}}|{{{4|}}}| &amp;#124;{{{4}}} | }}&lt;!--
--&gt;{{#ifeq:{{{5|x}}}|{{{5|}}}| &amp;#124;{{{5}}} | }}&lt;!--
--&gt;{{#ifeq:{{{6|x}}}|{{{6|}}}| &amp;#124;{{{6}}} | }}&lt;!--
--&gt;{{#ifeq:{{{7|x}}}|{{{7|}}}| &amp;#124;{{{7}}} | }}&lt;!--
--&gt;{{#ifeq:{{{8|x}}}|{{{8|}}}| &amp;#124;{{{8}}} | }}&lt;!--
--&gt;{{#ifeq:{{{9|x}}}|{{{9|}}}| &amp;#124;{{{9}}} | }}&lt;!--
--&gt;&amp;#125;&amp;#125;&lt;/span&gt;&lt;noinclude&gt;
{{documentation}}
&lt;!-- Add categories and interwikis to the /doc sub-page, not here! --&gt;
&lt;/noinclude&gt;</text>
<sha1>mz6t9o5pdzfguxfj2q86tiqdtff1jpr</sha1>
</revision>
</page>
<page>
<title>Template:Tlp</title>
<ns>10</ns>
<id>52958709</id>
<redirect title="Template:Template link with parameters" />
<revision>
<id>761532023</id>
<timestamp>2017-01-23T13:35:17Z</timestamp>
<contributor>
<username>MSGJ</username>
<id>42630</id>
</contributor>
<comment>MSGJ moved page [[Template:Tlp]] to [[Template:Template link with parameters]]: expand name of template</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="69">#REDIRECT [[Template:Template link with parameters]]
{{R from move}}</text>
<sha1>6l74hww4lk18kiq6ytyy69dsjvrnwju</sha1>
</revision>
</page>
<page>
<title>Template:))!/doc</title>
<ns>10</ns>
<id>36487537</id>
<revision>
<id>734800546</id>
<parentid>734798090</parentid>
<timestamp>2016-08-16T20:13:24Z</timestamp>
<contributor>
<username>Sro23</username>
<id>25256595</id>
</contributor>
<minor/>
<comment>Reverted edits by [[Special:Contribs/107.77.212.23|107.77.212.23]] ([[User talk:107.77.212.23|talk]]) to last version by Sardanaphalus</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="193">{{Documentation subpage}}
{{Auxiliary template common notice}}
&lt;includeonly&gt;
[[Category:Wikipedia character-substitution templates]]
[[Category:Templates used by fb templates]]
&lt;/includeonly&gt;</text>
<sha1>rcw4sce11ntsgxakn53bkeaqsy9w5ew</sha1>
</revision>
</page>
<page>
<title>Template:Mbox</title>
<ns>10</ns>
<id>13319244</id>
<revision>
<id>772147376</id>
<parentid>577968069</parentid>
<timestamp>2017-03-25T16:04:14Z</timestamp>
<contributor>
<username>Jo-Jo Eumerus</username>
<id>17449355</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Mbox]]&quot;: Allowing template editors on some templates with full protection dating back to pre-[[WP:TPROT]] times which aren't too often or too sensitively used. ([Edit=Require template editor access] (indefinite)...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="145">{{#invoke:Message box|mbox}}&lt;noinclude&gt;
{{documentation}}
&lt;!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --&gt;
&lt;/noinclude&gt;</text>
<sha1>mpflpb6s8l8gaoxaeypyuqyu2w7vc7i</sha1>
</revision>
</page>
<page>
<title>Template:Pp</title>
<ns>10</ns>
<id>43132240</id>
<revision>
<id>761735106</id>
<parentid>695624743</parentid>
<timestamp>2017-01-24T15:07:04Z</timestamp>
<contributor>
<username>Xaosflux</username>
<id>502540</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Pp]]&quot;: is linked from cascaded main page, moving would be very disruptive ([Edit=Require template editor access] (indefinite) [Move=Require administrator access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="76">{{#invoke:Protection banner|main}}&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>8rt1snyv5yit3jnuzrbl00negaj27e5</sha1>
</revision>
</page>
<page>
<title>Template:Pp-move</title>
<ns>10</ns>
<id>10225964</id>
<revision>
<id>619982993</id>
<parentid>600915364</parentid>
<timestamp>2014-08-05T17:16:32Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<comment>convert this to use [[Module:Protection banner]]; see [[Module talk:Protection banner#Proposal to convert all protection templates to use this module|here]] for details</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="178">&lt;includeonly&gt;{{#invoke:Protection banner|main}}&lt;/includeonly&gt;&lt;noinclude&gt;
{{documentation}}
&lt;!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --&gt;
&lt;/noinclude&gt;</text>
<sha1>5t6lal9n9hcpwsso2obr7pcyjbg26xc</sha1>
</revision>
</page>
<page>
<title>Template:Pp-protected</title>
<ns>10</ns>
<id>10226552</id>
<redirect title="Template:Pp" />
<revision>
<id>667600903</id>
<parentid>667569300</parentid>
<timestamp>2015-06-19T08:28:19Z</timestamp>
<contributor>
<username>Redrose64</username>
<id>9612106</id>
</contributor>
<comment>superfluous</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="68">#REDIRECT [[Template:Pp]]
[[Category:Top icon protection templates]]</text>
<sha1>dozigcs1b5fk5ztwerdzndbrt3ubcc3</sha1>
</revision>
</page>
<page>
<title>Template:R from modification</title>
<ns>10</ns>
<id>17586236</id>
<revision>
<id>798920107</id>
<parentid>773538503</parentid>
<timestamp>2017-09-04T15:49:33Z</timestamp>
<contributor>
<username>Paine Ellsworth</username>
<id>9092818</id>
</contributor>
<comment>include &quot;demo=&quot; parameter</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="862">&lt;noinclude&gt;{{This is a redirect/rcat}}
&lt;/noinclude&gt;{{Redirect template
|name=From a modification
|from=a modification of the target's title or a closely related title. For example, the words may be rearranged, or punctuation may be different{{#if: {{{1|{{{reason|}}}}}}|. This redirect is a modification of {{{1|{{{reason|}}}}}}}}
|info=** In cases of modification from distinctly longer or shorter names, please use {{tl|R from long name}} or {{tl|R from short name}}, respectively.
** Use this [[WP:rcat|rcat]] instead of {{tl|R from other capitalisation}} and {{tl|R from plural}} in namespaces other than [[WP:Mainspace|mainspace]] for those types of modification.
|all category={{#ifeq:{{{demo}}}|yes||Redirects from modifications}}
}}&lt;noinclude&gt;
&lt;!-- Place categories on /doc subpage; interwikis go to Wikidata. --&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>aic8ujidr6ge1fan525oh6awaa327s5</sha1>
</revision>
</page>
<page>
<title>Template:R from template shortcut</title>
<ns>10</ns>
<id>17811422</id>
<revision>
<id>769941744</id>
<parentid>760880902</parentid>
<timestamp>2017-03-12T14:31:34Z</timestamp>
<contributor>
<username>Paine Ellsworth</username>
<id>9092818</id>
</contributor>
<minor/>
<comment>make consistent with [[Template:R from shortcut]]</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="977">&lt;noinclude&gt;{{This is a redirect/rcat}}
&lt;/noinclude&gt;{{Redirect template
|name=From a template shortcut
|from=a shortcut page name '''in ''any'' [[WP:namespace|namespace]]'''
|to=a page in [[WP:template namespace|template namespace]]
|info=** ''If target page is '''not''' a template, then use {{tl|R from shortcut}} instead.''
** Template shortcuts are [[wikilink]]ed on community pages, talk pages and edit summaries, but not in [[wp:mainspace|mainspace]] articles. [[WP:Transclusion|Transclusion]]s in mainspace are common and do not need to be &quot;[[WP:NOTBROKEN|fixed]]&quot;.
** '''Note:''' ''Template talk pages are in a [[wp:talk namespace|talk namespace]]; they are '''''not''''' in the template namespace. All shortcuts to talk pages should be tagged with {{tlc|R from shortcut}}.''
|all category=Redirects from template shortcuts
|printworthy=no
}}&lt;noinclude&gt;
&lt;!-- Place categories on /doc subpage; interwikis go to Wikidata. --&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>kx9githfh7a5sdby6encscq7v58x3z6</sha1>
</revision>
</page>
<page>
<title>Template:R template-protected</title>
<ns>10</ns>
<id>41622790</id>
<revision>
<id>797450492</id>
<parentid>745831269</parentid>
<timestamp>2017-08-27T03:48:21Z</timestamp>
<contributor>
<username>Hijiri88</username>
<id>154069</id>
</contributor>
<comment>See https://en.wikipedia.org/w/index.php?title=Template_talk%3ARedirect_category_shell&amp;type=revision&amp;diff=797441666&amp;oldid=769144570</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="1051">&lt;noinclude&gt;{{This is a redirect/rcat}}
&lt;/noinclude&gt;{{Redirect template
|name=[[:Category:Template-protected redirects|Template-protected]]
|from=a page that is template-protected from editing for any of several possible reasons
|info=** '''Please do not replace these redirected links''' with links directly to the target page unless expressly advised to do so below or elsewhere on this page, or if the change is supported by a policy or guideline.
}}{{#ifeq:{{{nocat|}}}|true||{{#ifeq:{{FULLPAGENAME}}|Template:R template-protected||{{#ifeq: {{SUBPAGENAME}}|sandbox||{{#switch: {{PROTECTIONLEVEL:move}}
|templateeditor=[[Category:Template-protected redirects]]
|sysop=[[Category:Protected redirects]]
}}{{#switch: {{PROTECTIONLEVEL:edit}}
|templateeditor=[[Category:Template-protected redirects]]
|sysop|autoconfirmed|extendedconfirmed|#default=[[Category:Wikipedia pages with incorrect protection templates]]
}}}}}}}}&lt;noinclude&gt;
&lt;!-- Place categories on /doc subpage; interwikis go to Wikidata. --&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>jpxjocz5s5hs84azotlfpu6p0tm7sjb</sha1>
</revision>
</page>
<page>
<title>Template:R template protected</title>
<ns>10</ns>
<id>52057858</id>
<redirect title="Template:R template-protected" />
<revision>
<id>771380235</id>
<parentid>771366619</parentid>
<timestamp>2017-03-21T05:32:28Z</timestamp>
<contributor>
<username>WayKurat</username>
<id>734270</id>
</contributor>
<minor/>
<comment>Reverted edits by [[Special:Contribs/2607:FB90:4CED:435:408B:D3E3:E368:85BF|2607:FB90:4CED:435:408B:D3E3:E368:85BF]] ([[User talk:2607:FB90:4CED:435:408B:D3E3:E368:85BF|talk]]) to last version by Paine Ellsworth</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="170">#REDIRECT [[Template:R template-protected]]
{{Redirect category shell|
{{R from move}}
{{R to redirect template}}
{{R from modification}}
{{R from template shortcut}}
}}</text>
<sha1>8f3epmenmlehxiiey9018txtcd926ll</sha1>
</revision>
</page>
<page>
<title>Template:Redirect category shell</title>
<ns>10</ns>
<id>51108920</id>
<revision>
<id>817125234</id>
<parentid>816828035</parentid>
<timestamp>2017-12-26T08:55:41Z</timestamp>
<contributor>
<username>John of Reading</username>
<id>11308236</id>
</contributor>
<comment>Fix misnested bold/colour tags per edit request</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="2057">{{Mbox
| name = Redirect category shell
| type = move
| image = none
| style = margin-top: 1.1em; border: solid 1px darkblue; border-left-width: 0.5em;
| textstyle = padding-top: 0.9em; padding-bottom: 0.9em;
| text = [[File:Symbol redirect arrow with gradient.svg|25px|link=]] '''This page is a [[Wikipedia:Redirect|redirect]]:'''{{#if:{{{h|}}}
|:: ''{{{h}}}''
}}&lt;!--
Automatically detect protected redirects:
--&gt;&lt;includeonly&gt;{{#switch: {{PROTECTIONLEVEL:move}}
|sysop|templateeditor|extendedconfirmed={{pp-move|small=yes}}
}}{{#switch: {{PROTECTIONLEVEL:edit}}
|sysop={{pp-protected|small=yes}}{{R protected|embed=yes}}
|templateeditor={{pp-protected|small=yes}}{{R template protected|embed=yes}}
|extendedconfirmed={{pp-protected|small=yes}}{{R extended-protected|embed=yes}}
|autoconfirmed={{pp-protected|small=yes}}{{R semi-protected|embed=yes}}
| &lt;!--Not protected, or only semi-move-protected--&gt;
}}&lt;/includeonly&gt;{{#if: {{{1|}}}||&lt;includeonly&gt;
* {{red|'''Important – Please Read''!'' {{maroon|This template should not be applied by bot, nor should it be used without parameters ''unless you want to learn how to categorize redirects''. This template is a ''learning tool'' to help editors who want to learn how to categorize redirects. ''Only'' those editors who intend to return to the redirect to learn which rcats to use should apply this template without parameters, or with an empty first parameter''!''}}'''}}&lt;/includeonly&gt;
* '''Manifold sort''': If help is needed to determine appropriate categories, then this redirect populates '''{{Cat|Miscellaneous redirects}}'''. Monitors of that category will check this redirect and add or remove [[WP:RCAT|rcat]]s as needed.{{#ifeq: {{lc:{{{nocat|false}}}}} | false |{{{category|&lt;includeonly&gt;[[Category:Miscellaneous redirects]]&lt;/includeonly&gt;}}}}}
}}
{{#if: {{{2|}}}|{{{2}}}|{{{1|}}}}}
''&lt;small&gt;When appropriate, [[Wikipedia:Protection policy|protection levels]] are automatically sensed, described and categorized.&lt;/small&gt;''
}}&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>rfnilaxc1xew3zb0rb3p71a9wzwzyro</sha1>
</revision>
</page>
<page>
<title>Template:Redirect template</title>
<ns>10</ns>
<id>30505076</id>
<revision>
<id>672699497</id>
<parentid>630853914</parentid>
<timestamp>2015-07-23T08:16:39Z</timestamp>
<contributor>
<username>Paine Ellsworth</username>
<id>9092818</id>
</contributor>
<minor/>
<comment>for correct appearance of documentation page on template page</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="75">{{#invoke:Redirect template|main}}&lt;noinclude&gt;
{{Documentation}}&lt;/noinclude&gt;</text>
<sha1>1cl28dcwjsrtge5hedu653jwub1cll3</sha1>
</revision>
</page>
<page>
<title>Template:Tl</title>
<ns>10</ns>
<id>1487430</id>
<revision>
<id>776260390</id>
<parentid>622723682</parentid>
<timestamp>2017-04-19T22:28:34Z</timestamp>
<contributor>
<username>Lectonar</username>
<id>128863</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Tl]]&quot;: request at rfp ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="168">&amp;#123;&amp;#123;[[Template:{{{1}}}|{{{1}}}]]&amp;#125;&amp;#125;&lt;noinclude&gt;
{{documentation}}
&lt;!-- Categories go on the /doc subpage and interwikis go on Wikidata. --&gt;
&lt;/noinclude&gt;</text>
<sha1>h0vr3yvr9jdyd17x82vnav21ngwmxuk</sha1>
</revision>
</page>
<page>
<title>Template:Tlc</title>
<ns>10</ns>
<id>16451497</id>
<revision>
<id>651651640</id>
<parentid>558397105</parentid>
<timestamp>2015-03-16T16:28:33Z</timestamp>
<contributor>
<username>SlimVirgin</username>
<id>129409</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:Tlc: per RfPP ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="656">&lt;span class=&quot;nowrap&quot;&gt;&lt;code&gt;&amp;#123;&amp;#123;{{#if:{{{1|}}}|{{{1}}}| tlc&amp;#124;...}}&lt;!--
--&gt;{{#ifeq:{{{2|x}}}|{{{2|}}}| &amp;#124;{{{2}}} | }}&lt;!--
--&gt;{{#ifeq:{{{3|x}}}|{{{3|}}}| &amp;#124;{{{3}}} | }}&lt;!--
--&gt;{{#ifeq:{{{4|x}}}|{{{4|}}}| &amp;#124;{{{4}}} | }}&lt;!--
--&gt;{{#ifeq:{{{5|x}}}|{{{5|}}}| &amp;#124;{{{5}}} | }}&lt;!--
--&gt;{{#ifeq:{{{6|x}}}|{{{6|}}}| &amp;#124;{{{6}}} | }}&lt;!--
--&gt;{{#ifeq:{{{7|x}}}|{{{7|}}}| &amp;#124;{{{7}}} | }}&lt;!--
--&gt;{{#ifeq:{{{8|x}}}|{{{8|}}}| &amp;#124;{{{8}}} | }}&lt;!--
--&gt;{{#ifeq:{{{9|x}}}|{{{9|}}}| &amp;#124;{{{9}}} | }}&lt;!--
--&gt;&amp;#125;&amp;#125;&lt;/code&gt;&lt;/span&gt;&lt;noinclude&gt;
{{documentation}}
&lt;!-- Add categories and interwikis to the /doc subpage, not here! --&gt;
&lt;/noinclude&gt;</text>
<sha1>hvz0y5fmfypqrh6hpdtjucpttl59h70</sha1>
</revision>
</page>
<page>
<title>Module:Redirect template</title>
<ns>828</ns>
<id>44195575</id>
<revision>
<id>695184439</id>
<parentid>671738434</parentid>
<timestamp>2015-12-14T09:28:18Z</timestamp>
<contributor>
<username>The Earwig</username>
<id>7418060</id>
</contributor>
<minor/>
<comment>Changed protection level of Module:Redirect template: [[WP:High-risk templates|High-risk Lua module]]: over two million mainspace transclusions ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only administrators] (indefinite))</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="3162">require('Module:No globals')
local p = {}
-- key is beginning of arg name. value is table with namespace number and link
-- alternatively, a function taking the namespace number and returning a validity
-- can be used
local namespaceCategories = {
all = { function() return true end },
main = { 0, '[[wp:mainspace|main]]' },
help = { 12, '[[wp:help namespace|help]]' },
portal = { 100, '[[wp:portal|portal]]' },
talk = { function(n) return n &gt; 0 and n%2 == 1 end, '[[Help:Using talk pages|talk]]' },
template = { 10, '[[wp:template namespace|template]]' },
wikipedia = { 4, '[[wp:project namespace|Wikipedia project]]' },
category = { 14, '[[wp:categorization|category]]' },
user = { 2, '[[wp:user pages|user]]' },
}
-- Don't convert blank category to nil
local function valueFunc(key, val)
if type(val) == 'string' then
val = val:match('^%s*(.-)%s*$')
if val == '' and key ~= 'category' and key ~= 'embed' then
return nil
end
end
return val
end
local function getPrettyName(args)
for k in pairs(namespaceCategories) do
if args[k .. ' category'] then
return &quot;'''[[:Category:&quot; .. args[k .. ' category'] .. &quot;|&quot; .. args.name .. &quot;]]''': &quot;
end
end
return &quot;'''&quot; .. args.name .. &quot;''': &quot;
end
function p.core(frame, args)
if not args then
args = require('Module:Arguments').getArgs(frame, {wrappers = 'Template:Redirect template/core', valueFunc = valueFunc})
end
local namespace = mw.title.getCurrentTitle().namespace
local otherCategory = args['other category'] and (args.category or string.format('[[Category:%s]]', args['other category']))
local embedPossible = args.embed == nil or args.embed == 'yes'
--- XXX: this is a HORRIBLE HACK. kill it with fire as soon as https://bugzilla.wikimedia.org/show_bug.cgi?id=12974 is fixed
local beCompatibleWithBug12974 = args.info and (args.info:find('^[:;#*]', 1) == 1 or args.info:find('{|', 1, true) == 1) and '\n' or ' '
local retval = string.format('*%sThis is a redirect%s%s.%s%s',
embedPossible and args.name and getPrettyName(args) or '',
args.from and (' from ' .. args.from) or '',
args.to and (' to ' .. args.to) or '',
args.info and beCompatibleWithBug12974 or '',
args.info or ''
)
for k,v in pairs(namespaceCategories) do
if args[k .. ' category'] then
if type(v[1]) == 'function' and v[1](namespace) or v[1] == namespace then
retval = retval .. (args.category or string.format('[[Category:%s]]', args[k .. ' category']))
elseif args['other category'] then
retval = retval .. otherCategory
else
retval = retval .. frame:expandTemplate{title = 'Incorrect redirect template', args = {v[2]}}
end
end
end
return retval
end
function p.main(frame)
local args = require('Module:Arguments').getArgs(frame, {wrappers = 'Template:Redirect template', valueFunc = valueFunc})
local retval = p.core(frame, args)
if mw.title.getCurrentTitle().namespace == 0 then
if args.printworthy == 'yes' then
return retval .. (args.category or '[[Category:Printworthy redirects]]')
elseif args.printworthy == 'no' then
return retval .. (args.category or '[[Category:Unprintworthy redirects]]')
end
end
return retval
end
return p</text>
<sha1>jowke0uju5exs13lp8zbvrdbvc5c806</sha1>
</revision>
</page>
<page>
<title>Template:1/2/doc</title>
<ns>10</ns>
<id>25537351</id>
<revision>
<id>806263538</id>
<parentid>803249824</parentid>
<timestamp>2017-10-20T20:42:10Z</timestamp>
<contributor>
<username>HotdogPi</username>
<id>16372547</id>
</contributor>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="1183">{{Documentation subpage}}
&lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&gt;
=== Usage ===
The templates {{tl|1/2}}, {{tl|1/3}}, {{tl|2/3}}, {{tl|1/4}} and {{tl|3/4}} use [[HTML]] markup to create large, readable, common fractions &quot;{{1/2}}, {{1/3}}, {{2/3}}, {{1/4}}, {{3/4}}&quot;, as opposed to the often illegible &quot;½, ⅓, ⅔, ¼, ¾&quot; or horizontal &quot;1/2, 1/3, 2/3, 1/4, 3/4&quot;. They are intended as concise, easily interpreted alternatives to &lt;code&gt;&lt;nowiki&gt;{{frac|1|2}}, {{frac|1|3}}, {{frac|2|3}}, {{frac|1|4}}, {{frac|3|4}}&lt;/nowiki&gt;&lt;/code&gt;.
* &lt;code&gt;&lt;nowiki&gt;Bake for {{1/2}} hour.&lt;/nowiki&gt;&lt;/code&gt;
generates:
* Bake for {{1/2}} hour.
without requiring the use of bulky HTML markup.
Please note that these templates do not handle preceding integers (or succeeding units) and the spacing in between, use {{tl|frac}} for that:
* &lt;code&gt;&lt;nowiki&gt;Bake for {{frac|2|1|2}} hours.&lt;/nowiki&gt;&lt;/code&gt;
* Bake for {{frac|2|1|2}} hours.
=== See also ===
*{{tl|frac}}
*{{tl|sfrac}}
*{{tl|sortfrac}}
&lt;includeonly&gt;
&lt;!-- CATEGORIES BELOW THIS LINE, PLEASE: --&gt;
[[Category:Wikipedia character-substitution templates]]
[[Category:Mathematical formatting templates]]
&lt;/includeonly&gt;</text>
<sha1>c70q0tb6yk2er0xdvuepr6pg6hzm6k1</sha1>
</revision>
</page>
<page>
<title>Template:1/3</title>
<ns>10</ns>
<id>28883029</id>
<revision>
<id>812195094</id>
<parentid>812129798</parentid>
<timestamp>2017-11-26T15:19:18Z</timestamp>
<contributor>
<username>72</username>
<id>28970402</id>
</contributor>
<minor/>
<comment>Reverted edits by [[Special:Contribs/2600:387:9:5:0:0:0:B1|2600:387:9:5:0:0:0:B1]] ([[User talk:2600:387:9:5:0:0:0:B1|talk]]) to last version by Edokter</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="71">{{frac|1|3}}&lt;noinclude&gt;
{{Documentation|Template:1/2/doc}}
&lt;/noinclude&gt;</text>
<sha1>2qwtcxiflspoqxa3w30t1kea5yupmpu</sha1>
</revision>
</page>
<page>
<title>Template:1/4</title>
<ns>10</ns>
<id>27731607</id>
<revision>
<id>803493764</id>
<parentid>802981778</parentid>
<timestamp>2017-10-02T21:36:10Z</timestamp>
<contributor>
<username>Bluesangrel</username>
<id>13174094</id>
</contributor>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="71">{{frac|1|4}}&lt;noinclude&gt;
{{Documentation|Template:1/2/doc}}
&lt;/noinclude&gt;</text>
<sha1>kvi40lxsn7hi1u4aa74qq47p7daop2i</sha1>
</revision>
</page>
<page>
<title>Template:2/3</title>
<ns>10</ns>
<id>25844760</id>
<revision>
<id>636441445</id>
<parentid>588069533</parentid>
<timestamp>2014-12-03T10:10:57Z</timestamp>
<contributor>
<username>Edokter</username>
<id>1624037</id>
</contributor>
<minor/>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="71">{{frac|2|3}}&lt;noinclude&gt;
{{Documentation|Template:1/2/doc}}
&lt;/noinclude&gt;</text>
<sha1>23dztto07xp8scsgidfmid0m1bnnfl7</sha1>
</revision>
</page>
<page>
<title>Template:3/4</title>
<ns>10</ns>
<id>27731668</id>
<revision>
<id>636441485</id>
<parentid>588070027</parentid>
<timestamp>2014-12-03T10:11:37Z</timestamp>
<contributor>
<username>Edokter</username>
<id>1624037</id>
</contributor>
<minor/>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="71">{{frac|3|4}}&lt;noinclude&gt;
{{Documentation|Template:1/2/doc}}
&lt;/noinclude&gt;</text>
<sha1>1xnvv9bpay3en52f3zv12arr9d0wlz1</sha1>
</revision>
</page>
<page>
<title>Template:Frac</title>
<ns>10</ns>
<id>3276409</id>
<revision>
<id>815534894</id>
<parentid>742543615</parentid>
<timestamp>2017-12-15T12:28:56Z</timestamp>
<contributor>
<username>Jc86035</username>
<id>17245768</id>
</contributor>
<minor/>
<comment>zero-width space</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="413">{{zwsp}}&lt;!-- zero-width space; might be removable after introduction of RemexHTML --&gt;&lt;span class=&quot;frac nowrap&quot;&gt;{{#if:{{{3|}}}
|{{{1}}}&lt;span class=&quot;visualhide&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;sup&gt;{{{2}}}&lt;/sup&gt;&amp;frasl;&lt;sub&gt;{{{3}}}&lt;/sub&gt;
|{{#if:{{{2|}}}
|&lt;sup&gt;{{{1}}}&lt;/sup&gt;&amp;frasl;&lt;sub&gt;{{{2}}}&lt;/sub&gt;
|{{#if:{{{1|}}}
|&lt;sup&gt;1&lt;/sup&gt;&amp;frasl;&lt;sub&gt;{{{1}}}&lt;/sub&gt;
|&amp;frasl;
}}
}}
}}&lt;/span&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>agi5d3n79is6f2iv6w1tsderhmwq91l</sha1>
</revision>
</page>
<page>
<title>Template:Zero width space</title>
<ns>10</ns>
<id>28270448</id>
<revision>
<id>814083506</id>
<parentid>708469186</parentid>
<timestamp>2017-12-06T20:27:52Z</timestamp>
<contributor>
<username>Dinoguy1000</username>
<id>2412089</id>
</contributor>
<minor/>
<comment>Dinoguy1000 moved page [[Template:Zwsp]] to [[Template:Zero width space]]: full name</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="77">&lt;includeonly&gt;&amp;#x200B;&lt;/includeonly&gt;&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>kglxlxh5p7du8wgu4iqxongo9z2xap8</sha1>
</revision>
</page>
<page>
<title>Template:Zwsp</title>
<ns>10</ns>
<id>55985299</id>
<redirect title="Template:Zero width space" />
<revision>
<id>814083508</id>
<timestamp>2017-12-06T20:27:52Z</timestamp>
<contributor>
<username>Dinoguy1000</username>
<id>2412089</id>
</contributor>
<comment>Dinoguy1000 moved page [[Template:Zwsp]] to [[Template:Zero width space]]: full name</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="56">#REDIRECT [[Template:Zero width space]]
{{R from move}}</text>
<sha1>guzajfbrtl9pf17gpusewwmuo9fpyh3</sha1>
</revision>
</page>
<page>
<title>Template:=/doc</title>
<ns>10</ns>
<id>13395882</id>
<revision>
<id>823316940</id>
<parentid>823315965</parentid>
<timestamp>2018-01-31T14:52:24Z</timestamp>
<contributor>
<username>Flyer22 Reborn</username>
<id>4293477</id>
</contributor>
<minor/>
<comment>Reverted edits by [[Special:Contributions/Vasishtaeducations|Vasishtaeducations]] ([[User talk:Vasishtaeducations|talk]]) ([[WP:HG|HG]]) (3.3.3)</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="1363">{{Documentation subpage}}
{{High-risk|398,000+}}
&lt;!--
PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE.
YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT.
--&gt;
== Usage ==
This template allows &quot;=&quot; to be used in unnamed template parameters. It inserts the one-character [[equals-sign]] (&quot;=&quot;) into the text. However, in [[wp:CS1]] cite titles, the [[Unicode]] form &quot;&amp;amp;#61;&quot; could be used instead, where a literal &quot;=&quot; is not wanted during formatting of a title
== Example ==
*&lt;code&gt;&lt;nowiki&gt;{{Font color|black|yellow|2 + 2 {{=}} 4}}&lt;/nowiki&gt;&lt;/code&gt; produces: {{Font color|black|yellow|2 + 2 {{=}} 4}}
You can also use named parameters to bypass the restriction:
*&lt;code&gt;&lt;nowiki&gt;{{Font color|black|yellow|3= 2 + 2 = 4}}&lt;/nowiki&gt;&lt;/code&gt; produces: {{Font color|black|yellow|3= 2 + 2 = 4}}
== TemplateData ==
{{TemplateDataHeader}}
&lt;TemplateData&gt;
{&quot;description&quot;:&quot;A template to allow = to be used in template parameters&quot;,&quot;params&quot;:{}}
&lt;/TemplateData&gt;
== See also ==
* {{tl|((}}, which produces: {{((}}
* {{tl|))}}, which produces: {{))}}
* {{tl|!}}, which produces: {{!}}
* {{tl|ifequal}}
&lt;includeonly&gt;{{basepage subpage|&lt;!----PLEASE ADD CATEGORIES BELOW THIS LINE:----&gt;
[[Category:Wikipedia character-substitution templates]]
[[Category:Template namespace templates]]
[[Category:Mathematical formatting templates]]
}}&lt;/includeonly&gt;</text>
<sha1>3jjq90y6q0ojgzhjmv43699pt6wdjx5</sha1>
</revision>
</page>
<page>
<title>Template:Basepage subpage</title>
<ns>10</ns>
<id>43986518</id>
<redirect title="Template:When on basepage" />
<revision>
<id>769880910</id>
<parentid>642181889</parentid>
<timestamp>2017-03-12T04:26:29Z</timestamp>
<contributor>
<username>Godsy</username>
<id>23257138</id>
</contributor>
<comment>[[Template:This is a redirect]] has been deprecated, change to [[Template:Redirect category shell]].</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="115">#REDIRECT [[Template:When on basepage]]
{{Redirect category shell|
{{R from move}}
{{R from template shortcut}}
}}</text>
<sha1>8auv81suxp1xkygdvxy45lt28yl3p6z</sha1>
</revision>
</page>
<page>
<title>Template:Font color</title>
<ns>10</ns>
<id>5714218</id>
<revision>
<id>762622105</id>
<parentid>761290853</parentid>
<timestamp>2017-01-29T21:37:24Z</timestamp>
<contributor>
<username>Plastikspork</username>
<id>5075409</id>
</contributor>
<comment>TFD closed as do not merge (using [[User:Evad37/TFDcloser|TFDcloser]])</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="1529">{{ {{{|safesubst:}}}#if: {{{text|{{{3|}}}}}}
| {{ {{{|safesubst:}}}#if: {{{link|}}}
| {{ {{{|safesubst:}}}#ifeq: {{{link|}}} | yes
| [[ {{ {{{|safesubst:}}}trim | {{{text|{{{3|}}}}}} }}|&lt;span style=&quot;background-color:{{ {{{|safesubst:}}}trim | {{{bg|{{{2|inherit}}}}}} }}; color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};&quot;&gt;{{ {{{|safesubst:}}}trim | {{{text|{{{3|}}}}}} }}&lt;/span&gt;]]
| [[{{{link|}}}|&lt;span style=&quot;background-color:{{ {{{|safesubst:}}}trim | {{{bg|{{{2|inherit}}}}}} }}; color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};&quot;&gt;{{ {{{|safesubst:}}}trim | {{{text|{{{3|}}}}}} }}&lt;/span&gt;]]
}}
| &lt;span style=&quot;background-color:{{ {{{|safesubst:}}}trim | {{{bg|{{{2|inherit}}}}}} }}; color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};&quot;&gt;{{ {{{|safesubst:}}}trim | {{{text|{{{3|}}}}}} }}&lt;/span&gt;
}}
| {{ {{{|safesubst:}}}#if: {{{link|}}}
| {{ {{{|safesubst:}}}#ifeq: {{{link|}}} | yes
| [[ {{ {{{|safesubst:}}}trim | {{{bg|{{{2|}}}}}} }} |&lt;span style=&quot;color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};&quot;&gt;{{ {{{|safesubst:}}}trim | {{{bg|{{{2|}}}}}} }}&lt;/span&gt;]]
| [[ {{ {{{|safesubst:}}}trim | {{{link|}}} }} |&lt;span style=&quot;color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};&quot;&gt;{{ {{{|safesubst:}}}trim | {{{bg|{{{2|}}}}}} }}&lt;/span&gt;]]
}}
| &lt;span style=&quot;color:{{ {{{|safesubst:}}}trim | {{{fg|{{{1|inherit}}}}}} }};&quot;&gt;{{ {{{|safesubst:}}}trim | {{{bg|{{{2|}}}}}} }}&lt;/span&gt;
}}
}}&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>rv2fg2fhg3ymior6yythibr3kefytfv</sha1>
</revision>
</page>
<page>
<title>Template:TemplateDataHeader</title>
<ns>10</ns>
<id>46746520</id>
<redirect title="Template:TemplateData header" />
<revision>
<id>663071012</id>
<timestamp>2015-05-19T11:48:58Z</timestamp>
<contributor>
<username>MSGJ</username>
<id>42630</id>
</contributor>
<comment>MSGJ moved page [[Template:TemplateDataHeader]] to [[Template:TemplateData header]]: slightly clearer</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="58">#REDIRECT [[Template:TemplateData header]]
{{R from move}}</text>
<sha1>bfnm7z66t4q2d8otfa0y3vtgkcwrfao</sha1>
</revision>
</page>
<page>
<title>Template:TemplateData header</title>
<ns>10</ns>
<id>40047498</id>
<revision>
<id>751699557</id>
<parentid>751697852</parentid>
<timestamp>2016-11-27T09:49:55Z</timestamp>
<contributor>
<username>Zyxw</username>
<id>473593</id>
</contributor>
<minor/>
<comment>fix prior edit</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="470">&lt;div class=&quot;templatedata-header&quot;&gt;{{#if:{{{noheader|}}}| |This is the {{#if:{{{nolink|}}}|TemplateData|[[Wikipedia:TemplateData|TemplateData]]}} documentation for this template used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools.}}
{{Template error report}}
'''TemplateData for {{{1|{{BASEPAGENAME}}}}}'''
&lt;/div&gt;&lt;includeonly&gt;{{#ifeq:{{SUBPAGENAME}}|sandbox||
[[Category:TemplateData documentation]]
}}&lt;/includeonly&gt;&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>3ft4xbyvsxu6dppn5iqepshqcb43e27</sha1>
</revision>
</page>
<page>
<title>Template:Template error report</title>
<ns>10</ns>
<id>51792646</id>
<revision>
<id>804532230</id>
<parentid>761214908</parentid>
<timestamp>2017-10-09T16:54:31Z</timestamp>
<contributor>
<username>MusikAnimal</username>
<id>14882394</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Template error report]]&quot;: [[WP:High-risk templates|Highly visible template]]; thousands of transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="241">See the [https://tools.wmflabs.org/bambots/TemplateParam.php?wiki=enwiki&amp;template={{Urlencode:{{{1|{{ROOTPAGENAME}}}}}}} monthly error report] for this template.&lt;noinclude&gt;
{{documentation}}
[[Category:External link templates]]&lt;/noinclude&gt;</text>
<sha1>khv3elmnd6elbaw07i91b5bhw2zus66</sha1>
</revision>
</page>
<page>
<title>Template:Trim</title>
<ns>10</ns>
<id>21815705</id>
<revision>
<id>668935791</id>
<parentid>412919929</parentid>
<timestamp>2015-06-27T18:27:45Z</timestamp>
<contributor>
<username>Plastikspork</username>
<id>5075409</id>
</contributor>
<comment>Merging [[Template:Strip whitespace]] per TfD</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="114">&lt;includeonly&gt;{{ {{{|safesubst:}}}#if:1|{{{x|{{{1|}}}}}}}}&lt;/includeonly&gt;&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>h9devvk8f6nt34tp7zb17s39ge5wquh</sha1>
</revision>
</page>
<page>
<title>Template:When on basepage</title>
<ns>10</ns>
<id>24953498</id>
<revision>
<id>627655680</id>
<parentid>623562904</parentid>
<timestamp>2014-09-30T08:52:52Z</timestamp>
<contributor>
<username>Sardanaphalus</username>
<id>427947</id>
</contributor>
<minor/>
<comment>Sardanaphalus moved page [[Template:Basepage subpage]] to [[Template:When on basepage]]: Per move request</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="686">{{#switch:
&lt;!--If no or empty &quot;page&quot; parameter then detect
basepage/subpage/subsubpage--&gt;
{{#if:{{{page|}}}
| {{#if:{{#titleparts:{{{page}}}|0|3}}
| subsubpage &lt;!--Subsubpage or lower--&gt;
| {{#if:{{#titleparts:{{{page}}}|0|2}}
| subpage
| basepage
}}
}}
| {{#if:{{#titleparts:{{FULLPAGENAME}}|0|3}}
| subsubpage &lt;!--Subsubpage or lower--&gt;
| {{#if:{{#titleparts:{{FULLPAGENAME}}|0|2}}
| subpage
| basepage
}}
}}
}}
| basepage = {{{1|}}}
| subpage = {{{2|}}}
| subsubpage = {{{3| {{{2|}}} }}} &lt;!--Respecting empty parameter on purpose--&gt;
}}&lt;!--End switch--&gt;&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>o7r5t2v8ni781nvx47cen0sam91sxxc</sha1>
</revision>
</page>
<page>
<title>Template:Aligned table/doc</title>
<ns>10</ns>
<id>41873687</id>
<revision>
<id>760499496</id>
<parentid>735998362</parentid>
<timestamp>2017-01-17T10:46:24Z</timestamp>
<contributor>
<username>SpikeToronto</username>
<id>5635510</id>
</contributor>
<comment>/* Parameters */ Required for tablets (e.g., iPad).</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="7272">{{Documentation subpage}}
{{Lua|icononly=on |Module:Aligned table}}
{{high-use|6000+}}
&lt;!----Please place categories where indicated at the bottom of this page and interwikis in Wikidata----&gt;
The purpose is of this template is for generating simple tables in locations where [[Help:Table|standard table markup]] is either not possible, without significant use of the {{tld|!}} magic word (e.g., with a {{tl|sidebar}} template), or cumbersome (due to the repetitive use of specification of the same style statement in each row). This template should &lt;u&gt;not&lt;/u&gt; be used to replace [[Help:Table|standard table markup]] in articles. This template is meant to be complimentary to {{tl|infobox}} or {{tl|sidebar}}, and &lt;u&gt;not&lt;/u&gt; a replacement for {{tl|infobox}} or {{tl|sidebar}}.
A simpler method to include a table in a template that does not directly support table markup is to create the table in a sub-template using standard markup and transclude it.
== Full syntax ==
For parameter explanations, see table below.
&lt;pre style=&quot;overflow:auto;&quot;&gt;
{{Aligned table
| cols =
| fullwidth =
| class =
| style =
| colwidth =
| leftright =
| colstyle =
| rowstyle =
&lt;!--for Cth column:--&gt;
| colCwidth =
| colCclass =
| colCalign =
| colCstyle =
| colCnowrap =
&lt;!--for Rth row:--&gt;
| rowRclass =
| rowRstyle =
| rowRheader =
&lt;!--for cell R,C:--&gt;
| classR.C =
| styleR.C =
| (cell 1,1) | (cell 1,2) | ... | ...
| (cell 2,1) | (cell 2,2) | ... | ...
}}
&lt;/pre&gt;
== Parameters ==
&lt;div style=&quot;overflow:auto;&quot;&gt;
{{Aligned table
|cols=4 |class=wikitable |style=line-height:1.35em;
|colstyle=padding-right:1.0em;
|col2width=40.0em
|col4style=padding-left:1.0em;text-align:center;
|row1header=on
| Parameter
| Description
| Examples
| Default
&lt;!-------Overall--------&gt;
| cols
| Number of columns in the table.
| &lt;code&gt;&lt;nowiki&gt; |cols=4 &lt;/nowiki&gt;&lt;/code&gt;
| 2
| fullwidth
| {{nowrap|If set (to anything, &quot;on&quot;, &quot;true&quot;, &quot;yes&quot;, etc.), ensures table spans entire width available.}}
(Effect is to remove border-spacing and add width:100% to the table's styling.)
| &lt;code&gt;&lt;nowiki&gt; |fullwidth=on &lt;/nowiki&gt;&lt;/code&gt;
| ''Not set''
| class
| CSS/[[HTML attribute|HTML class]]/es applied to the table.
| &lt;code&gt;&lt;nowiki&gt; |class=wikitable &amp;nbsp; |class=infobox&lt;/nowiki&gt;&lt;br /&gt;&lt;nowiki&gt;|class=sortable nowrap &amp;nbsp; |class=sidebar&lt;/nowiki&gt;&lt;/code&gt;
| ''Not set''
| style
| [[CSS styling]] applied to the table.
| &lt;code&gt;{{nowrap|&lt;nowiki&gt; |style=width:80%;background:transparent; &lt;/nowiki&gt;}}&lt;/code&gt;
| ''Not set''
| colwidth
| Width of each column (or include &quot;width:...;&quot; in &lt;kbd&gt;colstyle&lt;/kbd&gt;).
| &lt;code&gt;&lt;nowiki&gt; |colwidth=6.0em &amp;nbsp; |colwidth=25%&lt;/nowiki&gt;&lt;/code&gt;
| ''Not set''
| colstyle
| CSS styling prepended to the cell style for each column.
| &lt;code&gt;&lt;nowiki&gt; |colstyle=background:transparent; &lt;/nowiki&gt;&lt;/code&gt;
| ''Not set''
| rowstyle
| CSS styling applied to each row.
| &lt;code&gt;&lt;nowiki&gt; |rowstyle=text-align:center; &lt;/nowiki&gt;&lt;/code&gt;
| vertical-align:top;
&lt;!-------Columns--------&gt;
| leftright
| If set (to anything, &quot;on&quot;, &quot;true&quot;, &quot;yes&quot;, etc.) is equivalent to &lt;kbd&gt;&lt;nowiki&gt;|col1align=left&lt;/nowiki&gt;&lt;/kbd&gt; and &lt;kbd&gt;&lt;nowiki&gt;|col2align=right&lt;/nowiki&gt;&lt;/kbd&gt;
| &lt;code&gt;&lt;nowiki&gt; |leftright=on &lt;/nowiki&gt;&lt;/code&gt;
| ''Not set''
| col{{var|C}}width
| CSS width property of cell in column {{var|C}} (or include &quot;width:...;&quot; in &lt;kbd&gt;col{{var|C}}style&lt;/kbd&gt;).
| &lt;code&gt;&lt;nowiki&gt; |col2width=9.0em &amp;nbsp; |col3width=35%&lt;/nowiki&gt;&lt;/code&gt;
| ''Not set''
| col{{var|C}}class
| Classes added to cell in column {{var|C}}.
| &lt;code&gt;&lt;nowiki&gt; |col1class=navbox-group &lt;/nowiki&gt;&lt;/code&gt;
| '' Not set''
| col{{var|C}}align
| CSS text-align property (left{{\}}right{{\}}center) of cell in column {{var|C}}'s cell contents (or include &quot;text-align:...;&quot; in &lt;kbd&gt;col{{var|C}}style&lt;/kbd&gt;).
| &lt;code&gt;&lt;nowiki&gt; |col4align=right &lt;/nowiki&gt;&lt;/code&gt;
| ''Not set''
| col{{var|C}}nowrap
| If set (to anything, &quot;on&quot;, &quot;true&quot;, &quot;yes&quot;, etc.) adds &quot;white-space:nowrap;&quot; to the CSS style of cell in column {{var|C}} (i.e., to prevent lines within its cells from wrapping; or include &quot;nowrap&quot; in &lt;kbd&gt;col{{var|C}}class&lt;/kbd&gt; or &quot;white-space:nowrap;&quot; in &lt;kbd&gt;col{{var|C}}style&lt;/kbd&gt;).
| &lt;code&gt;&lt;nowiki&gt; |col5nowrap=on &lt;/nowiki&gt;&lt;/code&gt;
|
| col{{var|C}}style
| CSS style appended to cell in column {{var|C}}.
| &lt;code&gt;&lt;nowiki&gt; |col4style=font-style:italic; &lt;/nowiki&gt;&lt;/code&gt;
| ''Not set''
| col{{var|C}}header
| If set (to any value), changes cells in column {{var|C}} to table headers (headings).
| &lt;code&gt;&lt;nowiki&gt; |col1header=on &lt;/nowiki&gt;&lt;/code&gt;
| ''Not set''
&lt;!--------Rows----------&gt;
| row{{var|R}}class
| Classes applied to row {{var|R}}.
| &lt;code&gt;&lt;nowiki&gt; |row10class=navbox-abovebelow &lt;/nowiki&gt;&lt;/code&gt;
| ''Not set''
| row{{var|R}}style
| CSS styling applied to row {{var|R}}.
| &lt;code&gt;&lt;nowiki&gt; |row2style=font-weight:bold; &lt;/nowiki&gt;&lt;/code&gt;
|
| row{{var|R}}header
| If set (to any value), changes cells in row {{var|R}} to table headers (headings).
| &lt;code&gt;&lt;nowiki&gt; |row1header=on &lt;/nowiki&gt;&lt;/code&gt;
| ''Not set''
&lt;!--------Cells---------&gt;
| class{{var|R}}.{{var|C}}
| Classes applied to cell in row {{var|R}}, column {{var|C}}. Overrides any other class attributions (&lt;kbd&gt;row{{var|R}}class&lt;/kbd&gt;, &lt;kbd&gt;col{{var|C}}class&lt;/kbd&gt;).
| &lt;code&gt;&lt;nowiki&gt; |class1.2=adr &lt;/nowiki&gt;&lt;/code&gt;
| ''Not set''
| style{{var|R}}.{{var|C}}
| CSS styling applied to cell in row {{var|R}}, column {{var|C}}. Overrides any more general styling (&lt;kbd&gt;leftright&lt;/kbd&gt;, &lt;kbd&gt;col{{var|C}}align&lt;/kbd&gt;, &lt;kbd&gt;row{{var|R}}style&lt;/kbd&gt;, etc).
| &lt;code&gt;&lt;nowiki&gt; |style5.3=text-align:right; &lt;/nowiki&gt;&lt;/code&gt;
| ''Not set''
| {{sans-serif|''Unnamed parameters''}}
| Each unnamed parameter is taken to be the next cell in the table, starting at the table's top left corner and working left to right from top to bottom.
| &lt;code&gt;{{!}} Azerbaijan {{!}} Malta {{!}} Zaire&lt;/code&gt;
| ''Not set''
}}&lt;/div&gt;
== Examples ==
&lt;pre&gt;
{{Aligned table
|cols=3 |class=wikitable
| A | 1 | a
| B | 2 | b
}}
&lt;/pre&gt;
{{Aligned table
|cols=3 |class=wikitable
| A | 1 | a
| B | 2 | b
}}
&lt;pre&gt;
{{Aligned table
|cols=4 |class=wikitable
|col1align=center |col2align=center
|col3align=right |col4align=right
| AAA | aa | 123 | 12345
| B | bbbbb | 1234 | 2
}}
&lt;/pre&gt;
{{Aligned table
|cols=4 |class=wikitable
|col1align=center |col2align=center
|col3align=right |col4align=right
| AAA | aa | 123 | 12345
| B | bbbbb | 1234 | 2
}}
&lt;pre&gt;
{{Aligned table
|class=wikitable |style=width:20em;
|col1align=center |col2align=right
| AAA | 123
| B | 2
}}
&lt;/pre&gt;
{{Aligned table
|class=wikitable |style=width:20em;
|col1align=center |col2align=right
| AAA | 123
| B | 2
}}
&lt;pre&gt;
{{Aligned table
|cols=3 |class=wikitable sortable
|row1header=y
| U | # | l
| A | 1 | a
| B | 2 | b
}}
&lt;/pre&gt;
{{Aligned table
|cols=3 |class=wikitable sortable
|row1header=y
| U | # | l
| A | 1 | a
| B | 2 | b
}}
&lt;pre&gt;
{{Aligned table
|cols=3 |class=wikitable sortable
|row1header=y
| U | # | l
| A | 1 | a
| B | 2 | b
| | |
| C | 3 | c
}}
&lt;/pre&gt;
{{Aligned table
|cols=3 |class=wikitable sortable
|row1header=y
| U | # | l
| A | 1 | a
| B | 2 | b
| | |
| C | 3 | c
}}
&lt;includeonly&gt;{{basepage subpage|
| &lt;!-- Categories below this line, please; interwikis to Wikidata. --&gt;
[[Category:Table templates]]
}}&lt;/includeonly&gt;</text>
<sha1>lxtr7x577tigskvypl2efdbkorbvcg8</sha1>
</revision>
</page>
<page>
<title>Template:High-use</title>
<ns>10</ns>
<id>17406187</id>
<revision>
<id>777931378</id>
<parentid>752582011</parentid>
<timestamp>2017-04-30T04:28:05Z</timestamp>
<contributor>
<username>Matt Fitzpatrick</username>
<id>291848</id>
</contributor>
<minor/>
<comment>added equivalent alt text &quot;Warning&quot; to image</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="1473">{{Ombox
| type = style
| image = [[File:Ambox warning yellow.svg|40px|alt=Warning|link=]]
| text =
'''This {{#switch:{{NAMESPACE}}|Module=Lua module|#default=template}} is used on [https://tools.wmflabs.org/templatecount/index.php?lang=en&amp;namespace={{NAMESPACENUMBER:{{FULLPAGENAME}}}}&amp;name={{urlencode:{{
#switch: {{SUBPAGENAME}}
| doc | sandbox = {{BASEPAGENAME}}
| #default = {{PAGENAME}}
}}}} {{High-use/num|1={{formatnum:{{#ifeq:{{str endswith|{{{1}}}|+}}|yes|{{str crop|{{{1}}}|1}}|{{{1}}}}}|R}}}} pages]''', so changes to it will be widely noticed. Please test any changes in the {{#switch:{{NAMESPACE}}|Module=module's|#default=template's}} [[{{#switch: {{SUBPAGENAME}}
| doc | sandbox = {{SUBJECTSPACE}}:{{BASEPAGENAME}}
| #default = {{SUBJECTPAGENAME}}
}}/sandbox|/sandbox]] or [[{{#switch: {{SUBPAGENAME}}
| doc | sandbox = {{SUBJECTSPACE}}:{{BASEPAGENAME}}
| #default = {{SUBJECTPAGENAME}}
}}/testcases|/testcases]] subpages{{#switch:{{NAMESPACE}}|Module=.|#default=, or in your own [[Wikipedia:Subpages#How to create user subpages|user subpage]].}} Please consider discussing changes {{#if:{{{2|}}}|at [[{{{2}}}]]|on the [[{{#switch: {{SUBPAGENAME}}
| doc | sandbox = {{TALKSPACE}}:{{BASEPAGENAME}}
| #default = {{TALKPAGENAME}}
}}|talk page]]}} before implementing them.
}}&lt;noinclude&gt;
{{Documentation}}
&lt;!-- Add categories to the /doc subpage; interwiki links go to Wikidata, thank you! --&gt;
&lt;/noinclude&gt;</text>
<sha1>ggv9ira9l4ekmaa8ru4nhdrreym2q5h</sha1>
</revision>
</page>
<page>
<title>Template:High-use/num</title>
<ns>10</ns>
<id>52295942</id>
<revision>
<id>804536581</id>
<parentid>749847442</parentid>
<timestamp>2017-10-09T17:20:41Z</timestamp>
<contributor>
<username>MusikAnimal</username>
<id>14882394</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:High-use/num]]&quot;: [[WP:High-risk templates|Highly visible template]]; 1,000+ transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="74">{{#iferror:{{#expr:0+{{{1}}}*1}}|many|approximately {{sigfig|{{{1}}}|2}}}}</text>
<sha1>4xf17czszr0cg49vcljmilmjdv8krz3</sha1>
</revision>
</page>
<page>
<title>Template:Lua</title>
<ns>10</ns>
<id>38752725</id>
<revision>
<id>804533741</id>
<parentid>747150669</parentid>
<timestamp>2017-10-09T17:05:03Z</timestamp>
<contributor>
<username>MusikAnimal</username>
<id>14882394</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Lua]]&quot;: [[WP:High-risk templates|Highly visible template]]; thousands of transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="196">&lt;includeonly&gt;{{#invoke:Lua banner|main}}&lt;/includeonly&gt;&lt;noinclude&gt;
{{Lua|Module:Lua banner}}
{{documentation}}
&lt;!-- Categories go on the /doc subpage and interwikis go on Wikidata. --&gt;
&lt;/noinclude&gt;</text>
<sha1>pnmjp3f3fl321yf2jpg5syebi412n7b</sha1>
</revision>
</page>
<page>
<title>Template:Nowrap</title>
<ns>10</ns>
<id>1627975</id>
<restrictions>edit=sysop:move=sysop</restrictions>
<revision>
<id>692794261</id>
<parentid>462345338</parentid>
<timestamp>2015-11-28T10:13:53Z</timestamp>
<contributor>
<username>Edokter</username>
<id>1624037</id>
</contributor>
<comment>Adapt comment; edits inside noinclude blocks should not affect job queue, but won't kill parser either way.</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="145">&lt;span class=&quot;nowrap&quot;&gt;{{{1}}}&lt;/span&gt;&lt;noinclude&gt;
{{documentation}}
&lt;!-- Categories go on the /doc page; interwikis go to Wikidata. --&gt;
&lt;/noinclude&gt;</text>
<sha1>avb5tcymgupik1ikutqclidkj9tnitx</sha1>
</revision>
</page>
<page>
<title>Template:Order of magnitude</title>
<ns>10</ns>
<id>11656899</id>
<revision>
<id>772147393</id>
<parentid>522551188</parentid>
<timestamp>2017-03-25T16:04:16Z</timestamp>
<contributor>
<username>Jo-Jo Eumerus</username>
<id>17449355</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Order of magnitude]]&quot;: Allowing template editors on some templates with full protection dating back to pre-[[WP:TPROT]] times which aren't too often or too sensitively used. ([Edit=Require template editor access...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="339">&lt;includeonly&gt;{{{{{|safesubst:}}}#ifexpr:{{{1|0}}}=0
|{{{{{|safesubst:}}}#ifexpr:abs{{{1|0}}}1=1
|0
|{{{{{|safesubst:}}}#expr:floor((ln(abs{{{1}}}1)/ln10)+1)}}
}}
|{{#expr:floor((ln(abs({{{1|0}}}) )/ln 10)+1E((abs{{{1|0}}}&gt;1E100 or abs{{{1|0}}}&lt;1E-100)-14))}}
}}&lt;/includeonly&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>o26s8fkrxrfa62h1s4cyrdxr33uqy8l</sha1>
</revision>
</page>
<page>
<title>Template:Rnd</title>
<ns>10</ns>
<id>13373859</id>
<revision>
<id>772120890</id>
<parentid>539949680</parentid>
<timestamp>2017-03-25T12:38:46Z</timestamp>
<contributor>
<username>Jo-Jo Eumerus</username>
<id>17449355</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Rnd]]&quot;: Allowing template editors on some templates with full protection dating back to pre-[[WP:TPROT|TPROT]] times which aren't too often or too sensitively used. ([Edit=Require template editor access] (indefi...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="323">&lt;includeonly&gt;{{#iferror:{{#expr:{{{2|0}}}}} |
[[Category:Pages with bad rounding precision]]{{hid|Bad rounding here}}&lt;!--
--&gt;{{#invoke:Math|precision_format| {{{1}}} | 1-{{order of magnitude|{{{1}}}}} }}|
{{#invoke:Math|precision_format| {{{1}}} | {{{2|0}}}}}}}&lt;/includeonly&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>rx1gvq4bh1iryz29g6tt9b2a4ng2k7z</sha1>
</revision>
</page>
<page>
<title>Template:Sans-serif</title>
<ns>10</ns>
<id>44415753</id>
<revision>
<id>820902549</id>
<parentid>820901318</parentid>
<timestamp>2018-01-17T08:07:28Z</timestamp>
<contributor>
<username>Oshwah</username>
<id>3174456</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Sans-serif]]&quot;: High risk template ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="172">&lt;noinclude&gt;&lt;pre&gt;&lt;/noinclude&gt;&lt;span style=&quot;font-family:sans-serif;&quot;&gt;{{{1}}}&lt;/span&gt;&lt;noinclude&gt;&lt;/pre&gt;
[[Category:Text-specific formatting and function templates]]
&lt;/noinclude&gt;</text>
<sha1>ji4suc347jcnxc591ovm74u01o0ne04</sha1>
</revision>
</page>
<page>
<title>Template:Sigfig</title>
<ns>10</ns>
<id>37772150</id>
<redirect title="Template:Significant figures" />
<revision>
<id>769931066</id>
<parentid>686429031</parentid>
<timestamp>2017-03-12T12:58:35Z</timestamp>
<contributor>
<username>Christian75</username>
<id>1306352</id>
</contributor>
<comment>{{redr}} is deprecated - converting to {{Redirect category shell}} using [[Project:AWB|AWB]]</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="118">#REDIRECT [[Template:Significant figures]]
{{Redirect category shell|
{{R from move}}
{{R from template shortcut}}
}}</text>
<sha1>6liq0tocaomv3w5pnzdg0n7d2hqs805</sha1>
</revision>
</page>
<page>
<title>Template:Significant figures</title>
<ns>10</ns>
<id>13120760</id>
<revision>
<id>638406869</id>
<parentid>594681521</parentid>
<timestamp>2014-12-16T21:22:35Z</timestamp>
<contributor>
<username>Jackmcbarn</username>
<id>19285809</id>
</contributor>
<minor/>
<comment>use the right doc template</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="249">{{#ifeq:{{{1&lt;noinclude&gt;|0&lt;/noinclude&gt;}}}|0
|0
|{{significant figures/{{#if:{{{2|}}}
|rnd
|sum
}}
|1={{formatnum:{{{1}}}|R}}
|2={{{2}}}
|3={{Order of magnitude|{{formatnum:{{{1}}}|R}}}}
}}
}}&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>0w70ettzuwz10gi8sb1030t0ch78d2b</sha1>
</revision>
</page>
<page>
<title>Template:Significant figures/rnd</title>
<ns>10</ns>
<id>13248669</id>
<revision>
<id>804533777</id>
<parentid>617347527</parentid>
<timestamp>2017-10-09T17:05:03Z</timestamp>
<contributor>
<username>MusikAnimal</username>
<id>14882394</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Significant figures/rnd]]&quot;: [[WP:High-risk templates|Highly visible template]]; thousands of transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="632">&lt;includeonly&gt;{{rnd|{{{1}}}|{{{2}}}-{{{3}}}-1}}&lt;/includeonly&gt;&lt;noinclude&gt;
{{doc|content=
A rounding subtemplate, it calls {{tl|rnd}}.
Examples:
*{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||7|||2}}
*{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||6|||2}}
*{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||5|||2}}
*{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||4|||2}}
*{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||3|||2}}
*{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||2|||2}}
*{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||1|||2}}
*{{xpd5op3p3p3c|d=||||||sigfig/rnd|123.456|||0|||2}}
[[Category:Subtemplates of template sigfig|rnd]]
}}
&lt;/noinclude&gt;</text>
<sha1>kzghuljvaaip7zd0yfn5yjvsyvsym83</sha1>
</revision>
</page>
<page>
<title>Template:Str crop</title>
<ns>10</ns>
<id>22792911</id>
<revision>
<id>656761583</id>
<parentid>638395630</parentid>
<timestamp>2015-04-16T14:37:18Z</timestamp>
<contributor>
<username>Frietjes</username>
<id>13791031</id>
</contributor>
<comment>add safesubst:</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="179">&lt;includeonly&gt;{{safesubst:#invoke:String | sub | s={{{1|}}} | 1 | {{safesubst:#expr: -{{{2|1}}} - 1}} | ignore_errors=true }}&lt;/includeonly&gt;&lt;noinclude&gt;
{{documentation}}&lt;/noinclude&gt;</text>
<sha1>n0lrovj1bv85hf3j8hj0ny8majdzr3h</sha1>
</revision>
</page>
<page>
<title>Template:Str endswith</title>
<ns>10</ns>
<id>22860091</id>
<revision>
<id>752100802</id>
<parentid>748257234</parentid>
<timestamp>2016-11-29T14:22:27Z</timestamp>
<contributor>
<username>BU Rob13</username>
<id>25420061</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Str endswith]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require administrator access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="71">{{#invoke:Str endswith|main}}&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>gkfardrqegdkd78zd99vm0nrkhvl505</sha1>
</revision>
</page>
<page>
<title>Template:Tld</title>
<ns>10</ns>
<id>16451582</id>
<revision>
<id>722499597</id>
<parentid>559778632</parentid>
<timestamp>2016-05-28T14:58:08Z</timestamp>
<contributor>
<username>Yaris678</username>
<id>1210941</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:Tld: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require administrator access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="766">{{Tlg|code=yes|nolink=yes|subst={{{subst|}}}|nowrap={{#if:{{{allowlinebreak|}}}||yes}}|{{{1|}}}&lt;!--
--&gt;|2{{#ifeq:{{{2}}}|{{{2|x}}}||x}}={{{2}}}&lt;!--
--&gt;|3{{#ifeq:{{{3}}}|{{{3|x}}}||x}}={{{3}}}&lt;!--
--&gt;|4{{#ifeq:{{{4}}}|{{{4|x}}}||x}}={{{4}}}&lt;!--
--&gt;|5{{#ifeq:{{{5}}}|{{{5|x}}}||x}}={{{5}}}&lt;!--
--&gt;|6{{#ifeq:{{{6}}}|{{{6|x}}}||x}}={{{6}}}&lt;!--
--&gt;|7{{#ifeq:{{{7}}}|{{{7|x}}}||x}}={{{7}}}&lt;!--
--&gt;|8{{#ifeq:{{{8}}}|{{{8|x}}}||x}}={{{8}}}&lt;!--
--&gt;|9{{#ifeq:{{{9}}}|{{{9|x}}}||x}}={{{9}}}&lt;!--
--&gt;|10{{#ifeq:{{{10}}}|{{{10|x}}}||x}}={{{10}}}&lt;!--
--&gt;|11{{#ifeq:{{{11}}}|{{{11|x}}}||x}}={{{11}}}&lt;!--
--&gt;|12{{#ifeq:{{{12}}}|{{{12|x}}}||x}}={{{12}}}}}&lt;noinclude&gt;
{{Documentation|Template:Tlc/doc}}
&lt;!-- Add categories and interwikis to the /doc subpage, not here! --&gt;
&lt;/noinclude&gt;</text>
<sha1>m2m4u5powlflffx95pdx6t1iqjyxxrr</sha1>
</revision>
</page>
<page>
<title>Template:Tlg</title>
<ns>10</ns>
<id>31734151</id>
<revision>
<id>790785155</id>
<parentid>790782997</parentid>
<timestamp>2017-07-16T01:43:12Z</timestamp>
<contributor>
<username>Zyxw</username>
<id>473593</id>
</contributor>
<minor/>
<comment>update placement of span</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="2794">&lt;includeonly&gt;&lt;!--
--&gt;{{#if:{{{nowrap|}}} |&lt;span class=&quot;nowrap&quot;&gt;}}&lt;!--
--&gt;{{#if:{{{code|{{{tt|}}}}}} |&lt;code&gt; |{{#if:{{{plaincode|}}}|&lt;code style=&quot;border:none;background:transparent;&quot;&gt;}} }}&lt;!--
--&gt;{{#if:{{{kbd|}}} |&lt;kbd&gt;}}&lt;!--
--&gt;{{#if:{{{nowrapname|}}} |&lt;span class=&quot;nowrap&quot;&gt;}}&lt;!--
--&gt;{{#if:{{{braceinside|}}} | |&lt;nowiki&gt;{{&lt;/nowiki&gt;}}&lt;!--
--&gt;{{#if:{{{subst|}}} |[[Help:Substitution|subst]]:}}&lt;!--
--&gt;{{#if:{{{bold|{{{boldlink|{{{boldname|}}}}}}}}} |'''}}&lt;!--
--&gt;{{#if:{{{nolink|}}} |&lt;!--then omit template link, else:
--&gt;| {{#if:{{{braceinside|}}} |&lt;nowiki&gt;{&lt;/nowiki&gt;}}&lt;!--
--&gt;{{!((}}:&lt;!--(start building link with &quot;[[:&quot;)
--&gt;{{#ifeq:{{padleft:|1|{{{1}}}}}|: &lt;!--i.e. if {{{1}}}'s first character is a colon,
then:--&gt; |{{FULLPAGENAME:{{{1}}}}}&lt;!--
else:--&gt; |{{#switch:{{NAMESPACE:{{#if:{{{1|}}}|{{{1}}}|{{FULLPAGENAME}}}}}}
| {{ns:0}} = {{ns:10}}:{{#if:{{{1|}}}|{{PAGENAME:{{{1}}}}}|{{PAGENAME}}}}
| #default = {{#if:{{{1|}}}|{{FULLPAGENAME:{{{1}}}}}|{{FULLPAGENAME}}}}
}}}}&lt;!--
--&gt;{{!}}&lt;!--(pipe between link and label, i.e. [[:link|label]])
--&gt;}}&lt;!--
--&gt;{{#if:{{{braceinside|}}} |&lt;nowiki&gt;{&lt;/nowiki&gt;}}&lt;!--
label / template name:
--&gt;{{{alttext|{{#if:{{{1|}}}|{{{1}}}|{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|{{PAGENAME}}|{{FULLPAGENAME}}}}}}}}}&lt;!--
--&gt;{{#if:{{{braceinside|}}} |&lt;nowiki&gt;}&lt;/nowiki&gt;}}&lt;!--
--&gt;{{#if:{{{nolink|}}} | |&lt;!--
--&gt;{{!))}}&lt;!--(end link)
--&gt;{{#if:{{{braceinside|}}} |&lt;nowiki&gt;}&lt;/nowiki&gt;}}&lt;!--
--&gt;}}&lt;!--
--&gt;{{#if:{{{bold|{{{boldlink|{{{boldname|}}}}}}}}} |'''}}&lt;!--
--&gt;{{#if:{{{nowrapname|}}} |&lt;/span&gt;}}&lt;!--
--&gt;{{#if:{{{italic|{{{italics|}}}}}} |&lt;span style=&quot;font-style:italic;&quot;&gt;}}&lt;!--
--&gt;{{#ifeq:{{{2|¬}}}|¬ | |&amp;#124;{{#tag:nowiki|{{{2}}}}}}}&lt;!--
--&gt;{{#ifeq:{{{3|¬}}}|¬ | |&amp;#124;{{#tag:nowiki|{{{3}}}}}}}&lt;!--
--&gt;{{#ifeq:{{{4|¬}}}|¬ | |&amp;#124;{{#tag:nowiki|{{{4}}}}}}}&lt;!--
--&gt;{{#ifeq:{{{5|¬}}}|¬ | |&amp;#124;{{#tag:nowiki|{{{5}}}}}}}&lt;!--
--&gt;{{#ifeq:{{{6|¬}}}|¬ | |&amp;#124;{{#tag:nowiki|{{{6}}}}}}}&lt;!--
--&gt;{{#ifeq:{{{7|¬}}}|¬ | |&amp;#124;{{#tag:nowiki|{{{7}}}}}}}&lt;!--
--&gt;{{#ifeq:{{{8|¬}}}|¬ | |&amp;#124;{{#tag:nowiki|{{{8}}}}}}}&lt;!--
--&gt;{{#ifeq:{{{9|¬}}}|¬ | |&amp;#124;{{#tag:nowiki|{{{9}}}}}}}&lt;!--
--&gt;{{#ifeq:{{{10|¬}}}|¬ | |&amp;#124;{{#tag:nowiki|{{{10}}}}}}}&lt;!--
--&gt;{{#ifeq:{{{11|¬}}}|¬ | |&amp;#124;{{#tag:nowiki|{{{11}}}}}}}&lt;!--
--&gt;{{#if:{{{12|}}} |&amp;#124;…}}&lt;!--
--&gt;{{#if:{{{italic|{{{italics|}}}}}} |&lt;/span&gt;}}&lt;!--
--&gt;{{#if:{{{braceinside|}}} | |&lt;nowiki&gt;}}&lt;/nowiki&gt;}}&lt;!--
--&gt;{{#if:{{{kbd|}}} |&lt;/kbd&gt;}}&lt;!--
--&gt;{{#if:{{{code|{{{tt|}}}}}}{{{plaincode|}}} |&lt;/code&gt;}}&lt;!--
--&gt;{{#if:{{{nowrap|}}} |&lt;/span&gt;}}&lt;!--
--&gt;&lt;/includeonly&gt;&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>byyf1x2onevkha93mms6divoszra5y1</sha1>
</revision>
</page>
<page>
<title>Template:Var</title>
<ns>10</ns>
<id>19311880</id>
<revision>
<id>816459039</id>
<parentid>684205355</parentid>
<timestamp>2017-12-21T13:31:52Z</timestamp>
<contributor>
<username>Izno</username>
<id>2927383</id>
</contributor>
<comment>nix xml lang invocation</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="322">&lt;var {{#if:{{{class|}}}|class=&quot;{{{class}}}&quot;}} {{#if:{{{id|}}}|id=&quot;{{{id}}}&quot;}} style=&quot;padding-right: 1px;{{{style|}}}&quot; {{#if:{{{lang|}}}|lang=&quot;{{{lang}}}&quot;}} {{#if:{{{title|}}}|title=&quot;{{{title}}}&quot;}}&gt;{{{1}}}&lt;/var&gt;&lt;noinclude&gt;
&lt;!--Categories and interwikis go near the bottom of the /doc page.--&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>1ph0r212s7cz1dvg2q4quotqwsozpa8</sha1>
</revision>
</page>
<page>
<title>Template:\</title>
<ns>10</ns>
<id>16258728</id>
<revision>
<id>695047466</id>
<parentid>464090629</parentid>
<timestamp>2015-12-13T11:55:37Z</timestamp>
<contributor>
<username>Graeme Bartlett</username>
<id>38427</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:\: [[WP:High-risk templates|Highly visible template]] ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only administrators] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="125">&amp;nbsp;/&amp;#32;&lt;noinclude&gt;
{{Documentation}}
&lt;!-- Add categories and interwikis to the /doc subpage, not here! --&gt;
&lt;/noinclude&gt;</text>
<sha1>gfvlsjgnfxn02vdp58sww0lo44n62ht</sha1>
</revision>
</page>
<page>
<title>Module:Aligned table</title>
<ns>828</ns>
<id>41873595</id>
<revision>
<id>796397183</id>
<parentid>755158064</parentid>
<timestamp>2017-08-20T15:26:33Z</timestamp>
<contributor>
<username>Frietjes</username>
<id>13791031</id>
</contributor>
<comment>even/odd rowstyles</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="5697">-- This module implements {{aligned table}}
local p = {}
local function isnotempty(s)
return s and s:match( '^%s*(.-)%s*$' ) ~= ''
end
function p.table(frame)
local args = (frame.args[3] ~= nil) and frame.args or frame:getParent().args
local entries = {}
local colclass = {}
local colstyle = {}
local cols = tonumber(args['cols']) or 2
-- create the root table
local root = mw.html.create('table')
-- add table style for fullwidth
if isnotempty(args['fullwidth']) then
root
:css('width', '100%')
:css('border-collapse', 'collapse')
:css('border-spacing', '0px 0px')
:css('border', 'none')
end
-- add table classes
if isnotempty(args['class']) then
root:addClass(args['class'])
end
-- add table style
if isnotempty(args['style']) then
root:cssText(args['style'])
end
-- build arrays with the column styles and classes
if isnotempty(args['leftright']) then
colstyle[1] = 'text-align:left;'
colstyle[2] = 'text-align:right;'
end
for i = 1,cols do
colclass[ i ] = colclass[ i ] or ''
colstyle[ i ] = colstyle[ i ] or ''
if isnotempty(args['colstyle']) then
colstyle[ i ] = args['colstyle'] .. ';' .. colstyle[ i ]
end
if isnotempty(args['colalign' .. tostring(i)]) then
colstyle[ i ] = 'text-align:' .. args['colalign' .. tostring(i)] .. ';' .. colstyle[ i ]
elseif isnotempty(args['col' .. tostring(i) .. 'align']) then
colstyle[ i ] = 'text-align:' .. args['col' .. tostring(i) .. 'align'] .. ';' .. colstyle[ i ]
elseif isnotempty(args['align' .. tostring(i)]) then
colstyle[ i ] = 'text-align:' .. args['align' .. tostring(i)] .. ';' .. colstyle[ i ]
end
if isnotempty(args['colnowrap' .. tostring(i)]) then
colstyle[ i ] = 'white-space:nowrap;' .. colstyle[ i ]
elseif isnotempty(args['col' .. tostring(i) .. 'nowrap']) then
colstyle[ i ] = 'white-space:nowrap;' .. colstyle[ i ]
elseif isnotempty(args['nowrap' .. tostring(i)]) then
colstyle[ i ] = 'white-space:nowrap;' .. colstyle[ i ]
end
if isnotempty(args['colwidth' .. tostring(i)]) then
colstyle[ i ] = 'width:' .. args['colwidth' .. tostring(i)] .. ';' .. colstyle[ i ]
elseif isnotempty(args['col' .. tostring(i) .. 'width']) then
colstyle[ i ] = 'width:' .. args['col' .. tostring(i) .. 'width'] .. ';' .. colstyle[ i ]
elseif isnotempty(args['colwidth']) then
colstyle[ i ] = 'width:' .. args['colwidth'] .. ';' .. colstyle[ i ]
end
if isnotempty(args['colstyle' .. tostring(i)]) then
colstyle[ i ] = colstyle[ i ] .. args['colstyle' .. tostring(i)]
elseif isnotempty(args['col' .. tostring(i) .. 'style']) then
colstyle[ i ] = colstyle[ i ] .. args['col' .. tostring(i) .. 'style']
elseif isnotempty(args['style' .. tostring(i)]) then
colstyle[ i ] = colstyle[ i ] .. args['style' .. tostring(i)]
end
if isnotempty(args['colclass' .. tostring(i)]) then
colclass[ i ] = args['colclass' .. tostring(i)]
elseif isnotempty(args['col' .. tostring(i) .. 'class']) then
colclass[ i ] = args['col' .. tostring(i) .. 'class']
elseif isnotempty(args['class' .. tostring(i)]) then
colclass[ i ] = args['class' .. tostring(i)]
end
end
-- compute the maximum cell index
local cellcount = 0
for k, v in pairs( args ) do
if type( k ) == 'number' then
cellcount = math.max(cellcount, k)
end
end
-- compute the number of rows
local rows = math.ceil(cellcount / cols)
-- build the table content
if isnotempty(args['title']) then
local caption = root:tag('caption')
caption:cssText(args['titlestyle'])
caption:wikitext(args['title'])
end
if isnotempty(args['above']) then
local row = root:tag('tr')
local cell = row:tag('th')
cell:attr('colspan', cols)
cell:cssText(args['abovestyle'])
cell:wikitext(args['above'])
end
for j=1,rows do
-- start a new row
local row = root:tag('tr')
if isnotempty(args['rowstyle']) then
row:cssText(args['rowstyle'])
else
row:css('vertical-align', 'top')
end
-- loop over the cells in the row
for i=1,cols do
local cell
if isnotempty(args['row' .. tostring(j) .. 'header']) then
cell = row:tag('th'):attr('scope','col')
elseif isnotempty(args['col' .. tostring(i) .. 'header']) then
cell = row:tag('th'):attr('scope','row')
else
cell = row:tag('td')
end
if args['class' .. tostring(j) .. '.' .. tostring(i)] then
cell:addClass(args['class' .. tostring(j) .. '.' .. tostring(i)])
else
if args['rowclass' .. tostring(j)] then
cell:addClass(args['rowclass' .. tostring(j)])
elseif args['row' .. tostring(j) .. 'class'] then
cell:addClass(args['row' .. tostring(j) .. 'class'])
elseif args['rowevenclass'] and math.fmod(j,2) == 0 then
cell:addClass(args['rowevenclass'])
elseif args['rowoddclass'] and math.fmod(j,2) == 1 then
cell:addClass(args['rowoddclass'])
end
if colclass[i] ~= '' then
cell:addClass(colclass[i])
end
end
if args['style' .. tostring(j) .. '.' .. tostring(i)] then
cell:cssText(args['style' .. tostring(j) .. '.' .. tostring(i)])
else
if args['rowstyle' .. tostring(j)] then
cell:cssText(args['rowstyle' .. tostring(j)])
elseif args['rowevenstyle'] and math.fmod(j,2) == 0 then
cell:cssText(args['rowevenstyle'])
elseif args['rowoddstyle'] and math.fmod(j,2) == 1 then
cell:cssText(args['rowoddstyle'])
elseif args['row' .. tostring(j) .. 'style'] then
cell:cssText(args['row' .. tostring(j) .. 'style'])
end
if isnotempty(colstyle[i]) then
cell:cssText(colstyle[i])
end
end
cell:wikitext(mw.ustring.gsub(args[cols*(j - 1) + i] or '', '^(.-)%s*$', '%1') or '')
end
end
-- return the root table
return tostring(root)
end
return p</text>
<sha1>o4d457cy79tvvxs2d2fc2e8bxgel3bq</sha1>
</revision>
</page>
<page>
<title>Module:List</title>
<ns>828</ns>
<id>41068627</id>
<revision>
<id>794511725</id>
<parentid>788254921</parentid>
<timestamp>2017-08-08T13:55:25Z</timestamp>
<contributor>
<username>Jdlrobson</username>
<id>15999850</id>
</contributor>
<comment>Minerva skin needs whether an hlist is separated to be explicit (see https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#Hlist_bullets_not_shown_in_mobile)</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="5154">-- This module outputs different kinds of lists. At the moment, bulleted,
-- unbulleted, horizontal, ordered, and horizontal ordered lists are supported.
local libUtil = require('libraryUtil')
local checkType = libUtil.checkType
local mTableTools = require('Module:TableTools')
local p = {}
local listTypes = {
['bulleted'] = true,
['unbulleted'] = true,
['horizontal'] = true,
['ordered'] = true,
['horizontal_ordered'] = true
}
function p.makeListData(listType, args)
-- Constructs a data table to be passed to p.renderList.
local data = {}
-- Classes
data.classes = {}
if listType == 'horizontal' or listType == 'horizontal_ordered' then
table.insert(data.classes, 'hlist hlist-separated')
elseif listType == 'unbulleted' then
table.insert(data.classes, 'plainlist')
end
table.insert(data.classes, args.class)
-- Main div style
data.style = args.style
-- Indent for horizontal lists
if listType == 'horizontal' or listType == 'horizontal_ordered' then
local indent = tonumber(args.indent)
indent = indent and indent * 1.6 or 0
if indent &gt; 0 then
data.marginLeft = indent .. 'em'
end
end
-- List style types for ordered lists
-- This could be &quot;1, 2, 3&quot;, &quot;a, b, c&quot;, or a number of others. The list style
-- type is either set by the &quot;type&quot; attribute or the &quot;list-style-type&quot; CSS
-- property.
if listType == 'ordered' or listType == 'horizontal_ordered' then
data.listStyleType = args.list_style_type or args['list-style-type']
data.type = args['type']
-- Detect invalid type attributes and attempt to convert them to
-- list-style-type CSS properties.
if data.type
and not data.listStyleType
and not tostring(data.type):find('^%s*[1AaIi]%s*$')
then
data.listStyleType = data.type
data.type = nil
end
end
-- List tag type
if listType == 'ordered' or listType == 'horizontal_ordered' then
data.listTag = 'ol'
else
data.listTag = 'ul'
end
-- Start number for ordered lists
data.start = args.start
if listType == 'horizontal_ordered' then
-- Apply fix to get start numbers working with horizontal ordered lists.
local startNum = tonumber(data.start)
if startNum then
data.counterReset = 'listitem ' .. tostring(startNum - 1)
end
end
-- List style
-- ul_style and ol_style are included for backwards compatibility. No
-- distinction is made for ordered or unordered lists.
data.listStyle = args.list_style
-- List items
-- li_style is included for backwards compatibility. item_style was included
-- to be easier to understand for non-coders.
data.itemStyle = args.item_style or args.li_style
data.items = {}
for i, num in ipairs(mTableTools.numKeys(args)) do
local item = {}
item.content = args[num]
item.style = args['item' .. tostring(num) .. '_style']
or args['item_style' .. tostring(num)]
item.value = args['item' .. tostring(num) .. '_value']
or args['item_value' .. tostring(num)]
table.insert(data.items, item)
end
return data
end
function p.renderList(data)
-- Renders the list HTML.
-- Return the blank string if there are no list items.
if type(data.items) ~= 'table' or #data.items &lt; 1 then
return ''
end
-- Render the main div tag.
local root = mw.html.create('div')
for i, class in ipairs(data.classes or {}) do
root:addClass(class)
end
root:css{['margin-left'] = data.marginLeft}
if data.style then
root:cssText(data.style)
end
-- Render the list tag.
local list = root:tag(data.listTag or 'ul')
list
:attr{start = data.start, type = data.type}
:css{
['counter-reset'] = data.counterReset,
['list-style-type'] = data.listStyleType
}
if data.listStyle then
list:cssText(data.listStyle)
end
-- Render the list items
for i, t in ipairs(data.items or {}) do
local item = list:tag('li')
if data.itemStyle then
item:cssText(data.itemStyle)
end
if t.style then
item:cssText(t.style)
end
item
:attr{value = t.value}
:wikitext(t.content)
end
return tostring(root)
end
function p.renderTrackingCategories(args)
local isDeprecated = false -- Tracks deprecated parameters.
for k, v in pairs(args) do
k = tostring(k)
if k:find('^item_style%d+$') or k:find('^item_value%d+$') then
isDeprecated = true
break
end
end
local ret = ''
if isDeprecated then
ret = ret .. '[[Category:List templates with deprecated parameters]]'
end
return ret
end
function p.makeList(listType, args)
if not listType or not listTypes[listType] then
error(string.format(
&quot;bad argument #1 to 'makeList' ('%s' is not a valid list type)&quot;,
tostring(listType)
), 2)
end
checkType('makeList', 2, args, 'table')
local data = p.makeListData(listType, args)
local list = p.renderList(data)
local trackingCategories = p.renderTrackingCategories(args)
return list .. trackingCategories
end
for listType in pairs(listTypes) do
p[listType] = function (frame)
local mArguments = require('Module:Arguments')
local origArgs = mArguments.getArgs(frame)
-- Copy all the arguments to a new table, for faster indexing.
local args = {}
for k, v in pairs(origArgs) do
args[k] = v
end
return p.makeList(listType, args)
end
end
return p</text>
<sha1>lkqmcmpfob2c6xhq46f675tm6p136ns</sha1>
</revision>
</page>
<page>
<title>Module:Lua banner</title>
<ns>828</ns>
<id>42951651</id>
<revision>
<id>804712413</id>
<parentid>611366942</parentid>
<timestamp>2017-10-10T17:47:29Z</timestamp>
<contributor>
<username>MusikAnimal</username>
<id>14882394</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Module:Lua banner]]&quot;: [[WP:High-risk templates|High-risk Lua module]]; 1,000+ transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite))</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="2421">-- This module implements the {{lua}} template.
local yesno = require('Module:Yesno')
local mList = require('Module:List')
local mTableTools = require('Module:TableTools')
local mMessageBox = require('Module:Message box')
local p = {}
function p.main(frame)
local origArgs = frame:getParent().args
local args = {}
for k, v in pairs(origArgs) do
v = v:match('^%s*(.-)%s*$')
if v ~= '' then
args[k] = v
end
end
return p._main(args)
end
function p._main(args)
local modules = mTableTools.compressSparseArray(args)
local box = p.renderBox(modules)
local trackingCategories = p.renderTrackingCategories(args, modules)
return box .. trackingCategories
end
function p.renderBox(modules)
local boxArgs = {}
if #modules &lt; 1 then
boxArgs.text = '&lt;strong class=&quot;error&quot;&gt;Error: no modules specified&lt;/strong&gt;'
else
local moduleLinks = {}
for i, module in ipairs(modules) do
moduleLinks[i] = string.format('[[:%s]]', module)
end
local moduleList = mList.makeList('bulleted', moduleLinks)
boxArgs.text = 'Uses [[Wikipedia:Lua|Lua]]:\n' .. moduleList
end
boxArgs.type = 'notice'
boxArgs.small = true
boxArgs.image = '[[File:Lua-logo-nolabel.svg|30px|alt=Lua logo|link=Wikipedia:Lua]]'
return mMessageBox.main('mbox', boxArgs)
end
function p.renderTrackingCategories(args, modules, titleObj)
if yesno(args.nocat) then
return ''
end
local cats = {}
-- Error category
if #modules &lt; 1 then
cats[#cats + 1] = 'Lua templates with errors'
end
-- Lua templates category
titleObj = titleObj or mw.title.getCurrentTitle()
local subpageBlacklist = {
doc = true,
sandbox = true,
sandbox2 = true,
testcases = true
}
if titleObj.namespace == 10
and not subpageBlacklist[titleObj.subpageText]
then
local category = args.category
if not category then
local categories = {
['Module:String'] = 'Lua String-based templates',
['Module:Math'] = 'Templates based on the Math Lua module',
['Module:BaseConvert'] = 'Templates based on the BaseConvert Lua module',
['Module:Citation'] = 'Lua-based citation templates'
}
categories['Module:Citation/CS1'] = categories['Module:Citation']
category = modules[1] and categories[modules[1]]
category = category or 'Lua-based templates'
end
cats[#cats + 1] = category
end
for i, cat in ipairs(cats) do
cats[i] = string.format('[[Category:%s]]', cat)
end
return table.concat(cats)
end
return p</text>
<sha1>l8oeyvtrxsbtfip6xi5evqh3yk40lu5</sha1>
</revision>
</page>
<page>
<title>Module:Math</title>
<ns>828</ns>
<id>38591527</id>
<revision>
<id>712321332</id>
<parentid>613638641</parentid>
<timestamp>2016-03-28T12:15:51Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<comment>simplify using a new binary_fold function, per protected edit request by [[User:Esquivalience]]</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="12811">--[[
This module provides a number of basic mathematical operations.
]]
local yesno, getArgs -- lazily initialized
local p = {} -- Holds functions to be returned from #invoke, and functions to make available to other Lua modules.
local wrap = {} -- Holds wrapper functions that process arguments from #invoke. These act as intemediary between functions meant for #invoke and functions meant for Lua.
--[[
Helper functions used to avoid redundant code.
]]
local function err(msg)
-- Generates wikitext error messages.
return mw.ustring.format('&lt;strong class=&quot;error&quot;&gt;Formatting error: %s&lt;/strong&gt;', msg)
end
local function unpackNumberArgs(args)
-- Returns an unpacked list of arguments specified with numerical keys.
local ret = {}
for k, v in pairs(args) do
if type(k) == 'number' then
table.insert(ret, v)
end
end
return unpack(ret)
end
local function makeArgArray(...)
-- Makes an array of arguments from a list of arguments that might include nils.
local args = {...} -- Table of arguments. It might contain nils or non-number values, so we can't use ipairs.
local nums = {} -- Stores the numbers of valid numerical arguments.
local ret = {}
for k, v in pairs(args) do
v = p._cleanNumber(v)
if v then
nums[#nums + 1] = k
args[k] = v
end
end
table.sort(nums)
for i, num in ipairs(nums) do
ret[#ret + 1] = args[num]
end
return ret
end
local function fold(func, ...)
-- Use a function on all supplied arguments, and return the result. The function must accept two numbers as parameters,
-- and must return a number as an output. This number is then supplied as input to the next function call.
local vals = makeArgArray(...)
local count = #vals -- The number of valid arguments
if count == 0 then return
-- Exit if we have no valid args, otherwise removing the first arg would cause an error.
nil, 0
end
local ret = table.remove(vals, 1)
for _, val in ipairs(vals) do
ret = func(ret, val)
end
return ret, count
end
--[[
Fold arguments by selectively choosing values (func should return when to choose the current &quot;dominant&quot; value).
]]
local function binary_fold(func, ...)
local value = fold((function(a, b) if func(a, b) then return a else return b end end), ...)
return value
end
--[[
random
Generate a random number
Usage:
{{#invoke: Math | random }}
{{#invoke: Math | random | maximum value }}
{{#invoke: Math | random | minimum value | maximum value }}
]]
function wrap.random(args)
local first = p._cleanNumber(args[1])
local second = p._cleanNumber(args[2])
return p._random(first, second)
end
function p._random(first, second)
math.randomseed(mw.site.stats.edits + mw.site.stats.pages + os.time() + math.floor(os.clock() * 1000000000))
-- math.random will throw an error if given an explicit nil parameter, so we need to use if statements to check the params.
if first and second then
if first &lt;= second then -- math.random doesn't allow the first number to be greater than the second.
return math.random(first, second)
end
elseif first then
return math.random(first)
else
return math.random()
end
end
--[[
order
Determine order of magnitude of a number
Usage:
{{#invoke: Math | order | value }}
]]
function wrap.order(args)
local input_string = (args[1] or args.x or '0');
local input_number = p._cleanNumber(input_string);
if input_number == nil then
return err('order of magnitude input appears non-numeric')
else
return p._order(input_number)
end
end
function p._order(x)
if x == 0 then return 0 end
return math.floor(math.log10(math.abs(x)))
end
--[[
precision
Detemines the precision of a number using the string representation
Usage:
{{ #invoke: Math | precision | value }}
]]
function wrap.precision(args)
local input_string = (args[1] or args.x or '0');
local trap_fraction = args.check_fraction;
local input_number;
if not yesno then
yesno = require('Module:Yesno')
end
if yesno(trap_fraction, true) then -- Returns true for all input except nil, false, &quot;no&quot;, &quot;n&quot;, &quot;0&quot; and a few others. See [[Module:Yesno]].
local pos = string.find(input_string, '/', 1, true);
if pos ~= nil then
if string.find(input_string, '/', pos + 1, true) == nil then
local denominator = string.sub(input_string, pos+1, -1);
local denom_value = tonumber(denominator);
if denom_value ~= nil then
return math.log10(denom_value);
end
end
end
end
input_number, input_string = p._cleanNumber(input_string);
if input_string == nil then
return err('precision input appears non-numeric')
else
return p._precision(input_string)
end
end
function p._precision(x)
if type(x) == 'number' then
x = tostring(x)
end
x = string.upper(x)
local decimal = x:find('%.')
local exponent_pos = x:find('E')
local result = 0;
if exponent_pos ~= nil then
local exponent = string.sub(x, exponent_pos + 1)
x = string.sub(x, 1, exponent_pos - 1)
result = result - tonumber(exponent)
end
if decimal ~= nil then
result = result + string.len(x) - decimal
return result
end
local pos = string.len(x);
while x:byte(pos) == string.byte('0') do
pos = pos - 1
result = result - 1
if pos &lt;= 0 then
return 0
end
end
return result
end
--[[
max
Finds the maximum argument
Usage:
{{#invoke:Math| max | value1 | value2 | ... }}
Note, any values that do not evaluate to numbers are ignored.
]]
function wrap.max(args)
return p._max(unpackNumberArgs(args))
end
function p._max(...)
local max_value = binary_fold((function(a, b) return a &gt; b end), ...)
if max_value then
return max_value
end
end
--[[
min
Finds the minimum argument
Usage:
{{#invoke:Math| min | value1 | value2 | ... }}
OR
{{#invoke:Math| min }}
When used with no arguments, it takes its input from the parent
frame. Note, any values that do not evaluate to numbers are ignored.
]]
function wrap.min(args)
return p._min(unpackNumberArgs(args))
end
function p._min(...)
local min_value = binary_fold((function(a, b) return a &lt; b end), ...)
if min_value then
return min_value
end
end
--[[
average
Finds the average
Usage:
{{#invoke:Math| average | value1 | value2 | ... }}
OR
{{#invoke:Math| average }}
Note, any values that do not evaluate to numbers are ignored.
]]
function wrap.average(args)
return p._average(unpackNumberArgs(args))
end
function p._average(...)
local sum, count = fold((function(a, b) return a + b end), ...)
if not sum then
return 0
else
return sum / count
end
end
--[[
round
Rounds a number to specified precision
Usage:
{{#invoke:Math | round | value | precision }}
--]]
function wrap.round(args)
local value = p._cleanNumber(args[1] or args.value or 0)
local precision = p._cleanNumber(args[2] or args.precision or 0)
if value == nil or precision == nil then
return err('round input appears non-numeric')
else
return p._round(value, precision)
end
end
function p._round(value, precision)
local rescale = math.pow(10, precision or 0);
return math.floor(value * rescale + 0.5) / rescale;
end
--[[
mod
Implements the modulo operator
Usage:
{{#invoke:Math | mod | x | y }}
--]]
function wrap.mod(args)
local x = p._cleanNumber(args[1])
local y = p._cleanNumber(args[2])
if not x then
return err('first argument to mod appears non-numeric')
elseif not y then
return err('second argument to mod appears non-numeric')
else
return p._mod(x, y)
end
end
function p._mod(x, y)
local ret = x % y
if not (0 &lt;= ret and ret &lt; y) then
ret = 0
end
return ret
end
--[[
gcd
Calculates the greatest common divisor of multiple numbers
Usage:
{{#invoke:Math | gcd | value 1 | value 2 | value 3 | ... }}
--]]
function wrap.gcd(args)
return p._gcd(unpackNumberArgs(args))
end
function p._gcd(...)
local function findGcd(a, b)
local r = b
local oldr = a
while r ~= 0 do
local quotient = math.floor(oldr / r)
oldr, r = r, oldr - quotient * r
end
if oldr &lt; 0 then
oldr = oldr * -1
end
return oldr
end
local result, count = fold(findGcd, ...)
return result
end
--[[
precision_format
Rounds a number to the specified precision and formats according to rules
originally used for {{template:Rnd}}. Output is a string.
Usage:
{{#invoke: Math | precision_format | number | precision }}
]]
function wrap.precision_format(args)
local value_string = args[1] or 0
local precision = args[2] or 0
return p._precision_format(value_string, precision)
end
function p._precision_format(value_string, precision)
-- For access to Mediawiki built-in formatter.
local lang = mw.getContentLanguage();
local value
value, value_string = p._cleanNumber(value_string)
precision = p._cleanNumber(precision)
-- Check for non-numeric input
if value == nil or precision == nil then
return err('invalid input when rounding')
end
local current_precision = p._precision(value)
local order = p._order(value)
-- Due to round-off effects it is neccesary to limit the returned precision under
-- some circumstances because the terminal digits will be inaccurately reported.
if order + precision &gt;= 14 then
orig_precision = p._precision(value_string)
if order + orig_precision &gt;= 14 then
precision = 13 - order;
end
end
-- If rounding off, truncate extra digits
if precision &lt; current_precision then
value = p._round(value, precision)
current_precision = p._precision(value)
end
local formatted_num = lang:formatNum(math.abs(value))
local sign
-- Use proper unary minus sign rather than ASCII default
if value &lt; 0 then
sign = '−'
else
sign = ''
end
-- Handle cases requiring scientific notation
if string.find(formatted_num, 'E', 1, true) ~= nil or math.abs(order) &gt;= 9 then
value = value * math.pow(10, -order)
current_precision = current_precision + order
precision = precision + order
formatted_num = lang:formatNum(math.abs(value))
else
order = 0;
end
formatted_num = sign .. formatted_num
-- Pad with zeros, if needed
if current_precision &lt; precision then
local padding
if current_precision &lt;= 0 then
if precision &gt; 0 then
local zero_sep = lang:formatNum(1.1)
formatted_num = formatted_num .. zero_sep:sub(2,2)
padding = precision
if padding &gt; 20 then
padding = 20
end
formatted_num = formatted_num .. string.rep('0', padding)
end
else
padding = precision - current_precision
if padding &gt; 20 then
padding = 20
end
formatted_num = formatted_num .. string.rep('0', padding)
end
end
-- Add exponential notation, if necessary.
if order ~= 0 then
-- Use proper unary minus sign rather than ASCII default
if order &lt; 0 then
order = '−' .. lang:formatNum(math.abs(order))
else
order = lang:formatNum(order)
end
formatted_num = formatted_num .. '&lt;span style=&quot;margin:0 .15em 0 .25em&quot;&gt;×&lt;/span&gt;10&lt;sup&gt;' .. order .. '&lt;/sup&gt;'
end
return formatted_num
end
--[[
Helper function that interprets the input numerically. If the
input does not appear to be a number, attempts evaluating it as
a parser functions expression.
]]
function p._cleanNumber(number_string)
if type(number_string) == 'number' then
-- We were passed a number, so we don't need to do any processing.
return number_string, tostring(number_string)
elseif type(number_string) ~= 'string' or not number_string:find('%S') then
-- We were passed a non-string or a blank string, so exit.
return nil, nil;
end
-- Attempt basic conversion
local number = tonumber(number_string)
-- If failed, attempt to evaluate input as an expression
if number == nil then
local success, result = pcall(mw.ext.ParserFunctions.expr, number_string)
if success then
number = tonumber(result)
number_string = tostring(number)
else
number = nil
number_string = nil
end
else
number_string = number_string:match(&quot;^%s*(.-)%s*$&quot;) -- String is valid but may contain padding, clean it.
number_string = number_string:match(&quot;^%+(.*)$&quot;) or number_string -- Trim any leading + signs.
if number_string:find('^%-?0[xX]') then
-- Number is using 0xnnn notation to indicate base 16; use the number that Lua detected instead.
number_string = tostring(number)
end
end
return number, number_string
end
--[[
Wrapper function that does basic argument processing. This ensures that all functions from #invoke can use either the current
frame or the parent frame, and it also trims whitespace for all arguments and removes blank arguments.
]]
local mt = { __index = function(t, k)
return function(frame)
if not getArgs then
getArgs = require('Module:Arguments').getArgs
end
return wrap[k](getArgs(frame)) -- Argument processing is left to Module:Arguments. Whitespace is trimmed and blank arguments are removed.
end
end }
return setmetatable(p, mt)</text>
<sha1>2oc32zmcprh43j49a7jjarc5hix02hn</sha1>
</revision>
</page>
<page>
<title>Module:Str endswith</title>
<ns>828</ns>
<id>52211643</id>
<revision>
<id>748257085</id>
<parentid>748249376</parentid>
<timestamp>2016-11-07T07:15:08Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Module:Str endswith]]&quot;: [[WP:High-risk templates|High-risk Lua module]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="696">-- This module implements {{str endswith}}.
local TRUE_STRING = 'yes'
local FALSE_STRING = ''
local p = {}
local function trim(s)
return s:match('^%s*(.-)%s*$')
end
function p.main(frame)
local args = frame:getParent().args
local s = args[1]
local pattern = args[2]
if not s or not pattern then
-- TRUE_STRING is not the natural choice here, but is needed for
-- backwards compatibility.
return TRUE_STRING
end
s = trim(s)
pattern = trim(pattern)
if pattern == '' then
-- All strings end with the empty string.
return TRUE_STRING
end
if mw.ustring.sub(s, 0 - mw.ustring.len(pattern), -1) == pattern then
return TRUE_STRING
else
return FALSE_STRING
end
end
return p</text>
<sha1>7qezfyb967v2otj07a1m98bmibg4z2x</sha1>
</revision>
</page>
<page>
<title>Module:String</title>
<ns>828</ns>
<id>38569505</id>
<revision>
<id>552254999</id>
<parentid>540627185</parentid>
<timestamp>2013-04-26T10:52:01Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<comment>Add &quot;rep&quot; function per request by [[User:קיפודנחש]] at [[Wikipedia:Lua requests#Template:Loop and Template:Loop15]]. Copied from sandbox.</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="15731">--[[
This module is intended to provide access to basic string functions.
Most of the functions provided here can be invoked with named parameters,
unnamed parameters, or a mixture. If named parameters are used, Mediawiki will
automatically remove any leading or trailing whitespace from the parameter.
Depending on the intended use, it may be advantageous to either preserve or
remove such whitespace.
Global options
ignore_errors: If set to 'true' or 1, any error condition will result in
an empty string being returned rather than an error message.
error_category: If an error occurs, specifies the name of a category to
include with the error message. The default category is
[Category:Errors reported by Module String].
no_category: If set to 'true' or 1, no category will be added if an error
is generated.
Unit tests for this module are available at Module:String/tests.
]]
local str = {}
--[[
len
This function returns the length of the target string.
Usage:
{{#invoke:String|len|target_string|}}
OR
{{#invoke:String|len|s=target_string}}
Parameters
s: The string whose length to report
If invoked using named parameters, Mediawiki will automatically remove any leading or
trailing whitespace from the target string.
]]
function str.len( frame )
local new_args = str._getParameters( frame.args, {'s'} );
local s = new_args['s'] or '';
return mw.ustring.len( s )
end
--[[
sub
This function returns a substring of the target string at specified indices.
Usage:
{{#invoke:String|sub|target_string|start_index|end_index}}
OR
{{#invoke:String|sub|s=target_string|i=start_index|j=end_index}}
Parameters
s: The string to return a subset of
i: The fist index of the substring to return, defaults to 1.
j: The last index of the string to return, defaults to the last character.
The first character of the string is assigned an index of 1. If either i or j
is a negative value, it is interpreted the same as selecting a character by
counting from the end of the string. Hence, a value of -1 is the same as
selecting the last character of the string.
If the requested indices are out of range for the given string, an error is
reported.
]]
function str.sub( frame )
local new_args = str._getParameters( frame.args, { 's', 'i', 'j' } );
local s = new_args['s'] or '';
local i = tonumber( new_args['i'] ) or 1;
local j = tonumber( new_args['j'] ) or -1;
local len = mw.ustring.len( s );
-- Convert negatives for range checking
if i &lt; 0 then
i = len + i + 1;
end
if j &lt; 0 then
j = len + j + 1;
end
if i &gt; len or j &gt; len or i &lt; 1 or j &lt; 1 then
return str._error( 'String subset index out of range' );
end
if j &lt; i then
return str._error( 'String subset indices out of order' );
end
return mw.ustring.sub( s, i, j )
end
--[[
This function implements that features of {{str sub old}} and is kept in order
to maintain these older templates.
]]
function str.sublength( frame )
local i = tonumber( frame.args.i ) or 0
local len = tonumber( frame.args.len )
return mw.ustring.sub( frame.args.s, i + 1, len and ( i + len ) )
end
--[[
match
This function returns a substring from the source string that matches a
specified pattern.
Usage:
{{#invoke:String|match|source_string|pattern_string|start_index|match_number|plain_flag|nomatch_output}}
OR
{{#invoke:String|pos|s=source_string|pattern=pattern_string|start=start_index
|match=match_number|plain=plain_flag|nomatch=nomatch_output}}
Parameters
s: The string to search
pattern: The pattern or string to find within the string
start: The index within the source string to start the search. The first
character of the string has index 1. Defaults to 1.
match: In some cases it may be possible to make multiple matches on a single
string. This specifies which match to return, where the first match is
match= 1. If a negative number is specified then a match is returned
counting from the last match. Hence match = -1 is the same as requesting
the last match. Defaults to 1.
plain: A flag indicating that the pattern should be understood as plain
text. Defaults to false.
nomatch: If no match is found, output the &quot;nomatch&quot; value rather than an error.
If invoked using named parameters, Mediawiki will automatically remove any leading or
trailing whitespace from each string. In some circumstances this is desirable, in
other cases one may want to preserve the whitespace.
If the match_number or start_index are out of range for the string being queried, then
this function generates an error. An error is also generated if no match is found.
If one adds the parameter ignore_errors=true, then the error will be suppressed and
an empty string will be returned on any failure.
For information on constructing Lua patterns, a form of [regular expression], see:
* http://www.lua.org/manual/5.1/manual.html#5.4.1
* http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Patterns
* http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Ustring_patterns
]]
function str.match( frame )
local new_args = str._getParameters( frame.args, {'s', 'pattern', 'start', 'match', 'plain', 'nomatch'} );
local s = new_args['s'] or '';
local start = tonumber( new_args['start'] ) or 1;
local plain_flag = str._getBoolean( new_args['plain'] or false );
local pattern = new_args['pattern'] or '';
local match_index = math.floor( tonumber(new_args['match']) or 1 );
local nomatch = new_args['nomatch'];
if s == '' then
return str._error( 'Target string is empty' );
end
if pattern == '' then
return str._error( 'Pattern string is empty' );
end
if math.abs(start) &lt; 1 or math.abs(start) &gt; mw.ustring.len( s ) then
return str._error( 'Requested start is out of range' );
end
if match_index == 0 then
return str._error( 'Match index is out of range' );
end
if plain_flag then
pattern = str._escapePattern( pattern );
end
local result
if match_index == 1 then
-- Find first match is simple case
result = mw.ustring.match( s, pattern, start )
else
if start &gt; 1 then
s = mw.ustring.sub( s, start );
end
local iterator = mw.ustring.gmatch(s, pattern);
if match_index &gt; 0 then
-- Forward search
for w in iterator do
match_index = match_index - 1;
if match_index == 0 then
result = w;
break;
end
end
else
-- Reverse search
local result_table = {};
local count = 1;
for w in iterator do
result_table[count] = w;
count = count + 1;
end
result = result_table[ count + match_index ];
end
end
if result == nil then
if nomatch == nil then
return str._error( 'Match not found' );
else
return nomatch;
end
else
return result;
end
end
--[[
pos
This function returns a single character from the target string at position pos.
Usage:
{{#invoke:String|pos|target_string|index_value}}
OR
{{#invoke:String|pos|target=target_string|pos=index_value}}
Parameters
target: The string to search
pos: The index for the character to return
If invoked using named parameters, Mediawiki will automatically remove any leading or
trailing whitespace from the target string. In some circumstances this is desirable, in
other cases one may want to preserve the whitespace.
The first character has an index value of 1.
If one requests a negative value, this function will select a character by counting backwards
from the end of the string. In other words pos = -1 is the same as asking for the last character.
A requested value of zero, or a value greater than the length of the string returns an error.
]]
function str.pos( frame )
local new_args = str._getParameters( frame.args, {'target', 'pos'} );
local target_str = new_args['target'] or '';
local pos = tonumber( new_args['pos'] ) or 0;
if pos == 0 or math.abs(pos) &gt; mw.ustring.len( target_str ) then
return str._error( 'String index out of range' );
end
return mw.ustring.sub( target_str, pos, pos );
end
--[[
str_find
This function duplicates the behavior of {{str_find}}, including all of its quirks.
This is provided in order to support existing templates, but is NOT RECOMMENDED for
new code and templates. New code is recommended to use the &quot;find&quot; function instead.
Returns the first index in &quot;source&quot; that is a match to &quot;target&quot;. Indexing is 1-based,
and the function returns -1 if the &quot;target&quot; string is not present in &quot;source&quot;.
Important Note: If the &quot;target&quot; string is empty / missing, this function returns a
value of &quot;1&quot;, which is generally unexpected behavior, and must be accounted for
separatetly.
]]
function str.str_find( frame )
local new_args = str._getParameters( frame.args, {'source', 'target'} );
local source_str = new_args['source'] or '';
local target_str = new_args['target'] or '';
if target_str == '' then
return 1;
end
local start = mw.ustring.find( source_str, target_str, 1, true )
if start == nil then
start = -1
end
return start
end
--[[
find
This function allows one to search for a target string or pattern within another
string.
Usage:
{{#invoke:String|find|source_str|target_string|start_index|plain_flag}}
OR
{{#invoke:String|find|source=source_str|target=target_str|start=start_index|plain=plain_flag}}
Parameters
source: The string to search
target: The string or pattern to find within source
start: The index within the source string to start the search, defaults to 1
plain: Boolean flag indicating that target should be understood as plain
text and not as a Lua style regular expression, defaults to true
If invoked using named parameters, Mediawiki will automatically remove any leading or
trailing whitespace from the parameter. In some circumstances this is desirable, in
other cases one may want to preserve the whitespace.
This function returns the first index &gt;= &quot;start&quot; where &quot;target&quot; can be found
within &quot;source&quot;. Indices are 1-based. If &quot;target&quot; is not found, then this
function returns 0. If either &quot;source&quot; or &quot;target&quot; are missing / empty, this
function also returns 0.
This function should be safe for UTF-8 strings.
]]
function str.find( frame )
local new_args = str._getParameters( frame.args, {'source', 'target', 'start', 'plain' } );
local source_str = new_args['source'] or '';
local pattern = new_args['target'] or '';
local start_pos = tonumber(new_args['start']) or 1;
local plain = new_args['plain'] or true;
if source_str == '' or pattern == '' then
return 0;
end
plain = str._getBoolean( plain );
local start = mw.ustring.find( source_str, pattern, start_pos, plain )
if start == nil then
start = 0
end
return start
end
--[[
replace
This function allows one to replace a target string or pattern within another
string.
Usage:
{{#invoke:String|replace|source_str|pattern_string|replace_string|replacement_count|plain_flag}}
OR
{{#invoke:String|replace|source=source_string|pattern=pattern_string|replace=replace_string|
count=replacement_count|plain=plain_flag}}
Parameters
source: The string to search
pattern: The string or pattern to find within source
replace: The replacement text
count: The number of occurences to replace, defaults to all.
plain: Boolean flag indicating that pattern should be understood as plain
text and not as a Lua style regular expression, defaults to true
]]
function str.replace( frame )
local new_args = str._getParameters( frame.args, {'source', 'pattern', 'replace', 'count', 'plain' } );
local source_str = new_args['source'] or '';
local pattern = new_args['pattern'] or '';
local replace = new_args['replace'] or '';
local count = tonumber( new_args['count'] );
local plain = new_args['plain'] or true;
if source_str == '' or pattern == '' then
return source_str;
end
plain = str._getBoolean( plain );
if plain then
pattern = str._escapePattern( pattern );
replace = mw.ustring.gsub( replace, &quot;%%&quot;, &quot;%%%%&quot; ); --Only need to escape replacement sequences.
end
local result;
if count ~= nil then
result = mw.ustring.gsub( source_str, pattern, replace, count );
else
result = mw.ustring.gsub( source_str, pattern, replace );
end
return result;
end
--[[
simple function to pipe string.rep to templates.
]]
function str.rep( frame )
local repetitions = tonumber( frame.args[2] )
if not repetitions then
return str._error( 'function rep expects a number as second parameter, received &quot;' .. ( frame.args[2] or '' ) .. '&quot;' )
end
return string.rep( frame.args[1] or '', repetitions )
end
--[[
Helper function that populates the argument list given that user may need to use a mix of
named and unnamed parameters. This is relevant because named parameters are not
identical to unnamed parameters due to string trimming, and when dealing with strings
we sometimes want to either preserve or remove that whitespace depending on the application.
]]
function str._getParameters( frame_args, arg_list )
local new_args = {};
local index = 1;
local value;
for i,arg in ipairs( arg_list ) do
value = frame_args[arg]
if value == nil then
value = frame_args[index];
index = index + 1;
end
new_args[arg] = value;
end
return new_args;
end
--[[
Helper function to handle error messages.
]]
function str._error( error_str )
local frame = mw.getCurrentFrame();
local error_category = frame.args.error_category or 'Errors reported by Module String';
local ignore_errors = frame.args.ignore_errors or false;
local no_category = frame.args.no_category or false;
if str._getBoolean(ignore_errors) then
return '';
end
local error_str = '&lt;strong class=&quot;error&quot;&gt;String Module Error: ' .. error_str .. '&lt;/strong&gt;';
if error_category ~= '' and not str._getBoolean( no_category ) then
error_str = '[[Category:' .. error_category .. ']]' .. error_str;
end
return error_str;
end
--[[
Helper Function to interpret boolean strings
]]
function str._getBoolean( boolean_str )
local boolean_value;
if type( boolean_str ) == 'string' then
boolean_str = boolean_str:lower();
if boolean_str == 'false' or boolean_str == 'no' or boolean_str == '0'
or boolean_str == '' then
boolean_value = false;
else
boolean_value = true;
end
elseif type( boolean_str ) == 'boolean' then
boolean_value = boolean_str;
else
error( 'No boolean value found' );
end
return boolean_value
end
--[[
Helper function that escapes all pattern characters so that they will be treated
as plain text.
]]
function str._escapePattern( pattern_str )
return mw.ustring.gsub( pattern_str, &quot;([%(%)%.%%%+%-%*%?%[%^%$%]])&quot;, &quot;%%%1&quot; );
end
return str</text>
<sha1>l0shz7fzxb1bq626nihqwbptk7dfqd5</sha1>
</revision>
</page>
<page>
<title>Module:TableTools</title>
<ns>828</ns>
<id>41371028</id>
<revision>
<id>610073853</id>
<parentid>587870113</parentid>
<timestamp>2014-05-25T14:11:02Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<comment>fix cleanPattern function - some of the character classes were still being magic even when they were inside the set, so escape them all</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="8030">--[[
------------------------------------------------------------------------------------
-- TableTools --
-- --
-- This module includes a number of functions for dealing with Lua tables. --
-- It is a meta-module, meant to be called from other Lua modules, and should --
-- not be called directly from #invoke. --
------------------------------------------------------------------------------------
--]]
local libraryUtil = require('libraryUtil')
local p = {}
-- Define often-used variables and functions.
local floor = math.floor
local infinity = math.huge
local checkType = libraryUtil.checkType
--[[
------------------------------------------------------------------------------------
-- isPositiveInteger
--
-- This function returns true if the given value is a positive integer, and false
-- if not. Although it doesn't operate on tables, it is included here as it is
-- useful for determining whether a given table key is in the array part or the
-- hash part of a table.
------------------------------------------------------------------------------------
--]]
function p.isPositiveInteger(v)
if type(v) == 'number' and v &gt;= 1 and floor(v) == v and v &lt; infinity then
return true
else
return false
end
end
--[[
------------------------------------------------------------------------------------
-- isNan
--
-- This function returns true if the given number is a NaN value, and false
-- if not. Although it doesn't operate on tables, it is included here as it is
-- useful for determining whether a value can be a valid table key. Lua will
-- generate an error if a NaN is used as a table key.
------------------------------------------------------------------------------------
--]]
function p.isNan(v)
if type(v) == 'number' and tostring(v) == '-nan' then
return true
else
return false
end
end
--[[
------------------------------------------------------------------------------------
-- shallowClone
--
-- This returns a clone of a table. The value returned is a new table, but all
-- subtables and functions are shared. Metamethods are respected, but the returned
-- table will have no metatable of its own.
------------------------------------------------------------------------------------
--]]
function p.shallowClone(t)
local ret = {}
for k, v in pairs(t) do
ret[k] = v
end
return ret
end
--[[
------------------------------------------------------------------------------------
-- removeDuplicates
--
-- This removes duplicate values from an array. Non-positive-integer keys are
-- ignored. The earliest value is kept, and all subsequent duplicate values are
-- removed, but otherwise the array order is unchanged.
------------------------------------------------------------------------------------
--]]
function p.removeDuplicates(t)
checkType('removeDuplicates', 1, t, 'table')
local isNan = p.isNan
local ret, exists = {}, {}
for i, v in ipairs(t) do
if isNan(v) then
-- NaNs can't be table keys, and they are also unique, so we don't need to check existence.
ret[#ret + 1] = v
else
if not exists[v] then
ret[#ret + 1] = v
exists[v] = true
end
end
end
return ret
end
--[[
------------------------------------------------------------------------------------
-- numKeys
--
-- This takes a table and returns an array containing the numbers of any numerical
-- keys that have non-nil values, sorted in numerical order.
------------------------------------------------------------------------------------
--]]
function p.numKeys(t)
checkType('numKeys', 1, t, 'table')
local isPositiveInteger = p.isPositiveInteger
local nums = {}
for k, v in pairs(t) do
if isPositiveInteger(k) then
nums[#nums + 1] = k
end
end
table.sort(nums)
return nums
end
--[[
------------------------------------------------------------------------------------
-- affixNums
--
-- This takes a table and returns an array containing the numbers of keys with the
-- specified prefix and suffix. For example, for the table
-- {a1 = 'foo', a3 = 'bar', a6 = 'baz'} and the prefix &quot;a&quot;, affixNums will
-- return {1, 3, 6}.
------------------------------------------------------------------------------------
--]]
function p.affixNums(t, prefix, suffix)
checkType('affixNums', 1, t, 'table')
checkType('affixNums', 2, prefix, 'string', true)
checkType('affixNums', 3, suffix, 'string', true)
local function cleanPattern(s)
-- Cleans a pattern so that the magic characters ()%.[]*+-?^$ are interpreted literally.
s = s:gsub('([%(%)%%%.%[%]%*%+%-%?%^%$])', '%%%1')
return s
end
prefix = prefix or ''
suffix = suffix or ''
prefix = cleanPattern(prefix)
suffix = cleanPattern(suffix)
local pattern = '^' .. prefix .. '([1-9]%d*)' .. suffix .. '$'
local nums = {}
for k, v in pairs(t) do
if type(k) == 'string' then
local num = mw.ustring.match(k, pattern)
if num then
nums[#nums + 1] = tonumber(num)
end
end
end
table.sort(nums)
return nums
end
--[[
------------------------------------------------------------------------------------
-- numData
--
-- Given a table with keys like (&quot;foo1&quot;, &quot;bar1&quot;, &quot;foo2&quot;, &quot;baz2&quot;), returns a table
-- of subtables in the format
-- { [1] = {foo = 'text', bar = 'text'}, [2] = {foo = 'text', baz = 'text'} }
-- Keys that don't end with an integer are stored in a subtable named &quot;other&quot;.
-- The compress option compresses the table so that it can be iterated over with
-- ipairs.
------------------------------------------------------------------------------------
--]]
function p.numData(t, compress)
checkType('numData', 1, t, 'table')
checkType('numData', 2, compress, 'boolean', true)
local ret = {}
for k, v in pairs(t) do
local prefix, num = mw.ustring.match(tostring(k), '^([^0-9]*)([1-9][0-9]*)$')
if num then
num = tonumber(num)
local subtable = ret[num] or {}
if prefix == '' then
-- Positional parameters match the blank string; put them at the start of the subtable instead.
prefix = 1
end
subtable[prefix] = v
ret[num] = subtable
else
local subtable = ret.other or {}
subtable[k] = v
ret.other = subtable
end
end
if compress then
local other = ret.other
ret = p.compressSparseArray(ret)
ret.other = other
end
return ret
end
--[[
------------------------------------------------------------------------------------
-- compressSparseArray
--
-- This takes an array with one or more nil values, and removes the nil values
-- while preserving the order, so that the array can be safely traversed with
-- ipairs.
------------------------------------------------------------------------------------
--]]
function p.compressSparseArray(t)
checkType('compressSparseArray', 1, t, 'table')
local ret = {}
local nums = p.numKeys(t)
for _, num in ipairs(nums) do
ret[#ret + 1] = t[num]
end
return ret
end
--[[
------------------------------------------------------------------------------------
-- sparseIpairs
--
-- This is an iterator for sparse arrays. It can be used like ipairs, but can
-- handle nil values.
------------------------------------------------------------------------------------
--]]
function p.sparseIpairs(t)
checkType('sparseIpairs', 1, t, 'table')
local nums = p.numKeys(t)
local i = 0
local lim = #nums
return function ()
i = i + 1
if i &lt;= lim then
local key = nums[i]
return key, t[key]
else
return nil, nil
end
end
end
--[[
------------------------------------------------------------------------------------
-- size
--
-- This returns the size of a key/value pair table. It will also work on arrays,
-- but for arrays it is more efficient to use the # operator.
------------------------------------------------------------------------------------
--]]
function p.size(t)
checkType('size', 1, t, 'table')
local i = 0
for k in pairs(t) do
i = i + 1
end
return i
end
return p</text>
<sha1>k1omc17qij757n8hd68yihcqxo4biqi</sha1>
</revision>
</page>
<page>
<title>Template:Anchor/doc</title>
<ns>10</ns>
<id>13554996</id>
<revision>
<id>817590788</id>
<parentid>816610409</parentid>
<timestamp>2017-12-29T10:26:45Z</timestamp>
<contributor>
<username>WOSlinker</username>
<id>3138265</id>
</contributor>
<comment>replace font with span to fix some lint errors</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="12708">{{Documentation subpage}}
{{high-use|43,412}}
{{lua|Module:Anchor}}
&lt;!-- PLEASE ADD CATEGORIES AT THE END OF THIS PAGE, ND INTERWIKIS LINKS TO WIKIDATA --&gt;
The template &lt;nowiki&gt;{{&lt;/nowiki&gt;[[{{ns:Template}}:{{BASEPAGENAME}}|{{lc:{{BASEPAGENAME}}}}]]&lt;nowiki&gt;}}&lt;/nowiki&gt; inserts one or more invisible [[Fragment identifier|HTML fragment identifiers]] (anchor names) in a page. Those locations can then be linked to using &lt;code&gt;&lt;nowiki&gt;[[#Location|...]]&lt;/nowiki&gt;&lt;/code&gt; syntax {{#ifeq:{{BASEPAGENAME}}|Visible anchor|&amp;nbsp;Unlike {{tl|Anchor}}, the first parameter will be visible text on the page.|}} (note that &lt;code&gt;&lt;nowiki&gt;#Location&lt;/nowiki&gt;&lt;/code&gt; here is not a browser instruction like &lt;code&gt;&lt;nowiki&gt;#redirect&lt;/nowiki&gt;&lt;/code&gt;—the word &quot;Location&quot; can be any word you wish to associate with any part of an article in which you decide to place the {{tlx|anchor}} template, and can be entirely arbitrary; also, the first letter of the ''location'' is usually capitalised to reflect the common capitalisation used in section headers—see [[MOS:HEAD]] for more on this style guideline).
== Examples ==
# &lt;code style=&quot;color:darkgreen;&quot;&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt;{{lc:{{BASEPAGENAME}}}}|Foo&lt;nowiki&gt;}}&lt;/nowiki&gt;&lt;/code&gt; &lt;br&gt; could be linked to with &lt;code&gt;&lt;nowiki&gt;[[#Foo|...]]&lt;/nowiki&gt;&lt;/code&gt; from ''within the same article'' (let's call this article &quot;Qux&quot;), &lt;br&gt; or it could be linked to with {{nowrap|&lt;code&gt;&lt;nowiki&gt;[[&lt;/nowiki&gt;Qux#Foo&lt;nowiki&gt;|...]]&lt;/nowiki&gt;&lt;/code&gt;}} from ''other'' articles and from redirects (where the ellipsis after the word &quot;Foo&quot; here means the words chosen to represent that link in the Wikipedia article, which, of course, could be anything).
# Anchors can be more suitable for inter-article linking than section titles are because they are more stable. For example a section title {{nowrap|1=&lt;code&gt;== Foo ==&lt;/code&gt;}} within a Wikipedia article titled &lt;code&gt;Qux&lt;/code&gt;: &lt;br&gt; {{nowrap|1=&lt;code style=&quot;color:dimgray;&quot;&gt;&lt;nowiki&gt;==&lt;/nowiki&gt;&lt;span&gt;{{sp}}&lt;/span&gt;&lt;code style=&quot;color:darkgreen;&quot;&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt;{{lc:{{BASEPAGENAME}}}}&lt;nowiki&gt;|Foo}}&lt;/nowiki&gt;&lt;/code&gt;&lt;span&gt;{{sp}}&lt;/span&gt;Foo &lt;nowiki&gt;==&lt;/nowiki&gt;&lt;/code&gt;}} &lt;br&gt; Here, links via {{nowrap|1=&lt;code&gt;&lt;nowiki&gt;[[&lt;/nowiki&gt;Qux#Foo&lt;nowiki&gt;]]&lt;/nowiki&gt;&lt;/code&gt;}} would remain valid even if the section were renamed {{nowrap|1=&lt;code&gt;&lt;nowiki&gt;== {{anchor#Foo}} On foo and its many friends ==&lt;/nowiki&gt;&lt;/code&gt;}} (note that the anchor is placed ''before'' the section name; otherwise browsers may hide the section title from view).
# However, within section titles, it may be preferable to simply use direct HTML, like this: &lt;br&gt; {{nowrap|1=&lt;code style=&quot;color:dimgray;&quot;&gt;&lt;nowiki&gt;==&lt;/nowiki&gt;&lt;span&gt;{{sp}}&lt;/span&gt;&lt;code style=&quot;color:darkgreen;&quot;&gt;&lt;nowiki&gt;&lt;span id=&quot;Foo&quot;&gt;&lt;/span&gt;&lt;/nowiki&gt;&lt;/code&gt;&lt;span&gt;{{sp}}&lt;/span&gt;Foo &lt;nowiki&gt;==&lt;/nowiki&gt;&lt;/code&gt;}}&lt;br&gt;This provides the same stable, linkable anchor as the {{tlx|anchor}} template, but also provides some additional visual advantages. For details, see [[#Limitations|§&amp;nbsp;Limitations]] below.
# The template can be used to create multiple anchors with a single call. For example, &lt;br&gt; {{nowrap|1=&lt;code style=&quot;color:darkgreen;&quot;&gt;&lt;nowiki&gt;{{&lt;/nowiki&gt;{{lc:{{BASEPAGENAME}}}}&lt;nowiki&gt;|Foo|Bar|baz}}&lt;/nowiki&gt;&lt;/code&gt;}} &lt;br&gt; will create three anchors that can then be linked to with &lt;code&gt;&lt;nowiki&gt;[[#Foo]]&lt;/nowiki&gt;&lt;/code&gt;, &lt;code&gt;&lt;nowiki&gt;[[#Bar]]&lt;/nowiki&gt;&lt;/code&gt; and &lt;code&gt;&lt;nowiki&gt;[[#baz]]&lt;/nowiki&gt;&lt;/code&gt;.
# Here is a more literal example: say you wrote an article about a recently discovered Proto-Indo-European language called &quot;Yish Yash&quot;. The title of your article would probably also be &quot;Yish Yash&quot; or perhaps &quot;Yish Yash (language)&quot; (if there were already an article titled &quot;Yish Yash&quot; that covered the culture generally). Let's say you chose &quot;Yish Yash (language)&quot;. Now let's say that within your article you wished to have a section titled &quot;The placement of the tongue when producing Yish Yash vowel sounds&quot;. You would create a section heading that looked like this:&lt;br&gt;{{nowrap|1=&lt;code&gt;&lt;nowiki&gt;== The placement of the tongue when producing Yish Yash vowel sounds == &lt;/nowiki&gt;&lt;/code&gt;}}&lt;br&gt;Let's say that you then finished up writing and saved the new article. Now, say you came across another article on Wikipedia titled &quot;Proto-Indo-European vowels&quot; which happened to have a section on the unique tongue placement used in Yish Yash. You decided it might be useful here for readers to be able to quickly access the section of your article on Yish Yash tongue placement when forming vowels; however, you don't want to send them to the beginning of the whole article on the Yish Yash language (you wanted to target them more specifically). So you create a link in the Proto-Indo European vowel article to the ''section'' within ''your'' article on the placement of the tongue in Yish Yash: you might do so by editing the text of the Proto-Indo-European vowel article and adding something like this to a relevant place within it:&lt;br&gt;{{nowrap|1=&lt;code&gt;&lt;nowiki&gt;[[Yish Yash (language)#The placement of the tongue when producing Yish Yash vowel sounds|Yish Yash tongue placement]] is particularly interesting.&lt;/nowiki&gt;&lt;/code&gt;}}&lt;br&gt;That is some ''really'' long code, but it would create a direct link to the relevant section of the new Yish Yash language article and would look like this in the article on Proto-Indo-European vowels:&lt;br&gt; &quot;...&lt;span style=&quot;color:blue;&quot;&gt;Yish Yash tongue placement&lt;/span&gt; is particularly interesting...&quot; &lt;br&gt; Now let's say another editor came along and wished to change the heading of this section of your article for some legitimate reason—perhaps to &quot;Yish Yash vowels and the tongue&quot;. He or she could do so by editing your article and making the section heading look like this:&lt;br&gt;{{nowrap|1=&lt;code&gt;&lt;nowiki&gt;== Yish Yash vowels and the tongue ==&lt;/nowiki&gt;&lt;/code&gt;}}&lt;br&gt;Unbeknownst to that editor, this would mean the link in the article on Proto-Indo-European vowels that you created earlier would now go by default to the top of the Yish Yash article instead of your carefully-chosen subsection! However, if an ''anchor'' were placed within the section heading of the Yish Yash article either when you created it or when the other editor came along and changed it—perhaps something like this:&lt;br&gt;{{nowrap|1= &lt;code&gt;&lt;nowiki&gt;== {{anchor|Tongue}} The placement of the tongue when producing Yish Yash vowel sounds ==&lt;/nowiki&gt;&lt;/code&gt;}}&lt;br&gt;or like this:&lt;br&gt;{{nowrap|1=&lt;code&gt;&lt;nowiki&gt;== {{anchor|Tongue}} Yish Yash vowel/ tongue interaction ==&lt;/nowiki&gt;&lt;/code&gt;}} and the text of the article on Proto-Indo-European vowels had been changed by you to something like this:&lt;br&gt;{{nowrap|1=&lt;code&gt;&lt;nowiki&gt;[[Yish Yash (language)#Tongue|Yish Yash tongue placement]] is particularly interesting.&lt;/nowiki&gt;&lt;/code&gt;}}&lt;br&gt; then the link from the Proto-Indo-European article would continue to point to the relevant ''section'' of the Yish Yash article, even if the wording of the section heading there had changed completely and without the reader having to sort it out for themselves. The use of anchors can make for a cleaner, more efficient Wikipedia reading experience where section headings are changed... Which they not infrequently are.
=== Limitations ===
{|class=&quot;wikitable&quot; style=&quot;float:right&quot;
!Character
![[Character entity reference|Code]]
!Template
!Meaning
|-
|&quot;
|&lt;code&gt;&amp;amp;quot;&lt;/code&gt; &lt;br /&gt;&lt;code&gt;&amp;amp;#34;&lt;/code&gt;
|{{N/a}}
|(double)&amp;nbsp;[[quotation mark]]
|-
|#
|&lt;code&gt;&amp;amp;#35;&lt;/code&gt;
|{{N/a}}
|[[Number sign|hash]]
|-
|&amp;#124;
|&lt;code&gt;&amp;amp;#124;&lt;/code&gt;
|{{tl|!}}
|[[Vertical bar|pipe]]
|-
|&amp;#61;
|&lt;code&gt;&amp;amp;#61;&lt;/code&gt;
|{{tl|{{=}}}}
|[[Equals sign|equals]]
|}
* Anchor names that contain any character shown in the table on the right will not work as expected. However, any of these characters can be replaced with the &quot;&amp;amp;#&quot; codes shown for them here. Or, the pipe symbol and equals sign can be worked around with {{tl|!}} and {{tl|{{=}}}}, respectively. Markup code such as {{tag|sup|o}} and {{tag|sub|o}} (superscript and subscript) cannot be used. Most other characters, including white space and punctuation, are not a problem.
* Anchor names should be unique on a page, and should not duplicate any heading titles. Duplicate anchors will not work as expected since the &lt;code&gt;&lt;nowiki&gt;#location&lt;/nowiki&gt;&lt;/code&gt; links go to the first anchor with that name. Duplicate anchors result in invalid HTML; you can check for duplicate anchors by running the page through the [[W3C Markup Validation Service]].
* If the template is added to a section title then the code will appear in the edit summary window when that section is edited, as in {{nowrap|1=&quot;&lt;code&gt;&lt;nowiki&gt;/* {{anchor|Issues}}Limitations */ New issue&lt;/nowiki&gt;&lt;/code&gt;&quot;}}. Also, when the section is saved, browsers may not return to the section. Consider using &lt;code&gt;&lt;nowiki&gt;&lt;span id=&quot;...&quot;&gt;&lt;/span&gt;&lt;/nowiki&gt;&lt;/code&gt; directly, rather than using the anchor template, when in a section title.
* Anchor links are case sensitive in some browsers, so treat all anchor links as case sensitive.
=== Use in tables ===
Anchors may be used within tables, subject to certain restrictions. The {{tlx|anchor}} template may be used in the caption and cells of a table, but not those portions of a table that are outside the caption and cells. It is used on the table's caption thus:&lt;source enclose=div lang=text&gt;|+ {{anchor|FooX}} A table caption&lt;/source&gt; and the following forms of cell are valid:&lt;source enclose=div lang=text&gt;!{{anchor|Foo1}} A header cell
!style=&quot;background:white;&quot; |{{anchor|Foo2}} A header cell with styling
|{{anchor|Foo3}} A data cell
|rowspan=2 |{{anchor|Foo4}} A data cell spanning two rows&lt;/source&gt; You need to ensure that the {{tlx|anchor}} is not in that portion of the markup intended for the classes, styles etc. Thus, {{tlx|anchor}} cannot be placed anywhere on lines that begin with &lt;code&gt;&lt;nowiki&gt;{|&lt;/nowiki&gt;&lt;/code&gt; (start of table) or &lt;code&gt;&lt;nowiki&gt;|-&lt;/nowiki&gt;&lt;/code&gt; (new row), and the following forms of cell are not valid:&lt;source enclose=div lang=text&gt;!{{anchor|Foo1}} |A header cell
!style=&quot;background:white;&quot; {{anchor|Foo2}} |A header cell with styling
|{{anchor|Foo3}} |A data cell
|rowspan=2 {{anchor|Foo4}} |A data cell spanning two rows&lt;/source&gt; If it is necessary for an anchor to be in any of these positions, a different technique is used—the &lt;code&gt;id=&lt;/code&gt; attribute. This is placed in that portion of the markup where the classes, styles etc. may be used, as follows:&lt;source enclose=div lang=text&gt;{| id=FooX class=wikitable
|- id=FooY
!id=Foo1 |A header cell
!style=&quot;background:white;&quot; id=Foo2 |A header cell with styling
|id=Foo3 |A data cell
|rowspan=2 id=Foo4 |A data cell spanning two rows&lt;/source&gt; The &lt;code&gt;id=&lt;/code&gt; attribute may appear before, between or after any other attributes that may be present, but only one &lt;code&gt;id=&lt;/code&gt; attribute may be used in each of these areas.
=== TemplateData ===
{{TemplateDataHeader}}
&lt;templatedata&gt;{
&quot;description&quot;: &quot;The template {{anchor}} inserts one or more HTML anchors in a page. Those locations can then be linked to using [[#location|...]] syntax. The parameters labels shown here (e.g., 'First anchor', '1', and the rest) are provided for convenience; no parameter label is required in the template itself, so you may create an anchor within an article by typing {{anchor|go here}} or {{anchor|this is it}} rather than {{anchor|First anchor=go here}} or {{anchor|1=this is it}} (though both formats will work correctly). You may not use {{anchor}} all by itself, however, as this is like dropping a ship's anchor without tying a rope to it: it holds nothing in place, can't be found or used, and messes up the sea floor with garbage!&quot;,
&quot;params&quot;: {
&quot;1&quot;: {
&quot;label&quot;: &quot;First anchor&quot;,
&quot;description&quot;: &quot;First anchor value; Only the first anchor is required.&quot;,
&quot;type&quot;: &quot;string&quot;,
&quot;required&quot;: true
},
&quot;2&quot;: {
&quot;label&quot;: &quot;Second anchor&quot;,
&quot;description&quot;: &quot;Second anchor.&quot;,
&quot;type&quot;: &quot;string&quot;,
&quot;required&quot;: false
},
&quot;3&quot;: {
&quot;label&quot;: &quot;Third anchor&quot;,
&quot;description&quot;: &quot;Third anchor.&quot;,
&quot;type&quot;: &quot;string&quot;,
&quot;required&quot;: false
},
&quot;4...&quot;: {
&quot;label&quot;: &quot;4th, 5th... anchor&quot;,
&quot;description&quot;: &quot;For additional anchors, just add additional anchors (the template isn't limited to three)&quot;,
&quot;type&quot;: &quot;string&quot;,
&quot;required&quot;: false
}
}}&lt;/templatedata&gt;
=== See also ===
* {{#ifeq:{{BASEPAGENAME}}|Visible anchor|{{tl|Anchor}}|{{tl|Visible anchor}}}}
* {{tl|Anchored list}}
* {{tl|Anchor comment}}
* {{tl|Shortcut}}
* [[WP:ANCHOR]]
* [[WP:TARGET]]
&lt;includeonly&gt;{{#ifeq:{{SUBPAGENAME}}|sandbox||
&lt;!-- CATEGORIES HERE, AND INTERWIKIS TO WIKIDATA, THANKS --&gt;
[[Category:Wikipedia formatting and function templates]]
[[Category:Wikipedia section templates]]
[[Category:Templates with no visible output]]
}}&lt;/includeonly&gt;</text>
<sha1>n0o06pvq9kobtxypu0fwovfkbr02ltl</sha1>
</revision>
</page>
<page>
<title>Template:N/a</title>
<ns>10</ns>
<id>2499787</id>
<revision>
<id>738385183</id>
<parentid>689743301</parentid>
<timestamp>2016-09-08T17:07:00Z</timestamp>
<contributor>
<username>Andy M. Wang</username>
<id>516856</id>
</contributor>
<comment>sync sandbox by [[User:Matt Fitzpatrick]]: default sort as blank cell requested by [[User:Masem]] and 50.53.1.33, unopposed</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="279">{| class=&quot;wikitable&quot;
|-
| &lt;onlyinclude&gt;data-sort-value=&quot;{{{sort|}}}&quot; style=&quot;background: #ececec; color: #2C2C2C; vertical-align: middle; font-size: smaller; text-align: {{{align|center}}}; {{{style|}}}&quot; class=&quot;table-na&quot; &lt;!--
--&gt;| {{{1|N/A}}}&lt;/onlyinclude&gt;
|}
{{documentation}}</text>
<sha1>izdroi3sfz085omzs2a6c9gu7f6zyzd</sha1>
</revision>
</page>
<page>
<title>Template:Sp</title>
<ns>10</ns>
<id>25109112</id>
<revision>
<id>750709055</id>
<parentid>634141374</parentid>
<timestamp>2016-11-21T11:11:18Z</timestamp>
<contributor>
<username>Materialscientist</username>
<id>7852030</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Sp]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require administrator access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="74">&lt;includeonly&gt;&amp;#32;&lt;/includeonly&gt;&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>gxw7bqpdhxq4jgxnf2v3hw0vv9ua81v</sha1>
</revision>
</page>
<page>
<title>Template:Tag</title>
<ns>10</ns>
<id>7252577</id>
<revision>
<id>794128426</id>
<parentid>793306182</parentid>
<timestamp>2017-08-06T01:04:45Z</timestamp>
<contributor>
<username>Train2104</username>
<id>10341578</id>
</contributor>
<comment>fix order of switch statements</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="746">&lt;code class=&quot;{{#ifeq:{{{wrap|}}}|yes|wrap|nowrap}}&quot; style=&quot;{{#ifeq:{{{style|}}}|plain|border:none;background:transparent;|{{{style|}}}}}&quot;&gt;&lt;!--
Opening tag
--&gt;{{#switch:{{{2|pair}}}
|c|close =
|e|empty|s|single|v|void
|o|open
|p|pair = &amp;lt;{{{1|tag}}}{{#if:{{{params|}}}|&amp;#32;{{{params}}}}}
}}&lt;!--
Content between tags
--&gt;{{#switch:{{{2|pair}}}
|c|close = {{{content|}}}
|e|empty|s|single|v|void = &amp;#32;&amp;#47;&amp;gt;
|o|open = &amp;gt;{{{content|}}}
|p|pair = {{#ifeq:{{{1|tag}}}|!--||&amp;gt;}}{{{content|...}}}
}}&lt;!--
Closing tag
--&gt;{{#switch:{{{2|pair}}}
|e|empty|s|single|v|void
|o|open =
|c|close
|p|pair = {{#ifeq:{{{1|tag}}}|!--|--&amp;gt;|&amp;lt;&amp;#47;{{{1|tag}}}&amp;gt;}}
}}&lt;!--
--&gt;&lt;/code&gt;&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>i26oletgtnmnhueookj1je1dvdw3wvr</sha1>
</revision>
</page>
<page>
<title>Module:Anchor</title>
<ns>828</ns>
<id>41372338</id>
<revision>
<id>586910342</id>
<parentid>586194472</parentid>
<timestamp>2013-12-20T06:14:24Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<minor/>
<comment>Protected Module:Anchor: [[Wikipedia:Lua/Modules|High-risk Lua module]]: 20,000 transclusions ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="632">-- This module implements {{anchor}}.
local getArgs = require('Module:Arguments').getArgs
local tableTools = require('Module:TableTools')
local p = {}
function p.main(frame)
-- Get the positional arguments from #invoke, remove any nil values,
-- and pass them to p._main.
local args = getArgs(frame)
local argArray = tableTools.compressSparseArray(args)
return p._main(unpack(argArray))
end
function p._main(...)
-- Generate the list of anchors.
local anchors = {...}
local ret = {}
for _, anchor in ipairs(anchors) do
ret[#ret + 1] = '&lt;span id=&quot;' .. anchor .. '&quot;&gt;&lt;/span&gt;'
end
return table.concat(ret)
end
return p</text>
<sha1>na5loe2ne1o9yhs2k5p73tr355hey7t</sha1>
</revision>
</page>
<page>
<title>Template:!))</title>
<ns>10</ns>
<id>36487561</id>
<redirect title="Template:))!" />
<revision>
<id>666483409</id>
<parentid>666483387</parentid>
<timestamp>2015-06-11T13:32:34Z</timestamp>
<contributor>
<username>NeilN</username>
<id>409043</id>
</contributor>
<comment>Reverted to revision 666468027 by [[Special:Contributions/Evad37|Evad37]] ([[User talk:Evad37|talk]]): Fix. ([[WP:TW|TW]])</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="26">#REDIRECT [[Template:))!]]</text>
<sha1>5g9ex418xvscsnyrsae4dnxgyapzbmq</sha1>
</revision>
</page>
<page>
<title>Template:Asbox/doc</title>
<ns>10</ns>
<id>13445968</id>
<revision>
<id>795787500</id>
<parentid>767578350</parentid>
<timestamp>2017-08-16T13:32:50Z</timestamp>
<contributor>
<username>Coding life style</username>
<id>31524734</id>
</contributor>
<comment>/* Examples */</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="9300">{{Documentation subpage}}
&lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&gt;
&lt;includeonly&gt;{{High-risk|2,000,000+}}&lt;/includeonly&gt;
{{lua|Module:Asbox}}
{{Mbox templates (small)}}
This is the '''Asbox''' (['''A''']rticle ['''s''']tub ['''box''']) metatemplate. It is the standard template used for creating new or updating existing [[Wikipedia:Stubs|article stub]] box templates. It supports virtually all stub template styles.
==Usage==
&lt;pre&gt;
{{Asbox
| image =
| subject =
| qualifier =
| category =
| name =
}}
&lt;/pre&gt;
===''image''===
Filename only and no prefix, e.g. &quot;Image.png&quot; (without quotemarks). Image will be sized at 40x30px.
===''subject''===
Placed before the word &quot;article&quot; in the template (e.g. &quot;biographical&quot;, producing &quot;This biographical article is (...)&quot;).
===''qualifier''===
Placed after the word &quot;article&quot; (e.g. &quot;about a musician&quot;, producing &quot;(...) article about a musician is (...)&quot;).
===''category''===
Name only of category to which pages where this template used are added (e.g. &quot;History stubs&quot;).
===''name''===
Full name of the stub template itself (used for internal reference).
This simple usage should suffice for most stub templates. Additional parameters are described below for advanced use.
==Full syntax==
&lt;pre&gt;
{{Asbox
| image = Ambox style.png
| pix =
| subject =
| article =
| qualifier =
| category =
| tempsort =
| category1 =
| tempsort1 =
| note =
| name = {{subst:FULLPAGENAME}}
}}
&lt;/pre&gt;
==Parameters==
===&lt;code&gt;icon&lt;/code&gt; or &lt;code&gt;image&lt;/code&gt;===
If the image is called with an icon template, &lt;code&gt;icon&lt;/code&gt; is set to the full syntax of the template; that's the name of the template, plus any arguments (separated with '''|''' ), including the &lt;code&gt;{{&lt;/code&gt; and &lt;code&gt;}}&lt;/code&gt; around it. Icon can also be used to provide the full image markup (include the opening and closing square brackets), if special image settings such as &quot;border&quot; are to be used. If the image is called explicitly &lt;code&gt;image&lt;/code&gt; is the name of the image :- &lt;code&gt;pix&lt;/code&gt; will likely be required as well, the default value for &lt;code&gt;pix&lt;/code&gt; is 40x30.
&lt;code&gt;imagealt&lt;/code&gt; may be used to override the default [[WP:Alternate text for images|alt text]] which is set to &quot;Stub icon&quot;.
===&lt;code&gt;pix&lt;/code&gt;===
The size of the image in pixels (no need to append px). Only ''required'' if &lt;code&gt;image&lt;/code&gt; is used and this image requires a size different from the default maximum of 40x30 pixels. (Note that in the interests of standardising the formats of stub messages, images of size 40x30 are much preferred.)
===&lt;code&gt;subject&lt;/code&gt; and &lt;code&gt;qualifier&lt;/code&gt;===
This &lt;code&gt;subject&lt;/code&gt; article &lt;code&gt;qualifier&lt;/code&gt; is a stub ...
Examples:
* This '''geography''' article '''about a place in Rohan''' is a stub ...
* This '''elementary physics''' article is a stub ...
* This article '''about Rudolph the Red-nosed reindeer''' is a stub ...
===Other parameters===
{| class=&quot;wikitable&quot;
! scope=col | Parameter
! scope=col | Description
|-
| category || The [[:Category:Stub categories|stub category]] the articles should go in.
|-
| tempsort || If exists the stub template [?] (and any other templates) will be put in its own category sorted as &quot;&amp;nbsp;&quot; (space) followed by &lt;code&gt;tempsort&lt;/code&gt;, otherwise it will be sorted with the value of &quot;&amp;nbsp;&quot; (space) followed by the template name.
|-
| category1 || An optional second stub category the articles should go in.
|-
| tempsort1 || If exists the stub template [?] (and any other templates) will be put in its own category sorted as &quot;&amp;nbsp;&quot; (space) followed by &lt;code&gt;tempsort1&lt;/code&gt;, otherwise it will be sorted with the value of &quot;&amp;nbsp;&quot; (space) followed by the template name.
|-
| category# || {{Red|New}} (Jan 2015): Since the release of [[Module:Asbox|Asbox's module]], this template now supports an unlimited number of categories. Just replace '#' with a number, e.g. {{para|category2|Normal stubs}}, {{para|category99|Over-categorized stubs}}, etc. Traditionally, category2 was the max, so please only use more than 3 if the additional categories are unique, i.e. not sub or parent categories of the others.
|-
| tempsort# || {{Red|New}} (Jan 2015): Similar to the category params, you can have any number of tempsort params.
|-
| note || If exists the value [?] will be added, as a &quot;small&quot; note, to the stub template.
|-
| name || The full page name of the template itself.
|-
| demo || Has no effect in article space. Prevents category output. Set to anything to enable. (Even 'no' or 'false' will enable it!)&lt;br&gt;{{Red|New}} (Jan 2015): If demo is set, it will show pseudo-categories. If {{para|demo|art}} then the pseudo-cats shown will only be those visible in article space (i.e. no error/hidden cats). Set {{para|demo|doc}} to preview the documentation page as well (and all cats). See:&amp;nbsp;[[Template:Asbox/testcases]]
|}
==Examples==
===Using &lt;code&gt;image&lt;/code&gt;===
Based on {{tl|Østfold-geo-stub}}:
{{demo|br=produces:|demo_kill_categories=yes
|&lt;nowiki&gt;{{Asbox
| image = Østfold_våpen.svg
| pix = 30
| subject = [[Østfold]] location
| name = Template:Østfold-geo-stub
| category = Østfold geography stubs
| tempsort = *
}}
&lt;/nowiki&gt;}}
===Using &lt;code&gt;icon&lt;/code&gt; and &lt;code&gt;category1&lt;/code&gt;===
Using &lt;code&gt;icon&lt;/code&gt; allows more flexibility in some circumstances than &lt;code&gt;image&lt;/code&gt; and &lt;code&gt;pix&lt;/code&gt;, since it can be used with templates. Based on {{tl|Wales-footy-bio-stub}}:
{{demo|br=produces:|demo_kill_categories=yes
|&lt;nowiki&gt;{{Asbox
| icon = {{soccer icon|Wales|50}}
| subject = biographical
| qualifier = related to Welsh association football
| category = Welsh football biography stubs
| tempsort = *
| name = Template:Wales-footy-bio-stub
}}
&lt;/nowiki&gt;}}
==WhatLinksHere==
The page [{{fullurl:Special:WhatLinksHere/Template:Asbox|hideredirs=1&amp;namespace=10&amp;hidelinks=1}} here] should have a complete list of all templates using this template. This list can be compared with existing list of stub templates to identify new stub templates created out of process. '''The last entries will also be the most recently created items.'''
==Navbar==
This template contains...
&lt;nowiki&gt;{{navbar |{{{name}}} |mini=yes |style=position:absolute;right:15px;font-size:smaller;display:none;}}&lt;/nowiki&gt;
...which allows the specification (with CSS) of the three stub-template links provided (see [{{fullurl:w:Template_talk:Asbox|oldid=313089738#Navbar}}]). A side effect is that a non-existing talk page of the stub template may appear on [[Special:WantedPages]].
==TemplateData==
{{TemplateData header}}
&lt;templatedata&gt;
{
&quot;description&quot;: &quot;Standard template used for creating new or updating existing article stub box templates.&quot;,
&quot;params&quot;: {
&quot;category&quot;: {
&quot;label&quot;: &quot;Stub category&quot;,
&quot;type&quot;: &quot;wiki-page-name&quot;,
&quot;description&quot;: &quot;The category into which this stub template puts pages.&quot;,
&quot;required&quot;: true
},
&quot;subject&quot;: {
&quot;label&quot;: &quot;Subject&quot;,
&quot;description&quot;: &quot;The subject of the stub template's category.&quot;,
&quot;suggested&quot;: true
},
&quot;qualifier&quot;: {
&quot;label&quot;: &quot;Qualifier&quot;,
&quot;description&quot;: &quot;The sub-subject of the stub template's category.&quot;
},
&quot;image&quot;: {
&quot;label&quot;: &quot;Icon image&quot;,
&quot;type&quot;: &quot;wiki-file-name&quot;,
&quot;description&quot;: &quot;Image to use as an icon in the template.&quot;,
&quot;suggested&quot;: true
},
&quot;imagealt&quot;: {
&quot;label&quot;: &quot;Icon at text&quot;,
&quot;description&quot;: &quot;Alt text for the icon, especially for screen readers.&quot;,
&quot;default&quot;: &quot;Stub icon&quot;,
&quot;suggested&quot;: true
},
&quot;pix&quot;: {
&quot;label&quot;: &quot;Icon size&quot;,
&quot;description&quot;: &quot;Size at which to display the icon.&quot;
},
&quot;icon&quot;: {
&quot;label&quot;: &quot;Icon&quot;,
&quot;description&quot;: &quot;Icon to show in the template.&quot;,
&quot;suggested&quot;: true
},
&quot;article&quot;: {
&quot;label&quot;: &quot;Page name&quot;,
&quot;description&quot;: &quot;Different term instead of 'article' to use in the template.&quot;
},
&quot;note&quot;: {
&quot;label&quot;: &quot;Note&quot;,
&quot;description&quot;: &quot;A small note about the stub shown underneath the main text.&quot;
},
&quot;name&quot;: {
&quot;label&quot;: &quot;Template name&quot;,
&quot;description&quot;: &quot;The name of the template.&quot;
},
&quot;category1&quot;: {
&quot;label&quot;: &quot;Secondary stub category&quot;,
&quot;type&quot;: &quot;wiki-page-name&quot;,
&quot;description&quot;: &quot;A secondary category into which this stub template puts pages.&quot;
},
&quot;category#&quot;: {
&quot;label&quot;: &quot;Tertiary stub category&quot;,
&quot;type&quot;: &quot;wiki-page-name&quot;,
&quot;description&quot;: &quot;A tertiary category into which this stub template puts pages.&quot;
},
&quot;tempsort&quot;: {
&quot;label&quot;: &quot;Stub category sort prefix&quot;,
&quot;description&quot;: &quot;If set to a value other than 'no', a prefix for sorting pages in the category.&quot;
},
&quot;tempsort#&quot;: {
&quot;label&quot;: &quot;Secondary stub category sort prefix&quot;,
&quot;description&quot;: &quot;If set to a value other than 'no', a prefix for sorting pages in the secondary category.&quot;
},
&quot;tempsort#&quot;: {
&quot;label&quot;: &quot;Tertiary stub category sort prefix&quot;,
&quot;description&quot;: &quot;If set to a value other than 'no', a prefix for sorting pages in the tertiary category.&quot;
}
}
}
&lt;/templatedata&gt;
==See also==
* [[Wikipedia talk:WikiProject Stub sorting/Archive11#Stub template standardisation]]
{{Mbox templates see also}}
&lt;includeonly&gt;{{#ifeq:{{SUBPAGENAME}}|sandbox |
| &lt;!-- Categories below this line, please; interwikis at Wikidata --&gt;
[[Category:Mbox and messagebox templates]]
[[Category:Stub message templates| ]]
}}&lt;/includeonly&gt;</text>
<sha1>87q57jjagfvilv7dgl9hsh14e30sj6w</sha1>
</revision>
</page>
<page>
<title>Template:Country data Wales</title>
<ns>10</ns>
<id>9018555</id>
<revision>
<id>814246857</id>
<parentid>814235160</parentid>
<timestamp>2017-12-07T17:45:13Z</timestamp>
<contributor>
<username>StevenJ81</username>
<id>14853459</id>
</contributor>
<minor/>
<comment>Syntax error</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="367">{{ {{{1&lt;noinclude&gt;|country showdata&lt;/noinclude&gt;}}}
| alias = Wales
| flag alias = Flag of Wales 2.svg
| flag alias-1807 = Flag of Wales, 1807-1953.svg
| flag alias-1953 = Flag of Wales (1953-1959).svg
| size = {{{size|}}}
| name = {{{name|}}}
| variant = {{{variant|}}}
| altlink = {{{altlink|}}}
&lt;noinclude&gt;
| var1 = 1807
| var2 = 1953
| redir1 = WAL
&lt;/noinclude&gt;
}}</text>
<sha1>5nkozqa81xmmr198xc851qspv6zuzxz</sha1>
</revision>
</page>
<page>
<title>Template:Demo</title>
<ns>10</ns>
<id>44902954</id>
<revision>
<id>640409688</id>
<parentid>640408605</parentid>
<timestamp>2014-12-31T18:11:29Z</timestamp>
<contributor>
<username>Codehydro</username>
<id>11007101</id>
</contributor>
<minor/>
<comment>typo</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="61">{{#invoke:Demo|main}}&lt;noinclude&gt;{{documentation}}&lt;/noinclude&gt;</text>
<sha1>qo8uxqtbhlvri8ihi5293by4l1j4soc</sha1>
</revision>
</page>
<page>
<title>Template:Infobox</title>
<ns>10</ns>
<id>891845</id>
<revision>
<id>765690941</id>
<parentid>590143656</parentid>
<timestamp>2017-02-15T21:41:48Z</timestamp>
<contributor>
<username>Andrew Gray</username>
<id>126457</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Infobox]]&quot;: Degrade to template permission per request, in line with [[WP:PP]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="145">{{#invoke:Infobox|infobox}}&lt;noinclude&gt;
{{documentation}}
&lt;!-- Categories go in the /doc subpage, and interwikis go in Wikidata. --&gt;
&lt;/noinclude&gt;</text>
<sha1>kavlqnbr7pew8bhy59a3n9jmoau5jt4</sha1>
</revision>
</page>
<page>
<title>Template:Mbox templates (small)</title>
<ns>10</ns>
<id>18946603</id>
<revision>
<id>815713577</id>
<parentid>815709418</parentid>
<timestamp>2017-12-16T16:45:22Z</timestamp>
<contributor>
<username>Zzuuzz</username>
<id>365454</id>
</contributor>
<minor/>
<comment>Reverted edits by [[Special:Contribs/208.54.86.246|208.54.86.246]] ([[User talk:208.54.86.246|talk]]) to last version by Frietjes</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="828">&lt;includeonly&gt;{{Infobox
| bodyclass = nowrap
| bodystyle = width:auto;padding-bottom:0.6em;line-height:1.25em;
| abovestyle = font-size:inherit;
| above = Message box&lt;br/&gt;meta-templates
| labelstyle = margin:0;padding:0 0.3em 0;text-align:center;font-weight:normal;
| datastyle = margin:0;padding:0 0.5em 0 0;
| label1 = ''template'' | data1 = ''context''
| label2 = {{tl|Ambox}} | data2 = article
| label3 = {{tl|Cmbox}} | data3 = category
| label4 = {{tl|Imbox}} | data4 = image
| label5 = {{tl|Tmbox}} | data5 = talk
| label6 = {{tl|Fmbox}} | data6 = footer / header
| label7 = {{tl|Ombox}} | data7 = other pages
| label8 = {{tl|Mbox}} | data8 = auto-detect
| label9 = {{tl|Asbox}} | data9 = article stub
| label10 = {{tl|Dmbox}} | data10 = disambiguation
}}&lt;/includeonly&gt;&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>1bae4fgs4de5xgz69zvbs10mlm90g0b</sha1>
</revision>
</page>
<page>
<title>Template:Mbox templates see also</title>
<ns>10</ns>
<id>21431035</id>
<revision>
<id>815714941</id>
<parentid>815709691</parentid>
<timestamp>2017-12-16T16:56:48Z</timestamp>
<contributor>
<username>Zzuuzz</username>
<id>365454</id>
</contributor>
<minor/>
<comment>Reverted edits by [[Special:Contribs/172.56.7.31|172.56.7.31]] ([[User talk:172.56.7.31|talk]]) to last version by Edokter</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="855">There are seven metatemplates in the [[Module:Message box]] family:
* {{tl|Ambox}}, for messageboxes on article pages.
* {{tl|Cmbox}}, for messageboxes on category pages.
* {{tl|Imbox}}, for messageboxes on file (image) pages.
* {{tl|Tmbox}}, for messageboxes on talk pages.
* {{tl|Fmbox}}, for header and footer messageboxes.
* {{tl|Ombox}}, for messageboxes on other types of page.
* {{tl|Mbox}}, for messageboxes that are used in different [[Wikipedia:Namespace|namespaces]] and change their presentation accordingly.
Closely related metatemplates:
* {{tl|Asbox}}, for messageboxes in article stubs.
* {{tl|Dmbox}}, for messageboxes on disambiguation or set-index pages.
* {{tla|Ivory messagebox|Ivmbox}}, a simple full-width box with default ivory background intended to frame important messages or notices.&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>iwhfb429mez2zguyq0jd4bujla3lfu6</sha1>
</revision>
</page>
<page>
<title>Template:Para</title>
<ns>10</ns>
<id>16639086</id>
<revision>
<id>679823176</id>
<parentid>660922353</parentid>
<timestamp>2015-09-07T00:44:14Z</timestamp>
<contributor>
<username>HJ Mitchell</username>
<id>9336033</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:Para: lower to TE per request; also removed from [[WP:CASC]] ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="267">&lt;code class=&quot;nowrap&quot; {{#if:{{{plain|}}}|style=&quot;border:none;background-color:inherit;color:inherit;&quot;}}&gt;&amp;#124;{{#if:{{{1|}}}|{{{1}}}&amp;#61;}}{{{2|}}}&lt;/code&gt;&lt;noinclude&gt;
{{Documentation}}
&lt;!--Categories and interwikis go near the bottom of the /doc subpage.--&gt;
&lt;/noinclude&gt;</text>
<sha1>byvvhmp41qjgp4713oxicsdwzjqb1b0</sha1>
</revision>
</page>
<page>
<title>Template:Red</title>
<ns>10</ns>
<id>843603</id>
<revision>
<id>819415370</id>
<parentid>679939859</parentid>
<timestamp>2018-01-09T06:56:20Z</timestamp>
<contributor>
<username>SMcCandlish</username>
<id>378390</id>
</contributor>
<minor/>
<comment>nicer CSS</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="151">&lt;span style=&quot;color: Red;&quot;&gt;{{{1}}}&lt;/span&gt;&lt;noinclude&gt;
&lt;!-- Add categories and interwikis to the /doc subpage, not here! --&gt;
{{Documentation}}&lt;/noinclude&gt;</text>
<sha1>shz5e6f3a688l1dple68qcurnz19jho</sha1>
</revision>
</page>
<page>
<title>Template:Soccer icon</title>
<ns>10</ns>
<id>11437907</id>
<revision>
<id>627310505</id>
<parentid>577970966</parentid>
<timestamp>2014-09-27T18:56:35Z</timestamp>
<contributor>
<username>Redrose64</username>
<id>9612106</id>
</contributor>
<comment>rm {{pp-template}}, add inline documentation; this also handles the cases when a pp icon is needed</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="130">{{Country data {{{1}}}|Soccer icon2|size={{{2|}}}}}&lt;noinclude&gt;
{{documentation|content=
[[Category:Data templates]]
}}&lt;/noinclude&gt;</text>
<sha1>akrngh019ssoyfve518b2dlyxyki4ix</sha1>
</revision>
</page>
<page>
<title>Template:Soccer icon2</title>
<ns>10</ns>
<id>11437931</id>
<revision>
<id>627333327</id>
<parentid>577970963</parentid>
<timestamp>2014-09-27T22:40:33Z</timestamp>
<contributor>
<username>Redrose64</username>
<id>9612106</id>
</contributor>
<comment>rm {{pp-template}}, add inline documentation; this also handles the cases when a pp icon is needed</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="339">&lt;span style=&quot;vertical-align: middle; background:transparent&quot;&gt;[[Image:{{{flag alias}}}|{{{size|40}}}x{{{size|40}}}px|alt=Flag of {{{alias}}}]]&lt;span style=&quot;margin-left:-{{{size|40}}}px;&quot;&gt;[[Image:Soccerball mask.svg|{{{size|40}}}px|alt=Soccer icon]]&lt;/span&gt;&lt;/span&gt;&lt;noinclude&gt;
{{documentation|content=
[[Category:Data templates]]
}}&lt;/noinclude&gt;</text>
<sha1>oa8eqgqzvz80ww81sv64yq0r8f7h1z6</sha1>
</revision>
</page>
<page>
<title>Template:Tla</title>
<ns>10</ns>
<id>30468047</id>
<revision>
<id>558951386</id>
<parentid>496745652</parentid>
<timestamp>2013-06-08T19:38:47Z</timestamp>
<contributor>
<username>Patrick87</username>
<id>17323256</id>
</contributor>
<comment>switch to using [[Template:tlg]] internally</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="644">{{Tlg|subst={{{subst|}}}|nowrap={{{nowrap|}}}|{{{1|}}}&lt;!--
--&gt;|alttext{{#ifeq:{{{2}}}|{{{2|x}}}||x}}={{{2}}}&lt;!--
--&gt;|3{{#ifeq:{{{3}}}|{{{3|x}}}||x}}={{{3}}}&lt;!--
--&gt;|4{{#ifeq:{{{4}}}|{{{4|x}}}||x}}={{{4}}}&lt;!--
--&gt;|5{{#ifeq:{{{5}}}|{{{5|x}}}||x}}={{{5}}}&lt;!--
--&gt;|6{{#ifeq:{{{6}}}|{{{6|x}}}||x}}={{{6}}}&lt;!--
--&gt;|7{{#ifeq:{{{7}}}|{{{7|x}}}||x}}={{{7}}}&lt;!--
--&gt;|8{{#ifeq:{{{8}}}|{{{8|x}}}||x}}={{{8}}}&lt;!--
--&gt;|9{{#ifeq:{{{9}}}|{{{9|x}}}||x}}={{{9}}}&lt;!--
--&gt;|10{{#ifeq:{{{10}}}|{{{10|x}}}||x}}={{{10}}}&lt;!--
--&gt;|11{{#ifeq:{{{11}}}|{{{11|x}}}||x}}={{{11}}}&lt;!--
--&gt;|12{{#ifeq:{{{12}}}|{{{12|x}}}||x}}={{{12}}}}}&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>ekbj8d6mb201bbowib5w307op3y4n8t</sha1>
</revision>
</page>
<page>
<title>Module:Asbox</title>
<ns>828</ns>
<id>44821686</id>
<revision>
<id>670320775</id>
<parentid>647773061</parentid>
<timestamp>2015-07-07T06:30:57Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<comment>prevent script error at [[Template:Turkey-yachtracing-bio-stub]]</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="12369">--[[
This module was created by User:CodeHydro (Alexander Zhikun He).
User:Jackmcbarn and User:Mr._Stradivarius provided a great deal of assistance in writting p.main()
p.main() draw heavily from the following version of Template:Asbox of the English Wikipedia, authored primarily by User:Rich_Farmbrough
https://en.wikipedia.org/w/index.php?title=Template:Asbox&amp;oldid=619510287
p.templatepage() is derived from the following revision of Template:Asbox/templatepage, authored primarily by User:MSGJ
https://en.wikipedia.org/w/index.php?title=Template:Asbox/templatepage&amp;oldid=632914791
Both templates had significant contributions from numerous others listed in the revision history tab of their respective pages.
--]]
local WRAPPER_TEMPLATE, args = 'Template:Asbox'
local p, Buffer, stubCats = {
--Prevents dupli-cats... get it? Maybe not?
cats = setmetatable({}, {__newindex = function(t, i, v)
if not rawget(t, i) then
rawset(t, i, v)
table.insert(t, i)
end
end}),
--initializes variables required by both p.main and p.templatepage
init = function(self, frame, page)
args, page = args or require('Module:Arguments').getArgs(frame, {
wrappers = WRAPPER_TEMPLATE
}), page or mw.title.getCurrentTitle()
--Ensures demo parameter will never affect category() output for articles
self.demo = self.demo or page.namespace ~= 0 and args.demo
return args, page
end
}, require('Module:Buffer')
--[[
Formats category links. Stores them until called with cat.done=true
Takes multiple or single categories in the form of 'cat'
or a table of strings and/or tables containing parts. (See below)
]]
local attention, catTag, catKey = Buffer'Stub message templates needing attention', '[[Category:%s]]', '%s|%s%s'
local function category(cat)
for _, v in ipairs((tostring(cat) == cat or cat.t) and {cat} or cat) do
--[[
If v is a table:
[1] = full category name; defaults to local attention if blank
k = Category sort key. Prefix before v.t
t = page.text or args.tempsort#; appended after k (or in its place if omitted). Required if v is not a string
Basically the same as v = (v[1] or attention) .. ' | ' .. (v.k or '') .. v.t
]]
if v and v ~= true then--reject v = nil, false, or true
p.cats[catTag:format(tostring(v) == v and
v
or (v[1] and Buffer(v[1]) or attention):_in(v.k):_(v.t):_str(2, nil, nil, '|')
)] = true
end
end
return cat.done and table.concat(p.cats, p.demo and ' | ' or nil) or ''
end
--[[
Makes an ombox warning;
Takes table {ifNot = Boolean, text, {cat. sort key, cat. sort name}}
Will return an empty string instead when ifNot evaluates to true
]]
local function ombox(v)
if v.ifNot then return end
p.ombox = p.ombox or require('Module:Message box').ombox
category{v[2]}
return p.ombox{
type = 'content',
text = v[1]
}
end
--[[
Unlike original template, module now takes unlimited cats! This function also performs
most stub category error checks except for the ombox for when main |category= is omitted (See p.template())
]]
local function catStub(page, pageDoc)
stubCats = {missing = {}, v = {}}
local code
for k, _ in pairs(args) do
--Find category parameters and store the number (main cat = '')
table.insert(stubCats, string.match(k, '^category(%d*)$'))
end
table.sort(stubCats)
for k, v in ipairs(stubCats) do
--Get category names and, if called by p.templatepage, the optional sort key
local tsort, cat = args['tempsort' .. v], mw.ustring.gsub(args['category' .. v], '[^%w%p%s]', '')--remove all hidden unicode chars
--Do not place template in main category if |tempsort = 'no'. However, DO place articles of that template in the main category.
table.insert(stubCats.v,
page and (--p.templatepage passes page; p.main does not, i.e. articles are categorized without sort keys.
v=='' and tsort == 'no'--if true, inserts 'true' in table, which category() will reject
or tsort and {cat, k = ' ', t = tsort}
or {cat, k = ' *', t = page.text}--note space in front of sort key
)
or cat
)
--Check category existance only if on the template page (i.e. stub documentation)
if page then
if not mw.title.new('Category:' .. cat).exists then
code = code or mw.html.create'code':wikitext'|category'
table.insert(stubCats.missing, tostring(mw.clone(code):wikitext(v)))
end
--[[
Checks non-demo stub template for documentation and flags if doc is present.
All stub cats names are checked and flagged if it does not match 'Category: [] stub'.
The main stub cat is exempt from the name check if the stub template has its own doc
(presumably, this doc would have an explanation as to why the main stub cat is non-conforming).
]]
table.insert(stubCats.v, v == '' and not p.demo and pageDoc.exists and
'Stub message templates with documentation subpages'
or not cat:match' stubs$' and {k = 'S', t = page.text}
)
end
end
--Add category names after loop is completed
category(stubCats.v)
return #stubCats.missing &gt; 0 and ombox{
--Changed, original msg:
--One or more of the stub categories defined in this template do not seem to exist!
--Please double-check the parameters {{para|category}}, {{para|category1}} and {{para|category2}}.
'The following parameter'
.. (#stubCats.missing == 1 and ' defines a stub category that does' or 's define stub categories that do')
.. ' not exist: ' .. mw.text.listToText(stubCats.missing),
{k = 'N', t = page.text}
}
end
--Shows population of categories found by catStub(). Outputs demo values if none
local function population()
local wikitext, base = {}, '* [[:Category:%s]] (population: %s)\n'
if not args.category and stubCats[1] ~= false then
table.insert(stubCats, 1, false)
end
for _, v in ipairs(stubCats) do
table.insert(wikitext, base:format(
v and args['category' .. v] or '{{{category}}}',
v and mw.site.stats.pagesInCategory(args['category' .. v], 'all') or 0
))
end
return table.concat(wikitext)
end
--Includes standard stub documention and flags stub templates with bad parameter values.
function p.templatepage(frame, page)
args, page = p:init(frame, page)
local tStubDoc = mw.title.new'Template:Stub documentation'
local pageDoc = page:subPageTitle('doc')
--Reorganization note: Original Asbox alternates between outputting categories and checking on params |category#=.
--Rather than checking multiple times and switching tasks, all stub category param operations have been rolled into catStub()
return Buffer(
ombox{--Show ombox warnings for missing args.
ifNot = args.category,
'The &lt;code&gt;|category&lt;/code&gt; parameter is not set. Please add an appropriate stub category.',
{k = 'C', t = page.text}
})
:_(ombox{
ifNot = args.subject or args.article or args.qualifier,
'This stub template contains no description! At least one of the parameters &lt;code&gt;|subject&lt;/code&gt;, &lt;code&gt;|article&lt;/code&gt; or &lt;code&gt;|qualifier&lt;/code&gt; must be defined.',
{k = 'D', t = page.text}
})
:_(catStub(page, pageDoc))--catStub() may also return an ombox if there are non-existing categories
:_(category{
done = p.demo ~= 'doc',--Outputs categories if not doc demo
'Stub message templates',
'Exclude in print',
args.icon and
'Stub message templates using icon parameter'
or args.image and (
mw.title.new('Media:' .. mw.text.split(args.image, '|')[1]).exists--do nothing if exists. category() will reject true
or {k = 'B', t = page.text}
)
or 'Stub message templates without images',
args.imagealt and {k = 'I', t = page.text},
})
:_((not p.demo or p.demo == 'doc') and--Add standard stub template documentation
require('Module:Documentation').main{
content = Buffer(page.text ~= 'Stub' and--This comparison performed in {{Asbox/stubtree}} before it invokes Module:Asbox stubtree
require('Module:Asbox stubtree').subtree{args = {pagename = page.text}}
)
:_in'\n== About this template ==\nThis template is used to identify a':_(args.subject):_'stub':_(args.qualifier):_out' '--space
:_'. It uses {{[[Template:Asbox|asbox]]}}, which is a meta-template designed to ease the process of creating and maintaining stub templates.\n=== Usage ===\nTyping '
:_(mw.html.create'code'
:wikitext('{{', page.text == 'Stub' and 'stub' or page.text, '}}')
)
:_' produces the message shown at the beginning, and adds the article to the following categor'
:_(#stubCats &gt; 1 and 'ies' or 'y')
:_':\n'
:_(population())
:_(pageDoc.exists and--transclusion of /doc if it exists
frame:expandTemplate{title = pageDoc.text}
)
:_'\n== General information ==\n'
:_(frame:expandTemplate{title = tStubDoc.text})
:_'\n\n'(),
['link box'] = Buffer'This documentation is automatically generated by [[Module:Asbox]].'
:_in'The general information is transcluded from [[Template:Stub documentation]]. '
:_(mw.html.create'span'
:cssText'font-size:smaller;font-style:normal;line-height:130%'
:node(('([%s edit] | [%s history])'):format(
tStubDoc:fullUrl('action=edit', 'relative'),
tStubDoc:fullUrl('action=history', 'relative')
))
)
:_out()
:_(page.protectionLevels.edit and page.protectionLevels.edit[1] == 'sysop' and
&quot;This template is [[WP:PROTECT|fully protected]] and any [[WP:CAT|categories]] should be added to the template's [&quot;
.. pageDoc:fullUrl('action=edit&amp;preload=Template:Category_interwiki/preload', 'relative')
.. '| /doc] subpage, which is not protected.'
)' &lt;br/&gt;'
}
)()
end
function p.main(frame, page)
args, page = p:init(frame, page)
local output = mw.html.create'table'
:addClass'metadata plainlinks stub'
:css{background = 'transparent'}
:attr{role = 'presentation'}
:tag'tr'
:node((args.icon or args.image) and
mw.html.create'td'
:wikitext(args.icon or ('[[File:%s|%spx|alt=%s]]'):format(
args.image or '',
args.pix or '40x30',
args.imagealt or 'Stub icon'
))
)
:tag'td'
:tag'i'
:wikitext(
Buffer'This':_(args.subject):_(args.article or 'article'):_(args.qualifier)' ',--space
' is a [[Wikipedia:stub|stub]]. You can help Wikipedia by [',
page:fullUrl('action=edit', 'relative'),
' expanding it].'
)
:done()
:node(args.name and
require'Module:Navbar'._navbar{
args.name,
mini = 'yes',
style = 'position: absolute; right: 15px; display: none;'
}
)
:node(args.note and
mw.html.create()
:tag'br':done()
:tag'span'
:css{['font-style'] = 'normal', ['font-size'] = 'smaller'}
:wikitext(args.note)
:done()
)
:allDone()
--[[
Stub categories for templates include a sort key (Otherwise all will be indexed under the letter 'T' for 'Template:[] stubs')
Articles using the template do not need a sort key since they have unique names.
When p.demo equals 'doc', the demo stub categories will appear as those for a stub template.
Otherwise, any non-nil p.demo will emulate article space categories (plus any error cats unless set to 'art')
]]
if page.namespace == 0 then -- Main namespace
category'All stub articles'
catStub()
elseif p.demo then
if p.demo ~= 'doc' then catStub() end
--Unless p.demo is set to 'art', it will also include error categories normally only shown on
--the template but not in the article. The elseif after namespace == 0 means demo cats will never show in article space.
p.demodoc = p.demo ~= 'art' and p.templatepage(frame, page)
output = mw.html.create()
:node(output)
:tag'small':wikitext(
'Demo categories: ',
(category{done = true}:gsub('(%[%[)(Category:)([^|%]]-)(%|)', '%1%2%3|%2%3%4'):gsub('(%[%[)(Category:)', '%1:%2'))
):done()
:wikitext(p.demo == 'doc' and p.demodoc or nil)
else
--Checks for valid name; emulates original template's check using {{FULLPAGENAME:{{{name|}}}}}
local normalizedName = mw.title.new(args.name or '')
if normalizedName and normalizedName.fullText == page.fullText then
output = mw.html.create():node(output):wikitext(p.templatepage(frame, page))
elseif not page.isSubpage and page.namespace == 10 then-- Template namespace and not a subpage
category{{k = args.name and 'E' or 'W', t = page.text}}
end
end
return output:wikitext(not p.demo and category{done = true} or nil)
end
return p</text>
<sha1>31l9zzgd5nipxypz0nrlahdnduqc4iv</sha1>
</revision>
</page>
<page>
<title>Module:Buffer</title>
<ns>828</ns>
<id>45253119</id>
<revision>
<id>662464476</id>
<parentid>659948094</parentid>
<timestamp>2015-05-15T16:15:29Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<minor/>
<comment>Protected Module:Buffer: [[WP:High-risk templates|High-risk Lua module]] ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="27931">--[[=============================
This Module was written by Alexander Zhikun He, also known as, User:Codehydro on the English Wikipedia
All methods were developed independently and any resemblance to other string buffer libraries would be coincidental.
Furthermore, many methods will not work when compiled by standard Lua libraries as they depend on behaviors unique to
the MediaMiki Scribunto mod, which, for example, has a getmetatable() method that always returns nil on non-tables.
https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual
Source code comments may be thin at some points because they are intended to be supplemented by the documentation page:
https://en.wikipedia.org/wiki/Module:Buffer/doc
Licensed under Creative Commons Attribution-ShareAlike 3.0 Unported License
https://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License
https://en.wikipedia.org/wiki/Module:Buffer
https://en.wikipedia.org/wiki/User:Codehydro
=============================--]]
local function Valid(v)--type validation
if v and v~=true then--reject nil/boolean; faster than 2 type() comparisons
local str = tostring(v)--functions not filtered since unlikely passed by accident (Scribunto does not have userdata/thread types)
if str~=v and str=='table' then return rawget(v, 1) and table.concat(v) end--tostring(string-type) returns same ref; same refs compare faster than type()
if str~='' then return str end--numbers are coerced to string per table.concat op; appending in string form saves ops on repeat concat
end
end
local noOp, MBpairs = function()end do local iMap, vMap, oMap, pIter, pOther, pFast, Next--Map
local function init()--init = noOp after first run
function Next(t) return next, t end--slightly faster to do this than to use select()
function pIter(t, k) k = (iMap[t] or MBpairs(t, true) and iMap[t])[not k and 1 or vMap[t][k]] return k, t[k] end--don't use rawget; accepting unmapped tables does not measurably affect performance.
function pOther(t, k) k = (oMap[t] or MBpairs(t, true) and oMap[t])[nil==k and 1 or vMap[t][k]] return k, t[k] end--comparison to nil because false is a valid key
function pFast(t, k) k = not k and 1 or k &lt; (vMap[t] or #t) and k + 1 or nil return k, t[k] end--mapless iterator; almost as fast as native ipairs; slight performance penalty when length not cached
--k and k &lt; (vMap[t] or #t) and k + 1 or not k and 1 or nil return k, t[k] end--mapless iterator; almost as fast as native ipairs; slight performance penalty when length not cached
local mk = {__mode = 'k'}--use mode 'k'; found that mode 'kv' sometimes garbage collects maps mid-loop (may not error because iterators auto re-map, but that's expensive)
init, iMap, vMap, oMap = noOp, setmetatable({}, mk), setmetatable({}, mk), setmetatable({}, mk)--iMap is numeric keys, oMap is non-numeric keys, and vMap points to next key
end
function MBpairs(t, ...)--pairs always iterates in order
local iter, ex = ...
iter = iter==init()--nil
if iter and not oMap[t] and ex==nil and rawget(t, 1)~=nil and next(t, #t)==nil then--while possible to miss keys, more thorough check would negate the benefit of pFast
vMap[t] = #t return pFast, t, nil
elseif ... or not vMap[t] or select('#', ...)~=1 then
local ti, tn, to, n = {}, {}, {}, #t--reduces table lookups
iMap[t], vMap[t], oMap[t] = ti, tn, to
for k = 1, n do ti[k], tn[k] = k, k + 1 end--stage one avoids number type checking op in stage two for most numeric keys
for k in (ex or Next)(t) do
if not tn[k] then table.insert(tonumber(k)~=k and to or ti, k) end
end
if #ti~=n then
table.sort(ti)
for k = 1, #ti do tn[ti[k]] = k + 1 end--somewhat wasteful, but trying to avoid overwriting can be even more expensive
end
for k = 1, #to do tn[to[k]] = k + 1 end
end
return iter and pIter or oMap[t] and pOther or noOp, t--noOp for mapless
end
end
local parent, rawkey, spec do--new scope for variables not reused outside (reduces number of var names that need to checked outside of scope)
local mkv = {__mode='kv', __call=function(t,k,v)t[k]=v return k end}--shared meta for Buffer parent property, raw mode, and specialized functions
parent, rawkey, spec = setmetatable({}, mkv), setmetatable({}, mkv), setmetatable({}, mkv)--shared meta less memory
end
local MB, MBi, MBmix, buffHTML, gfuncs, noCache, Element do--minimize number of locals per scope to reduce time spent sifting through irrelevant variable names
local _stream do local stream--keep stream near top of scope
local function init(f)--init = noOp after first run
local function each(self, ...)
for k = 1, select('#', ...) do
k = Valid(select(k, ...))--slightly faster than table.insert(self, (Valid(select(k, ...))))
if k then table.insert(self, k) end
end
return self
end
init, stream, _stream = noOp, {
__call = function(t, v) v = v and Valid(v) return v and table.insert(t, v) or t end,--last_concat cleared before entering stream mode
__index = function(t, i) return i=='each' and each or MB.__index(t, i) and setmetatable(t, MB)[i] end,--no table look up minimizes resources to retrieve the only stream function
__tostring = function(t) return setmetatable(t, MB)() end
} for k, v in next, MB do stream[k] = stream[k] or v end
setmetatable(stream, getmetatable(MB))
end
function _stream(self, ...) self.last_concat = init() return setmetatable(self, stream):each(...) end
end
local function isMBfunc(Buffer, s, ...)--helper for :getParent()-like methods (including getBuffer which does not return a parent)
return s and (select('#', ...)==0 and--eventually should figure out to make this work for :getHTML which is very similar
(not rawkey[s] and tostring(s):match'^_.*' and MB.__index(Buffer, s) and MB.__index(Buffer, s)(Buffer) or MBmix(Buffer, s))--unprefixed function names append as a string
or assert(MB.__index(Buffer, s), ('&quot; %s &quot; does not match any available Module:Buffer function'):format(s))(Buffer, ...)--getParent is a one-way trip so one-time assert not expensive
) or Buffer
end
local function MBselect(n, ...)--helper for :_out and :_str
local n, seps = n - 1, {select(2, ...)}
if type(seps[n])=='table' then
if buffHTML and rawget(seps[n], buffHTML) then return ... end
setmetatable(seps, {__index = setmetatable(seps[n], {__index = function(t) return rawget(t, 1) end})})[n] = nil
end
return ..., seps
end
local _inHTML do local lastBuffer, lastHTML
local function init(...)--init replaced and new version called on return
local create, mwFunc = mw.html.create do
local mwHTMLmeta = getmetatable(create())
buffHTML, mwFunc, _inHTML = setmetatable(mw.clone(mwHTMLmeta), getmetatable(MB)), mwHTMLmeta.__index--buffHTML declared near top of module; remove _inHTML from outer scope
function init(nodes, ...)
local name, args, tag = select(... and type(...)=='table' and 1 or 2, nil, ...)
tag = create(Valid(name), args)
if nodes then table.insert(nodes, tag.parent and tag or rawset(tag, 'parent', parent[nodes])) end
if args then
local a, b = args.selfClosing, args.parent
args.selfClosing, args.parent = nil
if next(args) then Element._add(parent(tag.nodes, tag), args) end
args.selfClosing, args.parent = a, b--in case args is reused
end
return tag
end
for k, v in next, {[mw] = mwHTMLmeta,
__call = function(h, v) return MBmix(spec[h.nodes] and h.nodes or spec(setmetatable(parent(h.nodes, h), MB), Element), v) end,
__concat = false,--false means take from MB
__eq = false
} do buffHTML[k] = v or MB[k] end
end
local nonSelf, BHi = {tag=true,done=true,allDone=true}, buffHTML.__index do local g
g = {__index = function(t, i)
if gfuncs and gfuncs[i] then g.__index, gfuncs = gfuncs return g.__index[i] end
end}
setmetatable(nonSelf, g)
setmetatable(BHi, g)
end
for k in next, nonSelf do--any HTML objects returned by these funcs will be granted Module:Buffer enhancements
local func = mwFunc[k]
BHi[k] = function(t, ...) local HTML = func(t, ...) return parent[HTML] and HTML or setmetatable(parent(HTML, t), buffHTML) end
end
do local function joinNode(HTML, sep)
local nodes, join = HTML.nodes
if noCache and rawkey[sep] or Valid(sep) then join, HTML.nodes = tostring(rawset(HTML, 'nodes', {MB.__call(nodes, sep)})), nodes end
return join or tostring(HTML)
end
for k, v in next, {
getParent = function(HTML, ...) lastHTML = HTML return MBi.getParent(HTML:allDone(), ...) end,--return to Buffer that created the HTML tree
getBuffer = function(HTML, ...) lastHTML = HTML return isMBfunc(lastBuffer, ...) end,--return to last used
killParent = function(HTML, ...) MBi.killParent(HTML:allDone(), ...) return HTML end,
_out = function(HTML, ...)
if ...==0 then MBi._out(HTML.nodes, ...) return HTML end
lastHTML, HTML = HTML, HTML:allDone()
local n, ops, seps = select('#', ...)
if n &gt; 1 then
local ops, seps = MBselect(n, ...)
return parent[HTML]:_in(joinNode(HTML, rawget(seps, 0))):_out(ops, rawset(seps, buffHTML, true))
end
return parent[HTML]:_(joinNode(HTML, ...))
end,
_str = function(HTML, ...)--does not set lastHTML
if ...==0 then return joinNode(HTML, select(2, ...)) end--passing 0 strings without calling allDone()
local HTML, n = HTML:allDone(), select('#', ...)
if n &gt; 1 then
local ops, seps = MBselect(n, ...)
return parent[HTML]:_in(joinNode(HTML, rawget(seps, 1))):_str(ops, rawset(seps, buffHTML, true))
end
return joinNode(HTML, ...)
end,
_parent = function(HTML, ...) table.insert(HTML.nodes, parent[HTML:allDone()]:_str(...)) return HTML end
} do BHi[k] = v end
end
do local htmlArg, skip, outFuncs = {parent=true,selfClosing=true,tagName=true}, {}
do local out local function func(nodes, ...) return out(parent[nodes], ...) end
outFuncs = setmetatable({
tag = function(nodes, ...) return parent(setmetatable(init(nodes, ...), buffHTML), parent[nodes]) end,
done = function(b, ops)
b = parent[b]
while b.parent and ops~=0 do b, ops = b.parent, ops and ops - 1 or 0 end
return b
end
}, {__index = function(nodes, i)
if rawget(BHi, i) then out = BHi[i] return func end--rawget to exclude globals
end})
end
Element = {
_add = function(nodes, t)
for k, v in MBpairs(t), t, skip[t] do (v~=true and MBmix or noOp)(nodes, v) end
local HTML = parent[nodes] for k, v in MBpairs(t, false) do
if htmlArg[k] then HTML[k] = v
elseif v and v~=true then
if nonSelf[k] then
if k=='tag' then
if type(v)=='table' then
skip[v], k = 1, rawset(create(Valid(v[1])), 'parent', HTML)
Element._add(spec(parent(k.nodes, k, table.insert(nodes, k)), Element), v)
if k.selfClosing then k.nodes = nil else spec[k.nodes], parent[k.nodes] = nil end--free memory/reduce clutter; parent ref will auto-unset when k.nodes is nil
if not k.tagName then k.styles, k.attributes = nil end
else table.insert(nodes, create(v)) end
elseif mwFunc[k] then
if k=='done' and tonumber(v)~=v and v[1] and tonumber(v[1])==v[1] then skip[v] = 1 end
MBmix(outFuncs[k](nodes, skip[v] and v[1]).nodes, v)
elseif v[1] or v[2] then
k = MBi[k](nodes, unpack(v, 1, rawset(skip, v, k=='_B' and 1 or 2)[v]))
Element._add(getmetatable(k) and rawget(k, 'nodes') or k, v)--if k is not a table, then v should not contain any extra keys or this may error.
else MBi[k](nodes, v) end--k probably == '_G' or '_R'
elseif mwFunc[k] then
if type(v)~='table' or rawget(v, 'nodes') then mwFunc[k](HTML, v)
else
local css = k=='css'
for x, y in MBpairs(v, true) do (y and y~=true and mwFunc[k] or noOp)(HTML, css and x:gsub('_', '-') or x, y) end--iterate non-numbers first
for _, y in MBpairs(v, nil) do (y and y~=true and mwFunc[k] or noOp)(HTML, y) end--don't bother with gsub since text must be quoted anyhow
end
elseif rawget(Element, k) or rawget(MBi, k) then
if tonumber(v)==v or v[1]==nil or getmetatable(v) then (Element[k] or MBi[k])(nodes, v)--v is probably string-able object, or a table to be handled by :_all
else (Element[k] or MBi[k])(nodes, unpack(v, 1, table.maxn(v))) end--v is definately a table
else mwFunc.css(HTML, k:gsub('_', '-', 1), tostring(v)) end--oddly enough, :_add clocked its fastest runtime after adding auto-gsub as a feature
skip[v] = nil
end
end
return nodes
end
}
local tempMeta = {mode='v', copy={styles=true,attributes=true}}
function tempMeta.__index(t, i) return tempMeta.copy[i] and rawset(t, i, MBi._cc(false, 0, t.orig[i]))[i] or t.orig[i] end
rawkey[setmetatable(Element, {__index = outFuncs, __concat=function(Element, v) return setmetatable({nodes=spec({}, Element),orig=parent[v]}, tempMeta) end})] = math.huge
end
function MBi:getHTML(...)
lastBuffer = self
if ... then
if select('#', ...)==1 then return not rawkey[s] and tostring(...):match'^_' and BHi[...] and BHi[...](lastHTML) or lastHTML(...)
else return assert(BHi[...], ('&quot; %s &quot; does not match any mw.html or Buffer-mw.html function'):format(tostring(...)))(lastHTML, select(2, ...)) end
end
return lastHTML
end
function MBi:_html(...) return MBi._(self, lastHTML, select(spec[self]==Element and select('#', ...)==0 and 1 or 2, true, ...)) end
return init(...)
end
function _inHTML(self, ...)
local HTML = init(nil, ...)
if HTML.selfClosing and spec[self]==Element then self.last_concat = table.insert(self, HTML) return self end
lastBuffer, lastHTML = self, setmetatable(parent(HTML, self), buffHTML)--set after 'args' table processed by :_add
return HTML
end
end
local _var, unbuild do local prev, rebuild
local function init(...)--init replaced before return
local function pick(b, v) return b and table.insert(b, v) or v end
local function c(a, num) return rawset(a.a or a, 0, a[0] and a[0] + a.c or num and a[1] or a[1]:byte())[0] end
local same, build, alt = {__tostring = function(a, b) return a.a[0] and pick(b, a.a.string and string.char(a.a[0]) or a.a.table and a.a[1][a.a[0]] or a.a[0]) end}, {
__index = {c = 1},
__tostring = function(t) return t:_build() end,
table = function(a, b) local i = next(a[1], a[0]) or a[0]==#a[1] and next(a[1]) return pick(b, rawset(a.a or a, 0, i)[1][i]) end,--change rate (a.c) ignored since users control the table's contents
number = function(a, b) return pick(b, c(a, true)) end,
string = function(a, b) return pick(b, string.char(c(a))) end
}, {__index = function(a, i) return a.a[i] end, __tostring = function(a, b) return (rawget(a, 0) and a[0]==tostring(a[0]) and rawset(a, 0, a[0]:byte()) or a).a._build(a, b) end}
local function shift(t, c)
t[0] = t[0] and t[0] + c or t:_build() and t[0] - t.c + c
if t.table then t[0] = (t[0] - 1) % #t[1] + 1 end
end
function rebuild(...)
local v, c = ...
if v or select('#', ...)==0 then
if v and not c then return prev end
local meta, c = select(v and 1 or 3, alt, c, same, 0)
return setmetatable({a = prev, _build = meta.__tostring, c = c}, meta)
elseif v==nil then--no-op
elseif c then shift(prev, c)--v == false
else prev:_build() end
end
init, noCache = function(v, c) prev = setmetatable({v, c = c, _build = build[type(v)] or v, [type(v)] = true, alt = {}}, build) return prev end, true
return init(...)
end
function unbuild(sep)
for k, v in MBpairs(sep, nil) do
k = getmetatable(v) if k and (k==build or k==alt) then shift(v.a or v, -v.c) end
end
end
function _var(self, ...)
local obj if ... and ...~=true then obj = init(...)
elseif prev then
if ...~=false then obj = rebuild(...)
else rebuild(...) end
end
return obj and MBi._(self, obj, nil, true) or self
end
end
local lib; MBi = setmetatable({stream = _stream,
_inHTML = _inHTML,
_var = _var,
_ = function(self, v, ...)
local at, raw = select(select('#', ...)==1 and ...==true and 1 or 2, nil, ...)
if raw then rawkey[self] = math.huge else v = Valid(v) end
if v or raw then
if at or rawkey[self] then raw = #self end--if length increases by more than one after table.insert, then set rawkey[self] = math.huge; rawkey[self] may be equal to a previous 'at'
at, self.last_concat = at and (tonumber(at)~=at and raw + at or at)
table.insert(self, select(at and 1 or 2, at, v))
if at and at &lt; 0 or raw and #self - raw &gt; 1 then rawkey[self] = math.huge elseif at and #self==raw then rawkey[self] = rawkey[self] and math.max(rawkey[self], at) or at end
end--above line looks bizarre because one table.insert op may make length jump from 0 to 8: local wtf={[2]=2,[4]=4,[8]=8}mw.log(#wtf,table.insert(wtf,1),#wtf)
return self
end,
_nil = function(self, at, ...)
if ...~=true and ...~=false then--faster than type(...) ~= 'boolean'
if not at or at=='0' then
self[#self] = ... if ... then rawkey[self] = math.huge end
else
local n, v = tonumber(at), ...
if n~=at then
if n then n = #self + at
elseif at~=true and select('#', ...)==0 then v, n = at, #self end
end
if n then
if v==nil and n &gt; 0 then table.remove(self, n)
else self[math.floor(n)], rawkey[self] = v, math.huge end--floor position for consistency with Table library
end
end
self.last_concat = nil
end
return self
end,
_all = function(self, t, valKey)
for k, v in MBpairs(t) do MBmix(self, v, valKey) end
for k, v in valKey and MBpairs(t, false) or noOp, t do
if tonumber(v) then MBi._(self, k, v)--self not always a buffer
elseif rawget(MBi, k) and v and v~=true then
if v[1]==nil or getmetatable(v) then MBi[k](self, v)
else MBi[k](self, unpack(v, 1, table.maxn(v))) end
end
end
return self
end,
_str = function(t, ...)
local n = select('#', ...)
if n &gt; 1 then
local k, ops, seps, r = 2, MBselect(n, ...)
r = MB(t(seps[1]))
while parent[t] and ops &gt; 1 and r:_(parent[t](seps[k]), 1) do t, k, ops = parent[t], k + 1, ops - 1 end
return table.concat(r, seps[k] or nil)
end
return MB.__call(t, ...)
end,
_in = function (self, ...) return parent(MB(...), self) end,
_out = function(t, ...)
if ...==0 then return parent(t, parent[t], MBi._cc(t, t, MB.__call(t, (select(2, ...))), getmetatable(t))) end--love how :_cc needed nothing new to implement this *self pat on back*
local n = select('#', ...)
if n &gt; 1 then
local k, ops, seps = 1, MBselect(n, ...)
while parent[t] and ops &gt; 0 do t, k, ops = parent[t]:_(t(seps[k])), k + 1, ops - 1 end
elseif parent[t] then return parent[t]:_(t(...)) end
return t
end,
_cc = function(self, clear, copy, meta)
if clear then
if rawequal(clear, copy) then return self, spec[MBi._cc] and setmetatable(spec[MBi._cc], MB)--rawequal to avoid re-string via __eq in case both are different Buffer objects
elseif copy==true then copy = self end
if clear~=0 then
assert(type(clear)=='table', debug.traceback('Buffer:_cc can only &quot;clear&quot; tables. Did you forget to call with a colon?', 2))--errors can be hard to trace without this
for k in self and next or noOp, clear do rawset(clear, k, nil) end
else return MBi._cc(false, {unpack(copy)}, copy) end--copy length w/o empty strings; recursion to avoid self = false causing garbage collection (non-weak child may exist)
if self==false or copy and type(copy)=='table' then--self==false means copy is a table (saves a type op for recursive calls)
meta = meta or getmetatable(copy)
if self and #copy &gt; 1 then--preserves length with empty strings; developed from studying http://www.lua.org/source/5.1/ltable.c.html
local n, null, i, e = #copy, {}, math.ldexp(2, select(2, math.frexp(#copy)) - 2)
e, spec[MBi._cc], parent[null] = i - 1, null, clear
for k = 1, e do table.insert(clear, false) end
while i&lt;=n do table.insert(clear, i, '') i, null[i] = i + math.ldexp(2, select(2, math.frexp(n - i)) - 2), '' end
for k = 1, e do rawset(clear, k, nil) end
end
for k, v in next, copy do rawset(clear, k, type(v)=='table' and MBi._cc(false, 0, v) or v) end
elseif copy then rawset(clear, 1, (Valid(copy))) end
rawkey[setmetatable(clear, meta)], parent[clear] = rawkey[copy], parent[copy]
end
return self and rawset(self, 'last_concat', nil) or clear
end,
_parent = function(self, ...) return parent[self] and MBi._(self, parent[self]:_str(...)) or self end,
getParent = function(self, ...) return isMBfunc(parent[self] or parent[parent(self, setmetatable({}, MB))], ...) end,
killParent = function(self, ...) return parent[self] and isMBfunc(parent[self], ...) and parent(self) or self end,
_build = function(self, t) table.insert(t, self()) end,--for compatibility with mw.html:node()
last_concat = false--prevent library check
}, {__index = function(t, i)--import string, mw.text, and mw.ustring libraries on an as-needed basis
local func = string[i] or mw.text[i] or mw.ustring[i] or type(i)=='string' and mw.ustring[i:match'^u(.+)'] if func then
lib = lib or function (s, f, ...)
if parent[s] and next(s)==nil then return s:_((f(tostring(parent[Element and (spec[s]==Element and s:allDone() or spec[parent[s]]==Element and parent[s]) or s]), ...))) end
return f(tostring(s), ...)--not using ternary/logical operators here to allow multiple return values
end
return rawset(t, i, i:match'^u?gsub' and function(self, p, r, ...)return lib(self, func, p, r or '', ...)end--Why are ugsub/gsub special? because empty strings are against my religion!
or function(self, ...)return lib(self, func, ...)end)[i]
end
end})
end
function MBmix(t, v, ...) return v and ((type(v)~='table' or getmetatable(v)) and MBi._(t, v) or (select('#', ...)==0 and spec[t] and spec[t]._add or MBi._all)(t, v, ...)) or t end--:_all always passes two args
local _G, new_G = _G--localize _G for console testing (console _G ~= module _G)
return setmetatable({__index = function(t, i) return spec[t] and spec[t][i] or MBi[i] end,
__call = function(t, ...)
local rawsep, sep, i, j, raw = noCache and rawkey[...] and ..., ...
if i or j or rawsep or Valid(sep) then
raw, sep, i, j = rawkey[spec[t]] or rawkey[t], rawsep or Valid(sep), i and (i~=tonumber(i) and i + #t or i), j and (j~=tonumber(j) and j + #t or j)
if rawsep or raw and (raw&gt;=(j or #t) or i &lt; 1) then
raw, i, j = {}, i and math.floor(i), j and math.floor(j)--floor for consistency with table.concat(t, sep, i, j), which ignores decimals
raw.lc, t.last_concat = t.last_concat--temporarily unset last_concat to prevent disqualification from mapless iteration
for k, v in MBpairs(t) do
if raw[1] or not i or k&gt;=i then if j and k &gt; j then break end
if raw.s then raw.s = table.insert(raw, tostring(sep)) end--if sep contains v and v is a Buffer-variable, sep must be strung before v
k = Valid(v) if k then
raw.s = rawsep or sep and raw[1] and table.insert(raw, sep)
table.insert(raw, k)
end
end
end
if rawsep and not raw.s then raw[#raw] = unbuild(sep) end--unbuild rawsep if final index in t was invalid
t.last_concat = raw.lc return table.concat(raw)
end
return table.concat(t, sep, i and math.max(i, 1), j and math.min(j, #t))
end
return MB.__tostring(t)
end,
__tostring = function(t)
if t.last_concat then return t.last_concat end
local r = rawkey[spec[t]] or rawkey[t]
r = table.concat(r and r&gt;=#t and MBi._all({}, t) or t)
return (noCache or rawset(t, 'last_concat', r)) and r
end,
__concat = function(a, b)
if buffHTML then
for k = 1, 2 do local v = select(k, a, b)--faster than for k, v in pairs{a, b} do
if v and spec[v] and spec[v]==Element then
if parent[v].selfClosing then
if rawequal(a, b) then return (not noCache or parent[v].tagName) and v:_str(0):rep(2) or v:_str(0)..v:_str(0) end--rawequal avoids premature tostring of Buffer:_var objects;
b, a = select(k, b, parent[v], a)
else local temp = Element .. v --helper method; returns a mirror of parent[v]
MBmix(MBmix(parent(temp.nodes, temp), a), k==1 and spec[b]==Element and parent[b] or b)
return buffHTML.__tostring(setmetatable(temp, {__index=parent[v], __mode='v'}))--switch from tempMeta to avoid MBi._cc op of styles/attributes
end
end
end
end
return table.concat(MBmix(MBmix({}, a), b))
end,
__pairs = MBpairs,
__ipairs = MBpairs,
__eq = function(a, b) return tostring(a)==tostring(b) end--avoid a==b in this module; use rawequal(a,b) when they may be different Buffers (premature tostring waste ops and is bad for Buffer:_var)
}, {__tostring = function()return''end,
__call = function(self, ...) MB = MB or self
if new_G then if ... and _G and ...==_G then new_G = ... end
elseif ... and (...==_G or type(...)=='table' and (...)._G==...) then
local Nil, mG = {}, (...):getmetatable() or (...):setmetatable{}:getmetatable()
new_G, _G, gfuncs = ..., ..., {--gfuncs stored for Buffer:_inHTML; new_G is a is a Module:Buffer local declared just before the final return statement.
_G = function(self, i, ...)
local X, save = rawget(new_G, i), select('#', ...)==0 and self or ...
if i and i~=true and not (X and save and rawequal(X, save)) and rawset(new_G, i, save) and (X~=nil or save==nil and new_G[i]~=nil) then--rawequal in case X is another buffer
local mG = getmetatable(new_G) or {__call=mG.__call}
if mG.__index then pcall(rawset, mG.__index, i, X)
else mG.__index = setmetatable(new_G, mG) and {[i] = X} end
end
return self, ...--avoiding __eq with rawequal(self,save) is overkill since buffers can self-save without being passed as save
end,
_R = function(self, i, v, m)
if i~='new_G' then if i and i~=true then rawset(new_G, i , v) end
elseif not v or v==true or v._G~=_G then new_G = setmetatable(v~=true and v or {}, {__call = mG.__call, __index = v~=true and m~=true and (m or new_G) or nil})
else new_G, (not m and (m~=nil or v==new_G) and Nil or getmetatable(v)).__index = v, m~=true and (m or new_G) or nil end--setting Nil.__index is noOp
return self
end,
_2 = function(self, ...)
if new_G[...]~=nil then return new_G[...] end--higher priority so Buffer:_G('new_G', ...) can prevent an overwrite
if ...=='new_G' then return rawset((select('#', ...)~=1 and MBi._R(new_G, ...) or new_G), '_G', _G) end
return select(select('#', ...)==1 and 1 or 2, self:_G(...))--return only one value; 'return select(2, self:_G(...)) or self' doesn't work for returning nil
end,
_B = function(self, v) return v or v==nil and Nil end
} for k, v in next, gfuncs do MBi[k] = v end
setmetatable(Nil,{__concat=MB.__concat,__newindex=noOp,__call=noOp,__tostring=noOp,__metatable=MB,__index=setmetatable({_B=MBi._B,_=function()return Nil end,last_concat=''},
{__index=function(t,i)return (MBi[i] or i and not tonumber(i)) and t._ or nil end})})
function mG.__call(G, k, ...) return (k._G or G.type(k)=='table') and (G.select('#', ...)~=1 and G.rawset(k, ...) or G:rawset(..., k) and k) or G:rawset(k, (...)) and ... end
end
local new = setmetatable({}, self)
if ... and (...)==new_G then return select(2, ...) and MBmix(new:_G((select(2, ...))), select(3, ...)) or new end
return ... and MBi._(new, ...) or new
end,
__index = function(t, i)
MB = MB or t return MBi[i] and function(...) return MBi[i](setmetatable({}, t), select(...==t and 2 or 1,...)) end
end
})</text>
<sha1>jaobpdh55fjwufj4mg1tck9bsag4blq</sha1>
</revision>
</page>
<page>
<title>Module:Demo</title>
<ns>828</ns>
<id>44903029</id>
<revision>
<id>644905107</id>
<parentid>644894963</parentid>
<timestamp>2015-01-30T22:21:59Z</timestamp>
<contributor>
<username>Codehydro</username>
<id>11007101</id>
</contributor>
<comment>maybe this is the better way</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="3670">local p = {}
--creates a frame object that cannot access any of the parent's args
--unless a table containing a list keys of not to inherit is provided
function disinherit(frame, onlyTheseKeys)
local parent = frame:getParent() or frame
local orphan = parent:newChild{}
orphan.getParent = parent.getParent --returns nil
orphan.args = {}
if onlyTheseKeys then
local family = {parent, frame}
for f = 1, 2 do
for k, v in pairs(family[f] and family[f].args or {}) do
orphan.args[k] = orphan.args[k] or v
end
end
parent.args = mw.clone(orphan.args)
setmetatable(orphan.args, nil)
for _, k in ipairs(onlyTheseKeys) do
rawset(orphan.args, k, nil)
end
end
return orphan, parent
end
function p.get(frame, arg, passArgs)
local orphan, frame = disinherit(frame, passArgs and {arg or 1})
local code, noWiki, preserve = frame.args[arg or 1] or ''
if code:match'nowiki' then
local placeholder, preserve = ('6'):char(), {}
code = mw.text.unstripNoWiki(code)
noWiki = code:gsub('%%', placeholder):gsub('&amp;lt;', '&lt;'):gsub('&amp;gt;', '&gt;')
for k in noWiki:gmatch('&amp;.-;') do
if not preserve[k] then
preserve[k] = true
table.insert(preserve, (k:gsub('&amp;', '&amp;amp;')))
noWiki = noWiki:gsub('(&amp;.-;)', '%%%s')
end
end
noWiki = mw.text.nowiki(noWiki):format(unpack(preserve)):gsub(placeholder, '%%')
end
return {
source = noWiki or code,
output = orphan:preprocess(code):gsub(frame.args.demo_kill_categories and '%[%[Category.-%]%]' or '', ''),
frame = frame
}
end
function p.main(frame, demoTable)
local show = demoTable or p.get(frame)
local args = show.frame.args
args.br = tonumber(args.br or 1) and ('&lt;br&gt;'):rep(args.br or 1) or args.br or ''
if show[args.result_arg] then
return show[args.result_arg]
end
return string.format('&lt;pre%s&gt;%s&lt;/pre&gt;%s%s', args.style and string.format(&quot; style='%s'&quot;, args.style) or '', show.source, args.br, show.output)
end
--passing of args into other module without preprocessing
function p.module(frame)
local orphan, frame = disinherit(frame, {
'demo_template',
'demo_module',
'demo_module_func',
'demo_main',
'demo_br',
'demo_result_arg',
'demo_kill_categories'
})
local template = frame.args.demo_template and 'Template:'..frame.args.demo_template
local demoFunc = frame.args.demo_module_func or 'main\n'
local demoModule = require('Module:' .. frame.args.demo_module)[demoFunc:match('^%s*(.-)%s*$')]
frame.args.br, frame.args.result_arg = frame.args.demo_br, frame.args.demo_result_arg
if demoModule then
local named = {insert = function(self, ...) table.insert(self, ...) return self end}
local source = {insert = named.insert, '{{', frame.args.demo_template or frame.args.demo_module, '\n'}
if not template then
source:insert(2, '#invoke:'):insert(4, '|'):insert(5, demoFunc)
end
local insertNamed = #source + 1
for k, v in pairs(orphan.args) do
local nan, insert = type(k) ~= 'number', {v}
local target = nan and named or source
target:insert'|'
if nan then
target:insert(k):insert'=':insert'\n'
table.insert(insert, 1, #target)
end
target:insert(unpack(insert))
local nowiki = v:match('nowiki')
if nowiki or v:match('{{.-}}') then
orphan.args[k] = frame:preprocess(nowiki and mw.text.unstripNoWiki(v) or v)
end
end
source:insert'}}'
table.insert(source, insertNamed, table.concat(named))
return p.main(orphan, {
source = mw.text.encode(table.concat(source), &quot;&lt;&gt;'|=~&quot;),
output = tostring(demoModule(orphan)):gsub(frame.args.demo_kill_categories and '%[%[Category.-%]%]' or '', ''),
frame = frame
})
else
return &quot;ERROR: Invalid module function: &quot;..demoFunc
end
end
return p</text>
<sha1>b9gpefw8t2d76p618hk1jelagc2xskn</sha1>
</revision>
</page>
<page>
<title>Module:Infobox</title>
<ns>828</ns>
<id>38808424</id>
<revision>
<id>822189612</id>
<parentid>786097736</parentid>
<timestamp>2018-01-24T22:39:59Z</timestamp>
<contributor>
<username>Frietjes</username>
<id>13791031</id>
</contributor>
<comment>infobox class not needed for subbox since the parent box will set the class (and causes problems on mobile)</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="15447">--
-- This module implements {{Infobox}}
--
local p = {}
local navbar = require('Module:Navbar')._navbar
local args = {}
local origArgs
local root
local function notempty( s ) return s and s:match( '%S' ) end
local function fixChildBoxes(sval, tt)
if notempty(sval) then
local marker = '&lt;span class=special_infobox_marker&gt;'
local s = sval
s = mw.ustring.gsub(s, '(&lt;%s*[Tt][Rr])', marker .. '%1')
s = mw.ustring.gsub(s, '(&lt;/[Tt][Rr]%s*&gt;)', '%1' .. marker)
if s:match(marker) then
s = mw.ustring.gsub(s, marker .. '%s*' .. marker, '')
s = mw.ustring.gsub(s, '([\r\n]|-[^\r\n]*[\r\n])%s*' .. marker, '%1')
s = mw.ustring.gsub(s, marker .. '%s*([\r\n]|-)', '%1')
s = mw.ustring.gsub(s, '(&lt;/[Cc][Aa][Pp][Tt][Ii][Oo][Nn]%s*&gt;%s*)' .. marker, '%1')
s = mw.ustring.gsub(s, '(&lt;%s*[Tt][Aa][Bb][Ll][Ee][^&lt;&gt;]*&gt;%s*)' .. marker, '%1')
s = mw.ustring.gsub(s, '^(%{|[^\r\n]*[\r\n]%s*)' .. marker, '%1')
s = mw.ustring.gsub(s, '([\r\n]%{|[^\r\n]*[\r\n]%s*)' .. marker, '%1')
s = mw.ustring.gsub(s, marker .. '(%s*&lt;/[Tt][Aa][Bb][Ll][Ee]%s*&gt;)', '%1')
s = mw.ustring.gsub(s, marker .. '(%s*\n|%})', '%1')
end
if s:match(marker) then
local subcells = mw.text.split(s, marker)
s = ''
for k = 1, #subcells do
if k == 1 then
s = s .. subcells[k] .. '&lt;/' .. tt .. '&gt;&lt;/tr&gt;'
elseif k == #subcells then
local rowstyle = ' style=&quot;display:none&quot;'
if notempty(subcells[k]) then rowstyle = '' end
s = s .. '&lt;tr' .. rowstyle ..'&gt;&lt;' .. tt .. ' colspan=2&gt;\n' .. subcells[k]
elseif notempty(subcells[k]) then
if (k % 2) == 0 then
s = s .. subcells[k]
else
s = s .. '&lt;tr&gt;&lt;' .. tt .. ' colspan=2&gt;\n' .. subcells[k] .. '&lt;/' .. tt .. '&gt;&lt;/tr&gt;'
end
end
end
end
return s
else
return sval
end
end
local function union(t1, t2)
-- Returns the union of the values of two tables, as a sequence.
local vals = {}
for k, v in pairs(t1) do
vals[v] = true
end
for k, v in pairs(t2) do
vals[v] = true
end
local ret = {}
for k, v in pairs(vals) do
table.insert(ret, k)
end
return ret
end
local function getArgNums(prefix)
-- Returns a table containing the numbers of the arguments that exist
-- for the specified prefix. For example, if the prefix was 'data', and
-- 'data1', 'data2', and 'data5' exist, it would return {1, 2, 5}.
local nums = {}
for k, v in pairs(args) do
local num = tostring(k):match('^' .. prefix .. '([1-9]%d*)$')
if num then table.insert(nums, tonumber(num)) end
end
table.sort(nums)
return nums
end
local function addRow(rowArgs)
-- Adds a row to the infobox, with either a header cell
-- or a label/data cell combination.
if rowArgs.header then
root
:tag('tr')
:addClass(rowArgs.rowclass)
:cssText(rowArgs.rowstyle)
:attr('id', rowArgs.rowid)
:tag('th')
:attr('colspan', 2)
:attr('id', rowArgs.headerid)
:addClass(rowArgs.class)
:addClass(args.headerclass)
:css('text-align', 'center')
:cssText(args.headerstyle)
:cssText(rowArgs.rowcellstyle)
:wikitext(fixChildBoxes(rowArgs.header, 'th'))
elseif rowArgs.data then
local row = root:tag('tr')
row:addClass(rowArgs.rowclass)
row:cssText(rowArgs.rowstyle)
row:attr('id', rowArgs.rowid)
if rowArgs.label then
row
:tag('th')
:attr('scope', 'row')
:attr('id', rowArgs.labelid)
:cssText(args.labelstyle)
:cssText(rowArgs.rowcellstyle)
:wikitext(rowArgs.label)
:done()
end
local dataCell = row:tag('td')
if not rowArgs.label then
dataCell
:attr('colspan', 2)
:css('text-align', 'center')
end
dataCell
:attr('id', rowArgs.dataid)
:addClass(rowArgs.class)
:cssText(rowArgs.datastyle)
:cssText(rowArgs.rowcellstyle)
:newline()
:wikitext(fixChildBoxes(rowArgs.data, 'td'))
end
end
local function renderTitle()
if not args.title then return end
root
:tag('caption')
:addClass(args.titleclass)
:cssText(args.titlestyle)
:wikitext(args.title)
end
local function renderAboveRow()
if not args.above then return end
root
:tag('tr')
:tag('th')
:attr('colspan', 2)
:addClass(args.aboveclass)
:css('text-align', 'center')
:css('font-size', '125%')
:css('font-weight', 'bold')
:cssText(args.abovestyle)
:wikitext(fixChildBoxes(args.above,'th'))
end
local function renderBelowRow()
if not args.below then return end
root
:tag('tr')
:tag('td')
:attr('colspan', '2')
:addClass(args.belowclass)
:css('text-align', 'center')
:cssText(args.belowstyle)
:newline()
:wikitext(fixChildBoxes(args.below,'td'))
end
local function renderSubheaders()
if args.subheader then
args.subheader1 = args.subheader
end
if args.subheaderrowclass then
args.subheaderrowclass1 = args.subheaderrowclass
end
local subheadernums = getArgNums('subheader')
for k, num in ipairs(subheadernums) do
addRow({
data = args['subheader' .. tostring(num)],
datastyle = args.subheaderstyle or args['subheaderstyle' .. tostring(num)],
class = args.subheaderclass,
rowclass = args['subheaderrowclass' .. tostring(num)]
})
end
end
local function renderImages()
if args.image then
args.image1 = args.image
end
if args.caption then
args.caption1 = args.caption
end
local imagenums = getArgNums('image')
for k, num in ipairs(imagenums) do
local caption = args['caption' .. tostring(num)]
local data = mw.html.create():wikitext(args['image' .. tostring(num)])
if caption then
data
:tag('div')
:cssText(args.captionstyle)
:wikitext(caption)
end
addRow({
data = tostring(data),
datastyle = args.imagestyle,
class = args.imageclass,
rowclass = args['imagerowclass' .. tostring(num)]
})
end
end
local function renderRows()
-- Gets the union of the header and data argument numbers,
-- and renders them all in order using addRow.
local rownums = union(getArgNums('header'), getArgNums('data'))
table.sort(rownums)
for k, num in ipairs(rownums) do
addRow({
header = args['header' .. tostring(num)],
label = args['label' .. tostring(num)],
data = args['data' .. tostring(num)],
datastyle = args.datastyle,
class = args['class' .. tostring(num)],
rowclass = args['rowclass' .. tostring(num)],
rowstyle = args['rowstyle' .. tostring(num)],
rowcellstyle = args['rowcellstyle' .. tostring(num)],
dataid = args['dataid' .. tostring(num)],
labelid = args['labelid' .. tostring(num)],
headerid = args['headerid' .. tostring(num)],
rowid = args['rowid' .. tostring(num)]
})
end
end
local function renderNavBar()
if not args.name then return end
root
:tag('tr')
:tag('td')
:attr('colspan', '2')
:css('text-align', 'right')
:wikitext(navbar{
args.name,
mini = 1,
})
end
local function renderItalicTitle()
local italicTitle = args['italic title'] and mw.ustring.lower(args['italic title'])
if italicTitle == '' or italicTitle == 'force' or italicTitle == 'yes' then
root:wikitext(mw.getCurrentFrame():expandTemplate({title = 'italic title'}))
end
end
local function renderTrackingCategories()
if args.decat ~= 'yes' then
if #(getArgNums('data')) == 0 and mw.title.getCurrentTitle().namespace == 0 then
root:wikitext('[[Category:Articles which use infobox templates with no data rows]]')
end
if args.child == 'yes' and args.title then
root:wikitext('[[Category:Pages which use embedded infobox templates with the title parameter]]')
end
end
end
local function _infobox()
-- Specify the overall layout of the infobox, with special settings
-- if the infobox is used as a 'child' inside another infobox.
if args.child ~= 'yes' then
root = mw.html.create('table')
root
:addClass((args.subbox ~= 'yes') and 'infobox' or nil)
:addClass(args.bodyclass)
if args.subbox == 'yes' then
root
:css('padding', '0')
:css('border', 'none')
:css('margin', '-3px')
:css('width', 'auto')
:css('min-width', '100%')
:css('font-size', '100%')
:css('clear', 'none')
:css('float', 'none')
:css('background-color', 'transparent')
else
root
:css('width', '22em')
end
root
:cssText(args.bodystyle)
renderTitle()
renderAboveRow()
else
root = mw.html.create()
root
:wikitext(args.title)
end
renderSubheaders()
renderImages()
renderRows()
renderBelowRow()
renderNavBar()
renderItalicTitle()
renderTrackingCategories()
return tostring(root)
end
local function preprocessSingleArg(argName)
-- If the argument exists and isn't blank, add it to the argument table.
-- Blank arguments are treated as nil to match the behaviour of ParserFunctions.
if origArgs[argName] and origArgs[argName] ~= '' then
args[argName] = origArgs[argName]
end
end
local function preprocessArgs(prefixTable, step)
-- Assign the parameters with the given prefixes to the args table, in order, in batches
-- of the step size specified. This is to prevent references etc. from appearing in the
-- wrong order. The prefixTable should be an array containing tables, each of which has
-- two possible fields, a &quot;prefix&quot; string and a &quot;depend&quot; table. The function always parses
-- parameters containing the &quot;prefix&quot; string, but only parses parameters in the &quot;depend&quot;
-- table if the prefix parameter is present and non-blank.
if type(prefixTable) ~= 'table' then
error(&quot;Non-table value detected for the prefix table&quot;, 2)
end
if type(step) ~= 'number' then
error(&quot;Invalid step value detected&quot;, 2)
end
-- Get arguments without a number suffix, and check for bad input.
for i,v in ipairs(prefixTable) do
if type(v) ~= 'table' or type(v.prefix) ~= &quot;string&quot; or (v.depend and type(v.depend) ~= 'table') then
error('Invalid input detected to preprocessArgs prefix table', 2)
end
preprocessSingleArg(v.prefix)
-- Only parse the depend parameter if the prefix parameter is present and not blank.
if args[v.prefix] and v.depend then
for j, dependValue in ipairs(v.depend) do
if type(dependValue) ~= 'string' then
error('Invalid &quot;depend&quot; parameter value detected in preprocessArgs')
end
preprocessSingleArg(dependValue)
end
end
end
-- Get arguments with number suffixes.
local a = 1 -- Counter variable.
local moreArgumentsExist = true
while moreArgumentsExist == true do
moreArgumentsExist = false
for i = a, a + step - 1 do
for j,v in ipairs(prefixTable) do
local prefixArgName = v.prefix .. tostring(i)
if origArgs[prefixArgName] then
moreArgumentsExist = true -- Do another loop if any arguments are found, even blank ones.
preprocessSingleArg(prefixArgName)
end
-- Process the depend table if the prefix argument is present and not blank, or
-- we are processing &quot;prefix1&quot; and &quot;prefix&quot; is present and not blank, and
-- if the depend table is present.
if v.depend and (args[prefixArgName] or (i == 1 and args[v.prefix])) then
for j,dependValue in ipairs(v.depend) do
local dependArgName = dependValue .. tostring(i)
preprocessSingleArg(dependArgName)
end
end
end
end
a = a + step
end
end
function p.infobox(frame)
-- If called via #invoke, use the args passed into the invoking template.
-- Otherwise, for testing purposes, assume args are being passed directly in.
if frame == mw.getCurrentFrame() then
origArgs = frame:getParent().args
else
origArgs = frame
end
-- Parse the data parameters in the same order that the old {{infobox}} did, so that
-- references etc. will display in the expected places. Parameters that depend on
-- another parameter are only processed if that parameter is present, to avoid
-- phantom references appearing in article reference lists.
preprocessSingleArg('child')
preprocessSingleArg('bodyclass')
preprocessSingleArg('subbox')
preprocessSingleArg('bodystyle')
preprocessSingleArg('title')
preprocessSingleArg('titleclass')
preprocessSingleArg('titlestyle')
preprocessSingleArg('above')
preprocessSingleArg('aboveclass')
preprocessSingleArg('abovestyle')
preprocessArgs({
{prefix = 'subheader', depend = {'subheaderstyle', 'subheaderrowclass'}}
}, 10)
preprocessSingleArg('subheaderstyle')
preprocessSingleArg('subheaderclass')
preprocessArgs({
{prefix = 'image', depend = {'caption', 'imagerowclass'}}
}, 10)
preprocessSingleArg('captionstyle')
preprocessSingleArg('imagestyle')
preprocessSingleArg('imageclass')
preprocessArgs({
{prefix = 'header'},
{prefix = 'data', depend = {'label'}},
{prefix = 'rowclass'},
{prefix = 'rowstyle'},
{prefix = 'rowcellstyle'},
{prefix = 'class'},
{prefix = 'dataid'},
{prefix = 'labelid'},
{prefix = 'headerid'},
{prefix = 'rowid'}
}, 50)
preprocessSingleArg('headerclass')
preprocessSingleArg('headerstyle')
preprocessSingleArg('labelstyle')
preprocessSingleArg('datastyle')
preprocessSingleArg('below')
preprocessSingleArg('belowclass')
preprocessSingleArg('belowstyle')
preprocessSingleArg('name')
args['italic title'] = origArgs['italic title'] -- different behaviour if blank or absent
preprocessSingleArg('decat')
return _infobox()
end
return p</text>
<sha1>70c4sw4coyjec1b3vfiyyrfzu3bapv8</sha1>
</revision>
</page>
<page>
<title>Module:Navbar</title>
<ns>828</ns>
<id>38827227</id>
<revision>
<id>780167786</id>
<parentid>771417723</parentid>
<timestamp>2017-05-13T12:41:14Z</timestamp>
<contributor>
<username>Primefac</username>
<id>11508456</id>
</contributor>
<comment>update from sandbox per [[Special:Diff/771417737]]</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="2517">local p = {}
local getArgs
function p._navbar(args)
local titleArg = 1
if args.collapsible then
titleArg = 2
if not args.plain then
args.mini = 1
end
if args.fontcolor then
args.fontstyle = 'color:' .. args.fontcolor .. ';'
end
args.style = 'float:left; text-align:left'
end
local titleText = args[titleArg] or (':' .. mw.getCurrentFrame():getParent():getTitle())
local title = mw.title.new(mw.text.trim(titleText), 'Template');
if not title then
error('Invalid title ' .. titleText)
end
local talkpage = title.talkPageTitle and title.talkPageTitle.fullText or '';
local div = mw.html.create():tag('div')
div
:addClass('plainlinks')
:addClass('hlist')
:addClass('navbar')
:cssText(args.style)
if args.mini then div:addClass('mini') end
if not (args.mini or args.plain) then
div
:tag('span')
:css('word-spacing', 0)
:cssText(args.fontstyle)
:wikitext(args.text or 'This box:')
:wikitext(' ')
end
if args.brackets then
div
:tag('span')
:css('margin-right', '-0.125em')
:cssText(args.fontstyle)
:wikitext('&amp;#91; ')
end
local ul = div:tag('ul');
ul
:tag('li')
:addClass('nv-view')
:wikitext('[[' .. title.fullText .. '|')
:tag(args.mini and 'abbr' or 'span')
:attr('title', 'View this template')
:cssText(args.fontstyle)
:wikitext(args.mini and 'v' or 'view')
:done()
:wikitext(']]')
:done()
:tag('li')
:addClass('nv-talk')
:wikitext('[[' .. talkpage .. '|')
:tag(args.mini and 'abbr' or 'span')
:attr('title', 'Discuss this template')
:cssText(args.fontstyle)
:wikitext(args.mini and 't' or 'talk')
:done()
:wikitext(']]');
if not args.noedit then
ul
:tag('li')
:addClass('nv-edit')
:wikitext('[' .. title:fullUrl('action=edit') .. ' ')
:tag(args.mini and 'abbr' or 'span')
:attr('title', 'Edit this template')
:cssText(args.fontstyle)
:wikitext(args.mini and 'e' or 'edit')
:done()
:wikitext(']');
end
if args.brackets then
div
:tag('span')
:css('margin-left', '-0.125em')
:cssText(args.fontstyle)
:wikitext(' &amp;#93;')
end
if args.collapsible then
div
:done()
:tag('div')
:css('font-size', '114%')
:css('margin', args.mini and '0 4em' or '0 7em')
:cssText(args.fontstyle)
:wikitext(args[1])
end
return tostring(div:done())
end
function p.navbar(frame)
if not getArgs then
getArgs = require('Module:Arguments').getArgs
end
return p._navbar(getArgs(frame))
end
return p</text>
<sha1>9d4ism2psi1oucu9pnyveg4m6i2oobx</sha1>
</revision>
</page>
<page>
<title>Template:Doc</title>
<ns>10</ns>
<id>14298498</id>
<redirect title="Template:Documentation" />
<revision>
<id>774481748</id>
<parentid>366363082</parentid>
<timestamp>2017-04-08T19:21:20Z</timestamp>
<contributor>
<username>Jo-Jo Eumerus</username>
<id>17449355</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Doc]]&quot;: Matching redirect target ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="158">#REDIRECT [[Template:Documentation]]{{R from template shortcut}}
[[Category:Template documentation]]
[[Category:Wikipedia formatting and function templates]]</text>
<sha1>7cbqxfzfvtxkdrt8xbxrpb49tiqzr09</sha1>
</revision>
</page>
<page>
<title>Module:Asbox stubtree</title>
<ns>828</ns>
<id>38629368</id>
<revision>
<id>577704600</id>
<parentid>544889037</parentid>
<timestamp>2013-10-18T12:29:46Z</timestamp>
<contributor>
<username>WOSlinker</username>
<id>3138265</id>
</contributor>
<minor/>
<comment>Changed protection level of Module:Asbox stubtree: allow template editors to modify ([Edit=Protected template] (indefinite) [Move=Protected template] (indefinite))</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="2552">local i = {}
function i.exists(pagename)
local t = mw.title.new(pagename, &quot;Template&quot;)
return t.exists
end
function i.pcase(word)
return mw.ustring.upper(mw.ustring.sub(word,1,1)) .. mw.ustring.sub(word,2)
end
function i._subtree(pagename)
local finalresult
local out = {&quot;&quot;,pagename}
local tt
local temppage
local temppageexists
local r = 0
local t = {}
local removeditem1 = &quot;&quot;
local removeditem2 = &quot;&quot;
-- split items on dash into table
for token in mw.ustring.gmatch(pagename, &quot;[^-]+&quot;) do
-- don't add numbered items to list
if tonumber(mw.ustring.sub(token,1,1)) == nil then
table.insert(t,token)
else
r = 1
end
end
table.remove(t, #t)
while (#t &gt; 1) do
if r == 1 then
r = 0
else
-- Remove 1st item from list
removeditem1 = t[1]
table.remove(t, 1)
end
temppage = table.concat(t, &quot;-&quot;) .. &quot;-stub&quot;
temppageexists = i.exists(temppage)
if temppageexists == true then
table.insert(out,&quot;[[Template:&quot; .. temppage .. &quot;|&quot; .. i.pcase(temppage) .. &quot;]]&quot;)
else
-- If template with first item does not exist, try removing last item
removeditem2 = t[#t]
table.remove(t, #t)
temppage = removeditem1 .. &quot;-&quot; .. table.concat(t, &quot;-&quot;) .. &quot;-stub&quot;
if #t == 0 then
temppage = removeditem1 .. &quot;-stub&quot;
end
temppageexists = i.exists(temppage)
if temppageexists == true then
-- if exists then add first item back to list
table.insert(t,1,removeditem1)
table.insert(out,&quot;[[Template:&quot; .. temppage .. &quot;|&quot; .. i.pcase(temppage) .. &quot;]]&quot;)
else
-- if exists then add last item back to list
table.insert(t,removeditem2)
end
end
end
finalresult = '&lt;div style=&quot;float:right; border-style:dotted; border-width:2px; padding:5px; margin:5px;&quot;&gt;'
finalresult = finalresult .. '&lt;span title=&quot;This shows the hierarchy of the stub template in relation to other templates.&quot; style=&quot;font-size:125%; font-weight:bold;&quot;&gt;Stub hierarchy&lt;/span&gt;'
finalresult = finalresult .. table.concat(out, &quot;\n* &quot;)
finalresult = finalresult .. '\n* [[Template:Stub|Stub]]'
finalresult = finalresult .. '\n&lt;/div&gt;'
return finalresult
end
function i.subtree(frame)
return i._subtree(frame.args[&quot;pagename&quot;])
end
return i</text>
<sha1>eymzbxdbah53ha1tq4qa3ppcbnij0ig</sha1>
</revision>
</page>
<page>
<title>Template:Stub documentation</title>
<ns>10</ns>
<id>23060555</id>
<revision>
<id>810049528</id>
<parentid>781132059</parentid>
<timestamp>2017-11-13T02:25:01Z</timestamp>
<contributor>
<username>Hyacinth</username>
<id>17171</id>
</contributor>
<minor/>
<comment>Reverted edits by [[Special:Contribs/Hyacinth|Hyacinth]] ([[User talk:Hyacinth|talk]]) to last version by BU Rob13</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="1693">This is a '''stub template'''. A brief explanation of these templates follows; for full details please consult [[Wikipedia:Stub]].
=== What is a stub? ===
A stub is an article containing only a few sentences of text which is too short to provide encyclopedic coverage of a subject.
=== How is a stub identified? ===
* If possible, try to find the most appropriate stub template for the article. A full list can be found at [[Wikipedia:WikiProject Stub sorting/List of stubs]].
* More than one stub template may be used, if necessary, though no more than four should be used on any article.
* Place a stub template ''[[MOS:ORDER|at the very end]]'' of the article, after the &quot;External links&quot; section, any navigation templates, and the category tags. As usual, templates are added by including their name inside double braces, e.g. &lt;code&gt;&lt;nowiki&gt;{{stub}}&lt;/nowiki&gt;&lt;/code&gt;.
=== Further information ===
Further information can be found at:
* [[Wikipedia:Stub]]
* [[Wikipedia:WikiProject Stub sorting]]
New stub templates and categories (collectively &quot;stub types&quot;) should not be created without prior proposal at [[Wikipedia:WikiProject Stub sorting/Proposals]]. This allows for the proper coordination of all stub types across Wikipedia, and for the checking of any new stub type for possible problems prior to its creation.
=== See also ===
* [[Template:Empty section]] – To flag an empty section as a '''stub section'''
* [[Template:Expand section]] – To flag sections selectively as incomplete
* [[Template:Data missing]] – To flag missing information or other data
* [[Wikipedia:Article assessment]]
&lt;noinclude&gt;
{{documentation}}
[[Category:Template documentation]]
&lt;/noinclude&gt;</text>
<sha1>gcf1nd12xxxpwz82yvvgz77e7rzt16s</sha1>
</revision>
</page>
<page>
<title>Template:Audio/doc</title>
<ns>10</ns>
<id>12498753</id>
<revision>
<id>804355207</id>
<parentid>800006849</parentid>
<timestamp>2017-10-08T13:04:47Z</timestamp>
<contributor>
<username>Nardog</username>
<id>5908908</id>
</contributor>
<comment>[[Category:Templates that add a tracking category]]</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="1575">{{Documentation subpage}}
&lt;!--PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE--&gt;
{{for|instructions on inserting audio files|Wikipedia:Creation and usage of media files#Audio}}
=== Purpose ===
This template links to an audio file for quick listening. It is meant to be used inline with text, for pronunciations and the like. Please note that this just creates a link to the file and does not actually embed the file. If the file is Non-Free and only referenced via this template it is not in compliance with [[WP:NFCC#7|Wikipedia:Non-free content criteria § Policy #7]].
=== Usage ===
; Basic:
&lt;code&gt;&lt;nowiki&gt;{{Audio|name of sound file|text to use as link to soundfile|help=}}&lt;/nowiki&gt;&lt;/code&gt;
; Simple
: &lt;code&gt;&lt;nowiki&gt;'''Alabama''' ({{Audio|en-us-Alabama.ogg|pronunciation}}) is a state located in...&lt;/nowiki&gt;&lt;/code&gt;
: → '''Alabama''' ({{Audio|en-us-Alabama.ogg|pronunciation}}) is a state located in...
; Help links
Setting {{para|help|no}} disables the &quot;help/info&quot; links. If this is done the template {{tlx|inline audio}} ''must'' be shown on the page.
: &lt;code&gt;&lt;nowiki&gt;'''Alabama''' ({{Audio|en-us-Alabama.ogg|pronunciation of &quot;Alabama&quot;|help=no}})&lt;/nowiki&gt;&lt;/code&gt;
: → '''Alabama''' ({{Audio|en-us-Alabama.ogg|pronunciation|help=no}})
: Todo: add {{tlx|inline audio}} to this page.
=== Microformat ===
{{UF-audio}}
=== See also ===
{{Audio templates}}
&lt;includeonly&gt;{{#ifeq:{{SUBPAGENAME}}|sandbox |
| &lt;!-- PLEASE ADD CATEGORIES BELOW THIS LINE: --&gt;
[[Category:Audio templates]]
[[Category:Templates that add a tracking category]]
}}&lt;/includeonly&gt;</text>
<sha1>e5769lve1k89yjm9niif05h439cbznm</sha1>
</revision>
</page>
<page>
<title>Template:Audio templates</title>
<ns>10</ns>
<id>41150853</id>
<revision>
<id>800006300</id>
<parentid>791320255</parentid>
<timestamp>2017-09-11T02:54:57Z</timestamp>
<contributor>
<username>Nardog</username>
<id>5908908</id>
</contributor>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="982">{{navbar|Audio templates|plain=1|style=float:right}}
* {{tl|Audio}}, for inline sounds like pronunciations (with a help link)
* {{tl|Audio-nohelp}}, without a help link
* {{tl|Inline audio}}, which adds notice with link to [[Wikipedia:Media help]]
* {{tl|Audio-IPA}}, a variant of this template to be used with [[International Phonetic Alphabet|IPA]] notation.
* {{tl|Listen}}, which sets an audio clip off from the main text
* {{tl|Listen MIDI}}, for MIDI files.
* {{tl|Multi-listen start}}, {{tl|Multi-listen item}}, and {{tl|Multi-listen end}}, templates used to list multiple audio files in the same box
* {{tl|Pronunciation}}, a shortcut for &lt;code&gt;&lt;nowiki&gt;&lt;small&gt;{{&lt;/nowiki&gt;[[Template:Audio|Audio]]&lt;nowiki&gt;|soundfile.ogg|pronunciation}}&lt;/small&gt;&lt;/nowiki&gt;&lt;/code&gt;
* {{tl|Spoken}}, which adds only the small icon with no links&lt;noinclude&gt;
==Usage==
This template is intended to provide a consistent &quot;See also&quot; for audio templates.
[[Category:Related-topic templates]]
&lt;/noinclude&gt;</text>
<sha1>iu682o7mnmld95wzo8rwdcyxp11867p</sha1>
</revision>
</page>
<page>
<title>Template:Duration</title>
<ns>10</ns>
<id>28299910</id>
<revision>
<id>781770271</id>
<parentid>756214702</parentid>
<timestamp>2017-05-23T03:55:32Z</timestamp>
<contributor>
<username>Jc86035</username>
<id>17245768</id>
</contributor>
<comment>replaced with a Lua module for ease of use</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="60">{{#invoke:hms|main}}&lt;noinclude&gt;{{documentation}}&lt;/noinclude&gt;</text>
<sha1>qxtjptw5pzwl9z2beorjilc560gjxxt</sha1>
</revision>
</page>
<page>
<title>Template:For</title>
<ns>10</ns>
<id>1808502</id>
<revision>
<id>719096077</id>
<parentid>718013206</parentid>
<timestamp>2016-05-07T15:49:50Z</timestamp>
<contributor>
<username>Nihiltres</username>
<id>236191</id>
</contributor>
<comment>Updated with Lua [[Module:For]] from sandbox</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="88">&lt;includeonly&gt;{{#invoke:For|For}}&lt;/includeonly&gt;&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>7es2p1mk6qse8zlwn5qqya2ysrq1rcr</sha1>
</revision>
</page>
<page>
<title>Template:Hlist</title>
<ns>10</ns>
<id>38143620</id>
<revision>
<id>669926987</id>
<parentid>669921219</parentid>
<timestamp>2015-07-04T15:13:14Z</timestamp>
<contributor>
<username>Penwhale</username>
<id>125125</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:Hlist: [[WP:High-risk templates|Highly visible template]] ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="181">{{&lt;includeonly&gt;safesubst:&lt;/includeonly&gt;#invoke:list|horizontal}}&lt;noinclude&gt;
{{documentation}}
&lt;!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --&gt;
&lt;/noinclude&gt;</text>
<sha1>ihcdy525o8nnmq114czc48dpk6pnojd</sha1>
</revision>
</page>
<page>
<title>Template:Longitem</title>
<ns>10</ns>
<id>38040101</id>
<revision>
<id>718758673</id>
<parentid>718071292</parentid>
<timestamp>2016-05-05T12:44:24Z</timestamp>
<contributor>
<username>Edokter</username>
<id>1624037</id>
</contributor>
<comment>I have to sort this out; adding tracking category.</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="230">&lt;div style=&quot;padding:0.1em 0;line-height:1.2em;{{{style|}}}&quot;&gt;{{{1}}}&lt;/div&gt;&lt;includeonly&gt;{{#if:{{{2|}}}|[[Category:Pages using Template:Longitem with unnamed style parameter]]}}&lt;/includeonly&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>druaduufanfoh3rf6p66canulwflngz</sha1>
</revision>
</page>
<page>
<title>Template:Microformat message</title>
<ns>10</ns>
<id>43760155</id>
<revision>
<id>819682506</id>
<parentid>718764075</parentid>
<timestamp>2018-01-10T18:59:26Z</timestamp>
<contributor>
<username>Primefac</username>
<id>11508456</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Microformat message]]&quot;: [[WP:SEMI|semi-protecting]] highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed ac...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="1732">The [[Help:HTML in wikitext|HTML mark-up]] produced by this template includes {{#if:{{{type|}}} |{{{type}}} |an [[{{{format}}} microformat]]}} that makes {{{data}}} readily [[Parsing|parsable]] by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Wikipedia, please visit [[Wikipedia:WikiProject Microformats|the Microformat WikiProject]].&lt;!--
--&gt;{{#if:{{{subtemplates&lt;includeonly&gt;|&lt;/includeonly&gt;}}}
| &lt;div style=&quot;margin-top:0.5em;margin-bottom:0.65em;&quot;&gt;
; {{big|Subtemplates}}
{{{subtemplates}}}
'''''Please do not remove instances of these subtemplates.'''''
&lt;/div&gt;}}&lt;!--
--&gt;{{#if:{{{subsection1|}}}
| &lt;div style=&quot;margin-top:0.5em;margin-bottom:0.65em;&quot;&gt;&lt;!--(newline in case subsection begins with heading:)--&gt;
{{{subsection1}}}
&lt;/div&gt;}}&lt;!--
--&gt;{{#if:{{{1&lt;includeonly&gt;|&lt;/includeonly&gt;}}} &lt;!--(i.e. if at least one unnamed parameter supplied:)--&gt;
| &lt;div style=&quot;margin-top:0.5em;margin-bottom:0.65em;&quot;&gt;
; {{big|Classes used}}
The [[HTML attribute|HTML class]]es this microformat uses include:
: {{hlist
|item_style=font-size:110%;{{{itemstyle|}}}
|{{{1}}} |{{{2&lt;includeonly&gt;|&lt;/includeonly&gt;}}} |{{{3|&lt;noinclude&gt;{{nobold|……}}&lt;/noinclude&gt;}}}
|{{{4|}}} |{{{5|}}} |{{{6|}}} |{{{7|}}} |{{{8|}}} |{{{9|}}} |{{{10|}}} |{{{11|}}} |{{{12|}}} |{{{13|}}} |{{{14|}}} |{{{15|}}} |{{{16|}}} |{{{17|}}} |{{{18|}}} |{{{19|}}} |{{{20|}}}
}} &lt;/div&gt;
{{longitem|style=line-height:1.3em|'''''Please do not rename or remove these classes{{#if:{{{nocollapse&lt;includeonly&gt;|&lt;/includeonly&gt;}}} |&lt;br/&gt;nor collapse nested elements which use them}}.'''''}}&lt;!--
--&gt;}}&lt;!--(end #if:[1])--&gt;&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>7u4d3besbjknp3smbj41h8wvf8chwy7</sha1>
</revision>
</page>
<page>
<title>Template:Navbar</title>
<ns>10</ns>
<id>5277509</id>
<revision>
<id>776701623</id>
<parentid>776701469</parentid>
<timestamp>2017-04-22T18:49:17Z</timestamp>
<contributor>
<username>Plastikspork</username>
<id>5075409</id>
</contributor>
<comment>Closed</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="94">&lt;includeonly&gt;{{#invoke:Navbar|navbar}}&lt;/includeonly&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>fptzky4feeh5ybkj9wgkbuuk3emtln7</sha1>
</revision>
</page>
<page>
<title>Template:UF-audio</title>
<ns>10</ns>
<id>26836751</id>
<revision>
<id>638419523</id>
<parentid>625131054</parentid>
<timestamp>2014-12-16T23:04:26Z</timestamp>
<contributor>
<username>Jdaloner</username>
<id>4460044</id>
</contributor>
<minor/>
<comment>Updated template calls.</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="1172">{{Microformat message
| format = hAudio
| data = an audio recording's details
| subtemplates =
Date-of-publication (&quot;published&quot;) information will only be included in the microformat if {{tl|start date}} (or, where appropriate, {{tl|start date and age}}) is used in a parent infobox/template. Do not, however, use {{tlf|start date}} or {{tlf|start date and age}} [[Wikipedia:WikiProject Microformats/dates|if a date before 1583&amp;nbsp;CE is involved]].
Use {{tl|duration}} to specify the duration/length of a recording. For instance, if the recording's duration is 3 minutes 45 seconds, use {{tlc|duration|m{{=}}3|s{{=}}45}} (which appears as: {{duration|m=3|s=45}}). If needed, {{para|h}} may be included to specify a number of hours.
|haudio |fn |album |description |category |contributor |duration |h |item |min |photo |position |price |published |s
| nocollapse = on
}}&lt;includeonly&gt;{{#ifeq:{{SUBPAGENAME}}|doc | |{{#ifeq:{{SUBPAGENAME}}|sandbox | |[[Category:Templates generating hAudio microformats|{{PAGENAME}}]]}} }}&lt;/includeonly&gt;&lt;noinclude&gt;
{{Documentation |content={{Microformat message templates}}}}
[[Category:Microformat (uF) message templates]]
&lt;/noinclude&gt;</text>
<sha1>h32h0iivhk8eap8pnyzl3p6jy0xizup</sha1>
</revision>
</page>
<page>
<title>Module:For</title>
<ns>828</ns>
<id>50413050</id>
<revision>
<id>732878218</id>
<parentid>726039274</parentid>
<timestamp>2016-08-03T20:53:03Z</timestamp>
<contributor>
<username>Nihiltres</username>
<id>236191</id>
</contributor>
<comment>Updated from sandbox: categorizes as unusual &quot;other uses&quot; by defaulting as well as typed-out &quot;other uses&quot;</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="982">local mArguments --initialize lazily
local yesno = require('Module:Yesno')
local mHatlist = require('Module:Hatnote list')
local mHatnote = require('Module:Hatnote')
local p = {}
--Implements {{For}} from the frame
--uses capitalized &quot;For&quot; to avoid collision with Lua reserved word &quot;for&quot;
function p.For (frame)
mArguments = require('Module:Arguments')
return p._For(mArguments.getArgs(frame))
end
--Implements {{For}} but takes a manual arguments table
function p._For (args)
local use = args[1]
local category = ''
if (not use or use == 'other uses') and
(not args.category or yesno(args.category)) then
category = '[[Category:Hatnote templates using unusual parameters]]'
end
local pages = {}
function two (a, b) return a, b, 1 end --lets us run ipairs from 2
for k, v in two(ipairs(args)) do table.insert(pages, v) end
return mHatnote._hatnote(
mHatlist.forSeeTableToString({{use = use, pages = pages}}),
{selfref = args.selfref}
) .. category
end
return p</text>
<sha1>7cw7zffjg8qhj4fig5sqk2xg5uphgx0</sha1>
</revision>
</page>
<page>
<title>Module:Hatnote</title>
<ns>828</ns>
<id>42498502</id>
<revision>
<id>779487706</id>
<parentid>726656423</parentid>
<timestamp>2017-05-09T05:20:32Z</timestamp>
<contributor>
<username>JJMC89</username>
<id>24812038</id>
</contributor>
<comment>Add navigation-not-searchable class per [[Special:Permalink/779475248#Add navigation-not-searchable class|request]] (also see [[phab:T164781|T164781]])</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="6703">--------------------------------------------------------------------------------
-- Module:Hatnote --
-- --
-- This module produces hatnote links and links to related articles. It --
-- implements the {{hatnote}} and {{format link}} meta-templates and includes --
-- helper functions for other Lua hatnote modules. --
--------------------------------------------------------------------------------
local libraryUtil = require('libraryUtil')
local checkType = libraryUtil.checkType
local mArguments -- lazily initialise [[Module:Arguments]]
local yesno -- lazily initialise [[Module:Yesno]]
local p = {}
--------------------------------------------------------------------------------
-- Helper functions
--------------------------------------------------------------------------------
local function getArgs(frame)
-- Fetches the arguments from the parent frame. Whitespace is trimmed and
-- blanks are removed.
mArguments = require('Module:Arguments')
return mArguments.getArgs(frame, {parentOnly = true})
end
local function removeInitialColon(s)
-- Removes the initial colon from a string, if present.
return s:match('^:?(.*)')
end
function p.findNamespaceId(link, removeColon)
-- Finds the namespace id (namespace number) of a link or a pagename. This
-- function will not work if the link is enclosed in double brackets. Colons
-- are trimmed from the start of the link by default. To skip colon
-- trimming, set the removeColon parameter to false.
checkType('findNamespaceId', 1, link, 'string')
checkType('findNamespaceId', 2, removeColon, 'boolean', true)
if removeColon ~= false then
link = removeInitialColon(link)
end
local namespace = link:match('^(.-):')
if namespace then
local nsTable = mw.site.namespaces[namespace]
if nsTable then
return nsTable.id
end
end
return 0
end
function p.formatPages(...)
-- Formats a list of pages using formatLink and returns it as an array. Nil
-- values are not allowed.
local pages = {...}
local ret = {}
for i, page in ipairs(pages) do
ret[i] = p._formatLink(page)
end
return ret
end
function p.formatPageTables(...)
-- Takes a list of page/display tables and returns it as a list of
-- formatted links. Nil values are not allowed.
local pages = {...}
local links = {}
for i, t in ipairs(pages) do
checkType('formatPageTables', i, t, 'table')
local link = t[1]
local display = t[2]
links[i] = p._formatLink(link, display)
end
return links
end
function p.makeWikitextError(msg, helpLink, addTrackingCategory, title)
-- Formats an error message to be returned to wikitext. If
-- addTrackingCategory is not false after being returned from
-- [[Module:Yesno]], and if we are not on a talk page, a tracking category
-- is added.
checkType('makeWikitextError', 1, msg, 'string')
checkType('makeWikitextError', 2, helpLink, 'string', true)
yesno = require('Module:Yesno')
title = title or mw.title.getCurrentTitle()
-- Make the help link text.
local helpText
if helpLink then
helpText = ' ([[' .. helpLink .. '|help]])'
else
helpText = ''
end
-- Make the category text.
local category
if not title.isTalkPage and yesno(addTrackingCategory) ~= false then
category = 'Hatnote templates with errors'
category = string.format(
'[[%s:%s]]',
mw.site.namespaces[14].name,
category
)
else
category = ''
end
return string.format(
'&lt;strong class=&quot;error&quot;&gt;Error: %s%s.&lt;/strong&gt;%s',
msg,
helpText,
category
)
end
function p.disambiguate(page, disambiguator)
-- Formats a page title with a disambiguation parenthetical,
-- i.e. &quot;Example&quot; → &quot;Example (disambiguation)&quot;.
checkType('disambiguate', 1, page, 'string')
checkType('disambiguate', 2, disambiguator, 'string', true)
disambiguator = disambiguator or 'disambiguation'
return string.format('%s (%s)', page, disambiguator)
end
--------------------------------------------------------------------------------
-- Format link
--
-- Makes a wikilink from the given link and display values. Links are escaped
-- with colons if necessary, and links to sections are detected and displayed
-- with &quot; § &quot; as a separator rather than the standard MediaWiki &quot;#&quot;. Used in
-- the {{format hatnote link}} template.
--------------------------------------------------------------------------------
function p.formatLink(frame)
local args = getArgs(frame)
local link = args[1]
local display = args[2]
if not link then
return p.makeWikitextError(
'no link specified',
'Template:Format hatnote link#Errors',
args.category
)
end
return p._formatLink(link, display)
end
function p._formatLink(link, display)
checkType('_formatLink', 1, link, 'string')
checkType('_formatLink', 2, display, 'string', true)
-- Remove the initial colon for links where it was specified manually.
link = removeInitialColon(link)
-- Find whether a faux display value has been added with the {{!}} magic
-- word.
if not display then
local prePipe, postPipe = link:match('^(.-)|(.*)$')
link = prePipe or link
display = postPipe
end
-- Find the display value.
if not display then
local page, section = link:match('^(.-)#(.*)$')
if page then
display = page .. ' §&amp;nbsp;' .. section
end
end
-- Assemble the link.
if display then
return string.format(
'[[:%s|%s]]',
string.gsub(link, '|(.*)$', ''), --display overwrites manual piping
display
)
else
return string.format('[[:%s]]', link)
end
end
--------------------------------------------------------------------------------
-- Hatnote
--
-- Produces standard hatnote text. Implements the {{hatnote}} template.
--------------------------------------------------------------------------------
function p.hatnote(frame)
local args = getArgs(frame)
local s = args[1]
local options = {}
if not s then
return p.makeWikitextError(
'no text specified',
'Template:Hatnote#Errors',
args.category
)
end
options.extraclasses = args.extraclasses
options.selfref = args.selfref
return p._hatnote(s, options)
end
function p._hatnote(s, options)
checkType('_hatnote', 1, s, 'string')
checkType('_hatnote', 2, options, 'table', true)
options = options or {}
local classes = {'hatnote', 'navigation-not-searchable'}
local extraclasses = options.extraclasses
local selfref = options.selfref
if type(extraclasses) == 'string' then
classes[#classes + 1] = extraclasses
end
if selfref then
classes[#classes + 1] = 'selfref'
end
return string.format(
'&lt;div role=&quot;note&quot; class=&quot;%s&quot;&gt;%s&lt;/div&gt;',
table.concat(classes, ' '),
s
)
end
return p</text>
<sha1>c5z31x97gktc3q7nnp8mf48t01l4qst</sha1>
</revision>
</page>
<page>
<title>Module:Hatnote list</title>
<ns>828</ns>
<id>50085079</id>
<revision>
<id>726904710</id>
<parentid>719917336</parentid>
<timestamp>2016-06-25T06:18:53Z</timestamp>
<contributor>
<username>Nihiltres</username>
<id>236191</id>
</contributor>
<comment>Updated from sandbox</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="6873">--------------------------------------------------------------------------------
-- Module:Hatnote list --
-- --
-- This module produces and formats lists for use in hatnotes. In particular, --
-- it implements the for-see list, i.e. lists of &quot;For X, see Y&quot; statements, --
-- as used in {{about}}, {{redirect}}, and their variants. Also introduced --
-- are andList &amp; orList helpers for formatting lists with those conjunctions. --
--------------------------------------------------------------------------------
local mArguments --initialize lazily
local mHatnote = require('Module:Hatnote')
local libraryUtil = require('libraryUtil')
local checkType = libraryUtil.checkType
local p = {}
--------------------------------------------------------------------------------
-- List stringification helper functions
--
-- These functions are used for stringifying lists, usually page lists inside
-- the &quot;Y&quot; portion of &quot;For X, see Y&quot; for-see items.
--------------------------------------------------------------------------------
--default options table used across the list stringification functions
local stringifyListDefaultOptions = {
conjunction = &quot;and&quot;,
separator = &quot;,&quot;,
altSeparator = &quot;;&quot;,
space = &quot; &quot;,
formatted = false
}
-- Stringifies a list generically; probably shouldn't be used directly
function stringifyList(list, options)
-- Type-checks, defaults, and a shortcut
checkType(&quot;stringifyList&quot;, 1, list, &quot;table&quot;)
if #list == 0 then return nil end
checkType(&quot;stringifyList&quot;, 2, options, &quot;table&quot;, true)
options = options or {}
for k, v in pairs(stringifyListDefaultOptions) do
if options[k] == nil then options[k] = v end
end
local s = options.space
-- Format the list if requested
if options.formatted then list = mHatnote.formatPages(unpack(list)) end
-- Set the separator; if any item contains it, use the alternate separator
local separator = options.separator
--searches display text only
function searchDisp(t, f)
return string.find(string.sub(t, (string.find(t, '|') or 0) + 1), f)
end
for k, v in pairs(list) do
if searchDisp(v, separator) then
separator = options.altSeparator
break
end
end
-- Set the conjunction, apply Oxford comma, and force a comma if #1 has &quot;§&quot;
local conjunction = s .. options.conjunction .. s
if #list == 2 and searchDisp(list[1], &quot;§&quot;) or #list &gt; 2 then
conjunction = separator .. conjunction
end
-- Return the formatted string
return mw.text.listToText(list, separator .. s, conjunction)
end
--DRY function
function conjList (conj, list, fmt)
return stringifyList(list, {conjunction = conj, formatted = fmt})
end
-- Stringifies lists with &quot;and&quot; or &quot;or&quot;
function p.andList (...) return conjList(&quot;and&quot;, ...) end
function p.orList (...) return conjList(&quot;or&quot;, ...) end
--------------------------------------------------------------------------------
-- For see
--
-- Makes a &quot;For X, see [[Y]].&quot; list from raw parameters. Intended for the
-- {{about}} and {{redirect}} templates and their variants.
--------------------------------------------------------------------------------
--default options table used across the forSee family of functions
local forSeeDefaultOptions = {
andKeyword = 'and',
title = mw.title.getCurrentTitle().text,
otherText = 'other uses',
forSeeForm = 'For %s, see %s.'
}
--Collapses duplicate punctuation
function punctuationCollapse (text)
local replacements = {
[&quot;%.%.$&quot;] = &quot;.&quot;,
[&quot;%?%.$&quot;] = &quot;?&quot;,
[&quot;%!%.$&quot;] = &quot;!&quot;,
[&quot;%.%]%]%.$&quot;] = &quot;.]]&quot;,
[&quot;%?%]%]%.$&quot;] = &quot;?]]&quot;,
[&quot;%!%]%]%.$&quot;] = &quot;!]]&quot;
}
for k, v in pairs(replacements) do text = string.gsub(text, k, v) end
return text
end
-- Structures arguments into a table for stringification, &amp; options
function p.forSeeArgsToTable (args, from, options)
-- Type-checks and defaults
checkType(&quot;forSeeArgsToTable&quot;, 1, args, 'table')
checkType(&quot;forSeeArgsToTable&quot;, 2, from, 'number', true)
from = from or 1
checkType(&quot;forSeeArgsToTable&quot;, 3, options, 'table', true)
options = options or {}
for k, v in pairs(forSeeDefaultOptions) do
if options[k] == nil then options[k] = v end
end
-- maxArg's gotten manually because getArgs() and table.maxn aren't friends
local maxArg = 0
for k, v in pairs(args) do
if type(k) == 'number' and k &gt; maxArg then maxArg = k end
end
-- Structure the data out from the parameter list:
-- * forTable is the wrapper table, with forRow rows
-- * Rows are tables of a &quot;use&quot; string &amp; a &quot;pages&quot; table of pagename strings
-- * Blanks are left empty for defaulting elsewhere, but can terminate list
local forTable = {}
local i = from
local terminated = false
-- Loop to generate rows
repeat
-- New empty row
local forRow = {}
-- On blank use, assume list's ended &amp; break at end of this loop
forRow.use = args[i]
if not args[i] then terminated = true end
-- New empty list of pages
forRow.pages = {}
-- Insert first pages item if present
table.insert(forRow.pages, args[i + 1])
-- If the param after next is &quot;and&quot;, do inner loop to collect params
-- until the &quot;and&quot;'s stop. Blanks are ignored: &quot;1|and||and|3&quot; → {1, 3}
while args[i + 2] == options.andKeyword do
if args[i + 3] then
table.insert(forRow.pages, args[i + 3])
end
-- Increment to next &quot;and&quot;
i = i + 2
end
-- Increment to next use
i = i + 2
-- Append the row
table.insert(forTable, forRow)
until terminated or i &gt; maxArg
return forTable
end
-- Stringifies a table as formatted by forSeeArgsToTable
function p.forSeeTableToString (forSeeTable, options)
-- Type-checks and defaults
checkType(&quot;forSeeTableToString&quot;, 1, forSeeTable, &quot;table&quot;)
checkType(&quot;forSeeTableToString&quot;, 2, options, &quot;table&quot;, true)
options = options or {}
for k, v in pairs(forSeeDefaultOptions) do
if options[k] == nil then options[k] = v end
end
-- Stringify each for-see item into a list
local strList = {}
for k, v in pairs(forSeeTable) do
local useStr = v.use or options.otherText
local pagesStr = p.andList(v.pages, true) or
mHatnote._formatLink(mHatnote.disambiguate(options.title))
local forSeeStr = string.format(options.forSeeForm, useStr, pagesStr)
forSeeStr = punctuationCollapse(forSeeStr)
table.insert(strList, forSeeStr)
end
-- Return the concatenated list
return table.concat(strList, ' ')
end
-- Produces a &quot;For X, see [[Y]]&quot; string from arguments. Expects index gaps
-- but not blank/whitespace values. Ignores named args and args &lt; &quot;from&quot;.
function p._forSee (args, from, options)
local forSeeTable = p.forSeeArgsToTable(args, from, options)
return p.forSeeTableToString(forSeeTable, options)
end
-- As _forSee, but uses the frame.
function p.forSee (frame, from, options)
mArguments = require('Module:Arguments')
return p._forSee(mArguments.getArgs(frame), from, options)
end
return p</text>
<sha1>9xow4swjoccg1c9n9r6xhfvxgci3xr1</sha1>
</revision>
</page>
<page>
<title>Module:Hms</title>
<ns>828</ns>
<id>54107625</id>
<revision>
<id>804708734</id>
<parentid>782383690</parentid>
<timestamp>2017-10-10T17:19:53Z</timestamp>
<contributor>
<username>MusikAnimal</username>
<id>14882394</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Module:Hms]]&quot;: [[WP:High-risk templates|High-risk module]] ([Edit=Require template editor access] (indefinite))</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="3119">local p = {}
function p._error( error_str )
return '[[Category:Duration with input error]]&lt;strong class=&quot;error&quot;&gt;Error in Module:Hms: ' .. error_str .. '&lt;/strong&gt;'
end
function p.main(frame)
local args = require('Module:Arguments').getArgs(frame, {wrappers = {'Template:Duration', 'Template:Duration/sandbox'}})
local tmp = args.duration or args[1] or ''
local duration = {}
if tonumber(args[1]) or args[2] or args[3] then
if args[4] then return p._error('Parameter number 4 should not be specified') end
if not args[1] or args[1] == '' then
duration = {args[2] or 0, args[3] or 0}
else
duration = {args[1], args[2] or 0, args[3] or 0}
end
tmp = nil
for k, v in ipairs(duration) do
duration[k] = tonumber(v)
if not duration[k] then return p._error('Invalid values') end
end
elseif args.h or args.m or args.s then
if not args.h or args.h == '' then
duration = {args.m or 0, args.s or 0}
else
duration = {args.h, args.m or 0, args.s or 0}
end
tmp = nil
for k, v in ipairs(duration) do
duration[k] = tonumber(v)
if not duration[k] then return p._error('Invalid values') end
end
else
if mw.ustring.find(tmp, 'class=&quot;duration&quot;', 1, yes) then return tmp end -- if there is already a microformat, don't do anything
duration = mw.text.split(mw.ustring.match(tmp, '%d*:?%d+:%d+%.?%d*') or '', ':') -- split into table
if duration[4] then return p._error('Maximum of two colons allowed') end
for k, v in ipairs(duration) do duration[k] = tonumber(v) or 0 end -- convert values to numbers
end
if duration[3] then
if (duration[1] + duration[2] + duration[3]) == 0 then return nil end
if (duration[1] ~= math.ceil(duration[1])) or (duration[2] ~= math.ceil(duration[2])) then return p._error('Hours and minutes values must be integers') end
if duration[3] &gt;= 60 then return p._error('Seconds value must be less than 60') end
if duration[2] &gt;= 60 then return p._error('Minutes value must be less than 60 if hours value is specified') end
if duration[2] &lt; 10 then duration[2] = '0'..duration[2] end -- zero padding
if duration[3] &lt; 10 then duration[3] = '0'..duration[3] end
duration = '&lt;span class=&quot;duration&quot;&gt;&lt;span class=&quot;h&quot;&gt;' .. duration[1] .. '&lt;/span&gt;:&lt;span class=&quot;min&quot;&gt;' .. duration[2] .. '&lt;/span&gt;:&lt;span class=&quot;s&quot;&gt;' .. duration[3] .. '&lt;/span&gt;&lt;/span&gt;'
elseif duration[2] then
if (duration[1] + duration[2]) == 0 then return nil end
if duration[1] ~= math.ceil(duration[1]) then return p._error('Hours and minutes values must be integers') end
if duration[2] &gt;= 60 then return p._error('Seconds value must be less than 60') end
if duration[2] &lt; 10 then duration[2] = '0'..duration[2] end -- zero padding
duration = '&lt;span class=&quot;duration&quot;&gt;&lt;span class=&quot;min&quot;&gt;' .. duration[1] .. '&lt;/span&gt;:&lt;span class=&quot;s&quot;&gt;' .. duration[2] .. '&lt;/span&gt;&lt;/span&gt;'
else
duration = ''
end
if tmp and tmp ~= '' then
if duration ~= '' then tmp = mw.ustring.gsub(tmp, '%d*:?%d+:%d+%.?%d*', duration, 1) else tmp = tmp .. ' [[Category:Duration without hAudio microformat]]' end
else
if duration ~= '' then tmp = duration end
end
return tmp
end
return p</text>
<sha1>g5z9f4rj31p9c8vovwnw6kqe02amw7k</sha1>
</revision>
</page>
<page>
<title>Template:8ball</title>
<ns>10</ns>
<id>21487009</id>
<revision>
<id>721407027</id>
<parentid>721351031</parentid>
<timestamp>2016-05-21T17:04:42Z</timestamp>
<contributor>
<username>Andy M. Wang</username>
<id>516856</id>
</contributor>
<minor/>
<comment>Reverted edits by [[Special:Contribs/Andy M. Wang|Andy M. Wang]] ([[User talk:Andy M. Wang|talk]]) to last version by EoRdE6</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="130">[[File:8 ball icon.svg|17px]]&amp;nbsp;'''The {{{1|CheckUser}}} Magic 8-Ball says:''' {{{2|}}}&lt;noinclude&gt;{{Documentation}}&lt;/noinclude&gt;</text>
<sha1>i0egmeec68uzy1094lq4zqk34pat202</sha1>
</revision>
</page>
<page>
<title>Template:A note</title>
<ns>10</ns>
<id>37551318</id>
<revision>
<id>782462799</id>
<parentid>609665782</parentid>
<timestamp>2017-05-27T02:06:44Z</timestamp>
<contributor>
<username>Matt Fitzpatrick</username>
<id>291848</id>
</contributor>
<minor/>
<comment>adjacent text {{{1}}} or &quot;Note&quot; is sufficient alt text</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="226">[[File:Pictogram voting info.svg|16px|link=|alt=]]&amp;nbsp;'''{{{{{|safesubst:}}}#if:{{{1|}}}|{{{1}}}|Note}}:'''&lt;noinclude&gt;
{{Documentation}}
&lt;!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES TO THE /doc SUBPAGE, THANKS --&gt;
&lt;/noinclude&gt;</text>
<sha1>08ya9uua0ns4yyj2up247vqe9j5pzg0</sha1>
</revision>
</page>
<page>
<title>Template:Accepted</title>
<ns>10</ns>
<id>10405419</id>
<revision>
<id>810134312</id>
<parentid>793140967</parentid>
<timestamp>2017-11-13T14:55:08Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Accepted]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="206">[[Image:Symbol confirmed.svg|20px|link=|alt=]] '''{{{1|Accepted}}}'''&lt;noinclude&gt;{{documentation|content={{Template:Resolved mark/doc|type=checkmark}}}}
&lt;!--Categories go on the /doc subpage --&gt;
&lt;/noinclude&gt;</text>
<sha1>l5v9sry0akhc12uf1rrggxs4g4yam2b</sha1>
</revision>
</page>
<page>
<title>Template:Added</title>
<ns>10</ns>
<id>19972595</id>
<revision>
<id>782449450</id>
<parentid>721406854</parentid>
<timestamp>2017-05-27T00:16:50Z</timestamp>
<contributor>
<username>Matt Fitzpatrick</username>
<id>291848</id>
</contributor>
<minor/>
<comment>minimal alt attribute for linked GFDL decorative image</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="147">[[File:Crystal Clear action edit add.png|16px|alt=plus]] '''{{{{{|safesubst:}}}ucfirst:{{{1|Added}}}}}'''&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>38ueoxtu2ezvsv1bmatvvvdu5ifherp</sha1>
</revision>
</page>
<page>
<title>Template:Administrator note</title>
<ns>10</ns>
<id>13132168</id>
<revision>
<id>579820581</id>
<parentid>544687475</parentid>
<timestamp>2013-11-02T02:31:10Z</timestamp>
<contributor>
<username>Fuhghettaboutit</username>
<id>665998</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:Administrator note: Enable access by template editors ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="178">{{{{{|safesubst:}}}A note|Administrator note}}&lt;noinclude&gt;
{{Documentation}}
&lt;!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --&gt;
&lt;/noinclude&gt;</text>
<sha1>8kfwwr9ebzxtmnzldwllwcta7rs32vs</sha1>
</revision>
</page>
<page>
<title>Template:Agree</title>
<ns>10</ns>
<id>20499255</id>
<revision>
<id>810134364</id>
<parentid>804536370</parentid>
<timestamp>2017-11-13T14:55:35Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Agree]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="663">[[Image:Symbol confirmed.svg|20px|link=|alt=]] '''{{{1|Agree}}}''' &lt;noinclude&gt;{{documentation|content={{Template:Resolved mark/doc |type=checkmark|where=at [[WP:Requests for adminship]], [[WP:In the news/Candidates]], [[WP:Featured article candidates]], various [[WP:Noticeboards]] and other formal processes; it should {{em|not}} be used in [[WP:RFC]]s, [[WP:XFD]]s, or other consensus discussions, which are not votes|novoting=y|para=The template accepts a single parameter (unnamed or given as {{para|1}}) that changes the word &quot;Agree&quot; to the text specified in the parameter, e.g. &quot;Tentatively agree&quot;.}}}}
&lt;!--Categories go on the /doc subpage --&gt;
&lt;/noinclude&gt;</text>
<sha1>acj8n6o5umlbzfl6lwtktie2tnx9yh5</sha1>
</revision>
</page>
<page>
<title>Template:Already declined</title>
<ns>10</ns>
<id>28602810</id>
<revision>
<id>810136236</id>
<parentid>782407398</parentid>
<timestamp>2017-11-13T15:08:32Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Already declined]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="399">[[File:Pictogram voting delete.svg|20px|link=|alt=]] '''{{ucfirst:{{{1|Already declined}}}}}'''&lt;!--template:already declined--&gt;&lt;noinclude&gt;{{documentation|content=
==Usage==
:You may either use {{tlx|Already declined}} by itself for the default message or you may add a custom message as an optional parameter.
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>3rkyql00ubhknd77984lqyl77ikwsx4</sha1>
</revision>
</page>
<page>
<title>Template:Already done</title>
<ns>10</ns>
<id>17589005</id>
<revision>
<id>810136780</id>
<parentid>776609908</parentid>
<timestamp>2017-11-13T15:11:37Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Already done]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="132">[[File:U2713.svg|18px|link=|alt=]] '''{{{{{|safesubst:}}}ucfirst:{{{1|Already done}}}}}'''&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>55st7n7tqd1r73ch0nma7duf8n3zbix</sha1>
</revision>
</page>
<page>
<title>Template:Approved</title>
<ns>10</ns>
<id>17839180</id>
<revision>
<id>776610253</id>
<parentid>776592119</parentid>
<timestamp>2017-04-22T03:13:57Z</timestamp>
<contributor>
<username>Ahecht</username>
<id>2016996</id>
</contributor>
<comment>Per [[Wikipedia:Alternative text for images#Examples]], the icon is purely decorative and does not need alt text.</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="137">{{{{{|safesubst:}}}ns0||[[Image:Symbol confirmed.svg|20px|link=|alt=]] '''{{{1|Approved}}}'''}}&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>du4dxb7ycmif600c0j6138stgxprrg2</sha1>
</revision>
</page>
<page>
<title>Template:Archive now</title>
<ns>10</ns>
<id>52869973</id>
<revision>
<id>810204876</id>
<parentid>759995331</parentid>
<timestamp>2017-11-13T22:47:53Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Archive now]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="142">[[File:Pictogram voting comment.svg|20px|link=|alt=]] ''{{grey|Requesting immediate archiving...}}''&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>7w6qtp15yqcfqt2nz3l20590ed2mqtq</sha1>
</revision>
</page>
<page>
<title>Template:Autp</title>
<ns>10</ns>
<id>21241169</id>
<revision>
<id>810135401</id>
<parentid>782406926</parentid>
<timestamp>2017-11-13T15:03:15Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Autp]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="240">:[[File:Yes check.svg|20px|link=|alt=]] '''{{ucfirst:{{{1|Answered on user's talk page.}}}}}'''&lt;!--template:autp--&gt;&lt;noinclude&gt;
{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>84i55hkzybpbowiduykm0gy1qj1hcx1</sha1>
</revision>
</page>
<page>
<title>Template:Await</title>
<ns>10</ns>
<id>35323448</id>
<revision>
<id>810204137</id>
<parentid>549072838</parentid>
<timestamp>2017-11-13T22:42:28Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Await]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="178">[[File:Pictogram voting wait.svg|{{#if:{{{1|}}}|{{{1}}}|20}}px|alt=Clock|link=]]&lt;span style=&quot;display:none&quot;&gt;C&lt;/span&gt;&lt;!--template:await--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>ta3o4rbwz4dhg4gcg2vxlmls9gg21fc</sha1>
</revision>
</page>
<page>
<title>Template:Awaiting</title>
<ns>10</ns>
<id>32157021</id>
<revision>
<id>810206584</id>
<parentid>635522941</parentid>
<timestamp>2017-11-13T23:00:12Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Awaiting]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="110">&lt;b style=&quot;color: #FB1; font-size: 1.8em;&quot;&gt;ω&lt;/b&gt;&amp;nbsp;'''Awaiting'''&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>s50tjo3flv4hw0fian8e601xytcjfv9</sha1>
</revision>
</page>
<page>
<title>Template:Awaitingadmin</title>
<ns>10</ns>
<id>31037622</id>
<revision>
<id>810204085</id>
<parentid>782463167</parentid>
<timestamp>2017-11-13T22:42:08Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Awaitingadmin]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="223">[[File:Pictogram voting wait violet.svg|20px|link=|alt=]]&amp;nbsp;'''Awaiting administrative action'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>q5zuq5fyt62pf1bd9uckxhfpbun227d</sha1>
</revision>
</page>
<page>
<title>Template:Aye/doc</title>
<ns>10</ns>
<id>23601748</id>
<revision>
<id>626487013</id>
<parentid>621424367</parentid>
<timestamp>2014-09-21T15:19:16Z</timestamp>
<contributor>
<username>ViperSnake151</username>
<id>403055</id>
</contributor>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="428">{{Documentation subpage}}
&lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&gt;
A simple template to be used in various to-do lists for easier organization of solved and unsolved issues.
Per [[MOS:ICONS]], it should not be used in mainspace.
===See also===
{{Check mark templates}}
{{Done/See also}}
&lt;includeonly&gt;
[[Category:Checkmark insertion templates]]
[[Category:Resolution templates]]
&lt;/includeonly&gt;</text>
<sha1>6knk7dx2kaijmdtc8371yb46oys0wrx</sha1>
</revision>
</page>
<page>
<title>Template:Bang</title>
<ns>10</ns>
<id>28100876</id>
<revision>
<id>810204829</id>
<parentid>782462172</parentid>
<timestamp>2017-11-13T22:47:28Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Bang]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="142">[[Image:Symbol opinion vote.svg|20px|link=|alt=exclamation mark]]&lt;span style=&quot;display:none&quot;&gt;-&lt;/span&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>4z3ue16bgvkwdl3qe56l14rjffd3st1</sha1>
</revision>
</page>
<page>
<title>Template:Behaviour</title>
<ns>10</ns>
<id>42832413</id>
<revision>
<id>810180360</id>
<parentid>723451781</parentid>
<timestamp>2017-11-13T19:58:45Z</timestamp>
<contributor>
<username>Ymblanter</username>
<id>14596827</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Behaviour]]&quot;: [[WP:High-risk templates|Highly visible template]]: request at [[WP:RFPP]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="459">[[File:Symbol rename vote.svg|19px|link=|alt=]]&amp;nbsp;'''Behavioural evidence needs evaluation{{#if:{{{1|}}}|&amp;nbsp;{{{1}}}:|}}'''&lt;noinclude&gt;{{Documentation|content=&lt;!----&gt;
{{shortcut|Template:Behav|Template:Behavior}}
{{tlx|behav}} produces:
:{{behav}}
{{tlx|behav|2=before blocks are issued}} produces:
:{{behav|before blocks are issued}}
==See also==
{{Done/See also}}
}}
[[Category:Image with comment templates]]
[[Category:SPI templates]]&lt;/noinclude&gt;</text>
<sha1>kd80d91a5sht03w0do6wr0gc24xi71g</sha1>
</revision>
</page>
<page>
<title>Template:Blockedandtagged</title>
<ns>10</ns>
<id>42963901</id>
<revision>
<id>804536421</id>
<parentid>754804622</parentid>
<timestamp>2017-10-09T17:20:32Z</timestamp>
<contributor>
<username>MusikAnimal</username>
<id>14882394</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Blockedandtagged]]&quot;: [[WP:High-risk templates|Highly visible template]]; 1,000+ transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="118">[[Image:Artículo bueno-blue.svg|16px|link=|alt=]]&amp;nbsp;'''{{{1|Blocked and tagged}}}'''&lt;noinclude&gt;{{doc}}&lt;/noinclude&gt;</text>
<sha1>7qqy1wve5ex312uxdl8piow3buzunh7</sha1>
</revision>
</page>
<page>
<title>Template:Blockedtaggedclosing</title>
<ns>10</ns>
<id>40371760</id>
<revision>
<id>810134982</id>
<parentid>695540997</parentid>
<timestamp>2017-11-13T15:00:22Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Blockedtaggedclosing]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="354">[[File:Pictogram resolved.svg|18px|link=|alt=]] {{{1|All}}} sock{{#switch:{{{1|}}}|1|one|One= |#default=s}} blocked and tagged. Closing case. &lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Wikipedia administration templates]]
[[Category:Image with comment templates|{{PAGENAME}}]]
[[Category:SPI templates]]}}
&lt;/noinclude&gt;</text>
<sha1>tmwxur2krsxx0nuoaxqwhmb64hgessx</sha1>
</revision>
</page>
<page>
<title>Template:Blockedwithouttags</title>
<ns>10</ns>
<id>54742968</id>
<revision>
<id>810202039</id>
<parentid>793709099</parentid>
<timestamp>2017-11-13T22:27:44Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Blockedwithouttags]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="136">[[File:Candidato-Artículo bueno-blue.svg|16px|link=|alt=]] '''{{{1|Blocked without tags}}}'''&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>5c86li6iwuo0kp8296g43x70eriyrus</sha1>
</revision>
</page>
<page>
<title>Template:Border-radius</title>
<ns>10</ns>
<id>28991697</id>
<revision>
<id>638540970</id>
<parentid>579826979</parentid>
<timestamp>2014-12-17T20:10:19Z</timestamp>
<contributor>
<username>Edokter</username>
<id>1624037</id>
</contributor>
<minor/>
<comment>redundant</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="165">&lt;includeonly&gt;-moz-border-radius: {{{1|8px}}}; -webkit-border-radius: {{{1|8px}}}; border-radius: {{{1|8px}}};&lt;/includeonly&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>doty6ybjg4ar0nlzdjhg0tvwez3y6d3</sha1>
</revision>
</page>
<page>
<title>Template:BotComment</title>
<ns>10</ns>
<id>8501268</id>
<revision>
<id>810206624</id>
<parentid>723450793</parentid>
<timestamp>2017-11-13T23:00:30Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:BotComment]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="215">[[File:Symbol dot dot dot.svg|20px|alt=|link=]]&amp;nbsp;'''Comment.'''&lt;noinclude&gt;{{documentation|content=
{{BAG Admin Tools}}
==See also==
{{Done/See also}}
[[Category:Wikipedia bot-related templates]]
}}&lt;/noinclude&gt;</text>
<sha1>e9asamqnlzlfqpz5pntnnilimdvoey5</sha1>
</revision>
</page>
<page>
<title>Template:BugFixed</title>
<ns>10</ns>
<id>30058926</id>
<revision>
<id>813905598</id>
<parentid>810206777</parentid>
<timestamp>2017-12-05T21:44:02Z</timestamp>
<contributor>
<username>Hellknowz</username>
<id>9790634</id>
</contributor>
<comment>expand doc</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="1017">[[File:Green bug and broom.svg|28px|alt=|link=]] &amp;nbsp; {{#switch:{{{1|}}}
| NAB = '''Not a bug'''{{#if:{{{2|}}}| &amp;nbsp; ({{{2}}})}}
| onetime = '''One-time bug'''{{#if:{{{2|}}}| &amp;nbsp; ({{{2}}})}}
| dupe = '''Duplicate bug report'''{{#if:{{{2|}}}| &amp;nbsp; ({{{2}}})}}
| cannot = '''Rare unfixable corner-case'''{{#if:{{{2|}}}| &amp;nbsp; ({{{2}}})}}
| = '''Bug fixed'''
| #default = '''Bug fixed''' &amp;nbsp; ({{{1}}})
}}&lt;noinclude&gt;{{documentation|content=
==Usage==
*&lt;tt&gt;&lt;nowiki&gt;{{BugFixed}}&lt;/nowiki&gt;&lt;/tt&gt; → {{BugFixed}}
*&lt;tt&gt;&lt;nowiki&gt;{{BugFixed|NAB}}&lt;/nowiki&gt;&lt;/tt&gt; → {{BugFixed|NAB}}
*&lt;tt&gt;&lt;nowiki&gt;{{BugFixed|onetime}}&lt;/nowiki&gt;&lt;/tt&gt; → {{BugFixed|onetime}}
*&lt;tt&gt;&lt;nowiki&gt;{{BugFixed|dupe}}&lt;/nowiki&gt;&lt;/tt&gt; → {{BugFixed|dupe}}
*&lt;tt&gt;&lt;nowiki&gt;{{BugFixed|cannot}}&lt;/nowiki&gt;&lt;/tt&gt; → {{BugFixed|cannot}}
*&lt;tt&gt;&lt;nowiki&gt;{{BugFixed|custom text}}&lt;/nowiki&gt;&lt;/tt&gt; → {{BugFixed|custom text}}
==See also==
{{Done/See also}}
[[Category:Image with comment templates|{{PAGENAME}}]]
[[Category:Wikipedia article alerts|Τ]]
}}&lt;/noinclude&gt;</text>
<sha1>pnqi5z2f8380tosggdydbi33frcpzkz</sha1>
</revision>
</page>
<page>
<title>Template:Bug acknowledged</title>
<ns>10</ns>
<id>12007678</id>
<revision>
<id>810204961</id>
<parentid>582167844</parentid>
<timestamp>2017-11-13T22:48:34Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Bug acknowledged]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="166">&lt;span style=&quot;background-color: Gold&quot;&gt;[[Image:Pictogram voting comment.svg|18px|link=|alt=|bottom]] '''Acknowledged'''&lt;/span&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>l065m1xtnmkr5klv3rm2n7nxsc4a1qj</sha1>
</revision>
</page>
<page>
<title>Template:Bug assigned</title>
<ns>10</ns>
<id>12007723</id>
<revision>
<id>810204712</id>
<parentid>621846140</parentid>
<timestamp>2017-11-13T22:46:30Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Bug assigned]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="168">&lt;span style=&quot;background-color: LightSteelBlue&quot;&gt;[[File:Pictogram voting info.svg|18px|link=|alt=|bottom]] '''Assigned'''&lt;/span&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>19usz50zpvw78cxwrceupaevkbk9erk</sha1>
</revision>
</page>
<page>
<title>Template:Bug closed</title>
<ns>10</ns>
<id>12007771</id>
<revision>
<id>810203484</id>
<parentid>582168037</parentid>
<timestamp>2017-11-13T22:37:35Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Bug closed]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="165">&lt;span style=&quot;background-color: Gainsboro&quot;&gt;[[Image:Pictogram voting neutral.svg|18px|link=|alt=|bottom]] '''Closed'''&lt;/span&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>t7kooyg6kteos4hi3nu1ducuv7mgcon</sha1>
</revision>
</page>
<page>
<title>Template:Bug confirmed</title>
<ns>10</ns>
<id>12007691</id>
<revision>
<id>810204999</id>
<parentid>582168192</parentid>
<timestamp>2017-11-13T22:48:52Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Bug confirmed]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="164">&lt;span style=&quot;background-color: Khaki&quot;&gt;[[Image:Pictogram voting comment.svg|18px|link=|alt=|bottom]] '''Confirmed'''&lt;/span&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>7ds9l7d01gvcbbssl5atf9bsg9sbii9</sha1>
</revision>
</page>
<page>
<title>Template:Bug dupe</title>
<ns>10</ns>
<id>16728548</id>
<revision>
<id>810206668</id>
<parentid>782447705</parentid>
<timestamp>2017-11-13T23:00:51Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Bug dupe]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="107">[[File:Symbol redirect vote2.svg|18px|alt=arrow]]&amp;nbsp;'''Dupe'''&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>szxxf4ihd86a8n81niiz88tqh56e2l1</sha1>
</revision>
</page>
<page>
<title>Template:Bug feedback</title>
<ns>10</ns>
<id>12007622</id>
<revision>
<id>810205904</id>
<parentid>717161016</parentid>
<timestamp>2017-11-13T22:55:20Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Bug feedback]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="172">&lt;span style=&quot;background-color: #fac&quot;&gt;[[Image:Pictogram voting question.svg|18px|link=|alt=|bottom]] '''Feedback required'''&lt;/span&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>qtppxf24cbav42qmxkkjtvrlvt6k5lf</sha1>
</revision>
</page>
<page>
<title>Template:Bug new</title>
<ns>10</ns>
<id>12007522</id>
<revision>
<id>810203540</id>
<parentid>717161174</parentid>
<timestamp>2017-11-13T22:37:55Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Bug new]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="157">&lt;span style=&quot;background-color: #fb8&quot;&gt;[[Image:Pictogram voting neutral.svg|18px|link=|alt=|bottom]] '''New'''&lt;/span&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>0y0aw45qhsxrnpb0uznpsw4ebizhfsg</sha1>
</revision>
</page>
<page>
<title>Template:Bug pending</title>
<ns>10</ns>
<id>31569334</id>
<revision>
<id>810201911</id>
<parentid>688581109</parentid>
<timestamp>2017-11-13T22:26:52Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Bug pending]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="187">&lt;span style=&quot;background-color: LightGreen; color: Fuchsia&quot;&gt;[[File:Pictogram voting keep.svg|18px|link=|alt=|bottom]] '''{{{1|Pending}}}'''&lt;/span&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>geqca91773nzagaqogm8ql557f68weq</sha1>
</revision>
</page>
<page>
<title>Template:Bug resolved</title>
<ns>10</ns>
<id>12007756</id>
<revision>
<id>810201981</id>
<parentid>621835906</parentid>
<timestamp>2017-11-13T22:27:21Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Bug resolved]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="164">&lt;span style=&quot;background-color: LightGreen&quot;&gt;[[File:Pictogram voting keep.svg|18px|link=|alt=|bottom]] '''Resolved'''&lt;/span&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>i0jyvut2v3zh3enwyhim4p343gmmcy8</sha1>
</revision>
</page>
<page>
<title>Template:Bulb</title>
<ns>10</ns>
<id>35323363</id>
<revision>
<id>804536428</id>
<parentid>776602925</parentid>
<timestamp>2017-10-09T17:20:32Z</timestamp>
<contributor>
<username>MusikAnimal</username>
<id>14882394</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Bulb]]&quot;: [[WP:High-risk templates|Highly visible template]]; 1,000+ transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="158">[[File:Bulbgraph.svg|{{{1|20}}}px|alt=Light bulb icon|link=]]&lt;span style=&quot;display:none&quot;&gt;B&lt;/span&gt;&lt;!--template:bulb--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>8v5j7hsmnkx88i27yqvoj4vv6zt2qde</sha1>
</revision>
</page>
<page>
<title>Template:Bulb2</title>
<ns>10</ns>
<id>39007849</id>
<revision>
<id>810205964</id>
<parentid>548601116</parentid>
<timestamp>2017-11-13T22:55:43Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Bulb2]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="162">[[File:BulbgraphOnOff.gif|{{{1|20}}}px|alt=Flashing bulb|link=]]&lt;span style=&quot;display:none&quot;&gt;B&lt;/span&gt;&lt;!--template:bulb2--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>jxk29sa4yvorr7wp877dx8ihvzvnas2</sha1>
</revision>
</page>
<page>
<title>Template:Bureaucrat note</title>
<ns>10</ns>
<id>12263157</id>
<revision>
<id>530929187</id>
<parentid>530929128</parentid>
<timestamp>2013-01-02T15:29:26Z</timestamp>
<contributor>
<username>MSGJ</username>
<id>42630</id>
</contributor>
<minor/>
<comment>MSGJ moved page [[Template:Bureaucrat-note]] to [[Template:Bureaucrat note]]: no need for hyphen</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="134">[[File:Pictogram voting comment.svg|link=|alt=|20px]] '''Bureaucrat note{{{1|}}}{{{2|:}}}'''&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>rgtuywn6j68p8lpvbxizm8k9bn563gs</sha1>
</revision>
</page>
<page>
<title>Template:CUnote</title>
<ns>10</ns>
<id>27442000</id>
<revision>
<id>810204928</id>
<parentid>621688867</parentid>
<timestamp>2017-11-13T22:48:17Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:CUnote]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="122">[[File:Pictogram voting comment.svg|link=|alt=|20px]]&amp;nbsp;'''CheckUser note:'''&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>hjg0hg6ph8ez6u7khh88sh1p1ai4cu3</sha1>
</revision>
</page>
<page>
<title>Template:Cancelled</title>
<ns>10</ns>
<id>28929396</id>
<revision>
<id>810136178</id>
<parentid>782320276</parentid>
<timestamp>2017-11-13T15:08:14Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Cancelled]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="144">[[File:Cancelled cross.svg|15px|link=|alt=]] '''Cancelled'''&lt;noinclude&gt;
{{documentation}}
[[Category:Image with comment templates]]
&lt;/noinclude&gt;</text>
<sha1>mfh8tat726djfbx6wx0augh6cmqdc1v</sha1>
</revision>
</page>
<page>
<title>Template:Check mark</title>
<ns>10</ns>
<id>5296380</id>
<revision>
<id>810135039</id>
<parentid>610923171</parentid>
<timestamp>2017-11-13T15:00:48Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Check mark]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require administrator access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="467">{{{{{|safesubst:}}}#ifexist:media:{{{{{|safesubst:}}}lc:{{{color|{{{colour}}}}}}}} check.svg
|[[File:{{{{{|safesubst:}}}lc:{{{color|{{{colour}}}}}}}} check.svg|{{{{{|safesubst:}}}#if:{{{1|}}}|{{{1}}}|23}}px|Check mark|alt={{{color|{{{colour}}}}}} tick|link=]]
|[[File:Yes check.svg|{{{{{|safesubst:}}}#if:{{{1|}}}|{{{1}}}|23}}px|Check mark|alt=Green tick|link=]]}}&lt;span style=&quot;display:none&quot;&gt;Y&lt;/span&gt;&lt;!--template:check mark--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>ryit1asawynd4l39z9a47b65q1pl88g</sha1>
</revision>
</page>
<page>
<title>Template:Check mark-n</title>
<ns>10</ns>
<id>5347293</id>
<revision>
<id>810136852</id>
<parentid>558575872</parentid>
<timestamp>2017-11-13T15:11:59Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Check mark-n]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="144">[[Image:Check mark 23x20 04.svg|23x20px|Check mark|alt=Yes|link=]]&lt;SPAN STYLE=&quot;display:none&quot;&gt;Y&lt;/SPAN&gt;&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>spd536uj0m3wo2n3hlsxd8dksyrypws</sha1>
</revision>
</page>
<page>
<title>Template:Check mark templates</title>
<ns>10</ns>
<id>10104025</id>
<revision>
<id>820678019</id>
<parentid>755414154</parentid>
<timestamp>2018-01-16T00:06:08Z</timestamp>
<contributor>
<username>GKFX</username>
<id>14918984</id>
</contributor>
<comment>Line out {{xed box}} with {{checked box}}</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="1280">{| class=&quot;wikitable&quot; align=&quot;center&quot; style=&quot;width:60%;&quot;
|-
! colspan=4 style=&quot;background-color:black; color:white;&quot;| {{Navbar-header|Check and cross marks|Check mark templates|fontcolor=white}}
|-
! colspan=2 width=&quot;50%&quot;| Check marks !!colspan=2| Cross marks
|-
| {{tl|check mark}} || {{Check mark}} || {{tl|x mark big}} || {{X mark big}}
|-
| {{tl|tick}} = {{tlx|tick|20}} || {{Tick}} || {{tl|cross}} = {{tlx|cross|20}} || {{Cross}}
|-
| {{tl|aye}} || {{aye}} || {{tl|nay}} || {{nay}}
|-
| {{tl|ya}} || {{Ya}} || {{tl|na}} || {{Na}}
|-
| {{tl|check mark-n}} || {{Check mark-n}} || {{tl|x mark-n}} || {{X mark-n}}
|-
| {{tl|y&amp;}} || {{Y&amp;}} || {{tl|n&amp;}} || {{N&amp;}}
|-
| {{tl|Chk}} || {{Chk}}
|-
| {{tl|checked box}} || {{Checked box}}
| {{tl|xed box}} || {{Xed box}}
|-
|-
! colspan=4 | Other marks
|-
| {{tl|n.b.}} || {{n.b.}} || {{tl|hmmm}} || {{hmmm}}
|-
| {{tl|bang}} || {{bang}} || ||
|-
|colspan=4| ''Most of the templates above are fully sortable in a [[Help:Sorting|&lt;code&gt;&lt;nowiki&gt;class=&quot;sortable&quot;&lt;/nowiki&gt;&lt;/code&gt; table]] (each check mark is assigned an undisplayed &quot;Y&quot; and each cross mark an undisplayed &quot;N&quot;).''
|-
|}&lt;noinclude&gt;
[[Category:Checkmark insertion templates| ]]
[[Category:Documentation see also templates]]
[[Category:Wikipedia utility templates]]
&lt;/noinclude&gt;</text>
<sha1>fh35oxjuc76093bqyg5znrujaqc50wh</sha1>
</revision>
</page>
<page>
<title>Template:Checked</title>
<ns>10</ns>
<id>15193738</id>
<revision>
<id>810136904</id>
<parentid>804536423</parentid>
<timestamp>2017-11-13T15:12:16Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Checked]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="173">[[File:Check mark 23x20 02.svg|12px|alt=|link=]]&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Checkmark insertion templates]]
}}&lt;/noinclude&gt;</text>
<sha1>fubs521kbn03gneoy2k8ivht43azqib</sha1>
</revision>
</page>
<page>
<title>Template:Checked2</title>
<ns>10</ns>
<id>17839270</id>
<revision>
<id>810134395</id>
<parentid>622836698</parentid>
<timestamp>2017-11-13T14:55:52Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Checked2]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="444">[[Image:Symbol confirmed.svg|20px|link=|alt=]] '''{{{1|Checked}}}'''&lt;noinclude&gt;{{documentation|content={{Template:Resolved mark/doc|type=checkmark|where=at [[Wikipedia:Copyright problems]]|para=The template accepts a single parameter (unnamed or given as {{para|1}}) that changes the word &quot;Checked&quot; to the text specified in the parameter, e.g. &quot;Checked to the extent possible&quot;.|admin=y}}}}
&lt;!--Categories go on the /doc subpage --&gt;
&lt;/noinclude&gt;</text>
<sha1>mwbvoqtkz6ae8ztkilipf3ayce552o5</sha1>
</revision>
</page>
<page>
<title>Template:Checked box</title>
<ns>10</ns>
<id>41136664</id>
<revision>
<id>810136937</id>
<parentid>782407820</parentid>
<timestamp>2017-11-13T15:12:25Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Checked box]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="141">&lt;noinclude&gt;{{confused|Template:Checkbox}}&lt;/noinclude&gt;
[[File:Check mark.svg|alt=checked box|link=]]&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>6st5mrz2w882pib8g2mtslevesjxal9</sha1>
</revision>
</page>
<page>
<title>Template:Checking</title>
<ns>10</ns>
<id>21538851</id>
<revision>
<id>810204587</id>
<parentid>621680005</parentid>
<timestamp>2017-11-13T22:45:36Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Checking]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="200">[[File:Pictogram voting wait blue.svg|16px|link=|alt=]] '''Checking...'''&lt;noinclude&gt;
{{Documentation}}
&lt;!--Please add this template's categories to the /doc subpage, not here - thanks!--&gt;
&lt;/noinclude&gt;</text>
<sha1>0qioh6zxqy78s6rq1ut04ibqqnk0he6</sha1>
</revision>
</page>
<page>
<title>Template:Chk</title>
<ns>10</ns>
<id>5203366</id>
<revision>
<id>747162201</id>
<parentid>716048359</parentid>
<timestamp>2016-10-31T20:05:47Z</timestamp>
<contributor>
<username>Frietjes</username>
<id>13791031</id>
</contributor>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="96">&lt;big&gt;✓&lt;/big&gt;&lt;noinclude&gt;
{{Check mark templates}}
[[Category:Typing-aid templates]]&lt;/noinclude&gt;</text>
<sha1>ak20c6jyg7kr8j7wup22tbtmj2kvl6p</sha1>
</revision>
</page>
<page>
<title>Template:Clerk-Note</title>
<ns>10</ns>
<id>5416332</id>
<revision>
<id>609665791</id>
<parentid>579832183</parentid>
<timestamp>2014-05-22T12:47:50Z</timestamp>
<contributor>
<username>AGK</username>
<id>1000453</id>
</contributor>
<comment>fixed non-breaking space in template</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="129">[[File:Symbol comment vote.svg|16px|link=|alt=]]&amp;nbsp;'''Clerk note{{{1|}}}{{{2|:}}}'''&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>ldcpkk8wtfaxb8ppmc4wvrwib05y1bc</sha1>
</revision>
</page>
<page>
<title>Template:Clerk-Note-bot</title>
<ns>10</ns>
<id>44594291</id>
<revision>
<id>810205389</id>
<parentid>782462657</parentid>
<timestamp>2017-11-13T22:51:44Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Clerk-Note-bot]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="135">[[File:Symbol comment vote.svg|17px|link=|alt=]]&amp;nbsp;'''Robot clerk note{{{1|}}}{{{2|:}}}'''&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>heud9xa5mfxgjkvjrmb7am3830bv66h</sha1>
</revision>
</page>
<page>
<title>Template:Clerk-Note-merged</title>
<ns>10</ns>
<id>23348540</id>
<revision>
<id>810206697</id>
<parentid>351189581</parentid>
<timestamp>2017-11-13T23:01:08Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Clerk-Note-merged]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="89">[[File:Mergefrom.svg|16px|link=|alt=]] '''{{{1|Merged}}}'''&lt;noinclude&gt;{{doc}}&lt;/noinclude&gt;</text>
<sha1>111jkchgmp6lpek0sbv3zgrrjwpg4z5</sha1>
</revision>
</page>
<page>
<title>Template:Clerk Request</title>
<ns>10</ns>
<id>5461022</id>
<restrictions>edit=autoconfirmed:move=autoconfirmed</restrictions>
<revision>
<id>729280038</id>
<parentid>621850077</parentid>
<timestamp>2016-07-11T04:25:40Z</timestamp>
<contributor>
<username>Music1201</username>
<id>27871940</id>
</contributor>
<comment>hence the template name</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="209">[[File:Symbol merge vote.svg|16px|alt=|link=]]&amp;nbsp;'''Clerk assistance requested:'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>6vpuhisjrbddl42fdvjyi3lqr2ytmtx</sha1>
</revision>
</page>
<page>
<title>Template:Close</title>
<ns>10</ns>
<id>24080412</id>
<revision>
<id>810202497</id>
<parentid>782450021</parentid>
<timestamp>2017-11-13T22:30:59Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Close]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="188">[[File:Symbol_declined.svg|20px|alt=no]]&amp;nbsp;'''Closed'''&amp;nbsp;&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>3ld36qk7uynrvm92ilclkorabimokuo</sha1>
</revision>
</page>
<page>
<title>Template:Column-width</title>
<ns>10</ns>
<id>29216399</id>
<revision>
<id>638540885</id>
<parentid>579832996</parentid>
<timestamp>2014-12-17T20:09:33Z</timestamp>
<contributor>
<username>Edokter</username>
<id>1624037</id>
</contributor>
<minor/>
<comment>redundant</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="165">&lt;includeonly&gt;-moz-column-width: {{{1|30em}}}; -webkit-column-width: {{{1|30em}}}; column-width: {{{1|30em}}};&lt;/includeonly&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>sum88q311kc02222mb4cgzbikcx7fqy</sha1>
</revision>
</page>
<page>
<title>Template:Comment</title>
<ns>10</ns>
<id>35719472</id>
<revision>
<id>810133384</id>
<parentid>804535555</parentid>
<timestamp>2017-11-13T14:48:41Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Comment]]&quot;: [[WP:MOVP|Highly visible page]]: 2000+ transclusions, if you need to edit please go to [[Wikipedia:Edit requests]] ([Edit=Require administrator access] (indefinite) [Move=Require administrator access...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="123">[[File:Pictogram voting comment.svg|15px|link=|alt=]]&amp;nbsp;'''{{{1|Comment:}}}'''&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>nfqx624mwkdl9w5kjeqds7jat1ro1en</sha1>
</revision>
</page>
<page>
<title>Template:Commentvote</title>
<ns>10</ns>
<id>4143557</id>
<redirect title="Template:BotComment" />
<revision>
<id>810212233</id>
<parentid>243362295</parentid>
<timestamp>2017-11-13T23:40:05Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Commentvote]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="33">#REDIRECT [[Template:BotComment]]</text>
<sha1>eedx7esk2kg6vjlvp84ryc566yd6mw1</sha1>
</revision>
</page>
<page>
<title>Template:Completed</title>
<ns>10</ns>
<id>14622241</id>
<revision>
<id>621950337</id>
<parentid>609665796</parentid>
<timestamp>2014-08-19T18:43:32Z</timestamp>
<contributor>
<username>Funandtrvl</username>
<id>2966869</id>
</contributor>
<comment>updte</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="118">[[File:Symbol redirect vote.svg|16px|link=|alt=]]&amp;nbsp;'''{{{1|Completed}}}'''&lt;noinclude&gt;{{documentation}}&lt;/noinclude&gt;</text>
<sha1>1e6n5py37gzfvnswwe98prglzfcxejs</sha1>
</revision>
</page>
<page>
<title>Template:Conditional yes</title>
<ns>10</ns>
<id>53410330</id>
<revision>
<id>810134445</id>
<parentid>769073404</parentid>
<timestamp>2017-11-13T14:56:14Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Conditional yes]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="210">[[File:Yes check lines.svg|{{{{{|safesubst:}}}#if:{{{1|}}}|{{{1}}}|20}}px|alt=Conditional yes|link=]]&lt;span style=&quot;display:none&quot;&gt;CY&lt;/span&gt;&lt;!--template:Conditional yes--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>p29nug39jo9bbdswexf56achhjm5kqe</sha1>
</revision>
</page>
<page>
<title>Template:Confirmed</title>
<ns>10</ns>
<id>5102900</id>
<revision>
<id>661856315</id>
<parentid>622839029</parentid>
<timestamp>2015-05-11T15:44:17Z</timestamp>
<contributor>
<username>Reaper Eternal</username>
<id>10639536</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:Confirmed: [[WP:High-risk templates|Highly visible template]] ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only administrators] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="540">[[File:Symbol confirmed.svg|16px|link=|alt=]]&amp;nbsp;'''{{{1|Confirmed}}}'''&lt;noinclude&gt;{{documentation|content={{Template:Resolved mark/doc |type=checkmark|where=on [[WP:CHECKUSER]] pages at [[Wikipedia:Sockpuppet investigations]]|seealso=* [[Wikipedia:Sockpuppet investigations/SPI/Indicators]]|para=The template accepts a single parameter (unnamed or given as {{para|1}}) that changes the word &quot;Confirmed&quot; to the text specified in the parameter, e.g. &quot;Tentatively confirmed&quot;.|spi=y}}}}
&lt;!--Categories go on the /doc subpage --&gt;
&lt;/noinclude&gt;</text>
<sha1>29p188tygjkfmq40r14m26c7l8asdnf</sha1>
</revision>
</page>
<page>
<title>Template:Confirmed-nc</title>
<ns>10</ns>
<id>6934607</id>
<revision>
<id>810134495</id>
<parentid>622839158</parentid>
<timestamp>2017-11-13T14:56:34Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Confirmed-nc]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require administrator access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="576">{{Confirmed|1={{{1|Confirmed}}}}} with respect to the named user(s), {{{{{|safesubst:}}}No comment IP}}.&lt;noinclude&gt;{{documentation|content={{Template:Resolved mark/doc |type=checkmark|where=on [[WP:CHECKUSER]] pages at [[Wikipedia:Sockpuppet investigations]]|seealso=* [[Wikipedia:Sockpuppet investigations/SPI/Indicators]]|para=The template accepts a single parameter (unnamed or given as {{para|1}}) that changes the word &quot;Confirmed&quot; to the text specified in the parameter, e.g. &quot;Tentatively confirmed&quot;.|spi=y|dot=y}}}}
&lt;!--Categories go on the /doc subpage --&gt;
&lt;/noinclude&gt;</text>
<sha1>ksfc3ah4hr3j99mv98guivx5bi0wtzj</sha1>
</revision>
</page>
<page>
<title>Template:Coordinator-note</title>
<ns>10</ns>
<id>31911563</id>
<revision>
<id>810205562</id>
<parentid>431286860</parentid>
<timestamp>2017-11-13T22:52:55Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Coordinator-note]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="130">[[File:Symbol comment vote.svg|17px|link=|alt=]] '''Coordinator note{{{1|}}}{{{2|:}}}'''&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>tnzrghwmb33xa3tc5q6wvijm7jwfhp3</sha1>
</revision>
</page>
<page>
<title>Template:Cross</title>
<ns>10</ns>
<id>8160177</id>
<revision>
<id>678691773</id>
<parentid>549072688</parentid>
<timestamp>2015-08-31T01:12:15Z</timestamp>
<contributor>
<username>MusikAnimal</username>
<id>14882394</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:Cross: Highly visible template; lowering to template protection ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only administrators] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="158">[[File:X mark.svg|{{#if:{{{1|}}}|{{{1}}}|20}}px|link=|alt=]]&lt;span style=&quot;display:none&quot;&gt;N&lt;/span&gt;&lt;!--template:cross--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>03b5lrweqqgodvzctd95rrh5u26w1vu</sha1>
</revision>
</page>
<page>
<title>Template:Crystalball</title>
<ns>10</ns>
<id>5919278</id>
<restrictions>edit=autoconfirmed:move=autoconfirmed</restrictions>
<revision>
<id>721406470</id>
<parentid>721351483</parentid>
<timestamp>2016-05-21T17:00:05Z</timestamp>
<contributor>
<username>Andy M. Wang</username>
<id>516856</id>
</contributor>
<minor/>
<comment>Reverted edits by [[Special:Contribs/Andy M. Wang|Andy M. Wang]] ([[User talk:Andy M. Wang|talk]]) to last version by Fryed-peach</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="360">[[File:Emoji u1f52e.svg|16px]]&amp;nbsp;'''[[Wikipedia:CheckUser|CheckUser]] is not a crystal ball'''&lt;noinclude&gt;{{documentation|content=
{{hatnote|You may alternatively be looking for [[Template:Crystal]] - for articles with unsourced predictions}}
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
[[Category:SPI templates]]
}}&lt;/noinclude&gt;</text>
<sha1>85m8808lz0gtmyyem1w56mtk0r16eqo</sha1>
</revision>
</page>
<page>
<title>Template:Cu-endorsed</title>
<ns>10</ns>
<id>27053299</id>
<revision>
<id>810203398</id>
<parentid>621849700</parentid>
<timestamp>2017-11-13T22:36:59Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Cu-endorsed]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="232">[[File:Symbol support2 vote.svg|16px|link=|alt=]]&amp;nbsp;'''Endorsed by a [[Wikipedia:CheckUser|CheckUser]]'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>61bzsrovlr670v27viv23t3xg5r03o0</sha1>
</revision>
</page>
<page>
<title>Template:Cudecline</title>
<ns>10</ns>
<id>33828570</id>
<revision>
<id>623136612</id>
<parentid>623136484</parentid>
<timestamp>2014-08-28T05:35:02Z</timestamp>
<contributor>
<username>Callanecc</username>
<id>10440891</id>
</contributor>
<minor/>
<comment>Protected Template:Cudecline: [[WP:High-risk templates|Highly visible template]]: Used in SPI, over 350 translcusions ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only template editors and admins] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="125">[[File:Symbol unsupport2 vote.svg|16px|link=|alt=]]&amp;nbsp;'''{{{1|CheckUser declined}}}'''&lt;noinclude&gt;&lt;br /&gt;{{doc}}&lt;/noinclude&gt;</text>
<sha1>r9mrmrh727rgl02z79t301dlhh6hyna</sha1>
</revision>
</page>
<page>
<title>Template:Decline</title>
<ns>10</ns>
<id>18241811</id>
<revision>
<id>688856836</id>
<parentid>621850271</parentid>
<timestamp>2015-11-03T13:42:43Z</timestamp>
<contributor>
<username>WOSlinker</username>
<id>3138265</id>
</contributor>
<comment>pp-template not needed since documentation does the same</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="270">[[File:Symbol unsupport2 vote.svg|16px|link=|alt=]]&amp;nbsp;'''{{{1|Clerk declined}}}'''&lt;noinclude&gt;{{documentation|content=
{{distinguish|Template:Declined}}
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
[[Category:SPI templates]]
}}&lt;/noinclude&gt;</text>
<sha1>evlumkcwmpme800wmej9nzuqygjq3ej</sha1>
</revision>
</page>
<page>
<title>Template:Decline-IP</title>
<ns>10</ns>
<id>36762192</id>
<revision>
<id>810203125</id>
<parentid>809777885</parentid>
<timestamp>2017-11-13T22:35:16Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Decline-IP]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="297">[[File:Symbol unsupport2 vote.svg|16px|link=|alt=]] '''Clerk declined''' - Checkuser will not link accounts to IPs, per the [[m:Privacy policy|privacy policy]].&lt;noinclude&gt;{{documentation|content=
==See also==
{{Done/See also}}
[[Category:Image with comment templates|{{PAGENAME}}]]
}}&lt;/noinclude&gt;</text>
<sha1>5se79spgx9iwg2ph71ie54qkf4yjn6r</sha1>
</revision>
</page>
<page>
<title>Template:Declined</title>
<ns>10</ns>
<id>5103023</id>
<revision>
<id>782449809</id>
<parentid>782449761</parentid>
<timestamp>2017-05-27T00:19:51Z</timestamp>
<contributor>
<username>Matt Fitzpatrick</username>
<id>291848</id>
</contributor>
<minor/>
<comment>no alt text for unlinked image</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="219">[[File:Symbol declined.svg|16px|link=|alt=]]&amp;nbsp;'''{{{1|Declined}}}'''&lt;noinclude&gt;
{{doc|content=
{{distinguish|Template:Decline}}
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>9m653fheeaww224jqzh3opwc79dokyo</sha1>
</revision>
</page>
<page>
<title>Template:Deferabusefilter</title>
<ns>10</ns>
<id>22142604</id>
<revision>
<id>810203622</id>
<parentid>621843730</parentid>
<timestamp>2017-11-13T22:38:31Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Deferabusefilter]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="233">[[File:Symbol deferred.svg|20px|link=|alt=]] '''Defer to [[Wikipedia:Abuse filter/Requested|Abuse filter]]'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>03u7rvug8krv5x110idvxeeor13n6mr</sha1>
</revision>
</page>
<page>
<title>Template:Deferblack</title>
<ns>10</ns>
<id>15361873</id>
<revision>
<id>810203683</id>
<parentid>621843775</parentid>
<timestamp>2017-11-13T22:39:02Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Deferblack]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="233">[[File:Symbol deferred.svg|20px|link=|alt=]] '''Defer to [[MediaWiki talk:Spam-blacklist|Local blacklist]]'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>lmzq49tan5eaymti9fujxi4u7jbl8vi</sha1>
</revision>
</page>
<page>
<title>Template:Defermetablack</title>
<ns>10</ns>
<id>15361881</id>
<revision>
<id>810203721</id>
<parentid>729348784</parentid>
<timestamp>2017-11-13T22:39:21Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Defermetablack]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="226">[[File:Symbol deferred.svg|20px|link=|alt=]] '''Defer to [[m:Talk:Spam blacklist|Global blacklist]]'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>6dkkm86okqpry1ank9r9cbhwooh4obi</sha1>
</revision>
</page>
<page>
<title>Template:Deferred</title>
<ns>10</ns>
<id>9019440</id>
<revision>
<id>581183037</id>
<parentid>456672539</parentid>
<timestamp>2013-11-11T13:51:28Z</timestamp>
<contributor>
<username>DePiep</username>
<id>199625</id>
</contributor>
<comment>use parameter 1 only when present</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="133">[[Image:Symbol deferred.svg|16px|link=|alt=]] {{#if:{{{1|}}}|'''Deferred to {{{1}}}'''|'''Deferred'''}}&lt;noinclude&gt;{{doc}}&lt;/noinclude&gt;</text>
<sha1>65hs5nkotr1g8qekxnz5frgx7imlj7s</sha1>
</revision>
</page>
<page>
<title>Template:Deferrsn</title>
<ns>10</ns>
<id>24550938</id>
<revision>
<id>810203808</id>
<parentid>621843861</parentid>
<timestamp>2017-11-13T22:39:57Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Deferrsn]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="231">[[File:Symbol deferred.svg|20px|link=|alt=]] '''Defer to [[Wikipedia:Reliable sources/Noticeboard|RS/N]]'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>mljbcbz80brahgx291gqsxi0puv65y1</sha1>
</revision>
</page>
<page>
<title>Template:Deferspam</title>
<ns>10</ns>
<id>14949539</id>
<revision>
<id>621843920</id>
<parentid>351187707</parentid>
<timestamp>2014-08-18T23:52:18Z</timestamp>
<contributor>
<username>Funandtrvl</username>
<id>2966869</id>
</contributor>
<comment>add doc</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="226">[[File:Symbol deferred.svg|20px|link=|alt=]] '''Defer to [[Wikipedia talk:WikiProject Spam|WPSPAM]]'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>sjpjiuax6uoiwhltgspqhgciw6pkmcq</sha1>
</revision>
</page>
<page>
<title>Template:Deferspambot</title>
<ns>10</ns>
<id>15164021</id>
<revision>
<id>621843995</id>
<parentid>351187689</parentid>
<timestamp>2014-08-18T23:53:10Z</timestamp>
<contributor>
<username>Funandtrvl</username>
<id>2966869</id>
</contributor>
<comment>add doc</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="226">[[File:Symbol deferred.svg|20px|link=|alt=]] '''Defer to [[User_talk:XLinkBot/RevertList|XLinkBot]]'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>c73skieoidqmnpz0mbcx1lepcxep8fu</sha1>
</revision>
</page>
<page>
<title>Template:Deferwhite</title>
<ns>10</ns>
<id>14994189</id>
<revision>
<id>621844039</id>
<parentid>351187651</parentid>
<timestamp>2014-08-18T23:53:34Z</timestamp>
<contributor>
<username>Funandtrvl</username>
<id>2966869</id>
</contributor>
<comment>add doc</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="227">[[File:Symbol deferred.svg|20px|link=|alt=]] '''Defer to [[MediaWiki talk:Spam-whitelist|Whitelist]]'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>2kbn29ckren3u4el90t4r5220axpwt5</sha1>
</revision>
</page>
<page>
<title>Template:Deleted</title>
<ns>10</ns>
<id>3324450</id>
<revision>
<id>810135757</id>
<parentid>723448710</parentid>
<timestamp>2017-11-13T15:05:38Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Deleted]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require administrator access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="204">{{{{{|safesubst:}}}cross|18}} '''{{{{{|safesubst:}}}ucfirst:{{{1|Deleted}}}}}'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{Done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>l6vnh8ts5yq6dvvbswtnpbyzw4bstri</sha1>
</revision>
</page>
<page>
<title>Template:Deleted-image</title>
<ns>10</ns>
<id>32737875</id>
<revision>
<id>810136204</id>
<parentid>782451068</parentid>
<timestamp>2017-11-13T15:08:23Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Deleted-image]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="208">[[File:Gnome-colors-window-close.svg|20px|alt=X]] '''{{{1|Deleted}}}'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{Done/See also}}
[[Category:Image with comment templates|{{PAGENAME}}]]
}}&lt;/noinclude&gt;</text>
<sha1>7ul3ce388p96c7cre70u6z2rtpr34fz</sha1>
</revision>
</page>
<page>
<title>Template:Delisted</title>
<ns>10</ns>
<id>10145926</id>
<revision>
<id>664132701</id>
<parentid>660349850</parentid>
<timestamp>2015-05-26T15:36:55Z</timestamp>
<contributor>
<username>Usien6</username>
<id>1948704</id>
</contributor>
<comment>Add parameter for custom text.</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="218">[[File:Symbol unsupport vote.svg|16px|link=|alt=]]&amp;nbsp;'''{{{1|Delisted}}}'''&lt;noinclude&gt;{{documentation|content=
{{pp-template}}
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>0tpqfiq26ugy4rrqk8vsg9f7wcd241k</sha1>
</revision>
</page>
<page>
<title>Template:Denied</title>
<ns>10</ns>
<id>24094400</id>
<revision>
<id>810202563</id>
<parentid>782449963</parentid>
<timestamp>2017-11-13T22:31:22Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Denied]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="185">[[File:Symbol declined.svg|20px|alt=no]] '''{{{1|Denied}}}'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>jorie2ahrxrno640vkhkgknws3kss9g</sha1>
</revision>
</page>
<page>
<title>Template:Disagree</title>
<ns>10</ns>
<id>20499711</id>
<revision>
<id>810202602</id>
<parentid>782450068</parentid>
<timestamp>2017-11-13T22:31:42Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Disagree]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="400">[[File:Symbol declined.svg|alt=no|20px]] '''{{{1|Disagree}}}''' &lt;noinclude&gt;
{{doc|content=
{{warning|This template should not be used as a way to express agreement in consensus-seeking discussions, as this encourages [[WP:!vote|voting]], see [[Wikipedia:Deletion review/Perennial requests#Template:Support]].}}
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>oau97xx6mjdpbavafbvztg58dwintab</sha1>
</revision>
</page>
<page>
<title>Template:Discussing</title>
<ns>10</ns>
<id>24797116</id>
<revision>
<id>810204425</id>
<parentid>601768098</parentid>
<timestamp>2017-11-13T22:44:36Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Discussing]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="266">[[Image:Pictogram voting wait.svg|17px|link=|alt=]] '''[[{{#if:{{{talkpage|}}}|{{{talkpage}}}{{#if:{{{talk|}}}|&amp;#35;{{{talk}}}}}|{{TALKPAGENAME}}#{{{talk|}}}}}|Discussion]] ongoing'''{{#if:{{{1|}}}|&amp;#58; {{{1|}}}|...}}&lt;br /&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>6zlcp1a64ak4tw9zqa38hm4o9vcp9ny</sha1>
</revision>
</page>
<page>
<title>Template:Dislike</title>
<ns>10</ns>
<id>32226706</id>
<revision>
<id>810206552</id>
<parentid>662210606</parentid>
<timestamp>2017-11-13T22:59:54Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Dislike]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="559">&lt;span style=&quot;display:inline-block;padding:0 .5em;line-height:1.75em;border:1px solid #CAD4E7; font-family:'Lucida Grande',Tahoma,Verdana,sans-serif; {{border-radius|3px}} background:#ECEEF5; text-align:center;&quot;&gt;[[File:Not facebook not like thumbs down.png|link=|16px]]&amp;thinsp;&lt;span style=&quot;color:#3B5998;&quot;&gt;{{#if:{{{num|}}}|{{{num|}}} {{PLURAL:{{{num|}}}|user {{{1|dislikes}}}|users {{{1|dislike}}}}} this.|{{#if:{{{username|}}}|[[User:{{{username|}}}|{{{username|}}}]] dislikes this.|{{{1|Dislike}}}}}}}&lt;/span&gt;&lt;/span&gt; &lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>sus6izktrfs56wlixodop2x5gue7gey</sha1>
</revision>
</page>
<page>
<title>Template:Div col</title>
<ns>10</ns>
<id>12679552</id>
<revision>
<id>820620173</id>
<parentid>820604224</parentid>
<timestamp>2018-01-15T17:35:00Z</timestamp>
<contributor>
<username>Jonesey95</username>
<id>9755426</id>
</contributor>
<comment>/* top */ rm tfm notice, no need to have it here</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="1405">&lt;includeonly&gt;&lt;div class=&quot;div-col columns &lt;!--
--&gt;{{#if: {{{colwidth|{{{2|}}}}}}
| column-width
| column-count column-count-{{{cols|{{#if:1|{{{1|2}}}}}}}} }}&quot; style=&quot;&lt;!--
--&gt;{{#if: {{{colwidth|{{{2|}}}}}}
| {{column-width|{{{colwidth|{{#if:1|{{{2}}}}}}}}}}
| {{column-count|{{{cols|{{#if:1|{{{1|2}}}}}}}}}} }} &lt;!--
--&gt;{{#if: {{{gap|}}}
| {{column-gap|{{{gap}}}}} }}&lt;!--
--&gt;{{#switch: {{{rules|}}}
| = &lt;!--empty--&gt;
| yes = {{column-rule}}
| {{Column-rule|{{{rules}}}}} }} &lt;!--
--&gt;{{#ifeq: {{{small|}}}|yes
| font-size:90%; }} &lt;!--
--&gt;{{#if: {{{style|}}}
| {{{style}}} }}&quot;&gt;&lt;!--
--&gt;{{#if: {{{content|}}}
|{{{content}}}&lt;/div&gt;}}&lt;!-- Inventory how many pages use small=yes
--&gt;{{#ifeq: {{{small|}}}|yes
|[[Category:Pages using div col with small parameter]]}}&lt;/includeonly&gt;{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using div col with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Div col]] with unknown parameter &quot;_VALUE_&quot;|ignoreblank=y| 1 | 2 | cols | colwidth | content | gap | rules | small | style }}&lt;!--
--&gt;{{main other|{{#if: {{{cols|}}}{{{1|}}}{{{2|}}}|[[Category: Pages using div col with deprecated parameters]]|}}{{#if:{{{cols|}}}{{{colwidth|}}}{{{1|}}}{{{2|}}}||[[Category:Pages using div col without cols and colwidth parameters]]}}}}&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>d2gbqb2ziz4u4p13e6fy9t4aegzt2hy</sha1>
</revision>
</page>
<page>
<title>Template:Div col end</title>
<ns>10</ns>
<id>12679680</id>
<revision>
<id>683947856</id>
<parentid>627002509</parentid>
<timestamp>2015-10-03T15:58:07Z</timestamp>
<contributor>
<username>NeilN</username>
<id>409043</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:Div col end: per request at [[WP:RFPP]] ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="96">&lt;includeonly&gt;&lt;/div&gt;&lt;/includeonly&gt;&lt;noinclude&gt;
{{Documentation|Template:Div col/doc}}
&lt;/noinclude&gt;</text>
<sha1>e0rj08wj8gm7na2mxp8t9b3l4y8kspb</sha1>
</revision>
</page>
<page>
<title>Template:Doing</title>
<ns>10</ns>
<id>10606277</id>
<revision>
<id>678691772</id>
<parentid>410362127</parentid>
<timestamp>2015-08-31T01:12:15Z</timestamp>
<contributor>
<username>MusikAnimal</username>
<id>14882394</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:Doing: Highly visible template; lowering to template protection ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only administrators] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="137">[[Image:Pictogram voting wait.svg|17px|link=|alt=]] '''{{{1|Doing}}}...'''&lt;!--template:doing--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>rerll75jnfatfic22eqzp3h1gxnz9ye</sha1>
</revision>
</page>
<page>
<title>Template:Done</title>
<ns>10</ns>
<id>3503011</id>
<revision>
<id>776610283</id>
<parentid>776592221</parentid>
<timestamp>2017-04-22T03:14:17Z</timestamp>
<contributor>
<username>Ahecht</username>
<id>2016996</id>
</contributor>
<comment>Per [[Wikipedia:Alternative text for images#Examples]], the icon is purely decorative and does not need alt text.</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="209">[[File:Yes check.svg|18px|link=|alt=]]&amp;nbsp;'''{{{1|Done}}}'''{{{{{|safesubst:}}}#if:{{{note|{{{reason|}}}}}}|&lt;nowiki /&gt;: {{{note|{{{reason}}}}}}}}&lt;!--template:done--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>3xxk5dw1as1m3e3llp0kd7g9pgfa0b2</sha1>
</revision>
</page>
<page>
<title>Template:Done-t</title>
<ns>10</ns>
<id>16498495</id>
<revision>
<id>650745970</id>
<parentid>635535383</parentid>
<timestamp>2015-03-10T11:40:01Z</timestamp>
<contributor>
<username>Ymblanter</username>
<id>14596827</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:Done-t: RFPP request ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="147">&lt;span style=&quot;color: #690; font-size: 1.8em;&quot;&gt;&amp;#x2713;&lt;/span&gt;&amp;nbsp;'''{{{1|Done}}}'''&lt;!--template:done-t--&gt;&lt;noinclude&gt;
{{Documentation}}&lt;/noinclude&gt;</text>
<sha1>dr9tai9r73nd3lvg3ze64xbpj3sjn23</sha1>
</revision>
</page>
<page>
<title>Template:Done/See also</title>
<ns>10</ns>
<id>33231463</id>
<revision>
<id>819688947</id>
<parentid>816263585</parentid>
<timestamp>2018-01-10T19:25:18Z</timestamp>
<contributor>
<username>Primefac</username>
<id>11508456</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Done/See also]]&quot;: [[WP:SEMI|semi-protecting]] highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access]...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="15841">&lt;!--This is transcluded into all these templates' /doc pages to save time.
--&gt;{{Documentation subpage|override=see also|several templates {{bracket|[[Special:WhatLinksHere/Template:Done/See also|Details]]}}}}{{navbar|Done/See also|plain=1}}&lt;noinclude&gt;__NOTOC__&lt;/noinclude&gt;
===Inline icon templates by shape and color===
Any of the following inline, comment-level templates can be converted into {{tl|Resolved}}-style hatnotes by using {{tl|Resbox}} to put a box around the icon and text.
{{div col|colwidth=30em}}
{{Aligned table |style=&lt;!--padding-top:1.5em;--&gt;padding-right:1.5em;
|col1style=width:11.0em;padding-left:0.9em;padding-right:0.6em;
|col2style=font-size:95%; |col2nowrap=on
|style1.1=padding-left:none;
| {{big|'''Green check marks'''}} |
| {{Resolved mark large}} | {{tlx|Resolved mark large}}
| {{Implemented}} | {{tlx|Implemented}}
| {{PImplemented}} | {{tlx|PImplemented}}
| {{Resolved mark}} | {{tlx|Resolved mark}}
| {{Accepted}} | {{tlx|Accepted}}
| {{Agree}} | {{tlx|Agree}}
| {{Approved}} | {{tlx|Approved}}
| {{Checked2}} | {{tlx|Checked2}}
| {{Verified}} | {{tlx|Verified}}
| {{Conditional yes}} | {{tlx|Conditional yes}}
| {{Confirmed}} | {{tlx|Confirmed}}
| {{Confirmed-nc}} | {{tlx|Confirmed-nc}}
| {{Tallyho}} | {{tlx|Tallyho}}
| {{Blockedtaggedclosing}}| {{tlx|Blockedtaggedclosing}}
| {{Check mark}} | {{tlx|Check mark}}
| {{Tick}} | {{tlx|Tick}}
| {{Helped}} | {{tlx|Helped}}
| {{Done}} | {{tlx|Done}}
| {{Donetask}} | {{tlx|Donetask}}
| {{Unprod}} | {{tlx|Unprod}}
| {{Autp}} | {{tlx|Autp}}
| {{Responded}} | {{tlx|Responded}}
| {{Merge done}} | {{tlx|Merge done}}
| {{Marked}} | {{tlx|Marked}}
| {{Done-t}} | {{tlx|Done-t}}
| {{Pass}} | {{tlx|Pass}}
| {{Aye}} | {{tlx|Aye}}
| {{Yes check}} | {{tlx|Yes check}}
| {{Y&amp;}} | {{tlx|Y&amp;}}
}}
{{Aligned table |style=padding-top:1.5em;padding-right:1.5em;
|col1style=width:11.0em;padding-left:0.9em;padding-right:0.6em;
|col2style=font-size:95%; |col2nowrap=on
|style1.1=padding-left:none;
| {{big|'''Cross marks'''}} |
| {{X mark big}} | {{tlx|X mark big}}
| {{Cross}} | {{tlx|Cross}}
| {{Expired}} | {{tlx|Expired}}
| {{Xmark}} | {{tlx|Xmark}}
| {{Deleted}} | {{tlx|Deleted}}
| {{Not done}} | {{tlx|Not done}}
| {{Not done not likely}} | {{tlx|Not done not likely}}
| {{Stale-small}} | {{tlx|Stale-small}}
| {{Smallrejected}} | {{tlx|Smallrejected}}
| {{X mark}} | {{tlx|X mark}}
| {{Nay}} | {{tlx|Nay}}
| {{No mark}} | {{tlx|No mark}}
| {{No pass}} | {{tlx|No pass}}
| {{Not done-t}} | {{tlx|Not done-t}}
| {{Fail}} | {{tlx|Fail}}
| {{N&amp;}} | {{tlx|N&amp;}}
| {{X mark-n}} | {{tlx|X mark-n}}
| {{Xed box}} | {{tlx|Xed box}}
| {{Cancelled}} | {{tlx|Cancelled}}
| {{Deleted-image}} | {{tlx|Deleted-image}}
| {{Already declined}} | {{tlx|Already declined}}
| {{Opblocked}} | {{tlx|Opblocked}}
| {{User-blocked}} | {{tlx|User-blocked}}
| {{Notabug}} | {{tlx|Notabug}}
| {{Notfixed}} | {{tlx|Notfixed}}
| {{Won't fix}} | {{tlx|Won't fix}}
| {{Withdraw}} | {{tlx|Withdraw}}
| {{Nojoy}} | {{tlx|Nojoy}}
| {{Unrelated}} | {{tlx|Unrelated}}
}}
{{Aligned table |style=padding-top:1.5em;padding-right:1.5em;
|col1style=width:11.0em;padding-left:0.9em;padding-right:0.6em;
|col2style=font-size:95%; |col2nowrap=on
|style1.1=padding-left:none;
| {{big|'''Black check marks'''}} |
| {{Already done}} | {{tlx|Already done}}
| {{Resolved1}} | {{tlx|Resolved1}}
| {{Check mark-n}} | {{tlx|Check mark-n}}
| {{Checked}} | {{tlx|Checked}}
| {{Checked box}} | {{tlx|Checked box}}
}}
{{Aligned table |style=&lt;!--padding-top:1.5em;--&gt;padding-right:1.5em;
|col1style=width:11.0em;padding-left:0.9em;padding-right:0.6em;
|col2style=font-size:95%; |col2nowrap=on
|style1.1=padding-left:none;
| {{big|'''Yellow check marks'''}} |
| {{Yellow tick}} | {{tlx|Yellow tick}}
| {{Half done}} | {{tlx|Half done}}
| {{Partly done}} | {{tlx|Partly done}}
| {{Partly done-t}} | {{tlx|Partly done-t}}
}}
{{Aligned table |style=padding-top:1.5em;padding-right:1.5em;
|col1style=width:11.0em;padding-left:0.9em;padding-right:0.6em;
|col2style=font-size:95%; |col2nowrap=on
|style1.1=padding-left:none;
| {{big|'''Blue check marks'''}} |
| {{Semi-done}} | {{tlx|Semi-done}}
| {{Fixed}} | {{tlx|Fixed}}
| {{Fixed by reporter}} | {{tlx|Fixed by reporter}}
| {{Bug pending}} | {{tlx|Bug pending}}
| {{Bug resolved}} | {{tlx|Bug resolved}}
| {{Blockedandtagged}} | {{tlx|Blockedandtagged}}
| {{Blockedwithouttags}}| {{tlx|Blockedwithouttags}}
| {{Ipbedone}} | {{tlx|Ipbedone}}
| {{IPblock}} | {{tlx|IPblock}}
| {{Pblock}} | {{tlx|Pblock}}
| {{Psblock}} | {{tlx|Psblock}}
| {{Rblock}} | {{tlx|Rblock}}
}}
{{Aligned table |style=padding-top:1.5em;padding-right:1.5em;
|col1style=width:11.0em;padding-left:0.9em;padding-right:0.6em;
|col2style=font-size:95%; |col2nowrap=on
|style1.1=padding-left:none;
| {{big|'''Minus sign'''}} |
| {{Close}} | {{tlx|Close}}
| {{Denied}} | {{tlx|Denied}}
| {{Disagree}} | {{tlx|Disagree}}
| {{Unapproved}} | {{tlx|Unapproved}}
| {{NotBug}} | {{tlx|NotBug}}
| {{Duplicate bug}} | {{tlx|Duplicate bug}}
| {{Invalid}} | {{tlx|Invalid}}
| {{Declined}} | {{tlx|Declined}}
| {{No action}} | {{tlx|No action}}
| {{Nocomment}} | {{tlx|Nocomment}}
| {{Unnecessary}} | {{tlx|Unnecessary}}
| {{Nc}} | {{tlx|Nc}}
| {{Removed}} | {{tlx|Removed}}
}}
{{Aligned table |style=padding-top:1.5em;padding-right:1.5em;
|col1style=width:11.0em;padding-left:0.9em;padding-right:0.6em;
|col2style=font-size:95%; |col2nowrap=on
|style1.1=padding-left:none;
| {{big|'''Plus sign'''}} |
| {{Added}} | {{tlx|Added}}
| {{Posted}} | {{tlx|Posted}}
| {{Works for me}} | {{tlx|Works for me}}
| {{Likely}} | {{tlx|Likely}}
| {{Endorse}} | {{tlx|Endorse}}
| {{Decline}} | {{tlx|Decline}}
| {{Decline-IP}} | {{tlx|Decline-IP}}
| {{Cu-endorsed}} | {{tlx|Cu-endorsed}}
| {{Cudecline}} | {{tlx|Cudecline}}
| {{Delisted}} | {{tlx|Delisted}}
| {{Inconclusive}} | {{tlx|Inconclusive}}
| {{N/A icon}} | {{tlx|N/A icon}}
}}
{{Aligned table |style=padding-top:1.5em;padding-right:1.5em;
|col1style=width:11.0em;padding-left:0.9em;padding-right:0.6em;
|col2style=font-size:95%; |col2nowrap=on
|style1.1=padding-left:none;
| {{big|'''Neutral sign'''}} |
| {{Bug closed}} | {{tlx|Bug closed}}
| {{Bug new}} | {{tlx|Bug new}}
| {{GA2ndopinion}} | {{tlx|GA2ndopinion}}
}}
{{Aligned table |style=padding-top:1.5em;padding-right:1.5em;
|col1style=&lt;!--width:11.0em;--&gt;padding-left:0.9em;padding-right:0.6em;
|col2style=font-size:95%; |col2nowrap=on
|style1.1=padding-left:none;
| {{big|'''Purple turn-right'''}} |
| {{Deferred}} | {{tlx|Deferred}}
| {{Deferabusefilter}} | {{tlx|Deferabusefilter}}
| {{Deferblack}} | {{tlx|Deferblack}}
| {{Defermetablack}} | {{tlx|Defermetablack}}
| {{Deferrsn}} | {{tlx|Deferrsn}}
| {{Deferspam}} | {{tlx|Deferspam}}
| {{Deferspambot}} | {{tlx|Deferspambot}}
| {{Deferwhite}} | {{tlx|Deferwhite}}
}}
{{Aligned table |style=padding-top:1.5em;padding-right:1.5em;
|col1style=width:11.0em;padding-left:0.9em;padding-right:0.6em;
|col2style=font-size:95%; |col2nowrap=on
|style1.1=padding-left:none;
| {{big|'''Simple clock'''}} |
| {{PendingRequest}} | {{tlx|PendingRequest}}
| {{GAOnHold}} | {{tlx|GAOnHold}}
| {{On hold}} | {{tlx|On hold}}
| {{OnHoldUntil}} | {{tlx|OnHoldUntil}}
}}
{{Aligned table |style=padding-top:1.5em;padding-right:1.5em;
|col1style=&lt;!--width:11.0em;--&gt;padding-left:0.9em;padding-right:0.6em;
|col2style=font-size:95%; |col2nowrap=on
|style1.1=padding-left:none;
| {{big|'''Clock'''}} |
| {{ProposalOnHold}} | {{tlx|ProposalOnHold}}
| {{Reviewing request}} | {{tlx|Reviewing request}}
| {{Awaitingadmin}} | {{tlx|Awaitingadmin}}
| {{Await}} | {{tlx|Await}}
| {{Later}} | {{tlx|Later}}
| {{Tobedone}} | {{tlx|Tobedone}}
| {{Discussing}} | {{tlx|Discussing}}
| {{Doing}} | {{tlx|Doing}}
| {{Isdoing}} | {{tlx|Isdoing}}
| {{Started}} | {{tlx|Started}}
| {{Inprogress}} | {{tlx|Inprogress}}
| {{Checking}} | {{tlx|Checking}}
}}
{{Aligned table |style=&lt;!--padding-top:1.5em;--&gt;padding-right:1.5em;
|col1style=&lt;!--width:11.0em;--&gt;padding-left:0.9em;padding-right:0.6em;
|col2style=font-size:95%; |col2nowrap=on
|style1.1=padding-left:none;
| {{big|'''Note mark'''}} |
| {{NeedsDiscussion}} | {{tlx|NeedsDiscussion}}
| {{Note2}} | {{tlx|Note2}}
| {{A note}} | {{tlx|A note}}
| {{Administrator note}} | {{tlx|Administrator note}}
| {{Bug assigned}} | {{tlx|Bug assigned}}
}}
{{Aligned table |style=padding-top:1.5em;padding-right:1.5em;
|col1style=width:11.0em;padding-left:0.9em;padding-right:0.6em;
|col2style=font-size:95%; |col2nowrap=on
|style1.1=padding-left:none;
| {{big|'''Exclamation'''}} |
| {{High priority}} | {{tlx|High priority}}
| {{N.b.}} | {{tlx|N.b.}}
| {{Bang}} | {{tlx|Bang}}
| {{Archive now}} | {{tlx|Archive now}}
| {{Bureaucrat note}} | {{tlx|Bureaucrat note}}
| {{CUnote}} | {{tlx|CUnote}}
| {{Bug acknowledged}} | {{tlx|Bug acknowledged}} ({{tlx|Ack}})
| {{Bug confirmed}} | {{tlx|Bug confirmed}}
| {{Comment}} | {{tlx|Comment}}
| {{Remind}} | {{tlx|Remind}}
| {{Remark}} | {{tlx|Remark}}
| {{Clerk-Note}} | {{tlx|Clerk-Note}}
| {{Clerk-Note-bot}} | {{tlx|Clerk-Note-bot}}
| {{Rollbacker-Note}} | {{tlx|Rollbacker-Note}}
| {{Editor-Note}} | {{tlx|Editor-Note}}
| {{Renamer note}} | {{tlx|Renamer note}}
| {{Coordinator-note}} | {{tlx|Coordinator-note}}
}}
{{Aligned table |style=padding-top:1.5em;padding-right:1.5em;
|col1style=width:13.0em;padding-left:0.9em;padding-right:0.6em;
|col2style=font-size:95%; |col2nowrap=on
|style1.1=padding-left:none;
| {{big|'''Question mark'''}} |
| {{Suggestion}} | {{tlx|Suggestion}}
| {{Qmark}} | {{tlx|Qmark}}
| {{Question mark}} | {{tlx|Question mark}}
| {{InfoNeeded}} | {{tlx|InfoNeeded}}
| {{Not sure}} | {{tlx|Not sure}}
| {{Notsure}} | {{tlx|Notsure}}
| {{Investigating}} | {{tlx|Investigating}}
| {{Question}} | {{tlx|Question}}
| {{Question|label=foo}} | {{tlx|Question|label{{=}}foo}}
| {{MoreInfo|wrap=allow}} | {{tlx|MoreInfo}}
| {{Bug feedback}} | {{tlx|Bug feedback}}
}}
{{Aligned table |style=padding-top:1.5em;padding-right:1.5em;
|col1style=width:11.0em;padding-left:0.9em;padding-right:0.6em;
|col2style=font-size:95%; |col2nowrap=on
|style1.1=padding-left:none;
| {{big|'''Bulb'''}} |
| {{Bulb}} | {{tlx|Bulb}}
| {{Bulb2}} | {{tlx|Bulb2}}
| {{Idea}} | {{tlx|Idea}}
| {{NewProposal}} | {{tlx|NewProposal}}
}}
{{Aligned table |style=padding-top:1.5em;padding-right:1.5em;
|col1style=width:11.0em;padding-left:0.9em;padding-right:0.6em;
|col2style=font-size:95%; |col2nowrap=on
|style1.1=padding-left:none;
| {{big|'''Smile'''}} |
| {{Thank you}} | {{tlx|Thank you}}
| {{Thank you very much}} | {{tlx|Thank you very much}}
| {{You're welcome}} | {{tlx|You're welcome}}
| {{Sorry}} | {{tlx|Sorry}}
| {{Thank}} | {{tlx|Thank}}
| {{WikiThanks}} | {{tlx|WikiThanks}}
}}
{{Aligned table |style=padding-top:1.5em;padding-right:1.5em;
|col1style=width:11.0em;padding-left:0.9em;padding-right:0.6em;
|col2style=font-size:95%; |col2nowrap=on
|style1.1=padding-left:none;
| {{big|'''Thumb sign'''}} |
| {{Thumbs down}} | {{tlx|Thumbs down}}
| {{Thumbs up}} | {{tlx|Thumbs up}}
| {{Great}} | {{tlx|Great}}
| {{Like}} | {{tlx|Like}}
| {{Dislike}} | {{tlx|Dislike}}
}}
{{div col end}}
====Others====
{{div col |colwidth=40em}}
{{Aligned table
| {{Awaiting}} | {{tlx|Awaiting}}
| {{Commentvote}} | {{tlx|Commentvote}}
| {{Bug dupe}} | {{tlx|Bug dupe}}
| {{Clerk-Note-merged}} | {{tlx|Clerk-Note-merged}}
| {{NewBug}} | {{tlx|NewBug}}
| {{BugFixed}} | {{tlx|BugFixed}}
| {{DuplicateProposal}} | {{tlx|DuplicateProposal}}
| {{Moved to commons}} | {{tlx|Moved to commons}}
| {{Orz}} | {{tlx|Orz}}
| {{Possibly}} | {{tlx|Possibly}}
| {{Read}} | {{tlx|Read}}
| {{Redflag}} | {{tlx|Redflag}}
| {{Redundant symbol}} | {{tlx|Redundant symbol}}
| {{Reopened}} | {{tlx|Reopened}}
| {{Reverted}} | {{tlx|Reverted}}
| {{Twomanrule}} | {{tlx|Twomanrule}}
| {{UnderReview}} | {{tlx|UnderReview}}
| {{Facepalm}} | {{tlx|Facepalm}}
| {{Scissors}} | {{tlx|Scissors}}
| {{Self-trout}} | {{tlx|Self-trout}}
| {{Sent}} | {{tlx|Sent}}
| {{Snow}} | {{tlx|Snow}}
| {{Stale GAN}} | {{tlx|Stale GAN}}
| {{SULcheck}} | {{tlx|SULcheck}}
}}
{{Aligned table
| {{ToDo}} | {{tlx|ToDo}}
| {{Undone}} | {{tlx|Undone}}
| {{Uploaded}} | {{tlx|Uploaded}}
| {{Warnsign}} | {{tlx|Warnsign}}
| {{Withdrawn}} | {{tlx|Withdrawn}}
| {{Working}} | {{tlx|Working}}
| {{WPcrystalball}} | {{tlx|WPcrystalball}}
| {{Completed}} | {{tlx|Completed}}
| {{Sblock}} | {{tlx|Sblock}}
| {{Possible}} | {{tlx|Possible}}
| {{Impossible}} | {{tlx|Impossible}}
| {{Possilikely}} | {{tlx|Possilikely}}
| {{Unlikely}} | {{tlx|Unlikely}}
| {{Duck}} | {{tlx|Duck}}
| {{Megaphoneduck}} | {{tlx|Megaphoneduck}}
| {{Clerk Request}} | {{tlx|Clerk Request}}
| {{Relisted}} | {{tlx|Relisted}}
| {{Nosleepers}} | {{tlx|Nosleepers}}
| {{Behaviour}} | {{tlx|Behaviour}}
| {{StaleIP}} | {{tlx|StaleIP}}
| {{8ball}} | {{tlx|8ball}}
| {{Crystalball}} | {{tlx|Crystalball}}
| {{Fishing}} | {{tlx|Fishing}}
| {{Pixiedust}} | {{tlx|Pixiedust}}
}}
{{div col end}}
===Multi-sign templates===
The following templates implement several icons:
* {{tl|AIV}} – used by [[Wikipedia:Administrator intervention against vandalism]]
* {{tl|EP}} – used for servicing requests in edit-protected areas
* {{tl|RFPP}} – used by [[Wikipedia:Requests for page protection]]
* {{tl|UAA}} – used by [[Wikipedia:Usernames for administrator attention]]
* {{tl|Smiley}} – used for informal communication purposes
===Others===
* [[Template:Resolved/See also]], the smaller family of thread-level hatnote templates, similar to this but with a box around them; any template above can be converted to one of those with {{tl|Resbox}}
* [[Template:Table cell templates/doc]], the family of table-specific templates that work only in tables
* [[:Category:Image with comment templates]]
* [[:Category:Resolution templates]]&lt;noinclude&gt;
[[Category:Documentation see also templates]]
[[Category:Image with comment templates| ]]
&lt;/noinclude&gt;</text>
<sha1>80i5u5y15cuts55n82d5s5t01y2dd8p</sha1>
</revision>
</page>
<page>
<title>Template:Donetask</title>
<ns>10</ns>
<id>27675778</id>
<revision>
<id>810135353</id>
<parentid>723448118</parentid>
<timestamp>2017-11-13T15:02:56Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Donetask]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="192">{{done|1=Task complete.}} {{{1|}}}&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Resolution templates]]
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>cnpgsridwr0p84goutwjifk1pthr810</sha1>
</revision>
</page>
<page>
<title>Template:Duck</title>
<ns>10</ns>
<id>21622125</id>
<revision>
<id>814612634</id>
<parentid>804536512</parentid>
<timestamp>2017-12-09T21:50:58Z</timestamp>
<contributor>
<username>ToThAc</username>
<id>30690290</id>
</contributor>
<minor/>
<comment>Avoiding redirect</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="157">[[File:Cyberduck icon.png|20px|alt=|link=]]&amp;nbsp;'''{{{1|It [[Wikipedia:The duck test|looks like a duck]] to me}}}'''&lt;noinclude&gt;{{Documentation}}&lt;/noinclude&gt;</text>
<sha1>k35aeg43c99k94tyzrv3hxj12tbuodn</sha1>
</revision>
</page>
<page>
<title>Template:DuplicateProposal</title>
<ns>10</ns>
<id>30153479</id>
<revision>
<id>810206857</id>
<parentid>782447914</parentid>
<timestamp>2017-11-13T23:02:18Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:DuplicateProposal]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="271">[[File:Folder-copy.svg|28px|alt=copy]] &amp;nbsp; '''Duplicate proposal'''{{#if: {{{1|}}} | &amp;nbsp; ({{{1}}})}}&lt;noinclude&gt;{{documentation|content=
==See also==
{{Done/See also}}
[[Category:Image with comment templates]]
[[Category:Wikipedia article alerts|τ]]
}}&lt;/noinclude&gt;</text>
<sha1>9uibimcwo47sfb6h4llc3b99p7nfi5c</sha1>
</revision>
</page>
<page>
<title>Template:Duplicate bug</title>
<ns>10</ns>
<id>32468105</id>
<revision>
<id>810202697</id>
<parentid>723449413</parentid>
<timestamp>2017-11-13T22:32:19Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Duplicate bug]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="224">[[File:Pictogram voting oppose.svg|18px|link=|alt=]] '''Duplicate {{#if:{{{1|}}}|of {{{1}}}|bug}}'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{Done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>fok8la4brei2adjm635b3ct0q9mkb7c</sha1>
</revision>
</page>
<page>
<title>Template:Editor-Note</title>
<ns>10</ns>
<id>28432132</id>
<revision>
<id>810205479</id>
<parentid>621847624</parentid>
<timestamp>2017-11-13T22:52:21Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Editor-Note]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="774">[[File:Symbol comment vote.svg|17px|link=|alt=]] '''Editor note{{{1|}}}{{{2|:}}}'''&lt;noinclude&gt;
{{documentation|content=
==Usage==
*&lt;tt&gt;&lt;nowiki&gt;{{Editor-Note}}&lt;/nowiki&gt;&lt;/tt&gt; produces {{Editor-Note}}
*&lt;tt&gt;&lt;nowiki&gt;{{Editor-Note|s}}&lt;/nowiki&gt;&lt;/tt&gt; produces {{Editor-Note|s}}
*&lt;tt&gt;&lt;nowiki&gt;{{Editor-Note|2=}}&lt;/nowiki&gt;&lt;/tt&gt; will hide the : after note, {{Editor-Note|2=}}
*&lt;tt&gt;&lt;nowiki&gt;{{-Note|s|&amp;mdash;}}&lt;/nowiki&gt;&lt;/tt&gt; will produce {{Editor-Note|s|–}}
Et cetera. Note, if you're using parameter 2 (the part that changes the colon) and ''not'' parameter 1 (to change note to notes, or whatnot), you need to include 2= before it, or it will count it as parameter 1.
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
[[Category:SPI templates]]
}}&lt;/noinclude&gt;</text>
<sha1>mo3hacwgmbqwhpjfn68rwzr1x8ptj3d</sha1>
</revision>
</page>
<page>
<title>Template:Endorse</title>
<ns>10</ns>
<id>18241764</id>
<revision>
<id>782449207</id>
<parentid>621850364</parentid>
<timestamp>2017-05-27T00:14:52Z</timestamp>
<contributor>
<username>Matt Fitzpatrick</username>
<id>291848</id>
</contributor>
<minor/>
<comment>adjacent text &quot;Clerk endorsed&quot; is sufficient alt text</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="226">[[File:Symbol support2 vote.svg|link=|alt=|16px|]]&amp;nbsp;'''Clerk endorsed'''&lt;noinclude&gt;{{documentation|content=
{{Pp-template|small=yes}}
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>jq6qssk6e7v78xkao8al2nw3pcpdty3</sha1>
</revision>
</page>
<page>
<title>Template:Expired</title>
<ns>10</ns>
<id>19638929</id>
<revision>
<id>810135671</id>
<parentid>243510802</parentid>
<timestamp>2017-11-13T15:05:02Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Expired]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require administrator access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="80">{{cross}}'''This offer has expired'''
&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>52jnruoioloc9i3l6ke79srd6jsrvsx</sha1>
</revision>
</page>
<page>
<title>Template:Facepalm</title>
<ns>10</ns>
<id>33289010</id>
<revision>
<id>818279535</id>
<parentid>818278524</parentid>
<timestamp>2018-01-02T17:36:10Z</timestamp>
<contributor>
<username>SMcCandlish</username>
<id>378390</id>
</contributor>
<comment>self-rv. now-redundant cat.</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="1503">{{{{{|safesubst:}}}#switch: {{{{{|safesubst:}}}lc:{{{1}}}}} | supreme | sfod=[[File:Facepalm3.svg|{{{size|20px}}} |link= |alt=]] '''Supreme facepalm of destiny''' | #default=[[File:Facepalm3.svg|{{{size|15px}}} |link= |alt=]] '''{{{1|Facepalm}}}'''}}&lt;noinclude&gt;
{{Documentation|content=
This template can be used by editors as an &quot;expression of embarrassment, frustration, disbelief, disgust, shame or general woe&quot; (see [[Facepalm]]) '''i.e.''', as a light-hearted mockery, amusement at an unlikely lapse, or humorous disbelief at perceived idiocy, forgetfulness or mistake on your own or another editor's part. However, doing so in reference to the mistakes of others is liable to be regarded as a violation of [[WP:CIVIL|civility]].
Its use as an expression of abuse, mockery, or for the denigration of others is unacceptable. If there is any doubt that a recipient would take it in good humor, '''you should not use it'''.
[[WP:TL;DR|TLDR]]: When using this template, [[meta:Don't be a jerk|don't be a jerk]].
: ''See also: {{tl|trout}}''
== Usage ==
* {{tld|facepalm}} → {{facepalm}}
* {{tld|facepalm|size{{=}}10px}} → {{facepalm|size=10px}}
* {{tld|facepalm|supreme}} or {{tld|facepalm|sfod}} → {{facepalm|supreme}}
* {{tld|facepalm|supreme|size{{=}}10px}} → {{facepalm|supreme|size=10px}}
* {{tld|facepalm|Sorry, my mistake!}} → {{facepalm|Sorry, my mistake!}}
==See also==
{{Done/See also}}
[[Category:Wikipedia emoticons]]
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>5jlk5moilb4y0m5t0cp4ld7hl384c99</sha1>
</revision>
</page>
<page>
<title>Template:Fail</title>
<ns>10</ns>
<id>18956703</id>
<revision>
<id>810136050</id>
<parentid>639889713</parentid>
<timestamp>2017-11-13T15:07:30Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Fail]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require administrator access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="180">&lt;big style=&quot;color:#DF0A24; font-size:1.4em;&quot;&gt;&amp;#x2717;&lt;/big&gt;&amp;nbsp;'''Fail'''&lt;noinclude&gt;
{{Documentation|Template:No pass/doc}}
[[Category:Image with comment templates]]
&lt;/noinclude&gt;</text>
<sha1>7va7e2dd8szc6fnfvy28ois87yqzpp1</sha1>
</revision>
</page>
<page>
<title>Template:Fishing</title>
<ns>10</ns>
<id>5164305</id>
<restrictions>edit=autoconfirmed:move=autoconfirmed</restrictions>
<revision>
<id>782462468</id>
<parentid>721406272</parentid>
<timestamp>2017-05-27T02:03:02Z</timestamp>
<contributor>
<username>Matt Fitzpatrick</username>
<id>291848</id>
</contributor>
<minor/>
<comment>minimal alt attribute for linked image</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="163">[[File:Crystal 128 babelfish.svg|16px|alt=fish]]&amp;nbsp;'''[[WP:CheckUser|CheckUser]] is not for [[WP:NOTFISHING|fishing]]'''&lt;noinclude&gt;{{Documentation}}&lt;/noinclude&gt;</text>
<sha1>sc8os9epyn148l3fri23erfeep5x9zh</sha1>
</revision>
</page>
<page>
<title>Template:Fixed</title>
<ns>10</ns>
<id>6061713</id>
<revision>
<id>776609276</id>
<parentid>776609197</parentid>
<timestamp>2017-04-22T03:03:56Z</timestamp>
<contributor>
<username>Xaosflux</username>
<id>502540</id>
</contributor>
<comment>Undid revision 776609197 by [[Special:Contributions/Xaosflux|Xaosflux]] ([[User talk:Xaosflux|talk]]) - see talk page</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="112">[[File:Pictogram voting keep.svg|18px|link=|alt=]] '''{{{1|Fixed}}}'''&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>iciuqw2yax1k43w0n9688wdeni0645r</sha1>
</revision>
</page>
<page>
<title>Template:Fixed by reporter</title>
<ns>10</ns>
<id>14789796</id>
<revision>
<id>810201835</id>
<parentid>621835432</parentid>
<timestamp>2017-11-13T22:26:19Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Fixed by reporter]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="194">{{Fixed|Fixed by reporter}}&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Checkmark insertion templates]]
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>s5o507unlb9l6mm40i0os68xgkk36i7</sha1>
</revision>
</page>
<page>
<title>Template:GA2ndopinion</title>
<ns>10</ns>
<id>13072727</id>
<revision>
<id>810203576</id>
<parentid>621843606</parentid>
<timestamp>2017-11-13T22:38:13Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:GA2ndopinion]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="496">[[File:Symbol neutral vote.svg|15px|link=|alt=]]&amp;nbsp;'''Second opinion requested'''{{#if:{{{1&lt;includeonly&gt;|&lt;/includeonly&gt;}}}|&amp;#32;&amp;mdash;&amp;#32;I have [[Talk:{{{1|}}}|partially reviewed]] this article, but would like to request the opinion of a more experienced reviewer, or a reviewer that is more knowledgeable on the subject matter.}}&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
[[Category:Wikipedia GA templates]]
}}&lt;/noinclude&gt;</text>
<sha1>70xk3haavauuc572utkjp9ntv6k3sa0</sha1>
</revision>
</page>
<page>
<title>Template:GAOnHold</title>
<ns>10</ns>
<id>6309646</id>
<revision>
<id>810203887</id>
<parentid>621844305</parentid>
<timestamp>2017-11-13T22:40:32Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:GAOnHold]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="297">{{icon|GAH}}&amp;nbsp;'''GA on hold'''{{#if:{{{1&lt;includeonly&gt;|&lt;/includeonly&gt;}}}|&amp;#32;&amp;mdash;&amp;#32;Notes left on [[Talk:{{{1|}}}|talk page]].}}&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
[[Category:Wikipedia GA templates]]
}}&lt;/noinclude&gt;</text>
<sha1>l02pym7oej7bko5rzs9q3ix9ozf8gyj</sha1>
</revision>
</page>
<page>
<title>Template:Gray</title>
<ns>10</ns>
<id>4821803</id>
<revision>
<id>613849647</id>
<parentid>488791880</parentid>
<timestamp>2014-06-21T20:27:24Z</timestamp>
<contributor>
<username>Anthony Appleyard</username>
<id>119438</id>
</contributor>
<minor/>
<comment>Anthony Appleyard moved page [[Template:Grey]] to [[Template:Gray]]: Requested at [[WP:RM]] as uncontroversial ([[Special:Permalink/613843068|permalink]])</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="151">&lt;span style=&quot;color:gray&quot;&gt;{{{1}}}&lt;/span&gt;&lt;noinclude&gt;
&lt;!-- Add categories and interwikis to the /doc subpage, not here! --&gt;
{{Documentation}}&lt;/noinclude&gt;</text>
<sha1>0se1essniolp1jxmajbn58fwfmjy6un</sha1>
</revision>
</page>
<page>
<title>Template:Great</title>
<ns>10</ns>
<id>18002761</id>
<revision>
<id>804536576</id>
<parentid>782450813</parentid>
<timestamp>2017-10-09T17:20:41Z</timestamp>
<contributor>
<username>MusikAnimal</username>
<id>14882394</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Great]]&quot;: [[WP:High-risk templates|Highly visible template]]; 1,000+ transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="200">[[File:Thumbs-up-icon.svg|15px|alt=thumbs up]]&amp;nbsp;{{{1|'''''Great!'''''}}}&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>hogt8xzs0la78jy4zjrqviljh69r68j</sha1>
</revision>
</page>
<page>
<title>Template:Grey</title>
<ns>10</ns>
<id>43113154</id>
<redirect title="Template:Gray" />
<revision>
<id>819621257</id>
<parentid>613849649</parentid>
<timestamp>2018-01-10T10:52:29Z</timestamp>
<contributor>
<username>Stranger195</username>
<id>19277499</id>
</contributor>
<comment>add shell and {{R from British}}</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="77">#REDIRECT [[Template:Gray]]
{{Rcat shell|{{R from move}}{{R from British}}}}</text>
<sha1>70mzv6s5ub2pry9t8o7ad5gl1ki9w09</sha1>
</revision>
</page>
<page>
<title>Template:Half done</title>
<ns>10</ns>
<id>31587914</id>
<revision>
<id>810137248</id>
<parentid>721351721</parentid>
<timestamp>2017-11-13T15:14:09Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Half done]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="218">[[File:yellow check.svg|18px|Check mark|alt=yellow tick|link=]]&lt;span style=&quot;display:none&quot;&gt;Y&lt;/span&gt; '''{{{{{|safesubst:}}}ucfirst:{{{1|Half done}}}}}'''&lt;!--template:half done--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>dg3rtxcu7a6hhggbowxc903wdb2wtln</sha1>
</revision>
</page>
<page>
<title>Template:Helped</title>
<ns>10</ns>
<id>35944006</id>
<revision>
<id>810135271</id>
<parentid>788079950</parentid>
<timestamp>2017-11-13T15:02:22Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Helped]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="354">[[File:Yes check.svg|20px|link=|alt=]] '''{{ucfirst:{{{1|Helped}}}}}'''&lt;!--template:helped--&gt;&lt;noinclude&gt;{{documentation|content=
==Usage==
You may either use {{tlx|Helped}} by itself for the default message or you may add a custom message as an optional parameter.
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>sxgfdsumjhso0tyvlnj8vv440oagqkc</sha1>
</revision>
</page>
<page>
<title>Template:High priority</title>
<ns>10</ns>
<id>52809884</id>
<revision>
<id>810204767</id>
<parentid>782462240</parentid>
<timestamp>2017-11-13T22:46:50Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:High priority]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="236">[[File:Exclamationdiamond.svg|30px|link=|alt=]]&amp;nbsp;'''{{{1|High Priority}}}'''{{{{{|safesubst:}}}#if:{{{note|{{{reason|}}}}}}|&lt;nowiki /&gt;: {{{note|{{{reason}}}}}}}}&lt;!--template:High priority--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>hcrpobs3jmqi3z7v0aenyly9p4ufecp</sha1>
</revision>
</page>
<page>
<title>Template:Hmmm</title>
<ns>10</ns>
<id>29322247</id>
<revision>
<id>599375292</id>
<parentid>599375247</parentid>
<timestamp>2014-03-13T01:47:40Z</timestamp>
<contributor>
<username>Plastikspork</username>
<id>5075409</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:Hmmm: [[WP:High-risk templates|Highly visible template]] ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="178">[[File:Blue question mark (italic).svg|{{{{{|safesubst:}}}#if:{{{1|}}}|{{{1}}}|20}}px|alt=??|link=]]&lt;span style=&quot;display:none&quot;&gt;??&lt;/span&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>sqjkylig65p6arry3mwshg65ngln1ti</sha1>
</revision>
</page>
<page>
<title>Template:IPblock</title>
<ns>10</ns>
<id>8076357</id>
<revision>
<id>621836182</id>
<parentid>609665832</parentid>
<timestamp>2014-08-18T22:35:32Z</timestamp>
<contributor>
<username>Funandtrvl</username>
<id>2966869</id>
</contributor>
<comment>updte</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="119">[[File:Artículo bueno-blue.svg|16px|link=|alt=]]&amp;nbsp;'''{{{1|IP blocked}}}'''&lt;noinclude&gt;{{documentation}}&lt;/noinclude&gt;</text>
<sha1>dz9p0r1u7wlws9sw2yrbhewmr7ee9yw</sha1>
</revision>
</page>
<page>
<title>Template:Icon</title>
<ns>10</ns>
<id>10964158</id>
<revision>
<id>643803499</id>
<parentid>623318300</parentid>
<timestamp>2015-01-23T10:29:55Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<comment>switch this to use [[Module:Icon]]</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="138">{{#invoke:Icon|main}}&lt;noinclude&gt;
{{documentation}}
&lt;!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --&gt;
&lt;/noinclude&gt;</text>
<sha1>m4ab9noabl8v4ki5cx6t5ksjcjh5u8o</sha1>
</revision>
</page>
<page>
<title>Template:Idea</title>
<ns>10</ns>
<id>34015983</id>
<revision>
<id>810205999</id>
<parentid>776609774</parentid>
<timestamp>2017-11-13T22:56:00Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Idea]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="120">[[File:Bulbgraph.svg|18px|link=|alt=]] '''{{{1|Idea}}}:'''&lt;!--template:idea--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>6c44xxarelzyw64ycc15p4tslvk4f0l</sha1>
</revision>
</page>
<page>
<title>Template:Implemented</title>
<ns>10</ns>
<id>28846789</id>
<revision>
<id>810134147</id>
<parentid>782406720</parentid>
<timestamp>2017-11-13T14:53:59Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Implemented]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="627">{{#switch:{{{2}}}|#default=[[File:Artículo bueno.svg|20px|link=|alt=]]|b=[[File:Gnome-emblem-default.svg|28px|link=|alt=]]}}&amp;nbsp;'''Implemented'''{{#if: {{{1|}}} | &amp;nbsp;({{{1}}})}}&lt;!--template:implemented--&gt;&lt;noinclude&gt;{{documentation|content=
==Usage==
;Optional parameters
:The first unnamed parameter adds additional text: {{tlx|Implemented|additional text}}
::{{implemented|additional text}}
:If &lt;code&gt;b&lt;/code&gt; is given as the second unnamed parameter, an alternate image is shown: {{tlx|Implemented|&amp;nbsp;|b}}
::{{implemented||b}}
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>i8gxznvjl7a55sidurxabill6esln98</sha1>
</revision>
</page>
<page>
<title>Template:Impossible</title>
<ns>10</ns>
<id>34338669</id>
<revision>
<id>810208178</id>
<parentid>621951492</parentid>
<timestamp>2017-11-13T23:11:35Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Impossible]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="167">[[File:Symbol no support vote.svg|16px|Action was not done and/or was not feasible|link=|alt=]]&amp;nbsp;'''{{{1|Not possible}}}'''&lt;noinclude&gt;{{Documentation}}&lt;/noinclude&gt;</text>
<sha1>803bqd7h7dhl941mq5p8dyxiz5qt4h5</sha1>
</revision>
</page>
<page>
<title>Template:Inconclusive</title>
<ns>10</ns>
<id>5358393</id>
<revision>
<id>621951618</id>
<parentid>609665838</parentid>
<timestamp>2014-08-19T18:55:11Z</timestamp>
<contributor>
<username>Funandtrvl</username>
<id>2966869</id>
</contributor>
<comment>add doc</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="300">[[File:Symbol unsupport vote.svg|16px|link=|alt=]]&amp;nbsp;'''Inconclusive'''&lt;noinclude&gt;{{documentation|content=
== Usage ==
Placing {{Tl|Inconclusive}} on a talk page makes the following appear:
:{{Inconclusive}}
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>r3rmaz6zik6e33att5tcotpanxqb451</sha1>
</revision>
</page>
<page>
<title>Template:InfoNeeded</title>
<ns>10</ns>
<id>6061804</id>
<revision>
<id>810205685</id>
<parentid>723450235</parentid>
<timestamp>2017-11-13T22:53:46Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:InfoNeeded]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="197">[[File:Crystal Clear app help index.png|20px|alt=|link=]]&lt;noinclude&gt;{{documentation|content=
==See also==
{{Done/See also}}
[[Category:Wikipedia-specific image insertion templates]]
}}&lt;/noinclude&gt;</text>
<sha1>lz72vw6fori0nbw7whhzg6x3t9is7ui</sha1>
</revision>
</page>
<page>
<title>Template:Inprogress</title>
<ns>10</ns>
<id>12601342</id>
<revision>
<id>791561414</id>
<parentid>782462971</parentid>
<timestamp>2017-07-21T02:08:14Z</timestamp>
<contributor>
<username>Mz7</username>
<id>11916782</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Inprogress]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="129">[[File:Crystal Clear app clock-orange.svg|16px|alt=clock]]&amp;nbsp;'''{{{1|In progress}}}'''&lt;noinclude&gt;{{documentation}}&lt;/noinclude&gt;</text>
<sha1>8d6ld5oho35gp4gdg1jx01h5ghrlb18</sha1>
</revision>
</page>
<page>
<title>Template:Invalid</title>
<ns>10</ns>
<id>12007403</id>
<revision>
<id>621842915</id>
<parentid>351191072</parentid>
<timestamp>2014-08-18T23:41:33Z</timestamp>
<contributor>
<username>Funandtrvl</username>
<id>2966869</id>
</contributor>
<comment>add doc</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="216">[[File:Pictogram voting oppose.svg|18px|link=|alt=]] '''Invalid'''&lt;noinclude&gt;{{documentation|content=
{{Pp-template|small=yes}}
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>jul8xdl0dki665xvpmywn8q118x1xxk</sha1>
</revision>
</page>
<page>
<title>Template:Investigating</title>
<ns>10</ns>
<id>28846743</id>
<revision>
<id>810205856</id>
<parentid>782462071</parentid>
<timestamp>2017-11-13T22:55:01Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Investigating]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="194">[[Image:Symbol question.svg|20px|link=|alt=]]&amp;nbsp;'''Investigating'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{Done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>bw5qs1ddygghbwx7zd2xam9hdhesgv6</sha1>
</revision>
</page>
<page>
<title>Template:Ipbedone</title>
<ns>10</ns>
<id>36194362</id>
<revision>
<id>810202093</id>
<parentid>504283372</parentid>
<timestamp>2017-11-13T22:28:11Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Ipbedone]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="131">[[Image:Artículo bueno-blue.svg|16px|link=|alt=]] '''{{{1|IP block exemption granted}}}'''&lt;noinclude&gt;{{documentation}}&lt;/noinclude&gt;</text>
<sha1>p1zz90smztigs2wl2w0q3i9s84duf39</sha1>
</revision>
</page>
<page>
<title>Template:Isdoing</title>
<ns>10</ns>
<id>19342371</id>
<revision>
<id>810204483</id>
<parentid>717164553</parentid>
<timestamp>2017-11-13T22:44:58Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Isdoing]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="167">[[Image:Pictogram voting wait.svg|17px|link=|alt=]]&amp;nbsp;'''[[User:{{{1|}}}|{{{1|}}}]] is doing...'''&lt;!--template:isdoing--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>exiwts1tjz07vnthj6773iwcmyx0w7w</sha1>
</revision>
</page>
<page>
<title>Template:Later</title>
<ns>10</ns>
<id>12007418</id>
<revision>
<id>810204345</id>
<parentid>613160639</parentid>
<timestamp>2017-11-13T22:44:00Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Later]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="203">[[Image:Pictogram voting wait.svg|18px|link=|alt=]] '''Later'''&lt;noinclude&gt;
{{documentation|content=
==See also==
{{Done/See also}}
[[Category:Image with comment templates|{{PAGENAME}}]]
}}
&lt;/noinclude&gt;</text>
<sha1>9ipbxx2mmurcezvakf3p69np4wrbrqj</sha1>
</revision>
</page>
<page>
<title>Template:Like</title>
<ns>10</ns>
<id>24865203</id>
<revision>
<id>662210596</id>
<parentid>659296902</parentid>
<timestamp>2015-05-13T21:18:10Z</timestamp>
<contributor>
<username>Salvidrim!</username>
<id>10051232</id>
</contributor>
<comment>Reverted to revision 599397654 by [[Special:Contributions/Callanecc|Callanecc]] ([[User talk:Callanecc|talk]]): Tfd closed as keeep. ·</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="1261">{{#switch:{{lc:{{{icon|}}}}}
|old = &lt;span style=&quot;display:inline-block;padding:0 .5em;line-height:1.80em;border:1px solid; {{border-radius|3px}}; text-align:center;&quot;&gt;[[File:{{{image|Symbol thumbs up.svg}}} |text-top|link=|alt=👍|16px]]&amp;nbsp;{{#if:{{{num|}}}|{{{num|}}} {{PLURAL:{{{num|}}}|user {{{1|likes}}}|users {{{1|like}}}}} this.|{{#if:{{{username|}}}| [[User:{{{username|}}}|{{{username|}}}]] likes this.|{{{1|Like}}}}}}}&lt;/span&gt;
|fb = &lt;span style=&quot;display:inline-block;padding:0 .5em;line-height:1.80em;border:1px solid #CAD4E7; font-family:'Lucida Grande',Tahoma,Verdana,sans-serif; {{border-radius|3px}} background:#ECEEF5; text-align:center;&quot;&gt;[[File:{{{image|Facebook like thumb.png}}} |text-top|link=|alt=👍|16px]]&amp;nbsp;&lt;span style=&quot;color:#3B5998;&quot;&gt;{{#if:{{{num|}}}|{{{num|}}} {{PLURAL:{{{num|}}}|user {{{1|likes}}}|users {{{1|like}}}}} this.|{{#if:{{{username|}}}| [[User:{{{username|}}}|{{{username|}}}]] likes this.|{{{1|Like}}}}}}}&lt;/span&gt;&lt;/span&gt;
|[[File:{{{image|Wikipedia like.png}}} |25px|link=|alt=👍]] '''{{#if:{{{num|}}}|{{{num|}}} {{PLURAL:{{{num|}}}|user {{{1|likes}}}|users {{{1|like}}}}} this.|{{#if:{{{username|}}}| [[User:{{{username|}}}|{{{username|}}}]] likes this.|{{{1|Like}}}}}}}'''}}&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>sko6q5dpe07t4k1011s51buwhlq038r</sha1>
</revision>
</page>
<page>
<title>Template:Likely</title>
<ns>10</ns>
<id>5218318</id>
<revision>
<id>621950686</id>
<parentid>609665844</parentid>
<timestamp>2014-08-19T18:46:23Z</timestamp>
<contributor>
<username>Funandtrvl</username>
<id>2966869</id>
</contributor>
<comment>add doc</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="292">[[File:Symbol support vote.svg|16px|link=|alt=]]&amp;nbsp;'''Likely'''&lt;noinclude&gt;{{documentation|content=
== Usage ==
Placing {{Tl|Likely}} makes the following appear:
:{{Likely}}
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
[[Category:SPI templates]]
}}&lt;/noinclude&gt;</text>
<sha1>rrac1fk6x8e40wfteam046zw4clvg3a</sha1>
</revision>
</page>
<page>
<title>Template:Main other</title>
<ns>10</ns>
<id>17220251</id>
<revision>
<id>388689011</id>
<parentid>334818505</parentid>
<timestamp>2010-10-04T14:46:48Z</timestamp>
<contributor>
<username>WOSlinker</username>
<id>3138265</id>
</contributor>
<comment>remove {{pp-template}}</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="409">{{#switch:
&lt;!--If no or empty &quot;demospace&quot; parameter then detect namespace--&gt;
{{#if:{{{demospace|}}}
| {{lc: {{{demospace}}} }} &lt;!--Use lower case &quot;demospace&quot;--&gt;
| {{#ifeq:{{NAMESPACE}}|{{ns:0}}
| main
| other
}}
}}
| main = {{{1|}}}
| other
| #default = {{{2|}}}
}}&lt;noinclude&gt;
{{documentation}}
&lt;!-- Add categories and interwikis to the /doc subpage, not here! --&gt;
&lt;/noinclude&gt;</text>
<sha1>ngt28vb1n5t4bh1su57btnqyofkd1d5</sha1>
</revision>
</page>
<page>
<title>Template:Marked</title>
<ns>10</ns>
<id>37878766</id>
<revision>
<id>810135496</id>
<parentid>723448499</parentid>
<timestamp>2017-11-13T15:03:51Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Marked]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="256">&lt;span style=&quot;font-size:x-large;color:green&quot;&gt;&amp;#x2713;&lt;/span&gt;&lt;noinclude&gt;{{documentation|content=
==Usage==
:&lt;code&gt;{{tld|marked}}&lt;/code&gt;
==See also==
*{{tl|Yes check}}
{{done/See also}}
[[Category:Image with comment templates|{{PAGENAME}}]]
}}&lt;/noinclude&gt;</text>
<sha1>ipouxfd5qfggf3fgtjaic7y6asff8mb</sha1>
</revision>
</page>
<page>
<title>Template:Megaphoneduck</title>
<ns>10</ns>
<id>28120099</id>
<revision>
<id>810208251</id>
<parentid>751635426</parentid>
<timestamp>2017-11-13T23:12:12Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Megaphoneduck]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="431">{{#ifeq:{{lc:{{{1|}}}}}|ultimate |[[File:Cyberduck icon.png|35px|alt=|link=]][[File:Gnome-audio-volume-high.svg|35px|alt=|link=]]&amp;nbsp;'''1.75x amplified ultimate quack of ultimate destiny''' |[[File:Cyberduck icon.png|20px|alt=|link=]][[File:Gnome-audio-volume-high.svg|20px|alt=|link=]]&amp;nbsp;'''{{{1|It [[Wikipedia:The duck test|sounds like a duck]] quacking into a megaphone to me}}}'''}}&lt;noinclude&gt;{{Documentation}}&lt;/noinclude&gt;</text>
<sha1>nrp077ydcl3vuzthd2sdvu3f0k23n7q</sha1>
</revision>
</page>
<page>
<title>Template:Merge done</title>
<ns>10</ns>
<id>21268391</id>
<revision>
<id>810135468</id>
<parentid>776609837</parentid>
<timestamp>2017-11-13T15:03:40Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Merge done]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="228">[[File:Merge-arrows.svg|Merge arrows|32px|link=|alt=]]&amp;nbsp;&amp;nbsp;{{{{{|safesubst:}}}tick|18}}&amp;nbsp;'''[[Wikipedia:Merging|Merger]] complete.''' {{#if:{{{1|}}}|&lt;small&gt;{{{1}}}&lt;/small&gt;|}}&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>3mefv2nipd5hqqn5zkv9sjz8tf17vbd</sha1>
</revision>
</page>
<page>
<title>Template:MoreInfo</title>
<ns>10</ns>
<id>5103042</id>
<restrictions>edit=autoconfirmed:move=autoconfirmed</restrictions>
<revision>
<id>610103662</id>
<parentid>609665850</parentid>
<timestamp>2014-05-25T18:46:18Z</timestamp>
<contributor>
<username>Sardanaphalus</username>
<id>427947</id>
</contributor>
<comment>allow wrap if {{{wrap}}} set</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="177">&lt;span class=&quot;{{#if:{{{wrap|}}} | |no}}wrap&quot;&gt;[[File:Symbol question.svg|16px|link=|alt= ]]&amp;nbsp;'''Additional information needed'''&lt;/span&gt;&lt;noinclude&gt;{{Documentation}}&lt;/noinclude&gt;</text>
<sha1>4dgw37797ypvbjut9nf5ainjnwehfm0</sha1>
</revision>
</page>
<page>
<title>Template:Moved to commons</title>
<ns>10</ns>
<id>32737835</id>
<revision>
<id>810206893</id>
<parentid>723450984</parentid>
<timestamp>2017-11-13T23:02:35Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Moved to commons]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="222">[[File:Symbol redirect vote.svg|20px|link=|alt=]]&amp;nbsp;'''{{{1|Moved to Commons}}}'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{Done/See also}}
[[Category:Image with comment templates|{{PAGENAME}}]]
}}&lt;/noinclude&gt;</text>
<sha1>gjpvtu1lw5yhm05tdwuw7n635xk5vvj</sha1>
</revision>
</page>
<page>
<title>Template:N&amp;</title>
<ns>10</ns>
<id>21457601</id>
<revision>
<id>810136101</id>
<parentid>621838917</parentid>
<timestamp>2017-11-13T15:07:47Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:N&amp;]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="240">&lt;span style=&quot;color:red;&quot; alt=&quot;Red X&quot; title=&quot;Red X&quot;&gt;&amp;#x2717;&lt;/span&gt;&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Resolution templates]]
[[Category:Wikipedia-specific image insertion templates]]
}}&lt;/noinclude&gt;</text>
<sha1>rz8op5hzn6f4xdvo41d1ofrt4m6xx8y</sha1>
</revision>
</page>
<page>
<title>Template:N.b.</title>
<ns>10</ns>
<id>26137341</id>
<revision>
<id>810204808</id>
<parentid>735672710</parentid>
<timestamp>2017-11-13T22:47:10Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:N.b.]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="158">[[File:Ambox Content.svg|23px|Nota bene|alt=Nota bene|link=]]&lt;span style=&quot;display:none&quot;&gt;*&lt;/span&gt;&lt;!--Template:N.b.--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>o7w52vspvgk7a8ds25o3c2w29hqd80o</sha1>
</revision>
</page>
<page>
<title>Template:N/A icon</title>
<ns>10</ns>
<id>32245529</id>
<revision>
<id>810203448</id>
<parentid>782449136</parentid>
<timestamp>2017-11-13T22:37:17Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:N/A icon]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="232">[[File:Symbol_unsupport_vote.svg|18px|link=|alt=]] '''{{{{{|safesubst:}}}ucfirst:{{{1|Not Applicable}}}}}'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{Done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>gc78u825s3rwm6k3d9vodz4p2g1r07i</sha1>
</revision>
</page>
<page>
<title>Template:Na</title>
<ns>10</ns>
<id>34043929</id>
<revision>
<id>819689342</id>
<parentid>755386272</parentid>
<timestamp>2018-01-10T19:25:50Z</timestamp>
<contributor>
<username>Primefac</username>
<id>11508456</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Na]]&quot;: [[WP:SEMI|semi-protecting]] highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="415">&lt;noinclude&gt;{| class=&quot;wikitable&quot;
|-
|&lt;/noinclude&gt;data-sort-value=&quot;{{{sort|No}}}&quot; style=&quot;background: {{{color|#FFD2D2}}}; color:black; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}&quot; class=&quot;table-no2&quot; {{#if:{{{rowspan|}}}|rowspan=&quot;{{{rowspan}}}&quot;}} | {{{text|[[File:Dark Red x.svg|13px|link={{{link|}}}|{{{1|No}}}]]}}}&lt;noinclude&gt;
|}
{{documentation|Template:Table cell templates/doc}}&lt;/noinclude&gt;</text>
<sha1>kydq4q3kwa02stgqxzehmpo81fh1umd</sha1>
</revision>
</page>
<page>
<title>Template:Navbar-header</title>
<ns>10</ns>
<id>5624434</id>
<revision>
<id>772147365</id>
<parentid>596225820</parentid>
<timestamp>2017-03-25T16:04:14Z</timestamp>
<contributor>
<username>Jo-Jo Eumerus</username>
<id>17449355</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Navbar-header]]&quot;: Allowing template editors on some templates with full protection dating back to pre-[[WP:TPROT]] times which aren't too often or too sensitively used. ([Edit=Require template editor access] (in...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="572">&lt;div style=&quot;text-align:center; position:relative; white-space:nowrap; {{#if:{{{fontcolor|}}}| color:{{{fontcolor}}};}}&quot;&gt;{{{1}}}&lt;!--
--&gt;{{Navbar
| 1 = {{{2&lt;noinclude&gt;|Navbar-header&lt;/noinclude&gt;}}}
| {{#ifeq: {{{plain|}}}
|&lt;!--equals:--&gt;1
|&lt;!--then:--&gt;plain
|&lt;!--else:--&gt;mini
}} = 1
| style = position:absolute; right:0; top:0; margin:0 5px;
| {{#if: {{{fontcolor|}}}
| fontstyle | NULL }} = color:{{{fontcolor}}};
}}&lt;!--
--&gt;&lt;/div&gt;&lt;noinclude&gt;
{{documentation}}
&lt;!-- Add cats and interwikis to the /doc subpage, not here! --&gt;
&lt;/noinclude&gt;</text>
<sha1>o2nxx1w6kf5t2fjkytkr25ca8g8w0ob</sha1>
</revision>
</page>
<page>
<title>Template:Nay</title>
<ns>10</ns>
<id>4894706</id>
<revision>
<id>810135930</id>
<parentid>713195618</parentid>
<timestamp>2017-11-13T15:06:49Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Nay]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require administrator access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="118">[[File:Red x.svg|13px|alt=Red X|link=]]&lt;span style=&quot;display: none;&quot;&gt;N&lt;/span&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>pv0kgw2wx2harjo87rxg5sjm9rs7iq2</sha1>
</revision>
</page>
<page>
<title>Template:Nc</title>
<ns>10</ns>
<id>36035052</id>
<redirect title="Template:No comment IP" />
<revision>
<id>810564987</id>
<parentid>810305255</parentid>
<timestamp>2017-11-16T01:37:45Z</timestamp>
<contributor>
<username>BU Rob13</username>
<id>25420061</id>
</contributor>
<comment>this breaks the redirect</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="36">#REDIRECT [[Template:No comment IP]]</text>
<sha1>l4x12tifm3ehdqaadzornw8h41n388b</sha1>
</revision>
</page>
<page>
<title>Template:NeedsDiscussion</title>
<ns>10</ns>
<id>28846806</id>
<revision>
<id>810204633</id>
<parentid>776609517</parentid>
<timestamp>2017-11-13T22:45:54Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:NeedsDiscussion]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="152">[[Image:Pictogram voting info.svg|20px|link=|alt=]]&amp;nbsp;'''Needs discussion'''&lt;!--Template:NeedsDiscussion--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>hyvug6b1ej9jmnpaltk4f6opbfbv3r7</sha1>
</revision>
</page>
<page>
<title>Template:NewBug</title>
<ns>10</ns>
<id>28847308</id>
<revision>
<id>810206732</id>
<parentid>782447811</parentid>
<timestamp>2017-11-13T23:01:25Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:NewBug]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="271">[[File:Green bug.svg|28px|alt=bug]] &amp;nbsp; '''New bug'''{{#if: {{{1|}}} | &amp;nbsp; ({{{1}}})}}
&lt;noinclude&gt;{{documentation|content=
==See also==
{{Done/See also}}
[[Category:Image with comment templates|{{PAGENAME}}]]
[[Category:Wikipedia article alerts|Τ]]
}}&lt;/noinclude&gt;</text>
<sha1>iry5uc0eejh9dvmun7wic8qtv1emong</sha1>
</revision>
</page>
<page>
<title>Template:NewProposal</title>
<ns>10</ns>
<id>30139996</id>
<revision>
<id>810206040</id>
<parentid>786884361</parentid>
<timestamp>2017-11-13T22:56:19Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:NewProposal]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="293">[[File:Dialog-information on.svg|28px|alt=light bulb]]&amp;nbsp;'''New proposal'''{{#if: {{{1|}}} | &amp;nbsp; ({{{1}}})}}
&lt;noinclude&gt;{{documentation|content=
==See also==
{{Done/See also}}
[[Category:Image with comment templates|{{PAGENAME}}]]
[[Category:Wikipedia article alerts|Τ]]
}}&lt;/noinclude&gt;</text>
<sha1>jxcaoguvq6wheg0zdl0424aqvru70tc</sha1>
</revision>
</page>
<page>
<title>Template:No action</title>
<ns>10</ns>
<id>23451757</id>
<revision>
<id>810202745</id>
<parentid>782449720</parentid>
<timestamp>2017-11-13T22:32:40Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:No action]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="180">[[File:Symbol declined.svg|16px|alt=no]] '''No action'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>l77c4fmgc9o6ecf2rqujezbcxk9nuif</sha1>
</revision>
</page>
<page>
<title>Template:No comment IP</title>
<ns>10</ns>
<id>34664930</id>
<revision>
<id>810202859</id>
<parentid>695540375</parentid>
<timestamp>2017-11-13T22:33:28Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:No comment IP]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="557">[[Image:Symbol oppose vote.svg|16px|link=|alt=]]&amp;nbsp;'''No comment'''&amp;nbsp;{{{1|with respect to IP address(es)}}}&lt;noinclude&gt;{{documentation|content=
==Using this template==
&lt;code&gt;&lt;nowiki&gt;{{nc}}&lt;/nowiki&gt;&lt;/code&gt; ('''n'''o '''c'''omment) is a shorthand redirect for this template.
&lt;code&gt;&lt;nowiki&gt;{{nc}}&lt;/nowiki&gt;&lt;/code&gt; gives {{nc}}
&lt;code&gt;&lt;nowiki&gt;{{nc|the anonymous accounts}}&lt;/nowiki&gt;&lt;/code&gt; gives {{no comment IP|with respect to the anonymous accounts}}
==See also==
{{done/See also}}
[[Category:Image with comment templates|{{PAGENAME}}]]
}}&lt;/noinclude&gt;</text>
<sha1>jdyzvu420ffr3q0kzq6ycxwpkf0ey0o</sha1>
</revision>
</page>
<page>
<title>Template:No mark</title>
<ns>10</ns>
<id>3646079</id>
<revision>
<id>810135957</id>
<parentid>782407069</parentid>
<timestamp>2017-11-13T15:06:58Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:No mark]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="322">{{Main other||[[File:X mark.svg|11px|link=|alt=]]&amp;nbsp;No}}&lt;noinclude&gt;{{documentation|content=
{{Warning|{{tl|No mark}} should not be used in [[WP:WIAA|articles]] per [[MOS:ICONDECORATION]].}}
==Usage==
:&lt;code&gt;{{tld|No mark}}&lt;/code&gt;
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>nz4y8hfn4tnohce4m0ghf3ti4zlk32g</sha1>
</revision>
</page>
<page>
<title>Template:No pass</title>
<ns>10</ns>
<id>43029465</id>
<revision>
<id>810135995</id>
<parentid>635522745</parentid>
<timestamp>2017-11-13T15:07:12Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:No pass]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="163">&lt;span style=&quot;color: red; font-size: 1.8em;&quot;&gt;&amp;#x2717;&lt;/span&gt;&amp;nbsp;'''No pass'''&lt;noinclude&gt;
{{documentation}}
[[Category:Image with comment templates]]&lt;/noinclude&gt;</text>
<sha1>a2azqqxyb0j09ppr8z1bkv6ishqzr2a</sha1>
</revision>
</page>
<page>
<title>Template:Nocomment</title>
<ns>10</ns>
<id>25139669</id>
<revision>
<id>810202787</id>
<parentid>609665862</parentid>
<timestamp>2017-11-13T22:33:05Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Nocomment]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="97">[[Image:Symbol declined.svg|16px|link=|alt=]]&amp;nbsp;'''No comment'''&lt;noinclude&gt;{{doc}}&lt;/noinclude&gt;</text>
<sha1>04u4du1ppdqsdaqohnyl4uzqmx1fqx2</sha1>
</revision>
</page>
<page>
<title>Template:Nojoy</title>
<ns>10</ns>
<id>30215045</id>
<revision>
<id>810136500</id>
<parentid>782407708</parentid>
<timestamp>2017-11-13T15:10:02Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Nojoy]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="284">[[File:Symbol unrelated.svg|17px|link=|alt=]] '''No technical evidence'''&lt;!--template:nojoy--&gt;&lt;noinclude&gt;{{documentation|content=
==Usage==
:{{tlx|Nojoy}}
==See also==
{{done/See also}}
[[Category:Image with comment templates|{{PAGENAME}}]]
[[Category:SPI templates]]
}}&lt;/noinclude&gt;</text>
<sha1>7hpj7udgny0nk63qb0ghlmetgw7c758</sha1>
</revision>
</page>
<page>
<title>Template:Nosleepers</title>
<ns>10</ns>
<id>43240477</id>
<revision>
<id>810180556</id>
<parentid>723451737</parentid>
<timestamp>2017-11-13T20:00:06Z</timestamp>
<contributor>
<username>Ymblanter</username>
<id>14596827</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Nosleepers]]&quot;: [[WP:High-risk templates|Highly visible template]]: request at [[WP:RFPP]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="285">[[File:Nuvola apps remote green.png|16px|link=|alt=]]&amp;nbsp;'''No sleepers{{{1| [[WP:PIXIEDUST|immediately visible]]}}}'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{Done/See also}}
[[Category:Image with comment templates|{{PAGENAME}}]]
[[Category:SPI templates]]
}}&lt;/noinclude&gt;</text>
<sha1>8bqjlxbrb0c4t9o78fpjsp7ftryiovj</sha1>
</revision>
</page>
<page>
<title>Template:NotBug</title>
<ns>10</ns>
<id>28846862</id>
<revision>
<id>810202644</id>
<parentid>782449886</parentid>
<timestamp>2017-11-13T22:32:00Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:NotBug]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="183">[[File:Symbol declined.svg|20px|alt=no]]&amp;nbsp;'''Not bug'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>db7hgfexnblw39aea5mw3gtddlpw3xh</sha1>
</revision>
</page>
<page>
<title>Template:Not a bug</title>
<ns>10</ns>
<id>41836434</id>
<revision>
<id>810136386</id>
<parentid>750238912</parentid>
<timestamp>2017-11-13T15:09:24Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Not a bug]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="179">{{Wontfix|Not a bug}}&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
[[Category:Resolution templates]]
}}&lt;/noinclude&gt;</text>
<sha1>lrd5eiznwr0zz50mjh8g5wsx9wyd419</sha1>
</revision>
</page>
<page>
<title>Template:Not done</title>
<ns>10</ns>
<id>6865545</id>
<revision>
<id>776610353</id>
<parentid>776604245</parentid>
<timestamp>2017-04-22T03:15:06Z</timestamp>
<contributor>
<username>Ahecht</username>
<id>2016996</id>
</contributor>
<comment>Per [[Wikipedia:Alternative text for images#Examples]], the icon is purely decorative and does not need alt text.</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="124">[[File:X mark.svg|18px|link=|alt=]] '''{{{1|Not done}}}'''&lt;!--template:not done--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>7lqeu2bz529hfw7vzcvat5h7d5gr8gj</sha1>
</revision>
</page>
<page>
<title>Template:Not done-t</title>
<ns>10</ns>
<id>16498704</id>
<revision>
<id>678691771</id>
<parentid>635561666</parentid>
<timestamp>2015-08-31T01:12:15Z</timestamp>
<contributor>
<username>MusikAnimal</username>
<id>14882394</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:Not done-t: Highly visible template; lowering to template protection ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only administrators] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="153">&lt;span style=&quot;color:#C30; font-size:1.4em;&quot;&gt;&amp;#x2717;&lt;/span&gt;&amp;nbsp;'''{{{1|Not done}}}'''&lt;!--template:not done-t--&gt;&lt;noinclude&gt;
{{Documentation}}&lt;/noinclude&gt;</text>
<sha1>54xa7sftapox89k6uuvxmqgndqbgsxw</sha1>
</revision>
</page>
<page>
<title>Template:Not done not likely</title>
<ns>10</ns>
<id>26384711</id>
<revision>
<id>810135803</id>
<parentid>610098658</parentid>
<timestamp>2017-11-13T15:05:59Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Not done not likely]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="149">{{{{{|safesubst:}}}cross|18}} '''{{{{{|safesubst:}}}ucfirst:{{{1|Not done and not likely to be done}}}}}'''&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>3e5txufh8tqghwmr6q21obf3eamejqf</sha1>
</revision>
</page>
<page>
<title>Template:Not sure</title>
<ns>10</ns>
<id>25088797</id>
<revision>
<id>810205750</id>
<parentid>452765520</parentid>
<timestamp>2017-11-13T22:54:11Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Not sure]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="115">[[File:Purple question mark.svg|18px|link=|alt= ]] '''{{{1|Not sure}}}'''&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>j3iwn5z3tr7gazj3rahwfdutbfiadsk</sha1>
</revision>
</page>
<page>
<title>Template:Notabug</title>
<ns>10</ns>
<id>52314525</id>
<redirect title="Template:Not a bug" />
<revision>
<id>810136362</id>
<parentid>750238915</parentid>
<timestamp>2017-11-13T15:09:16Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Notabug]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="49">#REDIRECT [[Template:Not a bug]]
{{R from move}}</text>
<sha1>5bgxfotlanynzdz8uugnivma9t1qg0b</sha1>
</revision>
</page>
<page>
<title>Template:Note2</title>
<ns>10</ns>
<id>21215565</id>
<revision>
<id>810204678</id>
<parentid>782462901</parentid>
<timestamp>2017-11-13T22:46:12Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Note2]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="408">[[File:Pictogram voting info.svg|20px|link=|alt=]] '''{{ucfirst:{{{1|Note:}}}}}'''&lt;!--template:note2--&gt;&lt;noinclude&gt;
{{documentation|content=
{{Distinguish|Template:Note}}
==Usage==
You may either use {{tlx|Note2}} by itself for the default message or you may add a custom message as an optional parameter.
==See also==
{{done/See also}}
[[Category:Image with comment templates|{{PAGENAME}}]]
}}&lt;/noinclude&gt;</text>
<sha1>leq2ijvklxq0jsnohho6wj36b9xb5jr</sha1>
</revision>
</page>
<page>
<title>Template:Notfixed</title>
<ns>10</ns>
<id>23211250</id>
<revision>
<id>810136410</id>
<parentid>682147447</parentid>
<timestamp>2017-11-13T15:09:33Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Notfixed]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="226">[[File:Pictogram voting delete.svg|18px|link=|alt=]] '''Not fixed'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
[[Category:Resolution templates]]
}}&lt;/noinclude&gt;</text>
<sha1>79kk4g1eriv4jacj0nen10vwz75ontt</sha1>
</revision>
</page>
<page>
<title>Template:Notsure</title>
<ns>10</ns>
<id>15429243</id>
<revision>
<id>810205816</id>
<parentid>627176978</parentid>
<timestamp>2017-11-13T22:54:45Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Notsure]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="334">[[Image:Symbol question.svg|20px|alt=|link=]] '''Not sure. '''&lt;noinclude&gt;
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}
&lt;!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])--&gt;
[[Category:Image with comment templates]]
&lt;/noinclude&gt;</text>
<sha1>7om104ifglcopwj3q9sftcx076al16a</sha1>
</revision>
</page>
<page>
<title>Template:Ns0</title>
<ns>10</ns>
<id>24382166</id>
<redirect title="Template:Main other" />
<revision>
<id>323931230</id>
<parentid>315384918</parentid>
<timestamp>2009-11-04T18:26:18Z</timestamp>
<contributor>
<username>Davidgothberg</username>
<id>109101</id>
</contributor>
<comment>Redirecting to [[Template:Main other]], since that one is compatible with this one. I have discussed this with Rich who created this template, and he is okay with it.</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="33">#REDIRECT [[Template:Main other]]</text>
<sha1>dvqyxp27hv2ap4cn236u5axdbx0r3vd</sha1>
</revision>
</page>
<page>
<title>Template:OnHoldUntil</title>
<ns>10</ns>
<id>22887616</id>
<revision>
<id>810203964</id>
<parentid>621844427</parentid>
<timestamp>2017-11-13T22:41:09Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:OnHoldUntil]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="193">[[File:Symbol wait.svg|15px|link=|alt=]] '''On hold until {{{1|}}}'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>igfvm4c3uj4ongslu1qjzylqep4h9sy</sha1>
</revision>
</page>
<page>
<title>Template:On hold</title>
<ns>10</ns>
<id>17200123</id>
<revision>
<id>794649601</id>
<parentid>621844373</parentid>
<timestamp>2017-08-09T07:43:03Z</timestamp>
<contributor>
<username>Mz7</username>
<id>11916782</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:On hold]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="186">[[File:Symbol wait.svg|15px|link=|alt=]] '''{{{1|On hold}}}'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>b1bbf06o8ptdfjf0knspdjy86mlnw6b</sha1>
</revision>
</page>
<page>
<title>Template:Opblocked</title>
<ns>10</ns>
<id>15688064</id>
<revision>
<id>810136287</id>
<parentid>782407497</parentid>
<timestamp>2017-11-13T15:08:49Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Opblocked]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="259">[[File:Pictogram voting delete.svg|20px|link=|alt=]] '''Blocked'''&lt;noinclude&gt;{{documentation|content=
A block notice for [[WP:OP|Wikipedia:WikiProject on open proxies]].
==See also==
{{Done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>638g2jcngfq02qn127gxfpxrtah1c59</sha1>
</revision>
</page>
<page>
<title>Template:Orz</title>
<ns>10</ns>
<id>33577207</id>
<revision>
<id>810206937</id>
<parentid>723447817</parentid>
<timestamp>2017-11-13T23:02:56Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Orz]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="205">[[File:Symbol 囧 vote.svg|20px|alt=|link=]] &lt;big&gt;'''Orz...'''&lt;/big&gt;&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates|{{PAGENAME}}]]
}}&lt;/noinclude&gt;</text>
<sha1>sx2e1ll2zpimfjzjp9qz8zr59syt9pt</sha1>
</revision>
</page>
<page>
<title>Template:PImplemented</title>
<ns>10</ns>
<id>28849358</id>
<revision>
<id>810134217</id>
<parentid>782406409</parentid>
<timestamp>2017-11-13T14:54:23Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:PImplemented]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="393">[[File:Checkhalf.png|20px|alt=check]] '''{{ucfirst:{{{1|Partially implemented}}}}}'''&lt;!--Template:PImplemented--&gt;&lt;noinclude&gt;{{documentation|content=
==Usage==
You may either use {{tlx|PImplemented}} by itself for the default message or you may add a custom message as an optional parameter.
==See also==
{{done/See also}}
[[Category:Image with comment templates|{{PAGENAME}}]]
}}&lt;/noinclude&gt;</text>
<sha1>6ky2v5xunnxfmyqrrcj8yj7ppc3dsba</sha1>
</revision>
</page>
<page>
<title>Template:Partly done</title>
<ns>10</ns>
<id>31837845</id>
<revision>
<id>810137273</id>
<parentid>721352045</parentid>
<timestamp>2017-11-13T15:14:17Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Partly done]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="222">[[File:yellow check.svg|18px|Check mark|alt=yellow tick|link=]]&lt;span style=&quot;display:none&quot;&gt;Y&lt;/span&gt; '''{{{{{|safesubst:}}}ucfirst:{{{1|Partly done}}}}}'''&lt;!--template:partly done--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>4tia7uieeqx6wqsvpj9oxwwuyb6zblw</sha1>
</revision>
</page>
<page>
<title>Template:Partly done-t</title>
<ns>10</ns>
<id>36423384</id>
<revision>
<id>810137291</id>
<parentid>715225331</parentid>
<timestamp>2017-11-13T15:14:26Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Partly done-t]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="156">&lt;big style=&quot;color: goldenrod; font-size:1.6em;&quot;&gt;&amp;#x2713;&lt;/big&gt;&amp;nbsp;'''{{{1|Partly done}}}'''&lt;!--template:done-t--&gt;&lt;noinclude&gt;
{{Documentation}}&lt;/noinclude&gt;</text>
<sha1>kj6445eo91l72jmtaflnxc8qr2ivqwy</sha1>
</revision>
</page>
<page>
<title>Template:Pass</title>
<ns>10</ns>
<id>20845047</id>
<revision>
<id>819682646</id>
<parentid>635522239</parentid>
<timestamp>2018-01-10T18:59:36Z</timestamp>
<contributor>
<username>Primefac</username>
<id>11508456</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Pass]]&quot;: [[WP:SEMI|semi-protecting]] highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefini...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="261">&lt;span style=&quot;font-size: 1.8em; color: #24B14C;&quot;&gt;✓&lt;/span&gt;&amp;nbsp;'''Pass'''&lt;noinclude&gt;
{{Documentation
| content =
{{Done/See also}}
[[Category:Checkmark insertion templates]]
[[Category:Image with comment templates]]
}}&lt;!--(end Documentation)--&gt;
&lt;/noinclude&gt;</text>
<sha1>6qp967mkrwm4cekk2p58ejxb8vwap1w</sha1>
</revision>
</page>
<page>
<title>Template:Pblock</title>
<ns>10</ns>
<id>36289253</id>
<revision>
<id>810202168</id>
<parentid>503154505</parentid>
<timestamp>2017-11-13T22:28:39Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Pblock]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="118">[[Image:Artículo bueno-blue.svg|16px|link=|alt=]] '''{{{1|Proxy blocked}}}'''&lt;noinclude&gt;{{documentation}}&lt;/noinclude&gt;</text>
<sha1>l3wzpt0trv30jb5trsf2coyzkkuc39c</sha1>
</revision>
</page>
<page>
<title>Template:PendingRequest</title>
<ns>10</ns>
<id>28847348</id>
<revision>
<id>810203851</id>
<parentid>782450424</parentid>
<timestamp>2017-11-13T22:40:14Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:PendingRequest]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="395">[[File:Symbol_wait.svg|20px|link=|alt=]] '''{{ucfirst:{{{1|Pending approval}}}}}'''&lt;!--Template:PendingRequest--&gt;&lt;noinclude&gt;{{documentation|content=
==Usage==
You may either use {{tlx|PendingRequest}} by itself for the default message or you may add a custom message as an optional parameter.
==See also==
{{done/See also}}
[[Category:Image with comment templates|{{PAGENAME}}]]
}}&lt;/noinclude&gt;</text>
<sha1>s4u838y35bp5k2wktiv4yk3j4iscdp2</sha1>
</revision>
</page>
<page>
<title>Template:Pixiedust</title>
<ns>10</ns>
<id>19434324</id>
<revision>
<id>810180235</id>
<parentid>621850009</parentid>
<timestamp>2017-11-13T19:58:01Z</timestamp>
<contributor>
<username>Ymblanter</username>
<id>14596827</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Pixiedust]]&quot;: [[WP:High-risk templates|Highly visible template]]: request at [[WP:RFPP]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="332">[[File:Pixie dust.png|16px|link=|alt=]]&amp;nbsp;'''{{{1|[[Wikipedia:CheckUser|CheckUser]]}}} is not magic [[pixie dust]]'''&lt;noinclude&gt;{{documentation|content=
==Usage==
{{tbullet|Pixiedust}}
Or with a parameter
{{tbulletp|Pixiedust|Fairydust}}
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>5xu6w5maxv2tv406ahzn6sdbgzzkyem</sha1>
</revision>
</page>
<page>
<title>Template:Possible</title>
<ns>10</ns>
<id>5218313</id>
<revision>
<id>690777032</id>
<parentid>621951274</parentid>
<timestamp>2015-11-15T17:03:29Z</timestamp>
<contributor>
<username>Sam Sailor</username>
<id>19244234</id>
</contributor>
<comment>Rm indent</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="295">[[File:Symbol possible vote.svg|16px|alt=|link=]]&amp;nbsp;'''{{{1|Possible}}}'''&lt;noinclude&gt;{{documentation|content=
== Usage ==
Placing {{Tl|possible}} on a talk page makes the following appear:
{{possible}}
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>g00l7pnibfavjns8b0ok2t28rifgctq</sha1>
</revision>
</page>
<page>
<title>Template:Possibly</title>
<ns>10</ns>
<id>32490781</id>
<revision>
<id>810206979</id>
<parentid>782447978</parentid>
<timestamp>2017-11-13T23:03:15Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Possibly]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="206">[[File:Symbol possible vote.svg|20px|link=|alt=]]&amp;nbsp;'''Possibly'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{Done/See also}}
[[Category:Image with comment templates|{{PAGENAME}}]]
}}&lt;/noinclude&gt;</text>
<sha1>63fkt9u27a9t0m421bk84ogs3xq87y8</sha1>
</revision>
</page>
<page>
<title>Template:Possilikely</title>
<ns>10</ns>
<id>43225321</id>
<revision>
<id>810208221</id>
<parentid>723430102</parentid>
<timestamp>2017-11-13T23:11:54Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Possilikely]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="274">[[File:Symbol version generic.svg|16px|link=|alt=]]&amp;nbsp;'''Possilikely''' (a mix between possible and likely)&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates|{{PAGENAME}}]]
[[Category:SPI templates]]
}}&lt;/noinclude&gt;</text>
<sha1>osokrr9vzh4hn80fqfno2mopaumtkeh</sha1>
</revision>
</page>
<page>
<title>Template:Posted</title>
<ns>10</ns>
<id>24115502</id>
<revision>
<id>810203029</id>
<parentid>723449514</parentid>
<timestamp>2017-11-13T22:34:36Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Posted]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="140">{{Added|Posted}}&lt;noinclude&gt;{{documentation|content=
==See also==
{{Done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>2hf13oxx1mdqgn55vu83400v4d459uz</sha1>
</revision>
</page>
<page>
<title>Template:ProposalOnHold</title>
<ns>10</ns>
<id>30139997</id>
<revision>
<id>810204003</id>
<parentid>782463057</parentid>
<timestamp>2017-11-13T22:41:29Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:ProposalOnHold]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="295">[[File:Gnome-appointment-soon.svg|28px|alt=clock]] &amp;nbsp; '''Proposal on hold'''{{#if: {{{1|}}} | &amp;nbsp; ({{{1}}})}}
&lt;noinclude&gt;{{documentation|content=
==See also==
{{Done/See also}}
[[Category:Image with comment templates|{{PAGENAME}}]]
[[Category:Wikipedia article alerts|Τ]]
}}&lt;/noinclude&gt;</text>
<sha1>4dlhb158tog6s7qdk2u43hszmxct42d</sha1>
</revision>
</page>
<page>
<title>Template:Psblock</title>
<ns>10</ns>
<id>36289264</id>
<revision>
<id>810202229</id>
<parentid>500051945</parentid>
<timestamp>2017-11-13T22:29:02Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Psblock]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="110">[[Image:Artículo bueno-blue.svg|16px|link=|alt=]] '''{{{1|Proxies blocked}}}'''&lt;noinclude&gt;{{doc}}&lt;/noinclude&gt;</text>
<sha1>2zpc2cmheze4jm7t4homyryvw917tc8</sha1>
</revision>
</page>
<page>
<title>Template:Qmark</title>
<ns>10</ns>
<id>29373278</id>
<revision>
<id>733056872</id>
<parentid>599377040</parentid>
<timestamp>2016-08-05T02:24:56Z</timestamp>
<contributor>
<username>Xaosflux</username>
<id>502540</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:Qmark: &gt;100000 transclusions, increase to TEP - highly visible ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="183">[[File:Blue question mark (italic).svg|{{{{{|safesubst:}}}#if:{{{1|}}}|{{{1}}}|20}}px|alt=Question|link=]]&lt;span style=&quot;display:none&quot;&gt;?&lt;/span&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>6vjt6na1qcgt9b3v08f7po2jny4j6ij</sha1>
</revision>
</page>
<page>
<title>Template:Question</title>
<ns>10</ns>
<id>4143470</id>
<revision>
<id>782461663</id>
<parentid>721352096</parentid>
<timestamp>2017-05-27T01:54:54Z</timestamp>
<contributor>
<username>Matt Fitzpatrick</username>
<id>291848</id>
</contributor>
<minor/>
<comment>adjacent text {{{label}}} or &quot;Question&quot; is sufficient alt text</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="291">[[File:Symbol question.svg|17px|link=|alt=]]&amp;nbsp;&lt;span style=&quot;font-weight:bold&quot;&gt;{{{label|Question}}}: &lt;/span&gt;{{{1| }}}&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
[[Category:Wikipedia administration templates]]
}}&lt;/noinclude&gt;</text>
<sha1>6u48p8aj92r5fdk5b4ojg1s78077qk2</sha1>
</revision>
</page>
<page>
<title>Template:Question mark</title>
<ns>10</ns>
<id>8246216</id>
<revision>
<id>810205647</id>
<parentid>611264381</parentid>
<timestamp>2017-11-13T22:53:30Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Question mark]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="170">[[Image:Question mark.svg|{{{{{|safesubst:}}}#if:{{{1|}}}|{{{1}}}|13}}px|alt=Question|link=]]&lt;span style=&quot;display:none&quot;&gt;?&lt;/span&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>psihnv8jezmoas2rpq4stcltzmjkxse</sha1>
</revision>
</page>
<page>
<title>Template:Rblock</title>
<ns>10</ns>
<id>34217353</id>
<revision>
<id>810202273</id>
<parentid>468287747</parentid>
<timestamp>2017-11-13T22:29:21Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Rblock]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="108">[[Image:Artículo bueno-blue.svg|16px|link=|alt=]] '''{{{1|Range blocked}}}'''&lt;noinclude&gt;{{doc}}&lt;/noinclude&gt;</text>
<sha1>9phg854kt0oev31l6fgxxovbdcinr5u</sha1>
</revision>
</page>
<page>
<title>Template:Read</title>
<ns>10</ns>
<id>35842007</id>
<revision>
<id>810207018</id>
<parentid>782448036</parentid>
<timestamp>2017-11-13T23:03:33Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Read]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="147">[[File:Farm-Fresh eye.png|15px|alt=eye]] I have read the above message. I will reply when I have a moment.&lt;noinclude&gt;
{{Template doc}}
&lt;/noinclude&gt;</text>
<sha1>g9yji6vqkhvla8u6180ecmywt8kgy0k</sha1>
</revision>
</page>
<page>
<title>Template:Redflag</title>
<ns>10</ns>
<id>16272541</id>
<revision>
<id>810207087</id>
<parentid>782448090</parentid>
<timestamp>2017-11-13T23:04:01Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Redflag]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="281">[[File:Red flag II.svg|20px|alt=flag]]&amp;nbsp;'''{{{1|Redflag}}}'''&lt;noinclude&gt;{{documentation|content=
== Usage ==
Placing {{Tl|redflag}} on a talk page makes the following appear:
:{{redflag}}
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>l3f546rutjt5lru73gb71fw95kblq5f</sha1>
</revision>
</page>
<page>
<title>Template:Redundant symbol</title>
<ns>10</ns>
<id>13713826</id>
<revision>
<id>810207126</id>
<parentid>782448149</parentid>
<timestamp>2017-11-13T23:04:20Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Redundant symbol]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="298">[[File:Fairytale Trash.svg|25px|alt=trash]]&amp;nbsp;'''Redundant'''&lt;noinclude&gt;{{documentation|content=
== Usage ==
Placing {{Tl|Redundant symbol}} on a talk page makes the following appear:
:{{Redundant symbol}}
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>h43a1n3lzenu0x9t9hcom3cg3seznix</sha1>
</revision>
</page>
<page>
<title>Template:Relisted</title>
<ns>10</ns>
<id>10286586</id>
<revision>
<id>663267461</id>
<parentid>609665877</parentid>
<timestamp>2015-05-20T14:53:56Z</timestamp>
<contributor>
<username>Steel1943</username>
<id>2952402</id>
</contributor>
<comment>Image --&gt; File</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="107">[[File:Symbol move vote.svg|16px|link=|alt=]]&amp;nbsp;'''Relisted'''&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>plmmpnmg6a5v68l8hc9gfd4vagar7rl</sha1>
</revision>
</page>
<page>
<title>Template:Remark</title>
<ns>10</ns>
<id>12938792</id>
<revision>
<id>810205113</id>
<parentid>621847056</parentid>
<timestamp>2017-11-13T22:49:35Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Remark]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="324">[[File:Symbol comment vote.svg|20px|link=|alt=]] '''Remark:'''&lt;noinclude&gt;{{documentation|content=
== Usage ==
Used instead of [[Template:A note]] for general comments in an area where decisive comments are made; ie at [[WP:XFD|XFD]]s.
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>mh1fcs2r50kdxht6wlcigissbkkzbjw</sha1>
</revision>
</page>
<page>
<title>Template:Remind</title>
<ns>10</ns>
<id>12007435</id>
<revision>
<id>810205042</id>
<parentid>773237927</parentid>
<timestamp>2017-11-13T22:49:09Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Remind]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="191">[[File:Pictogram voting comment.svg|18px|link=|alt=]] '''Remind'''
&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>817nzun3faau1x5iph59x433cf07g2e</sha1>
</revision>
</page>
<page>
<title>Template:Removed</title>
<ns>10</ns>
<id>20612193</id>
<revision>
<id>810202965</id>
<parentid>782449494</parentid>
<timestamp>2017-11-13T22:34:13Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Removed]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="218">[[File:Crystal_Clear_action_edit_remove.png|20px|alt=minus]] '''{{ucfirst:{{{1|Removed}}}}}'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>sk2rc66i1c473ygjnvuc9ko9v14m6gp</sha1>
</revision>
</page>
<page>
<title>Template:Renamer note</title>
<ns>10</ns>
<id>46980148</id>
<revision>
<id>810205521</id>
<parentid>666965749</parentid>
<timestamp>2017-11-13T22:52:38Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Renamer note]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="131">[[File:Symbol comment vote.svg|16px|link=|alt=]]&amp;nbsp;'''Renamer note{{{1|}}}{{{2|:}}}'''&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>t6p95aehbsdr0r5iav8ilz4dc2n5dgj</sha1>
</revision>
</page>
<page>
<title>Template:Reopened</title>
<ns>10</ns>
<id>19946585</id>
<revision>
<id>810207168</id>
<parentid>782448215</parentid>
<timestamp>2017-11-13T23:04:37Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Reopened]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="290">[[File:Symbol recycling vote.svg|20px|alt=recycle]]&amp;nbsp;'''Reopened'''&lt;noinclude&gt;{{documentation|content=
== Usage ==
Placing {{Tl|reopened}} makes the following appear:
:{{reopened}}
==See also==
* {{tl|Relist}}
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>jtkogyxwku2a01dthlc63qjue4pnk2a</sha1>
</revision>
</page>
<page>
<title>Template:Resolved1</title>
<ns>10</ns>
<id>36729881</id>
<revision>
<id>810136823</id>
<parentid>621236177</parentid>
<timestamp>2017-11-13T15:11:50Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Resolved1]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="98">[[File:U2713.svg|18px|link=|alt=]] {{{1|'''Resolved'''}}}&lt;noinclude&gt;
{{documentation}}&lt;/noinclude&gt;</text>
<sha1>qrv6kunnd4f1lq6egxru9r7w4uu7e8p</sha1>
</revision>
</page>
<page>
<title>Template:Resolved mark</title>
<ns>10</ns>
<id>16663601</id>
<revision>
<id>810134250</id>
<parentid>622831980</parentid>
<timestamp>2017-11-13T14:54:36Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Resolved mark]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="198">[[Image:Symbol confirmed.svg|20px|link=|alt=]] '''Resolved'''&lt;noinclude&gt;{{documentation|content={{Template:Resolved mark/doc|type=checkmark}}}}
&lt;!--Categories go on the /doc subpage --&gt;
&lt;/noinclude&gt;</text>
<sha1>3hw3ui4knsnwc8w724j8xgu5lu8z7yb</sha1>
</revision>
</page>
<page>
<title>Template:Resolved mark large</title>
<ns>10</ns>
<id>37535148</id>
<revision>
<id>810134127</id>
<parentid>776610164</parentid>
<timestamp>2017-11-13T14:53:48Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Resolved mark large]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="212">[[File:Symbol confirmed.svg|24px|link=|alt=]] {{resize|98%|'''Resolved'''}}&lt;noinclude&gt;{{documentation|content={{Template:Resolved mark/doc|type=checkmark}}}}
&lt;!--Categories go on the /doc subpage --&gt;
&lt;/noinclude&gt;</text>
<sha1>4ufqc8byi0i4yyhe3zi712jkcthgfvx</sha1>
</revision>
</page>
<page>
<title>Template:Responded</title>
<ns>10</ns>
<id>29437601</id>
<revision>
<id>810135429</id>
<parentid>782406976</parentid>
<timestamp>2017-11-13T15:03:25Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Responded]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="168">:[[File:Yes check.svg|20px|link=|alt=]] '''{{ucfirst:{{{1|Responded at the appropriate venue.}}}}}'''&lt;!--template:responded--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>k7adj3mpmaurbel32frr2ntlx27bz9w</sha1>
</revision>
</page>
<page>
<title>Template:Reverted</title>
<ns>10</ns>
<id>24663820</id>
<revision>
<id>810207215</id>
<parentid>782448284</parentid>
<timestamp>2017-11-13T23:04:57Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Reverted]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="294">[[File:Wikipedia Rollbacker.svg|20px|alt=arrow]]&amp;nbsp;'''{{{1|Reverted}}}'''&lt;noinclude&gt;{{documentation|content=
== Usage ==
Placing {{Tl|Reverted}} on a talk page makes the following appear:
:{{Reverted}}
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>es5qom1fn5ggl36amnvnjdavkejs40q</sha1>
</revision>
</page>
<page>
<title>Template:Reviewing request</title>
<ns>10</ns>
<id>21806558</id>
<revision>
<id>810204037</id>
<parentid>782463125</parentid>
<timestamp>2017-11-13T22:41:48Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Reviewing request]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="206">:[[File:Pictogram voting wait blue.svg|25px|link=|alt=]] '''Reviewing request.'''&lt;noinclude&gt;
{{documentation|content=
==See also==
{{Done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>l4uh6pr6e8ij7mrtzh5nwk1m3vpwuo7</sha1>
</revision>
</page>
<page>
<title>Template:Rollbacker-Note</title>
<ns>10</ns>
<id>48915274</id>
<revision>
<id>810205433</id>
<parentid>782462696</parentid>
<timestamp>2017-11-13T22:52:02Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Rollbacker-Note]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="134">[[File:Symbol comment vote.svg|17px|link=|alt=]]&amp;nbsp;'''Rollbacker note{{{1|}}}{{{2|:}}}'''&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>sakr5ipvdzrtr5sl2q4sal123g4jt8u</sha1>
</revision>
</page>
<page>
<title>Template:SULcheck</title>
<ns>10</ns>
<id>47706922</id>
<revision>
<id>810207550</id>
<parentid>679230640</parentid>
<timestamp>2017-11-13T23:07:19Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:SULcheck]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="130">[[File:Symbol Translate.svg|18px|link=]] '''{{{1|SUL Check}}}'''&lt;!--template:SULcheck--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>c59lykrwduhzxte1vez3smobxao0aab</sha1>
</revision>
</page>
<page>
<title>Template:Sblock</title>
<ns>10</ns>
<id>33397842</id>
<revision>
<id>810208130</id>
<parentid>609665882</parentid>
<timestamp>2017-11-13T23:11:18Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Sblock]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="125">[[Image:Symbol version newer.svg|16px|link=|alt=]]&amp;nbsp;'''{{{1|Blocked but awaiting tags}}}'''&lt;noinclude&gt;{{doc}}&lt;/noinclude&gt;</text>
<sha1>15mwld0ft9n1gx4n34duz2fhr2tv0zw</sha1>
</revision>
</page>
<page>
<title>Template:Scissors</title>
<ns>10</ns>
<id>33293169</id>
<revision>
<id>810207354</id>
<parentid>782448589</parentid>
<timestamp>2017-11-13T23:05:57Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Scissors]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="291">[[File:Small pair of blue scissors.jpg|{{{size|30px}}}|alt=scissors]] '''{{{1|Running with scissors is a very silly thing to do!}}}'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{Done/See also}}
[[Category:Wikipedia emoticons]]
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>qj3oroypff31s80m2xo5olbb6xgtv3m</sha1>
</revision>
</page>
<page>
<title>Template:Self-trout</title>
<ns>10</ns>
<id>38954805</id>
<revision>
<id>810207392</id>
<parentid>782448685</parentid>
<timestamp>2017-11-13T23:06:14Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Self-trout]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="511">[[File:Rainbow trout transparent.png|20px|link=template:self-trout|alt=trout]]&amp;nbsp;'''Self-trout'''&lt;noinclude&gt;
{{Documentation|content=
This template can be used by editors self-mockingly, in situations where they have done something silly and other editors would be likely to [[WP:TROUT|trout]] them.
: ''See also: {{tl|trout}}''
== Usage ==
* {{tld|Self-trout}} &amp;rarr; {{Self-trout}}
==See also==
{{Done/See also}}
[[Category:Wikipedia emoticons]]
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>n9xg8hsyf9m97j4cyqm1w620klrxh7n</sha1>
</revision>
</page>
<page>
<title>Template:Semi-done</title>
<ns>10</ns>
<id>23085706</id>
<revision>
<id>810137312</id>
<parentid>782406783</parentid>
<timestamp>2017-11-13T15:14:35Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Semi-done]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="210">[[File:Cornflower blue check.svg|18px|link=|alt=]] '''{{ucfirst:{{{1|semi-done}}}}}'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{Done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>4zrvsjuemkywid1sl0126uyqyedk9be</sha1>
</revision>
</page>
<page>
<title>Template:Sent</title>
<ns>10</ns>
<id>33036614</id>
<revision>
<id>810207429</id>
<parentid>452752852</parentid>
<timestamp>2017-11-13T23:06:32Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Sent]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="158">[[File:Crystal message2.png|20px|alt=Yes|link=]] '''{{{{{|safesubst:}}}ucfirst:{{{1|Sent}}}}}'''&lt;!--template:sent--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>tc3y72nvc4d25vbirk3t2ybrtuzd9ob</sha1>
</revision>
</page>
<page>
<title>Template:Smallrejected</title>
<ns>10</ns>
<id>21474897</id>
<revision>
<id>810135884</id>
<parentid>683838372</parentid>
<timestamp>2017-11-13T15:06:28Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Smallrejected]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="496">{{Main other||[[File:Red x.svg|18px|link=|alt=]] '''{{{1|Rejected}}}'''}}&lt;noinclude&gt;
{{documentation|content=
{{Warning|{{tl|Smallrejected}} should not be used in [[WP:WIAA|articles]] per [[MOS:ICONDECORATION]].}}
== Usage ==
Text can be changed by providing desired content in a parameter.
For examples, &lt;code&gt;&lt;nowiki&gt;{{smallrejected|prohibited}}&lt;/nowiki&gt;&lt;/code&gt; produces {{smallrejected|prohibited}}.
== See also ==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>nuvw7rnkdvyg21njv82kqzjdabzotd9</sha1>
</revision>
</page>
<page>
<title>Template:Snow</title>
<ns>10</ns>
<id>32135851</id>
<revision>
<id>810207472</id>
<parentid>782448743</parentid>
<timestamp>2017-11-13T23:06:50Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Snow]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="164">{{{1|&lt;span style=&quot;display:none&quot;&gt;&lt;/span&gt;}}} per [[WP:SNOW|snowball clause]] [[File:Bouncing Snowball.png|15px|link=|alt=]]&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>of5na08eexed7fy40pasuvytgr5aab0</sha1>
</revision>
</page>
<page>
<title>Template:Sorry</title>
<ns>10</ns>
<id>47873837</id>
<revision>
<id>810206095</id>
<parentid>776603899</parentid>
<timestamp>2017-11-13T22:56:39Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Sorry]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="99">[[File:Face-smile.svg|18px|alt=Smiley|link=]] '''Sorry!'''&lt;noinclude&gt;
{{documentation}}&lt;/noinclude&gt;</text>
<sha1>37z0uido3w5o296l9tuzgpfia05mgvu</sha1>
</revision>
</page>
<page>
<title>Template:Stale-small</title>
<ns>10</ns>
<id>36077174</id>
<revision>
<id>810135826</id>
<parentid>496541859</parentid>
<timestamp>2017-11-13T15:06:10Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Stale-small]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require administrator access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="120">{{{{{|safesubst:}}}cross|18}} '''{{{{{|safesubst:}}}ucfirst:{{{1|Stale}}}}}'''&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>mhmajtblvhe0ttf18mhbu7gc53iq7gq</sha1>
</revision>
</page>
<page>
<title>Template:StaleIP</title>
<ns>10</ns>
<id>12433801</id>
<revision>
<id>624668796</id>
<parentid>621957258</parentid>
<timestamp>2014-09-08T13:22:30Z</timestamp>
<contributor>
<username>DoRD</username>
<id>11250185</id>
</contributor>
<comment>no, this does not refer to an IP address in current usage</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="298">[[File:Time2wait.svg|16px|link=|alt=]]&amp;nbsp;'''Stale'''&lt;noinclude&gt;{{documentation|content=
== Usage ==
Placing {{Tl|StaleIP}} on a talk page makes the following appear:
:{{StaleIP}}
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
[[Category:SPI templates]]
}}&lt;/noinclude&gt;</text>
<sha1>elqffyt0w69nde8n4s30nwhzzvoyoyy</sha1>
</revision>
</page>
<page>
<title>Template:Stale GAN</title>
<ns>10</ns>
<id>24979524</id>
<revision>
<id>810207582</id>
<parentid>723451311</parentid>
<timestamp>2017-11-13T23:07:37Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Stale GAN]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="267">[[File:Ambox warning pn.svg|15px|alt=|link=]] '''This review has not received any comments in two weeks.'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{Done/See also}}
[[Category:Wikipedia GA templates]]
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>k9rmum6f1l8a4xuqfto9c8pagyztk85</sha1>
</revision>
</page>
<page>
<title>Template:Started</title>
<ns>10</ns>
<id>37789458</id>
<revision>
<id>810204545</id>
<parentid>782463014</parentid>
<timestamp>2017-11-13T22:45:18Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Started]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="120">[[File:Crystal Clear app clock-orange.svg|16px|alt=clock]] '''{{{1|Started}}}'''&lt;noinclude&gt;{{documentation}}&lt;/noinclude&gt;</text>
<sha1>tkxx3sakocb5vxrn3fhohhquh288tzz</sha1>
</revision>
</page>
<page>
<title>Template:Suggestion</title>
<ns>10</ns>
<id>21880130</id>
<revision>
<id>810205606</id>
<parentid>782462016</parentid>
<timestamp>2017-11-13T22:53:12Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Suggestion]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="586">[[File:Question mark liberal.jpg|20px|alt=question mark]] '''Suggestion'''&lt;noinclude&gt;{{documentation|content=
== TemplateData ==
{{TemplateDataHeader}}
&lt;templatedata&gt;{
&quot;description&quot;: &quot;Visual indicator of a suggestion; for use in discussions in talk-spaces. The template takes no parameters.&quot;,
&quot;params&quot;: {
&quot;no parameters&quot;: {
&quot;label&quot;: &quot;do not add parameters&quot;,
&quot;description&quot;: &quot;no parameters supported&quot;,
&quot;type&quot;: &quot;string&quot;,
&quot;required&quot;: false
}
}
}&lt;/templatedata&gt;
==See also==
{{Done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>5outjmgxjasjvexj406ycjpb06xjh3w</sha1>
</revision>
</page>
<page>
<title>Template:Tallyho</title>
<ns>10</ns>
<id>43284123</id>
<redirect title="Template:Technically indistinguishable" />
<revision>
<id>810273645</id>
<parentid>810217868</parentid>
<timestamp>2017-11-14T08:05:09Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Tallyho]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require administrator access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="68">#REDIRECT [[Template:Technically indistinguishable]]
{{R from move}}</text>
<sha1>jto8dvsm1a92ylv4pijyykhtv3yj9tz</sha1>
</revision>
</page>
<page>
<title>Template:Technically indistinguishable</title>
<ns>10</ns>
<id>30227202</id>
<revision>
<id>810134561</id>
<parentid>804536898</parentid>
<timestamp>2017-11-13T14:57:10Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Technically indistinguishable]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="277">[[File:Symbol confirmed.svg|16px|link=|alt=]]&amp;nbsp;'''Technically indistinguishable'''&lt;noinclude&gt;{{documentation|content=
{{improve documentation}}
==See also==
{{done/See also}}
[[Category:Image with comment templates|{{PAGENAME}}]]
[[Category:SPI templates]]
}}&lt;/noinclude&gt;</text>
<sha1>0ii3bhbb4sx44v1ojxchfkg7hypavr1</sha1>
</revision>
</page>
<page>
<title>Template:Thank</title>
<ns>10</ns>
<id>8404972</id>
<revision>
<id>804536859</id>
<parentid>721352525</parentid>
<timestamp>2017-10-09T17:20:54Z</timestamp>
<contributor>
<username>MusikAnimal</username>
<id>14882394</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Thank]]&quot;: [[WP:High-risk templates|Highly visible template]]; 1,000+ transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="91">[[File:Face-wink.svg|25px|link=]]&amp;nbsp;'''Thanks'''&lt;noinclude&gt;{{documentation}}&lt;/noinclude&gt;</text>
<sha1>og3c5ccv3srk0vh67969b73uzgo9k5f</sha1>
</revision>
</page>
<page>
<title>Template:Thank you</title>
<ns>10</ns>
<id>17182786</id>
<revision>
<id>711321108</id>
<parentid>678691775</parentid>
<timestamp>2016-03-22T05:05:33Z</timestamp>
<contributor>
<username>SMcCandlish</username>
<id>378390</id>
</contributor>
<comment>Implementing nowrap span and |link=, per talk</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="145">&lt;span class=&quot;nowrap&quot;&gt;[[File:Face-smile.svg|18px|link=]] '''Thank you'''&lt;/span&gt;&lt;!--Template:Thank you--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>2ssr87nis321hc0nl8saicqs9py90qx</sha1>
</revision>
</page>
<page>
<title>Template:Thank you very much</title>
<ns>10</ns>
<id>38364828</id>
<revision>
<id>804536855</id>
<parentid>721352544</parentid>
<timestamp>2017-10-09T17:20:54Z</timestamp>
<contributor>
<username>MusikAnimal</username>
<id>14882394</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Thank you very much]]&quot;: [[WP:High-risk templates|Highly visible template]]; 1,000+ transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="208">[[File:Face-smile.svg|18px|link=]]&amp;nbsp;'''Thank you very much{{&lt;includeonly&gt;safesubst:&lt;/includeonly&gt;#if:{{{1|}}}|, {{{1|}}}}}!'''&lt;!--Template:Thank you very much--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>369vyo5jx92ns7c6pq8fhndeceh44a1</sha1>
</revision>
</page>
<page>
<title>Template:Thumbs down</title>
<ns>10</ns>
<id>14863002</id>
<revision>
<id>810206182</id>
<parentid>776603987</parentid>
<timestamp>2017-11-13T22:57:19Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Thumbs down]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="174">[[File:Symbol thumbs down.svg|12px|Negative|alt=Thumbs down icon|link=]]{{#if:{{{1&lt;includeonly&gt;|&lt;/includeonly&gt;}}}
|&amp;nbsp;{{{1}}}
}}&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>3lgslscd417nox0nxyn8xo0lnf72yni</sha1>
</revision>
</page>
<page>
<title>Template:Thumbs up</title>
<ns>10</ns>
<id>14862995</id>
<revision>
<id>810206229</id>
<parentid>721352653</parentid>
<timestamp>2017-11-13T22:57:39Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Thumbs up]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="456">&lt;!---Thumbs-up image:
--&gt;[[File:Symbol thumbs up.svg&lt;!--
(size:)--&gt;|{{#if:{{{2|}}} |{{#ifeq:{{{1}}}|bigger |18px}} |12px}}&lt;!--
(alt:)--&gt;|Thumbs up&lt;!--
(link:)--&gt;|link=]]&lt;!-- suppress link
----Optional text:
--&gt;{{{{{|safesubst:}}}#if:{{{2|}}} |&amp;nbsp;{{{2}}}
| {{{{{|safesubst:}}}#if:{{{1|&lt;noinclude&gt;x&lt;/noinclude&gt;}}}
|&amp;nbsp;{{{1|&lt;noinclude&gt;[''optional text'']&lt;/noinclude&gt;}}}&lt;!--
--&gt;}} }}&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>5l7o4rhlasppkfa2s200g7ppkz1vvzw</sha1>
</revision>
</page>
<page>
<title>Template:Tick</title>
<ns>10</ns>
<id>6865420</id>
<revision>
<id>678691774</id>
<parentid>552197755</parentid>
<timestamp>2015-08-31T01:12:15Z</timestamp>
<contributor>
<username>MusikAnimal</username>
<id>14882394</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:Tick: Highly visible template; lowering to template protection ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only administrators] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="180">[[File:Yes check.svg|{{{{{|safesubst:}}}#if:{{{1|}}}|{{{1}}}|20}}px|alt=Yes|link=]]&lt;span style=&quot;display:none&quot;&gt;Y&lt;/span&gt;&lt;!--template:tick--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>6gn7idj4j5a6kv4lojwezg7nwtob11h</sha1>
</revision>
</page>
<page>
<title>Template:ToDo</title>
<ns>10</ns>
<id>28990706</id>
<revision>
<id>810207823</id>
<parentid>723451436</parentid>
<timestamp>2017-11-13T23:09:24Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:ToDo]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="281">[[File:Crystal Clear filesystem file temporary.png|17px|link=|alt=]]&amp;nbsp;'''{{{1|ToDo}}}'''&lt;noinclude&gt;
{{documentation|content=
{{Hatnote|You may be looking for the template: {{tlp|To do}}}}
==See also==
{{Done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>bykw9lmc6jhu4aydh0kjmctga4b1dip</sha1>
</revision>
</page>
<page>
<title>Template:Tobedone</title>
<ns>10</ns>
<id>27108759</id>
<revision>
<id>810204390</id>
<parentid>688580817</parentid>
<timestamp>2017-11-13T22:44:17Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Tobedone]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="197">[[File:Pictogram voting wait.svg|18px|link=|alt=]] '''{{{1|Pending}}}'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>2o4nnkcpju9iraqe66y6bhikpbb6xdr</sha1>
</revision>
</page>
<page>
<title>Template:Twomanrule</title>
<ns>10</ns>
<id>23005668</id>
<revision>
<id>810207252</id>
<parentid>782448388</parentid>
<timestamp>2017-11-13T23:05:14Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Twomanrule]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="285">[[File:Searchtool.svg|18px|alt=lens]]&amp;nbsp;'''{{{1|Review}}}'''&lt;noinclude&gt;{{documentation|content=
== Usage ==
Placing {{Tl|Twomanrule}} on a talk page makes the following appear:
:{{Twomanrule}}
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>02udqfixajwt2gnd3vxxjw2rtn6xsz3</sha1>
</revision>
</page>
<page>
<title>Template:Unapproved</title>
<ns>10</ns>
<id>28846724</id>
<revision>
<id>782449924</id>
<parentid>777062273</parentid>
<timestamp>2017-05-27T00:20:46Z</timestamp>
<contributor>
<username>Matt Fitzpatrick</username>
<id>291848</id>
</contributor>
<minor/>
<comment>minimal alt attribute for CC-BY-SA decorative image</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="191">[[File:Symbol declined.svg|20px|alt=no]] '''{{{1|Not approved}}}'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>imelv5l0br4krwemdwpm0atrcngcgyi</sha1>
</revision>
</page>
<page>
<title>Template:UnderReview</title>
<ns>10</ns>
<id>12902635</id>
<revision>
<id>810207306</id>
<parentid>782448429</parentid>
<timestamp>2017-11-13T23:05:32Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:UnderReview]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="554">[[File:Searchtool-80%.png|15px|alt=lens]]&amp;nbsp;'''Review''' - This section is under or has been partially reviewed by&lt;noinclude&gt;{{documentation|content=
== Usage ==
This template is used to indicate that you are currently reviewing a subcategory from the [[Wikipedia:WikiProject Good articles/Project quality task force/Sweeps/List|WikiProject Good articles sweep list]].
Usage:&lt;pre&gt;&lt;nowiki&gt;
{{UnderReview}} ~~~~
&lt;/nowiki&gt;&lt;/pre&gt;
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
[[Category:Wikipedia GA templates]]
}}&lt;/noinclude&gt;</text>
<sha1>6u92g9brgdzp2pn7tq5zdiu6rim5s0p</sha1>
</revision>
</page>
<page>
<title>Template:Undone</title>
<ns>10</ns>
<id>22558817</id>
<revision>
<id>810207872</id>
<parentid>782462422</parentid>
<timestamp>2017-11-13T23:09:43Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Undone]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="110">[[File:Kde crystalsvg eraser.png|18px|alt=eraser]]&amp;nbsp;'''Undone'''&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>999f9nuo1rm6jz1a3iwuhdrpehbe86u</sha1>
</revision>
</page>
<page>
<title>Template:Unlikely</title>
<ns>10</ns>
<id>8380295</id>
<restrictions>edit=autoconfirmed:move=autoconfirmed</restrictions>
<revision>
<id>632464394</id>
<parentid>621951736</parentid>
<timestamp>2014-11-04T20:31:02Z</timestamp>
<contributor>
<username>PhilKnight</username>
<id>1812441</id>
</contributor>
<comment>[[Category:SPI templates]]</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="309">[[File:Symbol unlikely.svg|16px|link=|alt=]]&amp;nbsp;'''Unlikely'''&lt;noinclude&gt;{{documentation|content=
== Usage ==
Placing {{Tl|unlikely}} on a talk page makes the following appear:
:{{unlikely}}
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
[[Category:SPI templates]]
}}&lt;/noinclude&gt;</text>
<sha1>fu9vuamg3bds1c3ivgq0sz2weiiqosi</sha1>
</revision>
</page>
<page>
<title>Template:Unnecessary</title>
<ns>10</ns>
<id>8122059</id>
<revision>
<id>782449666</id>
<parentid>721402944</parentid>
<timestamp>2017-05-27T00:18:38Z</timestamp>
<contributor>
<username>Matt Fitzpatrick</username>
<id>291848</id>
</contributor>
<minor/>
<comment>minimal alt attribute for linked CC-BY-SA decorative image</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="187">[[File:Symbol declined.svg|16px|alt=no]]&amp;nbsp;'''Unnecessary'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>64gsq9lu7o9ucangkpbsot5aq7rqmbo</sha1>
</revision>
</page>
<page>
<title>Template:Unprod</title>
<ns>10</ns>
<id>25992629</id>
<revision>
<id>810135376</id>
<parentid>723448180</parentid>
<timestamp>2017-11-13T15:03:06Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Unprod]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="222">{{done}} - as a contested [[WP:PROD|proposed deletion]], the article has been restored on request.&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>iyu11cqnszfrwuvlzjeue7j4mrbnxur</sha1>
</revision>
</page>
<page>
<title>Template:Unrelated</title>
<ns>10</ns>
<id>5103246</id>
<revision>
<id>810136746</id>
<parentid>621841491</parentid>
<timestamp>2017-11-13T15:11:25Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Unrelated]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require administrator access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="218">[[Image:Symbol unrelated.svg|16px|link=|alt=]]&amp;nbsp;'''Unrelated'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
[[Category:SPI templates]]
}}&lt;/noinclude&gt;</text>
<sha1>atambxbuwncxfizhtgcm0bjx2fye7t0</sha1>
</revision>
</page>
<page>
<title>Template:Uploaded</title>
<ns>10</ns>
<id>31685802</id>
<revision>
<id>621958990</id>
<parentid>599377122</parentid>
<timestamp>2014-08-19T19:56:19Z</timestamp>
<contributor>
<username>Funandtrvl</username>
<id>2966869</id>
</contributor>
<comment>ce</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="118">[[File:Icon - upload photo.svg|18px|alt=|link=]]&amp;nbsp;'''{{{1|Uploaded}}}'''&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>aytgbdcahxpm501dqp07ya8x1vcap9w</sha1>
</revision>
</page>
<page>
<title>Template:User-blocked</title>
<ns>10</ns>
<id>38889449</id>
<revision>
<id>810136315</id>
<parentid>782407589</parentid>
<timestamp>2017-11-13T15:08:58Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:User-blocked]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="195">[[File:Pictogram voting delete.svg|20px|link=|alt=]] '''User blocked'''&lt;noinclude&gt;{{documentation|content=
==See also==
{{Done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>6jxywtsroam4xwgysy5df1ia1viuezu</sha1>
</revision>
</page>
<page>
<title>Template:Verified</title>
<ns>10</ns>
<id>17729583</id>
<revision>
<id>810134426</id>
<parentid>622837148</parentid>
<timestamp>2017-11-13T14:56:02Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Verified]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="202">[[File:Symbol confirmed.svg|20px|link=|alt=]]&amp;nbsp;'''Verified'''&lt;noinclude&gt;{{documentation|content={{Template:Resolved mark/doc|type=checkmark}}}}
&lt;!--Categories go on the /doc subpage --&gt;
&lt;/noinclude&gt;</text>
<sha1>fzkxib8k58w0i6344mrq9sum39yniri</sha1>
</revision>
</page>
<page>
<title>Template:WPcrystalball</title>
<ns>10</ns>
<id>11994062</id>
<revision>
<id>810208081</id>
<parentid>721402776</parentid>
<timestamp>2017-11-13T23:10:59Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:WPcrystalball]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="329">[[File:Emoji u1f52e.svg|20px]]&amp;nbsp;'''Wikipedia is not a [[Wikipedia:Crystal ball|crystal ball]]'''.&lt;noinclude&gt;{{documentation|content=
== Usage ==
Placing {{Tl|WPcrystalball}} on a talk page makes the following appear:
:{{WPcrystalball}}
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>fyy5myyjs2mm8onhhi3qf0sf9yeuzn4</sha1>
</revision>
</page>
<page>
<title>Template:Warnsign</title>
<ns>10</ns>
<id>28143018</id>
<revision>
<id>810207919</id>
<parentid>621959514</parentid>
<timestamp>2017-11-13T23:10:01Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Warnsign]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="231">[[File:Ambox warning pn.svg|20px|link=|alt=⚠]]&amp;nbsp;'''{{{{{|safesubst:}}}ucfirst:{{{1|Warning}}}}}'''&lt;noinclude&gt;
{{Documentation}}
&lt;!--Please add this template's categories to the /doc subpage, not here - thanks!--&gt;
&lt;/noinclude&gt;</text>
<sha1>1pssf1jjsub1k8rvvma596xy33lwgkp</sha1>
</revision>
</page>
<page>
<title>Template:WikiThanks</title>
<ns>10</ns>
<id>15337466</id>
<revision>
<id>810206145</id>
<parentid>766972931</parentid>
<timestamp>2017-11-13T22:57:01Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:WikiThanks]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="144">{{{icon|[[Image:Tournesol.png|{{{size|33px}}}|link=]] }}}&lt;!-- Template:WikiThanks --&gt;{{{1|Thank you}}}&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>cmpkazrvd1vp6vi1cg5l16vdqw56au3</sha1>
</revision>
</page>
<page>
<title>Template:Withdraw</title>
<ns>10</ns>
<id>23304390</id>
<revision>
<id>810136472</id>
<parentid>717163122</parentid>
<timestamp>2017-11-13T15:09:50Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Withdraw]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="260">[[File:Pictogram voting delete.svg|15px|link=|alt=]] '''{{{2|I withdraw my nomination}}}''' {{{1|}}}&lt;noinclude&gt;{{documentation|content=
{{Distinguish|Template:Withdrawn}}
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>d5de9x64jcak61cu2mmmrqayo3ar4qo</sha1>
</revision>
</page>
<page>
<title>Template:Withdrawn</title>
<ns>10</ns>
<id>28721745</id>
<revision>
<id>810207968</id>
<parentid>621959923</parentid>
<timestamp>2017-11-13T23:10:20Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Withdrawn]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="132">[[File:Cancelled process mini.svg|200x20px|link=|alt=]]&amp;nbsp;'''{{{1|Request withdrawn}}}'''&lt;noinclude&gt;{{Documentation}}&lt;/noinclude&gt;</text>
<sha1>74x3yqvol40832g9xeslbohcexuwzfj</sha1>
</revision>
</page>
<page>
<title>Template:Won't fix</title>
<ns>10</ns>
<id>12007345</id>
<revision>
<id>810136444</id>
<parentid>544849961</parentid>
<timestamp>2017-11-13T15:09:41Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Won't fix]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="176">[[Image:Pictogram voting delete.svg|18px|link=|alt=]] '''{{{{{|safesubst:}}}ucfirst:{{{1|Won't fix}}}}}'''&lt;!--Template:Won't fix--&gt;&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>1wy14eo2fyp9hvhz0n7u5mjqkukfah2</sha1>
</revision>
</page>
<page>
<title>Template:Wontfix</title>
<ns>10</ns>
<id>33231818</id>
<redirect title="Template:Won&#039;t fix" />
<revision>
<id>819689816</id>
<parentid>452746695</parentid>
<timestamp>2018-01-10T19:26:25Z</timestamp>
<contributor>
<username>Primefac</username>
<id>11508456</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Wontfix]]&quot;: [[WP:SEMI|semi-protecting]] highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indef...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="32">#REDIRECT [[Template:Won't fix]]</text>
<sha1>gz6iw7w6s0b81ivdmegmicwawm3u05y</sha1>
</revision>
</page>
<page>
<title>Template:Working</title>
<ns>10</ns>
<id>14157199</id>
<revision>
<id>810208029</id>
<parentid>621960390</parentid>
<timestamp>2017-11-13T23:10:42Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Working]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="193">[[File:Icon tools.svg|20px|link=|alt=]]&amp;nbsp;'''{{{1|Working}}}'''&lt;noinclude&gt;
{{Documentation}}
&lt;!--Please add this template's categories to the /doc subpage, not here - thanks!--&gt;
&lt;/noinclude&gt;</text>
<sha1>c6x52bjmz5li2q8lifjek3ctbfgup0k</sha1>
</revision>
</page>
<page>
<title>Template:Works for me</title>
<ns>10</ns>
<id>12007449</id>
<revision>
<id>810203078</id>
<parentid>621951146</parentid>
<timestamp>2017-11-13T22:34:56Z</timestamp>
<contributor>
<username>AlexiusHoratius</username>
<id>2306142</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Works for me]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="311">[[File:Pictogram voting support.svg|18px|link=|alt=]]&amp;nbsp;'''{{{1|Works for me}}}'''&lt;noinclude&gt;{{documentation|content=
== Usage ==
Placing {{Tl|works for me}} on a talk page makes the following appear:
:{{works for me}}
==See also==
{{done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>6imuz90bwvz86u9sy1boiqfh2xkdrd0</sha1>
</revision>
</page>
<page>
<title>Template:X mark</title>
<ns>10</ns>
<id>5298708</id>
<revision>
<id>819686607</id>
<parentid>709981835</parentid>
<timestamp>2018-01-10T19:17:59Z</timestamp>
<contributor>
<username>Primefac</username>
<id>11508456</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:X mark]]&quot;: [[WP:SEMI|semi-protecting]] highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefi...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="133">[[File:Black x.svg|16px|X mark|alt={{{alt|No}}}|link=]]&lt;span style=&quot;display:none;&quot;&gt;N&lt;/span&gt;&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>j7fcrbtlx2efzutpan9d0pwvm5wbcwy</sha1>
</revision>
</page>
<page>
<title>Template:X mark-n</title>
<ns>10</ns>
<id>5347930</id>
<revision>
<id>810136121</id>
<parentid>558575882</parentid>
<timestamp>2017-11-13T15:07:56Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:X mark-n]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="126">[[Image:X mark 18x18 04.gif|X mark|alt=No|link=]]&lt;SPAN STYLE=&quot;display:none&quot;&gt;N&lt;/SPAN&gt;&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>8bl0uua3qt1ydxlrvcsybf2rpwivtth</sha1>
</revision>
</page>
<page>
<title>Template:X mark big</title>
<ns>10</ns>
<id>8246203</id>
<revision>
<id>774075944</id>
<parentid>721350694</parentid>
<timestamp>2017-04-06T03:58:52Z</timestamp>
<contributor>
<username>El C</username>
<id>92203</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:X mark big]]&quot;: [[WP:High-risk templates|Highly visible template]]: RFPP ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="196">[[File:X mark.svg|{{{{{|safesubst:}}}#if:{{{1|}}}|{{{1}}}|23}}px|X mark big|alt=Red X|link=]]&lt;span style=&quot;display:none&quot;&gt;N&lt;/span&gt;&lt;!--template:x mark big--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>3u3wum0wyilhp2o49pvgaw7gowel8rx</sha1>
</revision>
</page>
<page>
<title>Template:Xed box</title>
<ns>10</ns>
<id>41136681</id>
<revision>
<id>810136147</id>
<parentid>782449068</parentid>
<timestamp>2017-11-13T15:08:05Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Xed box]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="77">[[File:☒.svg|alt=X'ed box|link=]]&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>oapay81xynjdv16iai4zvxaa265locn</sha1>
</revision>
</page>
<page>
<title>Template:Xmark</title>
<ns>10</ns>
<id>20575555</id>
<revision>
<id>810135710</id>
<parentid>723448656</parentid>
<timestamp>2017-11-13T15:05:15Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Xmark]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require administrator access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="136">{{cross|18}}&lt;noinclude&gt;{{documentation|content=
==See also==
{{Done/See also}}
[[Category:Image with comment templates]]
}}&lt;/noinclude&gt;</text>
<sha1>gt88nz5jszys38796zx04wkvcskfxxf</sha1>
</revision>
</page>
<page>
<title>Template:Y&amp;</title>
<ns>10</ns>
<id>21457587</id>
<revision>
<id>810135568</id>
<parentid>621840433</parentid>
<timestamp>2017-11-13T15:04:22Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Y&amp;]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="237">&lt;span style=&quot;color:green;&quot; alt=&quot;Green tick&quot; title=&quot;Green tick&quot;&gt;&amp;#x2713;&lt;/span&gt;&lt;noinclude&gt;{{documentation|content=
==See also==
{{done/See also}}
[[Category:Checkmark insertion templates]]
[[Category:Resolution templates]]
}}&lt;/noinclude&gt;</text>
<sha1>ixme0v6wbbppvu6tebs55dp2hjix13e</sha1>
</revision>
</page>
<page>
<title>Template:Ya</title>
<ns>10</ns>
<id>34043751</id>
<revision>
<id>819686595</id>
<parentid>755386161</parentid>
<timestamp>2018-01-10T19:17:59Z</timestamp>
<contributor>
<username>Primefac</username>
<id>11508456</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Ya]]&quot;: [[WP:SEMI|semi-protecting]] highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="464">&lt;noinclude&gt;{| class=&quot;wikitable&quot;
|-
|&lt;/noinclude&gt;data-sort-value=&quot;{{{sort|Yes}}}&quot; style=&quot;background: {{{color|#D2FFD2}}}; color: black; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}&quot; class=&quot;table-yes2&quot; {{#if:{{{rowspan|}}}|rowspan=&quot;{{{rowspan}}}&quot;}} |{{{text|[[File:Green check.svg|13px|link={{{link|}}}|{{{1|Yes}}}]]}}}&lt;noinclude&gt;
|}
{{Documentation|Template:Table cell templates/doc}}
[[Category:Checkmark insertion templates]]
&lt;/noinclude&gt;</text>
<sha1>ixn188e0v57o0f7tdcnodmm2soypsyr</sha1>
</revision>
</page>
<page>
<title>Template:Yellow tick</title>
<ns>10</ns>
<id>36830714</id>
<revision>
<id>810137216</id>
<parentid>599377380</parentid>
<timestamp>2017-11-13T15:13:59Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Yellow tick]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="190">[[File:Yellow check.svg|{{{{{|safesubst:}}}#if:{{{1|}}}|{{{1}}}|20}}px|alt=Yes|link=]]&lt;span style=&quot;display:none&quot;&gt;Y&lt;/span&gt;&lt;!--template:yellow tick--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>aaalfetwjlddra8cweeb76yna09jrh5</sha1>
</revision>
</page>
<page>
<title>Template:Yes check</title>
<ns>10</ns>
<id>3646070</id>
<revision>
<id>810135550</id>
<parentid>776609885</parentid>
<timestamp>2017-11-13T15:04:13Z</timestamp>
<contributor>
<username>Fish and karate</username>
<id>224548</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Yes check]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="184">{{Main other||[[File:Yes check.svg|11px|link=|alt=]]&amp;nbsp;Yes}}&lt;noinclude&gt;{{documentation|Template:Resolved mark/doc}}[[Category:Image with comment templates|{{PAGENAME}}]]&lt;/noinclude&gt;</text>
<sha1>qf49dqbwd1ehotemtg65wuk3jhpknuz</sha1>
</revision>
</page>
<page>
<title>Template:You're welcome</title>
<ns>10</ns>
<id>31640045</id>
<revision>
<id>819688309</id>
<parentid>776603728</parentid>
<timestamp>2018-01-10T19:22:37Z</timestamp>
<contributor>
<username>Primefac</username>
<id>11508456</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:You're welcome]]&quot;: [[WP:SEMI|semi-protecting]] highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access]...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="139">[[File:Face-smile.svg|18px|alt=Smiley|link=]] '''You're welcome!'''&lt;!--Template:You're welcome--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>dqb69ae5k81fleu8ruahjfkhho5llv9</sha1>
</revision>
</page>
<page>
<title>Module:Check for unknown parameters</title>
<ns>828</ns>
<id>42286729</id>
<revision>
<id>726655795</id>
<parentid>726655742</parentid>
<timestamp>2016-06-23T14:41:43Z</timestamp>
<contributor>
<username>Frietjes</username>
<id>13791031</id>
</contributor>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="2400">-- This module may be used to compare the arguments passed to the parent
-- with a list of arguments, returning a specified result if an argument is
-- not on the list
local p = {}
local function trim(s)
return s:match('^%s*(.-)%s*$')
end
local function isnotempty(s)
return s and trim(s) ~= ''
end
function p.check (frame)
local args = frame.args
local pargs = frame:getParent().args
local ignoreblank = isnotempty(frame.args['ignoreblank'])
local showblankpos = isnotempty(frame.args['showblankpositional'])
local knownargs = {}
local unknown = frame.args['unknown'] or 'Found _VALUE_, '
local preview = frame.args['preview']
local values = {}
local res = {}
local regexps = {}
-- create the list of known args, regular expressions, and the return string
for k, v in pairs(args) do
if type(k) == 'number' then
v = trim(v)
knownargs[v] = 1
elseif k:find('^regexp[1-9][0-9]*$') then
table.insert(regexps, '^' .. v .. '$')
end
end
if isnotempty(preview) then
preview = '&lt;div class=&quot;hatnote&quot; style=&quot;color:red&quot;&gt;&lt;strong&gt;Warning:&lt;/strong&gt; ' .. preview .. ' (this message is shown only in preview).&lt;/div&gt;'
elseif preview == nil then
preview = unknown
end
-- loop over the parent args, and make sure they are on the list
for k, v in pairs(pargs) do
if type(k) == 'string' and knownargs[k] == nil then
local knownflag = false
for i, regexp in ipairs(regexps) do
if mw.ustring.match(k, regexp) then
knownflag = true
break
end
end
if not knownflag and ( not ignoreblank or isnotempty(v) ) then
k = mw.ustring.gsub(k, '[^%w\-_ ]', '?')
table.insert(values, k)
end
elseif type(k) == 'number' and
knownargs[tostring(k)] == nil and
( showblankpos or isnotempty(v) )
then
local vlen = mw.ustring.len(v)
v = mw.ustring.sub(v, 1, (vlen &lt; 25) and vlen or 25)
v = mw.ustring.gsub(v, '[^%w\-_ ]', '?')
table.insert(values, k .. ' = ' .. v .. ((vlen &gt;= 25) and ' ...' or ''))
end
end
-- add resuls to the output tables
if #values &gt; 0 then
if frame:preprocess( &quot;{{REVISIONID}}&quot; ) == &quot;&quot; then
unknown = preview
end
for k, v in pairs(values) do
if v == '' then
-- Fix odd bug for | = which gets stripped to the empty string and
-- breaks category links
v = ' '
end
local r = unknown:gsub('_VALUE_', v)
table.insert(res, r)
end
end
return table.concat(res)
end
return p</text>
<sha1>hrayw1t1r2ij1wg65qi0jh0x6y31ba4</sha1>
</revision>
</page>
<page>
<title>Module:Icon</title>
<ns>828</ns>
<id>45181164</id>
<revision>
<id>643803192</id>
<parentid>643801146</parentid>
<timestamp>2015-01-23T10:26:03Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<minor/>
<comment>Protected Module:Icon: [[WP:High-risk templates|High-risk Lua module]] ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="659">-- This module implements [[Template:Icon]].
local data = mw.loadData('Module:Icon/data')
local p = {}
function p._main(args)
local code = args.class or args[1]
local iconData
if code then
code = code:match('^%s*(.-)%s*$'):lower() -- trim whitespace and put in lower case
iconData = data[code]
end
if not iconData then
iconData = data._DEFAULT
end
return string.format(
'[[File:%s%s|%s|link=]]',
iconData.image,
iconData.tooltip and '|' .. iconData.tooltip or '',
args.size or '16x16px'
)
end
function p.main(frame)
local args = {}
for k, v in pairs(frame:getParent().args) do
args[k] = v
end
return p._main(args)
end
return p</text>
<sha1>4z7aot4f3pniw3w3az56t0kryggws40</sha1>
</revision>
</page>
<page>
<title>Module:Icon/data</title>
<ns>828</ns>
<id>45181103</id>
<revision>
<id>824092874</id>
<parentid>796570470</parentid>
<timestamp>2018-02-05T07:45:43Z</timestamp>
<contributor>
<username>MSGJ</username>
<id>42630</id>
</contributor>
<minor/>
<comment>icon for needed-class</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="8778">-- This module stores icon data for [[Module:Icon]].
--------------------------------------------------------------------------------
-- Icon data
--------------------------------------------------------------------------------
local data = {
fa = {
image = &quot;Featured article star.svg&quot;,
tooltip = &quot;Featured article&quot;,
},
far = {
image = &quot;Cscr-star piece.png&quot;,
tooltip = &quot;Featured article review&quot;,
},
farc = {
image = &quot;Cscr-star piece.png&quot;,
tooltip = &quot;Featured article removal candidate&quot;,
},
ffa = {
aliases = {&quot;dfa&quot;},
image = &quot;Featured article star - cross.svg&quot;,
tooltip = &quot;Former featured article&quot;,
},
fac = {
aliases = {&quot;fan&quot;},
image = &quot;Cscr-candidate.svg&quot;,
tooltip = &quot;Featured article candidate&quot;,
},
ffac = {
aliases = {&quot;nofa&quot;},
image = &quot;Featured article star - cross.svg&quot;,
tooltip = &quot;Failed featured article candidate&quot;,
},
fl = {
image = &quot;Featured article star.svg&quot;,
tooltip = &quot;Featured list&quot;,
},
flrc = {
aliases = {&quot;flr&quot;},
image = &quot;Cscr-star piece.png&quot;,
tooltip = &quot;Featured list removal candidate&quot;,
},
ffl = {
aliases = {&quot;dfl&quot;},
image = &quot;Cscr-featured-strike.svg&quot;,
tooltip = &quot;Former featured list&quot;,
},
flc = {
aliases = {&quot;fln&quot;},
image = &quot;Cscr-candidate.svg&quot;,
tooltip = &quot;Featured list candidate&quot;,
},
fflc = {
aliases = {&quot;nofl&quot;},
image = &quot;Cscr-former.svg&quot;,
tooltip = &quot;Failed featured list candidate&quot;,
},
a = {
image = &quot;Symbol a class.svg&quot;,
tooltip = &quot;A-Class article&quot;,
},
dac = {
aliases = {&quot;daa&quot;},
image = &quot;Symbol unsupport A vote.svg&quot;,
tooltip = &quot;Demoted A-Class article&quot;,
},
acc = {
aliases = {&quot;acn&quot;, &quot;aac&quot;},
image = &quot;A candidate.svg&quot;,
tooltip = &quot;A-Class article candidate&quot;,
},
noac = {
aliases = {&quot;faac&quot;},
image = &quot;Symbol unsupport A vote.svg&quot;,
tooltip = &quot;Failed A-Class article candidate&quot;,
},
ga = {
image = &quot;Symbol support vote.svg&quot;,
tooltip = &quot;Good article&quot;,
},
gar = {
image = &quot;GA Candidate Neutral vote(ChaosNil).svg&quot;,
tooltip = &quot;Good article reassessment&quot;,
},
dga = {
image = &quot;Symbol unsupport vote.svg&quot;,
tooltip = &quot;Delisted good article&quot;,
},
gan = {
aliases = {&quot;gac&quot;},
image = &quot;GA candidate.svg&quot;,
tooltip = &quot;Good article nominee&quot;,
},
ga2 = {
image = &quot;Symbol neutral vote.svg&quot;,
tooltip = &quot;Good article, 2nd opinion&quot;,
},
gah = {
image = &quot;Symbol wait.svg&quot;,
tooltip = &quot;Good article on hold&quot;,
},
fgan = {
aliases = {&quot;noga&quot;, &quot;gaf&quot;, &quot;gf&quot;},
image = &quot;Symbol oppose vote.svg&quot;,
tooltip = &quot;Failed good article nominee&quot;,
},
fp = {
image = &quot;Cscr-featured.svg&quot;,
tooltip = &quot;Featured picture&quot;,
},
fpc = {
aliases = {&quot;fpn&quot;},
image = &quot;Cscr-candidate.svg&quot;,
tooltip = &quot;Featured picture candidate&quot;,
},
ffp = {
image = &quot;Cscr-former.svg&quot;,
tooltip = &quot;Former featured picture&quot;,
},
vp = {
image = &quot;ENWP VP Logo.svg&quot;,
tooltip = &quot;Valued picture&quot;,
},
vpc = {
image = &quot;Valued pics 1.svg&quot;,
tooltip = &quot;Valued picture candidate&quot;,
},
fs = {
image = &quot;Cscr-featured.svg&quot;,
tooltip = &quot;Featured sound&quot;,
},
ffs = {
image = &quot;Cscr-former.svg&quot;,
tooltip = &quot;Former featured sound&quot;,
},
fsc = {
image = &quot;Cscr-candidate.svg&quot;,
tooltip = &quot;Featured sound candidate&quot;,
},
fpo = {
image = &quot;Linecons big-star.svg&quot;,
tooltip = &quot;Before the featured portal process ceased in 2017, this had been designated as a featured portal.&quot;,
},
fpor = {
image = &quot;Cscr-star piece.png&quot;,
tooltip = &quot;Featured portal review&quot;,
},
ffpo = {
image = &quot;Featured article star - cross.svg&quot;,
tooltip = &quot;Former featured portal&quot;,
},
fpoc = {
image = &quot;Cscr-candidate.svg&quot;,
tooltip = &quot;Featured portal candidate&quot;,
},
ft = {
image = &quot;Cscr-featuredtopic.svg&quot;,
tooltip = &quot;Featured topic&quot;,
},
ftrc = {
image = &quot;Cscr-star piece.png&quot;,
tooltip = &quot;Featured topic removal candidate&quot;,
},
fft = {
aliases = {&quot;dft&quot;},
image = &quot;DFT candidate_cluster.svg&quot;,
tooltip = &quot;Former featured topic&quot;,
},
ftc = {
aliases = {&quot;ftn&quot;},
image = &quot;FT candidate cluster.svg&quot;,
tooltip = &quot;Featured topic candidate&quot;,
},
gt = {
image = &quot;Support cluster.svg&quot;,
tooltip = &quot;Good topic&quot;,
},
gtrc = {
image = &quot;Symbol unsupport vote.svg&quot;,
tooltip = &quot;Good topic removal candidate&quot;,
},
gtc = {
aliases = {&quot;gtn&quot;},
image = &quot;GA candidate cluster.svg&quot;,
tooltip = &quot;Good topic candidate&quot;,
},
bplus = {
aliases = {&quot;b+&quot;},
image = &quot;Symbol bplus class.svg&quot;,
tooltip = &quot;Bplus-Class article&quot;,
},
b = {
image = &quot;Symbol b class.svg&quot;,
tooltip = &quot;B-Class article&quot;,
},
br = {
aliases = {&quot;bcr&quot;},
image = &quot;Bclass-checklist.svg&quot;,
tooltip = &quot;B-Class review&quot;,
},
c = {
image = &quot;Symbol c class.svg&quot;,
tooltip = &quot;C-Class article&quot;,
},
start = {
image = &quot;Symbol start class.svg&quot;,
tooltip = &quot;Start-Class article&quot;,
},
stub = {
image = &quot;Symbol stub class.svg&quot;,
tooltip = &quot;Stub-Class article&quot;,
},
list = {
aliases = {&quot;comparison&quot;},
image = &quot;Symbol list class.svg&quot;,
tooltip = &quot;List-Class article&quot;,
},
no = {
image = &quot;Crystal button cancel.svg&quot;,
tooltip = &quot;Unknown-Class article&quot;,
},
book = {
image = &quot;Symbol book class2.svg&quot;,
tooltip = &quot;Wikipedia book&quot;,
},
category = {
aliases = {&quot;cat&quot;, &quot;categ&quot;},
image = &quot;Folder Hexagonal Icon.svg&quot;,
tooltip = &quot;Category&quot;,
},
disambiguation = {
aliases = {&quot;dab&quot;, &quot;disamb&quot;, &quot;disambig&quot;},
image = &quot;Symbol dab class.svg&quot;,
tooltip = &quot;Disambiguation page&quot;,
},
image = {
aliases = {&quot;file&quot;},
image = &quot;Video-x-generic.svg&quot;,
tooltip = &quot;File&quot;,
},
needed = {
image = &quot;Symbol needed class.svg&quot;,
tooltip = &quot;Needed article&quot;,
},
portal = {
image = &quot;Portal-puzzle.svg&quot;,
tooltip = &quot;Portal&quot;,
},
project = {
image = &quot;Symbol information vote.svg&quot;,
tooltip = &quot;Project page&quot;,
},
redirect = {
aliases = {&quot;red&quot;, &quot;redir&quot;},
image = &quot;Symbol redirect vote2.svg&quot;,
tooltip = &quot;Redirect&quot;,
},
template = {
aliases = {&quot;temp&quot;, &quot;templ&quot;},
image = &quot;Symbol template class.svg&quot;,
tooltip = &quot;Template&quot;,
},
essay = {
image = &quot;Essay.svg&quot;,
tooltip = &quot;Essay&quot;,
},
na = {
image = &quot;Symbol neutral vote.svg&quot;,
tooltip = &quot;Non-article page&quot;,
},
aa = {
image = &quot;Yes check.svg&quot;,
tooltip = &quot;Audited article of limited subject matter&quot;,
},
da = {
image = &quot;Symbol oppose vote.svg&quot;,
tooltip = &quot;Demoted article&quot;,
},
dyk = {
image = &quot;Symbol question.svg&quot;,
tooltip = &quot;Did You Know?&quot;,
},
dyk2 = {
image = &quot;DYK questionmark icon.svg&quot;,
tooltip = &quot;Did You Know?&quot;,
},
pr = {
image = &quot;Nuvola apps kedit.png&quot;,
tooltip = &quot;Peer review&quot;,
},
ppr = {
image = &quot;Nuvola apps kedit.png&quot;,
tooltip = &quot;Portal peer review&quot;,
},
q = {
aliases = {&quot;question&quot;},
image = &quot;Symbol question.svg&quot;,
tooltip = &quot;Question&quot;,
},
qi = {
image = &quot;Quality images logo.svg&quot;,
tooltip = &quot;Quality image on Wikimedia Commons&quot;,
},
vi = {
image = &quot;Valued image seal.svg&quot;,
tooltip = &quot;Valued image on Wikimedia Commons&quot;,
},
tfa = {
image = &quot;Wikipedia-logo.svg&quot;,
tooltip = &quot;Today's Featured Article&quot;,
},
tfl = {
image = &quot;Wikipedia-logo.svg&quot;,
tooltip = &quot;Today's Featured List&quot;,
},
itn = {
image = &quot;Globe current.svg&quot;,
tooltip = &quot;In The News&quot;,
},
otd = {
image = &quot;Nuvola apps date.svg&quot;,
tooltip = &quot;On This Day&quot;,
},
wikiproject = {
image = &quot;People icon.svg&quot;,
tooltip = &quot;WikiProject&quot;,
},
wikipedia = {
image = &quot;Wikipedia-logo.svg&quot;,
tooltip = &quot;Wikipedia page&quot;,
},
commons = {
image = &quot;Commons-logo.svg&quot;,
tooltip = &quot;Commons page&quot;,
},
wikiquote = {
image = &quot;Wikiquote-logo.svg&quot;,
tooltip = &quot;Wikiquote page&quot;,
},
wikiversity = {
image = &quot;Wikiversity-logo.svg&quot;,
tooltip = &quot;Wikiversity page&quot;,
},
wikibooks = {
image = &quot;Wikibooks-logo.svg&quot;,
tooltip = &quot;Wikibooks page&quot;,
},
wikisource = {
image = &quot;Wikisource-logo.svg&quot;,
tooltip = &quot;Wikisource page&quot;,
},
wiktionary = {
image = &quot;Wiktionary-logo.svg&quot;,
tooltip = &quot;Wiktionary page&quot;,
},
wikinews = {
image = &quot;Wikinews-logo.svg&quot;,
tooltip = &quot;Wikinews page&quot;,
},
wikispecies = {
image = &quot;Wikispecies-logo.svg&quot;,
tooltip = &quot;Wikispecies page&quot;,
},
wikidata = {
image = &quot;Wikidata-logo.svg&quot;,
tooltip = &quot;Wikidata page&quot;,
},
wikivoyage = {
image = &quot;Wikivoyage-logo.svg&quot;,
tooltip = &quot;Wikivoyage page&quot;,
},
meta = {
image = &quot;Wikimedia Community Logo.svg&quot;,
tooltip = &quot;Meta-wiki page&quot;,
},
four = {
image = &quot;Four Award.svg&quot;,
tooltip = &quot;Four Award&quot;,
},
million = {
image = &quot;Million award logo.svg&quot;,
tooltip = &quot;Million Award&quot;,
},
_DEFAULT = {
image = &quot;Symbol question.svg&quot;,
}
}
--------------------------------------------------------------------------------
-- End icon data
--------------------------------------------------------------------------------
-- Make aliases work the same as normal keys, and remove the &quot;aliases&quot; subtables.
for k, t in pairs(data) do
if t.aliases then
for i, alias in ipairs(t.aliases) do
data[alias] = t
end
t.aliases = nil
end
data[k] = t
end
return data</text>
<sha1>6ebgx2fb4bqaz8hcalvyydbd3r8kzso</sha1>
</revision>
</page>
<page>
<title>Template:Big/TemplateData</title>
<ns>10</ns>
<id>41643543</id>
<revision>
<id>775613554</id>
<parentid>774498374</parentid>
<timestamp>2017-04-16T01:05:38Z</timestamp>
<contributor>
<username>Primefac</username>
<id>11508456</id>
</contributor>
<comment>TFD closed as keep ([[WP:XFDC|XFDcloser]])</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="298">
==TemplateData==
{{TemplateDataHeader}}
&lt;templatedata&gt;
{
&quot;description&quot;: &quot;Makes the font larger. Equivalent to &lt;big&gt;...&lt;/big&gt;&quot;,
&quot;params&quot;: {
&quot;1&quot;: {
&quot;label&quot;: &quot;Text&quot;,
&quot;description&quot;: &quot;The text to enlarge.&quot;,
&quot;type&quot;: &quot;string&quot;,
&quot;required&quot;: true
}
}
}
&lt;/templatedata&gt;</text>
<sha1>af9w0hlmy0uvsc8kl5rfgi5oyav9vhx</sha1>
</revision>
</page>
<page>
<title>Template:Big/doc</title>
<ns>10</ns>
<id>9859006</id>
<revision>
<id>820024635</id>
<parentid>820024602</parentid>
<timestamp>2018-01-12T17:11:20Z</timestamp>
<contributor>
<username>Shellwood</username>
<id>2366721</id>
</contributor>
<minor/>
<comment>Reverted edits by [[Special:Contributions/72.95.111.144|72.95.111.144]] ([[User talk:72.95.111.144|talk]]) ([[WP:HG|HG]]) (3.1.22)</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="1213">{{Documentation subpage}}
{{High-use|26,000+}}
{{COinS safe|n}}
&lt;!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]) --&gt;
== Usage ==
Since {{tag|big}} is obsolete, this template may be used as a replacement for presentation markup.
It takes one parameter: The text to enlarge.
* {{tlx|big|&lt;var&gt;text to make larger&lt;/var&gt;}}
If the value passed to the template contains an &quot;=&quot; (equals sign) character it must be done like so:
* {{tlx|big|1&amp;#61;&lt;var&gt;text to make larger&lt;/var&gt;}}
or the offending &quot;=&quot; character(s) must be replaced with &lt;code&gt;&amp;amp;#61;&lt;/code&gt;.
This template is compatible with the {{tl|IPA}}, and similar templates:
* &lt;code&gt;&lt;nowiki&gt;{{big|{{IPA|ὡ}}}}&lt;/nowiki&gt;&lt;/code&gt;
Example of typical usage:
* &lt;code&gt;&lt;nowiki&gt;Blah blah blah {{big|æ}} versus {{big|œ}} blah blah.&lt;/nowiki&gt;&lt;/code&gt;
This looks like:
* Blah blah blah {{big|æ}} versus {{big|œ}} blah blah.
{{Big/TemplateData}}
== See also ==
{{font size templates}}
&lt;includeonly&gt;
&lt;!-- Categories go below this line, please; interwikis go to Wikidata, thank you! --&gt;
[[Category:Resizing templates]]
[[Category:Wikipedia XHTML tag-replacing templates]]
&lt;/includeonly&gt;</text>
<sha1>2uzndwgjjm87tnbzqf6uuzkm6nou60m</sha1>
</revision>
</page>
<page>
<title>Template:CNone</title>
<ns>10</ns>
<id>51441664</id>
<revision>
<id>821200502</id>
<parentid>736708367</parentid>
<timestamp>2018-01-19T00:28:40Z</timestamp>
<contributor>
<username>Primefac</username>
<id>11508456</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:CNone]]&quot;: [[WP:SEMIPROT|semi-protection]] of high-usage templates to combat systematic vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="329">&lt;noinclude&gt;{| class=&quot;wikitable&quot;
|-
|&lt;/noinclude&gt;style=&quot;background:#ececec;vertical-align:middle;text-align:{{{align|center}}};{{{style|}}}&quot; |{{{1|&lt;!-- Accessibility text for screen readers only --&gt;&lt;span style=&quot;display: none&quot;&gt;Does not appear&lt;/span&gt;}}}&lt;noinclude&gt;
|}
{{Documentation|Template:Table cell templates/doc}}
&lt;/noinclude&gt;</text>
<sha1>pr227hj74we71dxa4dt0yob3noybyiu</sha1>
</revision>
</page>
<page>
<title>Template:COinS safe</title>
<ns>10</ns>
<id>35856550</id>
<revision>
<id>819681947</id>
<parentid>732446866</parentid>
<timestamp>2018-01-10T18:58:42Z</timestamp>
<contributor>
<username>Primefac</username>
<id>11508456</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:COinS safe]]&quot;: [[WP:SEMI|semi-protecting]] highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (in...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="646">{{notice
|image={{#ifeq: {{{1|}}}|n|Stop hand nuvola.svg}}
|{{#ifeq: {{{1|}}}|n
|This template should not be used in citation templates such as {{cs1}} and {{cs2}}, because it includes markup that will pollute the [[COinS]] metadata they produce; see [[Wikipedia:COinS|COinS in Wikipedia]]. {{{addtext|}}}[[Category:Templates not safe for use in citation templates]]
|This template is safe for use in citation templates that produce [[COinS]] metadata; see [[Wikipedia:COinS|COinS in Wikipedia]]. If HTML or other markup is added, then the template must be reevaluated. {{{addtext|}}}
}}
}}&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>c2dqiwivkw3mjukaabgvf1lcaiebzlo</sha1>
</revision>
</page>
<page>
<title>Template:Cs1</title>
<ns>10</ns>
<id>34325704</id>
<revision>
<id>804500247</id>
<parentid>744974365</parentid>
<timestamp>2017-10-09T12:22:45Z</timestamp>
<contributor>
<username>Xezbeth</username>
<id>86247</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Cs1]]&quot;: [[WP:High-risk templates|Highly visible template]] ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="114">[[Help:Citation Style 1|Citation Style 1]]&lt;noinclude&gt;
[[Category:Documentation assistance templates]]
&lt;/noinclude&gt;</text>
<sha1>3gpz7ptxi5prfsj5lb0kawozsw3dsyw</sha1>
</revision>
</page>
<page>
<title>Template:Cs2</title>
<ns>10</ns>
<id>34325727</id>
<revision>
<id>819682105</id>
<parentid>475492755</parentid>
<timestamp>2018-01-10T18:58:50Z</timestamp>
<contributor>
<username>Primefac</username>
<id>11508456</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Cs2]]&quot;: [[WP:SEMI|semi-protecting]] highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="114">[[Help:Citation Style 2|Citation Style 2]]&lt;noinclude&gt;
[[Category:Documentation assistance templates]]
&lt;/noinclude&gt;</text>
<sha1>flktvttft09cz4qya95oiidtjdco4xs</sha1>
</revision>
</page>
<page>
<title>Template:Font size templates</title>
<ns>10</ns>
<id>46713691</id>
<revision>
<id>791301422</id>
<parentid>775038693</parentid>
<timestamp>2017-07-19T10:51:09Z</timestamp>
<contributor>
<username>Rob984</username>
<id>18028366</id>
</contributor>
<comment>clarify {{resize| can be used either with or without a value.</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="799">{| class=&quot;wikitable&quot;
|+ Font size templates
|-
! Template !! Size !! Semantics !! Sample
|-
| {{tlx|small}} || 85% || {{tag|small|o}} || {{small|HHHHH}}
|-
| {{tlx|smaller}} || 90% || {{CNone|none}} || {{smaller|HHHHH}}
|-
| {{tlx|resize}} || 90% || {{CNone|none}} || {{resize|HHHHH}}
|-
| {{tlx|midsize}} || 92% || {{CNone|none}} || {{midsize|HHHHH}}
|-
| {{CNone|none}} || 100% || {{CNone|none}} || HHHHH
|-
| {{tlx|larger}} || 110% || {{CNone|none}} || {{larger|HHHHH}}
|-
| {{tlx|big}} || 120% || {{CNone|none}} || {{big|HHHHH}}
|-
| {{tlx|large}} || large || {{CNone|none}} || {{large|HHHHH}}
|-
| {{tlx|huge}} || 180% || {{CNone|none}} || {{huge|HHHHH}}
|-
| {{tlx|resize|&lt;var&gt;x&lt;/var&gt;%}} || custom || {{CNone|none}} ||
|-
| {{tlx|font|size{{=}}&lt;var&gt;x&lt;/var&gt;%}} || custom || {{CNone|none}} ||
|}</text>
<sha1>eeeeszq0iw0rnkfd3aw8akvqyyvxw8x</sha1>
</revision>
</page>
<page>
<title>Template:Huge</title>
<ns>10</ns>
<id>25917607</id>
<revision>
<id>819687572</id>
<parentid>631128787</parentid>
<timestamp>2018-01-10T19:21:40Z</timestamp>
<contributor>
<username>Primefac</username>
<id>11508456</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Huge]]&quot;: [[WP:SEMI|semi-protecting]] highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefini...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="871">{{#switch: {{{valign|sub}}}
| normal = &lt;span style=&quot;line-height:{{{3|{{{2|180%}}}}}}&quot;&gt;&lt;span style=&quot;font-size:{{{2|180%}}};&quot;&gt;{{{1}}}&lt;/span&gt;&lt;/span&gt;
| super = &lt;span style=&quot;vertical-align:super;&quot;&gt;&lt;span style=&quot;vertical-align:super;line-height:{{{3|{{{2|180%}}}}}}&quot;&gt;&lt;span style=&quot;font-size:{{{2|180%}}}; vertical-align:super;&quot;&gt;{{{1}}}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
| sub = &lt;span style=&quot;vertical-align:sub;&quot;&gt;&lt;span style=&quot;vertical-align:sub;line-height:{{{3|{{{2|180%}}}}}}&quot;&gt;&lt;span style=&quot;font-size:{{{2|180%}}}; vertical-align:sub;&quot;&gt;{{{1}}}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
| &lt;span style=&quot;vertical-align:sub;&quot;&gt;&lt;span style=&quot;vertical-align:sub;line-height:{{{3|{{{2|180%}}}}}}&quot;&gt;&lt;span style=&quot;font-size:{{{2|180%}}}; vertical-align:sub;&quot;&gt;{{{1}}}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
}}&lt;noinclude&gt;
&lt;!-- Please add categories to the /doc subpage; interwikis go to Wikidata, thank you. --&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>384t5a4xxt2h7dl1bucj91ggtrmmo9k</sha1>
</revision>
</page>
<page>
<title>Template:Large</title>
<ns>10</ns>
<id>8183126</id>
<revision>
<id>819682416</id>
<parentid>668584496</parentid>
<timestamp>2018-01-10T18:59:19Z</timestamp>
<contributor>
<username>Primefac</username>
<id>11508456</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Large]]&quot;: [[WP:SEMI|semi-protecting]] highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefin...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="104">{{Resize|large|{{{1}}}}}&lt;noinclude&gt;
{{Documentation|Template:Resize/doc}}
{{/TemplateData}}
&lt;/noinclude&gt;</text>
<sha1>2zp2pwk30fexwt32reeoki6wold9zek</sha1>
</revision>
</page>
<page>
<title>Template:Larger</title>
<ns>10</ns>
<id>29575837</id>
<revision>
<id>668584571</id>
<parentid>635490349</parentid>
<timestamp>2015-06-25T07:35:37Z</timestamp>
<contributor>
<username>Salix alba</username>
<id>212526</id>
</contributor>
<comment>need</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="103">{{Resize|110%|{{{1}}}}}&lt;noinclude&gt;
{{Documentation|Template:Resize/doc}}
{{/TemplateData}}
&lt;/noinclude&gt;</text>
<sha1>6mllj6ibekos6l4nt00iol89fysqwj3</sha1>
</revision>
</page>
<page>
<title>Template:Midsize</title>
<ns>10</ns>
<id>36842629</id>
<revision>
<id>634090235</id>
<parentid>509461718</parentid>
<timestamp>2014-11-16T16:07:05Z</timestamp>
<contributor>
<username>Sardanaphalus</username>
<id>427947</id>
</contributor>
<comment>Documentation to /doc page</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="126">&lt;span style=&quot;font-size:{{{size|92}}}%;line-height:{{{height|1.30}}}em;&quot;&gt;{{{1}}}&lt;/span&gt;&lt;noinclude&gt;{{Documentation}}&lt;/noinclude&gt;</text>
<sha1>lo3ju40f68a2dd1d60x6orj47uqvunh</sha1>
</revision>
</page>
<page>
<title>Template:Notice</title>
<ns>10</ns>
<id>1720676</id>
<revision>
<id>753895133</id>
<parentid>743144696</parentid>
<timestamp>2016-12-09T19:33:56Z</timestamp>
<contributor>
<username>Xaosflux</username>
<id>502540</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Notice]]&quot;: extensively used in mediawiki message; also is already fprot via cascading ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="1028">{{Mbox
| name = Notice
| demospace = {{{demospace|}}}
| style = {{#if:{{{style|}}} |{{#if:{{{small|}}}||margin:inherit auto;width:80%;}} {{{style}}} }}
| subst = &lt;includeonly&gt;{{subst:substcheck}}&lt;/includeonly&gt;
| type = notice
| image = {{#if:{{{image|}}} |[[File:{{{image}}}|40px|Notice]]}}
| small = {{{small|}}}
| smallimage = {{#if:{{{image|}}} |[[File:{{{image}}}|30px|Notice]]}}
| imageright = {{#if:{{{imageright|}}} |{{{imageright}}} |{{#if:{{{shortcut|{{{shortcut1|}}}}}} |{{Ombox/shortcut|{{{shortcut|{{{shortcut1|}}}}}}|{{{shortcut2|}}}|{{{shortcut3|}}}|{{{shortcut4|}}}|{{{shortcut5|}}}}}}} }}
| textstyle = {{{textstyle|text-align: {{#if:{{{center|}}}|center|{{{align|left}}}}};}}}
| text = {{#if:{{{header|{{{heading|{{{title|}}}}}}}}} |&lt;div style=&quot;{{{headstyle|text-align: {{#if:{{{center|}}}|center|left}};}}}&quot;&gt;'''{{{header|{{{heading|{{{title|}}}}}}}}}'''&lt;/div&gt;}}&lt;!--
--&gt;{{{text|{{{content|{{{reason|{{{1}}}}}}}}}}}}
}}&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>hu1vs9nujatnw5yhxq7ebmo5ynozxay</sha1>
</revision>
</page>
<page>
<title>Template:Small</title>
<ns>10</ns>
<id>2385304</id>
<revision>
<id>772120953</id>
<parentid>724652062</parentid>
<timestamp>2017-03-25T12:38:48Z</timestamp>
<contributor>
<username>Jo-Jo Eumerus</username>
<id>17449355</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Small]]&quot;: Allowing template editors on some templates with full protection dating back to pre-[[WP:TPROT|TPROT]] times which aren't too often or too sensitively used. ([Edit=Require template editor access] (inde...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="227">&lt;small&gt;{{{1}}}&lt;/small&gt;{{#if:{{{1|}}}||&lt;includeonly&gt;[[Category:Pages using small with an empty input parameter]]&lt;/includeonly&gt;}}&lt;noinclude&gt;
&lt;!--Categories and interwikis go in the /doc sub-page.--&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>96iwidee2498xqoreidy0ouswl2zp8o</sha1>
</revision>
</page>
<page>
<title>Template:Bigmath/doc</title>
<ns>10</ns>
<id>19303153</id>
<revision>
<id>779507167</id>
<parentid>721645502</parentid>
<timestamp>2017-05-09T09:15:14Z</timestamp>
<contributor>
<username>BetterMath</username>
<id>27435083</id>
</contributor>
<minor/>
<comment>grammar</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="1932">{{Documentation subpage}}
&lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&gt;
=== Usage ===
Use this template to embed stand-alone formulae in wikitext. The mathematical capabilities of this template are very limited; use tables with &lt;code&gt;class=&quot;texhtml&quot;&lt;/code&gt; for formulae requiring non-linear layout.
=== Examples ===
&lt;source lang=&quot;html&quot;&gt;
{{bigmath|{{sfrac|&amp;part;&amp;sup2;&lt;var&gt;f&lt;/var&gt;|&amp;part;&lt;var&gt;r&lt;/var&gt;&amp;sup2;}} + {{sfrac|&amp;part;&lt;var&gt;f&lt;/var&gt;|&lt;var&gt;r&lt;/var&gt; &amp;part;&lt;var&gt;r&lt;/var&gt;}} + {{sfrac|&amp;part;&amp;sup2;&lt;var&gt;f&lt;/var&gt;|&lt;var&gt;r&lt;/var&gt;&amp;sup2;&amp;part;&amp;sup2;&lt;var&gt;&amp;theta;&lt;/var&gt;}} {{=}} 0}}
&lt;/source&gt;
produces:
: {{bigmath|{{sfrac|&amp;part;&amp;sup2;&lt;var&gt;f&lt;/var&gt;|&amp;part;&lt;var&gt;r&lt;/var&gt;&amp;sup2;}} + {{sfrac|&amp;part;&lt;var&gt;f&lt;/var&gt;|&lt;var&gt;r&lt;/var&gt; &amp;part;&lt;var&gt;r&lt;/var&gt;}} + {{sfrac|&amp;part;&amp;sup2;&lt;var&gt;f&lt;/var&gt;|&lt;var&gt;r&lt;/var&gt;&amp;sup2;&amp;part;&amp;sup2;&lt;var&gt;&amp;theta;&lt;/var&gt;}} {{=}} 0}}
Use prefix &quot;1=&quot; to allow simple equals-signs. Italicize letters by double-tic (&lt;code&gt;&lt;nowiki&gt;''f''&lt;/nowiki&gt;&lt;/code&gt;):
&lt;source lang=&quot;html&quot;&gt;
{{bigmath|1={{sfrac|&amp;part;&amp;sup2; ''f''|&amp;part;''r''&amp;sup2;}} + {{sfrac
|&amp;part;''f''|''r'' &amp;part;''r''}} = 0}}
&lt;/source&gt;
produces:
: {{bigmath|1={{sfrac|&amp;part;&amp;sup2; ''f''|&amp;part;''r''&amp;sup2;}} + {{sfrac
|&amp;part;''f''|''r'' &amp;part;''r''}} = 0}}
Note that any extra spaces placed in the template will appear in the output. A long line can be split before any vertical-bar pipe ('|').
In contrast, there is &lt;source lang=&quot;tex&quot;&gt;&lt;math display=block&gt;\frac{\part^2 f}{\part r^2} + \frac{\part f}{\part r} = 0&lt;/math&gt;&lt;/source&gt; which produces
&lt;math forcemathmode=mathml display=block&gt;\frac{\part^2 f}{\part r^2} + \frac{\part f}{\part r} = 0.&lt;/math&gt;
This might be an alternative for more complex examples. If that's still too small, leave a comment on https://phabricator.wikimedia.org/T135419 please.
=== See also ===
{{Math templates |notation}}
&lt;includeonly&gt;
&lt;!-- CATEGORIES HERE, THANKS --&gt;
[[Category:Mathematical formatting templates]]
&lt;/includeonly&gt;</text>
<sha1>qg4v2w7kclaiprzw4sanrts4tjmlgb3</sha1>
</revision>
</page>
<page>
<title>Template:C</title>
<ns>10</ns>
<id>3289688</id>
<revision>
<id>717809007</id>
<parentid>717589027</parentid>
<timestamp>2016-04-29T21:00:11Z</timestamp>
<contributor>
<username>Ahecht</username>
<id>2016996</id>
</contributor>
<comment>rm #titleparts</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="105">[[:Category:{{PAGENAME:{{{1}}}}}|{{{2|{{PAGENAME:{{{1}}}}}}}}]]&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>5ihlenrrtiyl0onp17hzt1jb0im35x9</sha1>
</revision>
</page>
<page>
<title>Template:Endflatlist</title>
<ns>10</ns>
<id>10418232</id>
<revision>
<id>628944115</id>
<parentid>468091134</parentid>
<timestamp>2014-10-09T16:32:42Z</timestamp>
<contributor>
<username>Edokter</username>
<id>1624037</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:Endflatlist: Change to template editors ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="70">&lt;/div&gt;&lt;noinclude&gt;
{{documentation|Template:Flatlist/doc}}
&lt;/noinclude&gt;</text>
<sha1>fp5m55s9u2sp077qx1wa6go6i2zyusa</sha1>
</revision>
</page>
<page>
<title>Template:Flatlist</title>
<ns>10</ns>
<id>44066567</id>
<revision>
<id>628943977</id>
<parentid>628943437</parentid>
<timestamp>2014-10-09T16:31:44Z</timestamp>
<contributor>
<username>Edokter</username>
<id>1624037</id>
</contributor>
<minor/>
<comment>Protected Template:Flatlist: [[WP:High-risk templates|Highly visible template]] ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="232">&lt;div class=&quot;hlist {{{class|}}}&quot; {{#if:{{{style|}}}{{{indent|}}}|style=&quot;{{#if:{{{indent|}}}|margin-left: {{#expr:{{{indent}}}*1.6}}em;}} {{{style|}}}&quot;}}&gt;{{#if:{{{1|}}}|
{{{1}}}
&lt;/div&gt;}}&lt;noinclude&gt;&lt;/div&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>rl7soqdf32myn4dned7p631d4bijrbp</sha1>
</revision>
</page>
<page>
<title>Template:Math</title>
<ns>10</ns>
<id>17769239</id>
<revision>
<id>648670420</id>
<parentid>589281513</parentid>
<timestamp>2015-02-24T19:35:06Z</timestamp>
<contributor>
<username>Edokter</username>
<id>1624037</id>
</contributor>
<minor/>
<comment>Changed protection level of Template:Math: [[WP:High-risk templates|Highly visible template]] ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="185">&lt;span class=&quot;texhtml {{#if:{{{big|}}}{{{size|}}}|texhtml-big}}&quot; {{#if:{{{big|}}}{{{size|}}}|style=&quot;font-size:{{{size|165%}}};&quot;}}&gt;{{{1}}}&lt;/span&gt;&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>nj97zeih5xj5z1dk546rkopwo76k9vl</sha1>
</revision>
</page>
<page>
<title>Template:Math templates</title>
<ns>10</ns>
<id>41160817</id>
<revision>
<id>818141728</id>
<parentid>818079394</parentid>
<timestamp>2018-01-01T21:10:55Z</timestamp>
<contributor>
<username>Anomalocaris</username>
<id>299039</id>
</contributor>
<comment>&lt;tt&gt; ... &lt;/tt&gt; → &lt;samp&gt; ... &lt;/samp&gt;</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="5963">{{Navbox with collapsible groups
| name = Math templates
| state = {{{state|expanded}}}
| bodyclass = plainlist
| title = Math templates
| liststyle = font-size:110%;&lt;!--(as some templates' descriptions include links)--&gt;
| selected = {{{selected|{{{expanded|{{{1|}}}}}}}}}
&lt;!-------------- Functions / Numeral systems --------------&gt;
| abbr1 = FN
| group1 = {{hlist|Functions|Numeral systems}}
| list1 =
{{Navbox |child |listclass=hlist
| group1 = Functions
| list1 =
*{{tlbare|elementary arithmetic}}
*{{tlbare|precision}}
*{{tlbare|value}}
| group2 = Numeral systems
| list2 =
*{{tlbare|base 36}}
*{{tlbare|binary}}
*{{tlbare|dec2hex}}
*{{tlbare|decimal2Base}}
*{{tlbare|duodecimal}}
*{{tlbare|hex2dec}}
*{{tlbare|hexadecimal}}
*{{tlbare|octal}}
*{{tlbare|quaternary}}
*{{tlbare|quinary}}
*{{tlbare|rn}}
*{{tlbare|roman}}
*{{tlbare|senary}}
*{{tlbare|ternary}}
*{{tlbare|vigesimal}}
}}
&lt;!---------------------- Conversions ----------------------&gt;
| abbr2 = conversions
| group2 = Conversions
| list2 =
{{Aligned table
|style=margin:0 auto 0;text-align:left;
| {{Aligned table
|style=padding-right:2.5em;
|col1style=text-align:right;white-space:nowrap;padding-right:1.0em;
|col2style=font-size:90%;&lt;!--(see liststyle above)--&gt; vertical-align:middle;line-height:1.3em;font-style:italic;
| {{tlbare|bbl to t}} | barrels of oil to tonnes
| {{tlbare|convert}} | many units (see: [[Template:Convert/list_of_units |list]])
| {{tlbare|cvt}} | many units; abbreviated {{tl|convert}}
| {{tlbare|long ton}} | long hundredweights, quarters and pounds to kilograms;&lt;br/&gt;long tons and hundredweights to pounds and metric tonnes
| {{tlbare|convinfobox}} | for use in infoboxes
| {{tlbare|decdeg}} | degrees, minutes, and seconds to [[decimal degrees]]
}}
| {{Aligned table
|col1style=text-align:right;white-space:nowrap;padding-right:1.0em;
|col2style=font-size:90%;&lt;!--(as above)--&gt; vertical-align:middle;line-height:1.3em;font-style:italic;
| {{tlbare|hms2deg}} | [[hour angle]] (in hours, minutes, and seconds) to decimal degrees
| {{tlbare|deg2dms}} | decimal degrees to degrees, minutes, and seconds
| {{tlbare|deg2hms}} | decimal degrees to [[hour angle]] (in hours, minutes, and seconds)
| {{tlbare|inflation}} | to calculate inflation of Consumer Price Index-related prices
| {{tlbare|miles-chains}} | miles and chains to kilometres linking &quot;chains&quot;
| {{tlbare|pop density}} | density of a population in an area
| {{tlbare|track gauge}} | railway track gauges
}}
}}
&lt;!----------------------- Notation ------------------------&gt;
| group3 = Notation
| abbr3 = notation
| list3 =
{{Aligned table
|style=margin:0 auto 0;text-align:left;
| {{Aligned table
|style=padding-right:2.5em;
|col1style=text-align:right;white-space:nowrap;padding-right:1.0em;
|col2style=font-size:90%;&lt;!--(as above)--&gt; vertical-align:middle;line-height:1.3em;font-style:italic;
| {{tlbare|bigmath}} | for stand-alone formulas, using a bigger font to match {{noitalic|&lt;samp&gt;&lt;nowiki&gt;\&lt;/nowiki&gt;displaystyle&lt;/samp&gt;}} PNG-rendered {{noitalic|[[TeX]]}} formulas
| {{hlist|{{tlbare|bra-ket}}|{{tlbare|braket}}}} {{hlist|{{tlbare|bra}}|{{tlbare|ket}}}} | [[bra–ket notation]]
| {{tlbare|frac}} | for creating fractions (not for use in science or mathematical articles; instead, use {{noitalic|{{tlx|sfrac}}}})
| {{tlbare|intmath}} | [[integral symbol]]s
| {{hlist|{{tlbare|langle}}|{{tlbare|rangle}}}} | [[angular bracket]]s
| {{hlist|{{tlbare|ldelim}}|{{tlbare|rdelim}}}} | multiline delimiters (2–5 lines inclusive)
| {{tlbare|math}} | for inline formulas, to get a better matching font size and vertical alignment than with {{noitalic|&lt;samp&gt;&lt;nowiki&gt;\&lt;/nowiki&gt;textstyle&lt;/samp&gt;}} (or the {{noitalic|&lt;samp&gt;&lt;nowiki&gt;\&lt;/nowiki&gt;scriptstyle&lt;/samp&gt;}} kludge) PNG-rendered {{noitalic|[[TeX]]}} formulas
| {{tlbare|mathcal}} | [mathematical] calligraphic font for use in mathematical formulas, as an alternative to {{noitalic|&lt;samp&gt;&lt;nowiki&gt;\&lt;/nowiki&gt;mathcal{...}&lt;/samp&gt;}} in {{noitalic|[[LaTeX]]}} markup
}}
| {{Aligned table
|col1style=text-align:right;white-space:nowrap;padding-right:1.0em;
|col2style=font-size:90%;&lt;!--(as above)--&gt; vertical-align:middle;line-height:1.3em;font-style:italic;
| {{tlbare|mvar}} | a short form to refer to individual italicized maths variables in normal text
| {{hlist|{{tlbare|overset}}|{{tlbare|underset}}}} | arbitrary characters/diacritics set above/below one another
| {{tlbare|radic}} |
| {{tlbare|sfrac}} | for creating fractions (this template should be used in science or mathematical articles instead of {{noitalic|{{tlx|frac}}}})
| {{tlbare|sqrt}} |
| {{hlist|{{tlbare|su}}|{{tlbare|sub}}|{{tlbare|sup}}}} |
|style7.1=vertical-align:middle;text-align:right;padding-right:1.0em;| {{tlbare|tmath}}
| wraps a {{noitalic|[[TeX]]}} math expression in {{noitalic|&lt;nowiki&gt;&lt;math&gt;&lt;/nowiki&gt;}} tags
| {{tlbare|val}} | to report measurement values, uncertainties and units
| {{tlbare|vec}} | for various overarrows, underarrows, pointing left, right or both ways
}}
}}
&lt;!---------------- Boxes / Tags / Notices -----------------&gt;
| abbr4 = BTN
| group4 = {{hlist|Boxes|Tags|Notices}}
| list4 =
{{Navbox with columns |child
|colstyle=text-align:center;
| col1header = Boxes
| col1 = {{startflatlist}}
*{{tlbare|calculation results}}
*{{tlbare|calculus}}
*{{tlbare|Infobox mathematics function}}
*{{tlbare|functions}}
{{endflatlist}}
| col2header = Tags
| col2 = {{startflatlist}}
*{{tlbare|metricate}}
*{{tlbare|undue precision}}
*{{tlbare|units attention}}
{{endflatlist}}
}}
| belowstyle = font-weight:bold;
| below = {{icon|Category}} {{c|Mathematics templates|Category}}
}}&lt;noinclude&gt;{{Documentation}}&lt;/noinclude&gt;</text>
<sha1>0mlr02mefd8pfnw8e6rq3yiuhld7sv2</sha1>
</revision>
</page>
<page>
<title>Template:Navbox</title>
<ns>10</ns>
<id>995954</id>
<revision>
<id>630098073</id>
<parentid>622579838</parentid>
<timestamp>2014-10-18T12:29:00Z</timestamp>
<contributor>
<username>Edokter</username>
<id>1624037</id>
</contributor>
<minor/>
<comment>linebreaks</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="94">&lt;includeonly&gt;{{#invoke:Navbox|navbox}}&lt;/includeonly&gt;&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>tqodcaa2vvhehqaod229udlla0wimek</sha1>
</revision>
</page>
<page>
<title>Template:Navbox with collapsible groups</title>
<ns>10</ns>
<id>13777826</id>
<revision>
<id>631618283</id>
<parentid>629736761</parentid>
<timestamp>2014-10-29T14:53:16Z</timestamp>
<contributor>
<username>Frietjes</username>
<id>13791031</id>
</contributor>
<comment>rollback per lack of consensus</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="15463">{{#invoke:navbox|navbox
|name = {{{name|&lt;noinclude&gt;Navbox with collapsible groups&lt;/noinclude&gt;}}}
|navbar = {{{navbar|}}}
|state = {{{state|&lt;noinclude&gt;uncollapsed&lt;/noinclude&gt;}}}
|border = {{{border|{{{1|}}}}}}
|title = {{{title&lt;includeonly&gt;|&lt;/includeonly&gt;}}}
|above = {{{above|}}}
|image = {{{image|}}}
|imageleft = {{{imageleft|}}}
|bodyclass = {{{bodyclass|}}}
|titleclass = {{{titleclass|}}}
|aboveclass = {{{aboveclass|}}}
|belowclass = {{{belowclass|}}}
|groupclass = {{{groupclass|}}}
|listclass = {{{listclass|}}}
|imageclass = {{{imageclass|}}}
|style = {{{style|}}}{{{bodystyle|}}}
|basestyle = {{{basestyle|}}}
|titlestyle = {{{titlestyle|}}}
|abovestyle = {{{abovestyle|}}}
|belowstyle = {{{belowstyle|}}}
|imagestyle = {{{imagestyle|}}}
|imageleftstyle = {{{imageleftstyle|}}}
|list1 =
{{#if:{{{group1&lt;includeonly&gt;|&lt;/includeonly&gt;}}}{{{sect1|}}}{{{section1|}}}
| {{#invoke:navbox|navbox|child
|navbar = plain
|state = {{#ifeq:{{{selected}}}|{{{abbr1}}} |uncollapsed |{{{state1|collapsed}}}}}
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group1style|}}}{{{sect1titlestyle|}}}
|liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list1style|}}}{{{content1style|}}}
|title = {{{group1&lt;includeonly&gt;|&lt;/includeonly&gt;}}}{{{sect1|}}}{{{section1|}}}&lt;noinclude&gt; or {{{section1}}} or {{{sect1}}}&lt;/noinclude&gt;
|list1 = {{{list1&lt;includeonly&gt;|&lt;/includeonly&gt;}}}{{{content1|}}}&lt;noinclude&gt; or {{{content1}}}&lt;/noinclude&gt;
|image = {{{image1|}}}
|imageleft = {{{imageleft1|}}}
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
}}
| {{{list1|}}}{{{content1|}}}
}}
|list2 =
{{#if:{{{group2&lt;includeonly&gt;|&lt;/includeonly&gt;}}}{{{sect2|}}}{{{section2|}}}
| {{#invoke:navbox|navbox|child
|navbar = plain
|state = {{#ifeq:{{{selected}}}|{{{abbr2}}} |uncollapsed |{{{state2|collapsed}}}}}
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group2style|}}}{{{sect2titlestyle|}}}
|liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list2style|}}}{{{content2style|}}}
|title = {{{group2&lt;includeonly&gt;|&lt;/includeonly&gt;}}}{{{sect2|}}}{{{section2|}}}&lt;noinclude&gt; or {{{section2}}} or {{{sect2}}}&lt;/noinclude&gt;
|list1 = {{{list2&lt;includeonly&gt;|&lt;/includeonly&gt;}}}{{{content2|}}}&lt;noinclude&gt; or {{{content2}}}&lt;/noinclude&gt;
|image = {{{image2|}}}
|imageleft = {{{imageleft2|}}}
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
}}
| {{{list2|}}}{{{content2|}}}
}}
|list3 =
{{#if:{{{group3&lt;includeonly&gt;|&lt;/includeonly&gt;}}}{{{sect3|}}}{{{section3|}}}
| {{#invoke:navbox|navbox|child
|navbar = plain
|state = {{#ifeq:{{{selected}}}|{{{abbr3}}} |uncollapsed |{{{state3|collapsed}}}}}
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group3style|}}}{{{sect3titlestyle|}}}
|liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list3style|}}}{{{content3style|}}}
|title = {{{group3&lt;includeonly&gt;|&lt;/includeonly&gt;}}}{{{sect3|}}}{{{section3|}}}&lt;noinclude&gt; or {{{section3}}} or {{{sect3}}}&lt;/noinclude&gt;
|list1 = {{{list3&lt;includeonly&gt;|&lt;/includeonly&gt;}}}{{{content3|}}}&lt;noinclude&gt; or {{{content3}}}&lt;/noinclude&gt;
|image = {{{image3|}}}
|imageleft = {{{imageleft3|}}}
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
}}
| {{{list3|}}}{{{content3|}}}
}}
|list4 =
{{#if:{{{group4&lt;includeonly&gt;|&lt;/includeonly&gt;}}}{{{sect4|}}}{{{section4|}}}
| {{#invoke:navbox|navbox|child
|navbar = plain
|state = {{#ifeq:{{{selected}}}|{{{abbr4}}} |uncollapsed |{{{state4|collapsed}}}}}
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group4style|}}}{{{sect4titlestyle|}}}
|liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list4style|}}}{{{content4style|}}}
|title = {{{group4&lt;includeonly&gt;|&lt;/includeonly&gt;}}}{{{sect4|}}}{{{section4|}}}&lt;noinclude&gt; or {{{section4}}} or {{{sect4}}}&lt;/noinclude&gt;
|list1 = {{{list4&lt;includeonly&gt;|&lt;/includeonly&gt;}}}{{{content4|}}}&lt;noinclude&gt; or {{{content4}}}&lt;/noinclude&gt;
|image = {{{image4|}}}
|imageleft = {{{imageleft4|}}}
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
}}
| {{{list4|}}}{{{content4|}}}
}}
|list5 =
{{#if:{{{group5&lt;includeonly&gt;|&lt;/includeonly&gt;}}}{{{sect5|}}}{{{section5|}}}
| {{#invoke:navbox|navbox|child
|navbar = plain
|state = {{#ifeq:{{{selected}}}|{{{abbr5}}} |uncollapsed |{{{state5|collapsed}}}}}
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group5style|}}}{{{sect5titlestyle|}}}
|liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list5style|}}}{{{content5style|}}}
|title = {{{group5&lt;includeonly&gt;|&lt;/includeonly&gt;}}}{{{sect5|}}}{{{section5|}}}&lt;noinclude&gt; or {{{section5}}} or {{{sect5}}}&lt;/noinclude&gt;
|list1 = {{{list5&lt;includeonly&gt;|&lt;/includeonly&gt;}}}{{{content5|}}}&lt;noinclude&gt; or {{{content5}}}&lt;/noinclude&gt;
|image = {{{image5|}}}
|imageleft = {{{imageleft5|}}}
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
}}
| {{{list5|}}}{{{content5|}}}
}}
|list6 =
{{#if:{{{group6|}}}{{{sect6|}}}{{{section6|}}}
| {{#invoke:navbox|navbox|child
|navbar = plain
|state = {{#ifeq:{{{selected}}}|{{{abbr6}}} |uncollapsed |{{{state6|collapsed}}}}}
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group6style|}}}{{{sect6titlestyle|}}}
|liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list6style|}}}{{{content6style|}}}
|title = {{{group6|}}}{{{sect6|}}}{{{section6|}}}
|list1 = {{{list6|}}}{{{content6|}}}
|image = {{{image6|}}}
|imageleft = {{{imageleft6|}}}
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
}}
| {{{list6|}}}{{{content6|&lt;noinclude&gt;''(...etc, to group20/sect20/section20 and list20/content20)''&lt;/noinclude&gt;}}}
}}
|list7 =
{{#if:{{{group7|}}}{{{sect7|}}}{{{section7|}}}
| {{#invoke:navbox|navbox|child
|navbar = plain
|state = {{#ifeq:{{{selected}}}|{{{abbr7}}} |uncollapsed |{{{state7|collapsed}}}}}
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group7style|}}}{{{sect7titlestyle|}}}
|liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list7style|}}}{{{content7style|}}}
|title = {{{group7|}}}{{{sect7|}}}{{{section7|}}}
|list1 = {{{list7|}}}{{{content7|}}}
|image = {{{image7|}}}
|imageleft = {{{imageleft7|}}}
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
}}
| {{{list7|}}}{{{content7|}}}
}}
|list8 =
{{#if:{{{group8|}}}{{{sect8|}}}{{{section8|}}}
| {{#invoke:navbox|navbox|child
|navbar = plain
|state = {{#ifeq:{{{selected}}}|{{{abbr8}}} |uncollapsed |{{{state8|collapsed}}}}}
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group8style|}}}{{{sect8titlestyle|}}}
|liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list8style|}}}{{{content8style|}}}
|title = {{{group8|}}}{{{sect8|}}}{{{section8|}}}
|list1 = {{{list8|}}}{{{content8|}}}
|image = {{{image8|}}}
|imageleft = {{{imageleft8|}}}
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
}}
| {{{list8|}}}{{{content8|}}}
}}
|list9 =
{{#if:{{{group9|}}}{{{sect9|}}}{{{section9|}}}
| {{#invoke:navbox|navbox|child
|navbar = plain
|state = {{#ifeq:{{{selected}}}|{{{abbr9}}} |uncollapsed |{{{state9|collapsed}}}}}
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group9style|}}}{{{sect9titlestyle|}}}
|liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list9style|}}}{{{content9style|}}}
|title = {{{group9|}}}{{{sect9|}}}{{{section9|}}}
|list1 = {{{list9|}}}{{{content9|}}}
|image = {{{image9|}}}
|imageleft = {{{imageleft9|}}}
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
}}
| {{{list9|}}}{{{content9|}}}
}}
|list10 =
{{#if:{{{group10|}}}{{{sect10|}}}{{{section10|}}}
| {{#invoke:navbox|navbox|child
|navbar = plain
|state = {{#ifeq:{{{selected}}}|{{{abbr10}}} |uncollapsed |{{{state10|collapsed}}}}}
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group10style|}}}{{{sect10titlestyle|}}}
|liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list10style|}}}{{{content10style|}}}
|title = {{{group10|}}}{{{sect10|}}}{{{section10|}}}
|list1 = {{{list10|}}}{{{content10|}}}
|image = {{{image10|}}}
|imageleft = {{{imageleft10|}}}
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
}}
| {{{list10|}}}{{{content10|}}}
}}
|list11 =
{{#if:{{{group11|}}}{{{sect11|}}}{{{section11|}}}
| {{#invoke:navbox|navbox|child
|navbar = plain
|state = {{#ifeq:{{{selected}}}|{{{abbr11}}} |uncollapsed |{{{state11|collapsed}}}}}
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group11style|}}}{{{sect11titlestyle|}}}
|liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list11style|}}}{{{content11style|}}}
|title = {{{group11|}}}{{{sect11|}}}{{{section11|}}}
|list1 = {{{list11|}}}{{{content11|}}}
|image = {{{image11|}}}
|imageleft = {{{imageleft11|}}}
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
}}
| {{{list11|}}}{{{content11|}}}
}}
|list12 =
{{#if:{{{group12|}}}{{{sect12|}}}{{{section12|}}}
| {{#invoke:navbox|navbox|child
|navbar = plain
|state = {{#ifeq:{{{selected}}}|{{{abbr12}}} |uncollapsed |{{{state12|collapsed}}}}}
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group12style|}}}{{{sect12titlestyle|}}}
|liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list12style|}}}{{{content12style|}}}
|title = {{{group12|}}}{{{sect12|}}}{{{section12|}}}
|list1 = {{{list12|}}}{{{content12|}}}
|image = {{{image12|}}}
|imageleft = {{{imageleft12|}}}
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
}}
| {{{list12|}}}{{{content12|}}}
}}
|list13 =
{{#if:{{{group13|}}}{{{sect13|}}}{{{section13|}}}
| {{#invoke:navbox|navbox|child
|navbar = plain
|state = {{#ifeq:{{{selected}}}|{{{abbr13}}} |uncollapsed |{{{state13|collapsed}}}}}
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group13style|}}}{{{sect13titlestyle|}}}
|liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list13style|}}}{{{content13style|}}}
|title = {{{group13|}}}{{{sect13|}}}{{{section13|}}}
|list1 = {{{list13|}}}{{{content13|}}}
|image = {{{image13|}}}
|imageleft = {{{imageleft13|}}}
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
}}
| {{{list13|}}}{{{content13|}}}
}}
|list14 =
{{#if:{{{group14|}}}{{{sect14|}}}{{{section14|}}}
| {{#invoke:navbox|navbox|child
|navbar = plain
|state = {{#ifeq:{{{selected}}}|{{{abbr14}}} |uncollapsed |{{{state14|collapsed}}}}}
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group14style|}}}{{{sect14titlestyle|}}}
|liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list14style|}}}{{{content14style|}}}
|title = {{{group14|}}}{{{sect14|}}}{{{section14|}}}
|list1 = {{{list14|}}}{{{content14|}}}
|image = {{{image14|}}}
|imageleft = {{{imageleft14|}}}
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
}}
| {{{list14|}}}{{{content14|}}}
}}
|list15 =
{{#if:{{{group15|}}}{{{sect15|}}}{{{section15|}}}
| {{#invoke:navbox|navbox|child
|navbar = plain
|state = {{#ifeq:{{{selected}}}|{{{abbr15}}} |uncollapsed |{{{state15|collapsed}}}}}
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group15style|}}}{{{sect15titlestyle|}}}
|liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list15style|}}}{{{content15style|}}}
|title = {{{group15|}}}{{{sect15|}}}{{{section15|}}}
|list1 = {{{list15|}}}{{{content15|}}}
|image = {{{image15|}}}
|imageleft = {{{imageleft15|}}}
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
}}
| {{{list15|}}}{{{content15|}}}
}}
|list16 =
{{#if:{{{group16|}}}{{{sect16|}}}{{{section16|}}}
| {{#invoke:navbox|navbox|child
|navbar = plain
|state = {{#ifeq:{{{selected}}}|{{{abbr16}}} |uncollapsed |{{{state16|collapsed}}}}}
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group16style|}}}{{{sect16titlestyle|}}}
|liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list16style|}}}{{{content16style|}}}
|title = {{{group16|}}}{{{sect16|}}}{{{section16|}}}
|list1 = {{{list16|}}}{{{content16|}}}
|image = {{{image16|}}}
|imageleft = {{{imageleft16|}}}
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
}}
| {{{list16|}}}{{{content16|}}}
}}
|list17 =
{{#if:{{{group17|}}}{{{sect17|}}}{{{section17|}}}
| {{#invoke:navbox|navbox|child
|navbar = plain
|state = {{#ifeq:{{{selected}}}|{{{abbr17}}} |uncollapsed |{{{state17|collapsed}}}}}
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group17style|}}}{{{sect17titlestyle|}}}
|liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list17style|}}}{{{content17style|}}}
|title = {{{group17|}}}{{{sect17|}}}{{{section17|}}}
|list1 = {{{list17|}}}{{{content17|}}}
|image = {{{image17|}}}
|imageleft = {{{imageleft17|}}}
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
}}
| {{{list17|}}}{{{content17|}}}
}}
|list18 =
{{#if:{{{group18|}}}{{{sect18|}}}{{{section18|}}}
| {{#invoke:navbox|navbox|child
|navbar = plain
|state = {{#ifeq:{{{selected}}}|{{{abbr18}}} |uncollapsed |{{{state18|collapsed}}}}}
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group18style|}}}{{{sect18titlestyle|}}}
|liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list18style|}}}{{{content18style|}}}
|title = {{{group18|}}}{{{sect18|}}}{{{section18|}}}
|list1 = {{{list18|}}}{{{content18|}}}
|image = {{{image18|}}}
|imageleft = {{{imageleft18|}}}
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
}}
| {{{list18|}}}{{{content18|}}}
}}
|list19 =
{{#if:{{{group19|}}}{{{sect19|}}}{{{section19|}}}
| {{#invoke:navbox|navbox|child
|navbar = plain
|state = {{#ifeq:{{{selected}}}|{{{abbr19}}} |uncollapsed |{{{state19|collapsed}}}}}
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group19style|}}}{{{sect19titlestyle|}}}
|liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list19style|}}}{{{content19style|}}}
|title = {{{group19|}}}{{{sect19|}}}{{{section19|}}}
|list1 = {{{list19|}}}{{{content19|}}}
|image = {{{image19|}}}
|imageleft = {{{imageleft19|}}}
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
}}
| {{{list19|}}}{{{content19|}}}
}}
|list20 =
{{#if:{{{group20|}}}{{{sect20|}}}{{{section20|}}}
| {{#invoke:navbox|navbox|child
|navbar = plain
|state = {{#ifeq:{{{selected}}}|{{{abbr20}}} |uncollapsed |{{{state20|collapsed}}}}}
|titlestyle = {{{basestyle|}}};{{{groupstyle|}}}{{{secttitlestyle|}}}{{{group20style|}}}{{{sect20titlestyle|}}}
|liststyle = {{{liststyle|}}}{{{contentstyle|}}}{{{list20style|}}}{{{content20style|}}}
|title = {{{group20|}}}{{{sect20|}}}{{{section20|}}}
|list1 = {{{list20|}}}{{{content20|}}}
|image = {{{image20|}}}
|imageleft = {{{imageleft20|}}}
|{{#if:{{{listpadding|}}} |listpadding |void}} = {{{listpadding|}}}
}}
| {{{list20|}}}{{{content20|}}}
}}
|below = {{{below|}}}
}}&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>004md93zp9544vr4rm2ew2eur7s2ydb</sha1>
</revision>
</page>
<page>
<title>Template:Navbox with columns</title>
<ns>10</ns>
<id>12881788</id>
<revision>
<id>820414759</id>
<parentid>794038665</parentid>
<timestamp>2018-01-14T16:46:48Z</timestamp>
<contributor>
<username>Frietjes</username>
<id>13791031</id>
</contributor>
<comment>add some temporary tracking with [[Category:Pages using navbox columns without the first column]]</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="16650">&lt;!--
Please do not edit without discussion first as this is a &quot;VERY complex&quot; template.
--&gt;{{Navbox
|name = {{{name|}}}
|navbar = {{{navbar|}}}
|state = {{{state|}}}
|border = {{{border|{{{1|}}}}}}
|title = {{{title|}}}
|above = {{{above|}}}
|image = {{{image|}}}
|imageleft = {{{imageleft|}}}
|bodyclass = {{{bodyclass|}}}
|titleclass = {{{titleclass|}}}
|aboveclass = {{{aboveclass|}}}
|belowclass = {{{belowclass|}}}
|groupclass = {{{groupclass|}}}
|listclass = {{{listclass|}}}
|style = {{{style|}}}{{{bodystyle|}}}
|basestyle = {{{basestyle|}}}
|titlestyle = {{{titlestyle|}}}
|abovestyle = {{{abovestyle|}}}
|belowstyle = {{{belowstyle|}}}
|imagestyle = {{{imagestyle|}}}
|imageleftstyle = {{{imageleftstyle|}}}
|oddstyle = {{{oddstyle|}}}
|evenstyle = {{{evenstyle|}}}
|{{#if:{{{evenodd|}}}|evenodd|void}} = {{{evenodd|}}}
|list1padding = 0px;
|list1 = &lt;!--
--&gt;&lt;table class=&quot;navbox-columns-table&quot; style=&quot;border-spacing: 0px; text-align:left;&lt;!--
--&gt;{{#if:{{{col1header|}}}{{{fullwidth|}}}|width:100%;&lt;!--
--&gt;|width:auto; margin-left:auto; margin-right:auto;}}{{{coltablestyle|}}}&quot;&gt;&lt;!--
--- Header row ---
--&gt;{{#if:{{{col1header|}}}|&lt;tr&gt;&lt;!--
--&gt;&lt;td class=&quot;navbox-abovebelow&quot; &lt;!--
--&gt;colspan={{{col1headercolspan|1}}} style=&quot;&lt;!--
--&gt;font-weight:bold;{{{colheaderstyle|}}}{{{col1headerstyle|}}}&quot;&gt;{{{col1header}}}&lt;/td&gt;&lt;!--
--&gt;{{#if:{{{col2header|}}}|&lt;td class=&quot;navbox-abovebelow&quot; &lt;!--
--&gt;colspan={{{col2headercolspan|1}}} style=&quot;border-left:2px solid #fdfdfd;&lt;!--
--&gt;font-weight:bold;{{{colheaderstyle|}}}{{{col2headerstyle|}}}&quot;&gt;{{{col2header}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col3header|}}}|&lt;td class=&quot;navbox-abovebelow&quot; &lt;!--
--&gt;colspan={{{col3headercolspan|1}}} style=&quot;border-left:2px solid #fdfdfd;&lt;!--
--&gt;font-weight:bold;{{{colheaderstyle|}}}{{{col3headerstyle|}}}&quot;&gt;{{{col3header}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col4header|}}}|&lt;td class=&quot;navbox-abovebelow&quot; &lt;!--
--&gt;colspan={{{col4headercolspan|1}}} style=&quot;border-left:2px solid #fdfdfd;&lt;!--
--&gt;font-weight:bold;{{{colheaderstyle|}}}{{{col4headerstyle|}}}&quot;&gt;{{{col4header}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col5header|}}}|&lt;td class=&quot;navbox-abovebelow&quot; &lt;!--
--&gt;colspan={{{col5headercolspan|1}}} style=&quot;border-left:2px solid #fdfdfd;&lt;!--
--&gt;font-weight:bold;{{{colheaderstyle|}}}{{{col5headerstyle|}}}&quot;&gt;{{{col5header}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col6header|}}}|&lt;td class=&quot;navbox-abovebelow&quot; &lt;!--
--&gt;colspan={{{col6headercolspan|1}}} style=&quot;border-left:2px solid #fdfdfd;&lt;!--
--&gt;font-weight:bold;{{{colheaderstyle|}}}{{{col6headerstyle|}}}&quot;&gt;{{{col6header}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col7header|}}}|&lt;td class=&quot;navbox-abovebelow&quot; &lt;!--
--&gt;colspan={{{col7headercolspan|1}}} style=&quot;border-left:2px solid #fdfdfd;&lt;!--
--&gt;font-weight:bold;{{{colheaderstyle|}}}{{{col7headerstyle|}}}&quot;&gt;{{{col7header}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col8header|}}}|&lt;td class=&quot;navbox-abovebelow&quot; &lt;!--
--&gt;colspan={{{col8headercolspan|1}}} style=&quot;border-left:2px solid #fdfdfd;&lt;!--
--&gt;font-weight:bold;{{{colheaderstyle|}}}{{{col8headerstyle|}}}&quot;&gt;{{{col8header}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col9header|}}}|&lt;td class=&quot;navbox-abovebelow&quot; &lt;!--
--&gt;colspan={{{col9headercolspan|1}}} style=&quot;border-left:2px solid #fdfdfd;&lt;!--
--&gt;font-weight:bold;{{{colheaderstyle|}}}{{{col9headerstyle|}}}&quot;&gt;{{{col9header}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col10header|}}}|&lt;td class=&quot;navbox-abovebelow&quot; &lt;!--
--&gt;colspan={{{col10headercolspan|1}}} style=&quot;border-left:2px solid #fdfdfd;&lt;!--
--&gt;font-weight:bold;{{{colheaderstyle|}}}{{{col10headerstyle|}}}&quot;&gt;{{{col10header}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col11header|}}}|&lt;td class=&quot;navbox-abovebelow&quot; &lt;!--
--&gt;colspan={{{col11headercolspan|1}}} style=&quot;border-left:2px solid #fdfdfd;&lt;!--
--&gt;font-weight:bold;{{{colheaderstyle|}}}{{{col11headerstyle|}}}&quot;&gt;{{{col11header}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col12header|}}}|&lt;td class=&quot;navbox-abovebelow&quot; &lt;!--
--&gt;colspan={{{col12headercolspan|1}}} style=&quot;border-left:2px solid #fdfdfd;&lt;!--
--&gt;font-weight:bold;{{{colheaderstyle|}}}{{{col12headerstyle|}}}&quot;&gt;{{{col12header}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col13header|}}}|&lt;td class=&quot;navbox-abovebelow&quot; &lt;!--
--&gt;colspan={{{col13headercolspan|1}}} style=&quot;border-left:2px solid #fdfdfd;&lt;!--
--&gt;font-weight:bold;{{{colheaderstyle|}}}{{{col13headerstyle|}}}&quot;&gt;{{{col13header}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col14header|}}}|&lt;td class=&quot;navbox-abovebelow&quot; &lt;!--
--&gt;colspan={{{col14headercolspan|1}}} style=&quot;border-left:2px solid #fdfdfd;&lt;!--
--&gt;font-weight:bold;{{{colheaderstyle|}}}{{{col14headerstyle|}}}&quot;&gt;{{{col14header}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col15header|}}}|&lt;td class=&quot;navbox-abovebelow&quot; &lt;!--
--&gt;colspan={{{col15headercolspan|1}}} style=&quot;border-left:2px solid #fdfdfd;&lt;!--
--&gt;font-weight:bold;{{{colheaderstyle|}}}{{{col15headerstyle|}}}&quot;&gt;{{{col15header}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col16header|}}}|&lt;td class=&quot;navbox-abovebelow&quot; &lt;!--
--&gt;colspan={{{col16headercolspan|1}}} style=&quot;border-left:2px solid #fdfdfd;&lt;!--
--&gt;font-weight:bold;{{{colheaderstyle|}}}{{{col16headerstyle|}}}&quot;&gt;{{{col16header}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col17header|}}}|&lt;td class=&quot;navbox-abovebelow&quot; &lt;!--
--&gt;colspan={{{col17headercolspan|1}}} style=&quot;border-left:2px solid #fdfdfd;&lt;!--
--&gt;font-weight:bold;{{{colheaderstyle|}}}{{{col17headerstyle|}}}&quot;&gt;{{{col17header}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col18header|}}}|&lt;td class=&quot;navbox-abovebelow&quot; &lt;!--
--&gt;colspan={{{col18headercolspan|1}}} style=&quot;border-left:2px solid #fdfdfd;&lt;!--
--&gt;font-weight:bold;{{{colheaderstyle|}}}{{{col18headerstyle|}}}&quot;&gt;{{{col18header}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col19header|}}}|&lt;td class=&quot;navbox-abovebelow&quot; &lt;!--
--&gt;colspan={{{col19headercolspan|1}}} style=&quot;border-left:2px solid #fdfdfd;&lt;!--
--&gt;font-weight:bold;{{{colheaderstyle|}}}{{{col19headerstyle|}}}&quot;&gt;{{{col19header}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col20header|}}}|&lt;td class=&quot;navbox-abovebelow&quot; &lt;!--
--&gt;style=&quot;border-left:2px solid #fdfdfd;&lt;!--
--&gt;font-weight:bold;{{{colheaderstyle|}}}{{{col20headerstyle|}}}&quot;&gt;{{{col20header}}}&lt;/td&gt;}}&lt;!--
--&gt;&lt;/tr&gt;}}&lt;!--
--- Main columns---
--&gt;&lt;tr style=&quot;vertical-align:top;&quot;&gt;&lt;!--
--&gt;{{#if:{{{col1|}}}|&lt;!--
--&gt;{{#if:{{{col1header|}}}{{{col1footer|}}}{{{fullwidth|}}}|&lt;!--
--&gt;|{{#switch:{{{padding|}}}|off|0|0em|0px|0%|0;|0em;|0px;|0%;=&lt;!--
--&gt;|#default=&lt;td style=&quot;width:{{{padding|5em}}};&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/td&gt;}}}}&lt;!--
--&gt;&lt;td class=&quot;navbox-list&quot; style=&quot;padding:0px;&lt;!--
--&gt;{{{colstyle|}}};{{{oddcolstyle|}}};{{{col1style|}}};width:{{{col1width|{{{colwidth|10em}}}}}};&quot;&gt;&lt;div&gt;
{{{col1}}}
&lt;/div&gt;&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col2|}}}|&lt;td class=&quot;navbox-list&quot; style=&quot;border-left:2px solid #fdfdfd;padding:0px;&lt;!--
--&gt;{{{colstyle|}}};{{{evencolstyle|}}};{{{col2style|}}};width:{{{col2width|{{{colwidth|10em}}}}}};&quot;&gt;&lt;div&gt;
{{{col2}}}
&lt;/div&gt;&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col3|}}}|&lt;td class=&quot;navbox-list&quot; style=&quot;border-left:2px solid #fdfdfd;padding:0px;&lt;!--
--&gt;{{{colstyle|}}};{{{oddcolstyle|}}};{{{col3style|}}};width:{{{col3width|{{{colwidth|10em}}}}}};&quot;&gt;&lt;div&gt;
{{{col3}}}
&lt;/div&gt;&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col4|}}}|&lt;td class=&quot;navbox-list&quot; style=&quot;border-left:2px solid #fdfdfd;padding:0px;&lt;!--
--&gt;{{{colstyle|}}};{{{evencolstyle|}}};{{{col4style|}}};width:{{{col4width|{{{colwidth|10em}}}}}};&quot;&gt;&lt;div&gt;
{{{col4}}}
&lt;/div&gt;&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col5|}}}|&lt;td class=&quot;navbox-list&quot; style=&quot;border-left:2px solid #fdfdfd;padding:0px;&lt;!--
--&gt;{{{colstyle|}}};{{{oddcolstyle|}}};{{{col5style|}}};width:{{{col5width|{{{colwidth|10em}}}}}};&quot;&gt;&lt;div&gt;
{{{col5}}}
&lt;/div&gt;&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col6|}}}|&lt;td class=&quot;navbox-list&quot; style=&quot;border-left:2px solid #fdfdfd;padding:0px;&lt;!--
--&gt;{{{colstyle|}}};{{{evencolstyle|}}};{{{col6style|}}};width:{{{col6width|{{{colwidth|10em}}}}}};&quot;&gt;&lt;div&gt;
{{{col6}}}
&lt;/div&gt;&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col7|}}}|&lt;td class=&quot;navbox-list&quot; style=&quot;border-left:2px solid #fdfdfd;padding:0px;&lt;!--
--&gt;{{{colstyle|}}};{{{oddcolstyle|}}};{{{col7style|}}};width:{{{col7width|{{{colwidth|10em}}}}}};&quot;&gt;&lt;div&gt;
{{{col7}}}
&lt;/div&gt;&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col8|}}}|&lt;td class=&quot;navbox-list&quot; style=&quot;border-left:2px solid #fdfdfd;padding:0px;&lt;!--
--&gt;{{{colstyle|}}};{{{evencolstyle|}}};{{{col8style|}}};width:{{{col8width|{{{colwidth|10em}}}}}};&quot;&gt;&lt;div&gt;
{{{col8}}}
&lt;/div&gt;&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col9|}}}|&lt;td class=&quot;navbox-list&quot; style=&quot;border-left:2px solid #fdfdfd;padding:0px;&lt;!--
--&gt;{{{colstyle|}}};{{{oddcolstyle|}}};{{{col9style|}}};width:{{{col9width|{{{colwidth|10em}}}}}};&quot;&gt;&lt;div&gt;
{{{col9}}}
&lt;/div&gt;&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col10|}}}|&lt;td class=&quot;navbox-list&quot; style=&quot;border-left:2px solid #fdfdfd;padding:0px;&lt;!--
--&gt;{{{colstyle|}}};{{{evencolstyle|}}};{{{col10style|}}};width:{{{col10width|{{{colwidth|10em}}}}}};&quot;&gt;&lt;div&gt;
{{{col10}}}
&lt;/div&gt;&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col11|}}}|&lt;td class=&quot;navbox-list&quot; style=&quot;border-left:2px solid #fdfdfd;padding:0px;&lt;!--
--&gt;{{{colstyle|}}};{{{oddcolstyle|}}};{{{col11style|}}};width:{{{col11width|{{{colwidth|10em}}}}}};&quot;&gt;&lt;div&gt;
{{{col11}}}
&lt;/div&gt;&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col12|}}}|&lt;td class=&quot;navbox-list&quot; style=&quot;border-left:2px solid #fdfdfd;padding:0px;&lt;!--
--&gt;{{{colstyle|}}};{{{evencolstyle|}}};{{{col12style|}}};width:{{{col12width|{{{colwidth|10em}}}}}};&quot;&gt;&lt;div&gt;
{{{col12}}}
&lt;/div&gt;&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col13|}}}|&lt;td class=&quot;navbox-list&quot; style=&quot;border-left:2px solid #fdfdfd;padding:0px;&lt;!--
--&gt;{{{colstyle|}}};{{{oddcolstyle|}}};{{{col13style|}}};width:{{{col13width|{{{colwidth|10em}}}}}};&quot;&gt;&lt;div&gt;
{{{col13}}}
&lt;/div&gt;&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col14|}}}|&lt;td class=&quot;navbox-list&quot; style=&quot;border-left:2px solid #fdfdfd;padding:0px;&lt;!--
--&gt;{{{colstyle|}}};{{{evencolstyle|}}};{{{col14style|}}};width:{{{col14width|{{{colwidth|10em}}}}}};&quot;&gt;&lt;div&gt;
{{{col14}}}
&lt;/div&gt;&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col15|}}}|&lt;td class=&quot;navbox-list&quot; style=&quot;border-left:2px solid #fdfdfd;padding:0px;&lt;!--
--&gt;{{{colstyle|}}};{{{oddcolstyle|}}};{{{col15style|}}};width:{{{col15width|{{{colwidth|10em}}}}}};&quot;&gt;&lt;div&gt;
{{{col15}}}
&lt;/div&gt;&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col16|}}}|&lt;td class=&quot;navbox-list&quot; style=&quot;border-left:2px solid #fdfdfd;padding:0px;&lt;!--
--&gt;{{{colstyle|}}};{{{evencolstyle|}}};{{{col16style|}}};width:{{{col16width|{{{colwidth|10em}}}}}};&quot;&gt;&lt;div&gt;
{{{col16}}}
&lt;/div&gt;&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col17|}}}|&lt;td class=&quot;navbox-list&quot; style=&quot;border-left:2px solid #fdfdfd;padding:0px;&lt;!--
--&gt;{{{colstyle|}}};{{{oddcolstyle|}}};{{{col17style|}}};width:{{{col17width|{{{colwidth|10em}}}}}};&quot;&gt;&lt;div&gt;
{{{col17}}}
&lt;/div&gt;&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col18|}}}|&lt;td class=&quot;navbox-list&quot; style=&quot;border-left:2px solid #fdfdfd;padding:0px;&lt;!--
--&gt;{{{colstyle|}}};{{{evencolstyle|}}};{{{col18style|}}};width:{{{col18width|{{{colwidth|10em}}}}}};&quot;&gt;&lt;div&gt;
{{{col18}}}
&lt;/div&gt;&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col19|}}}|&lt;td class=&quot;navbox-list&quot; style=&quot;border-left:2px solid #fdfdfd;padding:0px;&lt;!--
--&gt;{{{colstyle|}}};{{{oddcolstyle|}}};{{{col19style|}}};width:{{{col19width|{{{colwidth|10em}}}}}};&quot;&gt;&lt;div&gt;
{{{col19}}}
&lt;/div&gt;&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col20|}}}|&lt;td class=&quot;navbox-list&quot; style=&quot;border-left:2px solid #fdfdfd;padding:0px;&lt;!--
--&gt;{{{colstyle|}}};{{{evencolstyle|}}};{{{col20style|}}};width:{{{col20width|{{{colwidth|10em}}}}}};&quot;&gt;&lt;div&gt;
{{{col20}}}
&lt;/div&gt;&lt;/td&gt;}}&lt;!--
--&gt;&lt;/tr&gt;&lt;!--
--- Footer row ---
--&gt;{{#if:{{{col1footer|}}}|&lt;!--
--&gt;&lt;tr&gt;&lt;!--
--&gt;&lt;td class=&quot;navbox-abovebelow&quot; colspan={{{col1footercolspan|1}}} style=&quot;&lt;!--
--&gt;font-weight:bold;{{{colfooterstyle|}}};{{{col1footerstyle|}}}&quot;&gt;{{{col1footer}}}&lt;/td&gt;&lt;!--
--&gt;{{#if:{{{col2footer|}}}|&lt;td class=&quot;navbox-abovebelow&quot; colspan={{{col2footercolspan|1}}} style=&quot;&lt;!--
--&gt;border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col2footerstyle|}}}&quot;&gt;{{{col2footer}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col3footer|}}}|&lt;td class=&quot;navbox-abovebelow&quot; colspan={{{col3footercolspan|1}}} style=&quot;&lt;!--
--&gt;border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col3footerstyle|}}}&quot;&gt;{{{col3footer}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col4footer|}}}|&lt;td class=&quot;navbox-abovebelow&quot; colspan={{{col4footercolspan|1}}} style=&quot;&lt;!--
--&gt;border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col4footerstyle|}}}&quot;&gt;{{{col4footer}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col5footer|}}}|&lt;td class=&quot;navbox-abovebelow&quot; colspan={{{col5footercolspan|1}}} style=&quot;&lt;!--
--&gt;border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col5footerstyle|}}}&quot;&gt;{{{col5footer}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col6footer|}}}|&lt;td class=&quot;navbox-abovebelow&quot; colspan={{{col6footercolspan|1}}} style=&quot;&lt;!--
--&gt;border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col6footerstyle|}}}&quot;&gt;{{{col6footer}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col7footer|}}}|&lt;td class=&quot;navbox-abovebelow&quot; colspan={{{col7footercolspan|1}}} style=&quot;&lt;!--
--&gt;border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col7footerstyle|}}}&quot;&gt;{{{col7footer}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col8footer|}}}|&lt;td class=&quot;navbox-abovebelow&quot; colspan={{{col8footercolspan|1}}} style=&quot;&lt;!--
--&gt;border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col8footerstyle|}}}&quot;&gt;{{{col8footer}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col9footer|}}}|&lt;td class=&quot;navbox-abovebelow&quot; colspan={{{col9footercolspan|1}}} style=&quot;&lt;!--
--&gt;border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col9footerstyle|}}}&quot;&gt;{{{col9footer}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col10footer|}}}|&lt;td class=&quot;navbox-abovebelow&quot; colspan={{{col10footercolspan|1}}} style=&quot;&lt;!--
--&gt;border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col10footerstyle|}}}&quot;&gt;{{{col10footer}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col11footer|}}}|&lt;td class=&quot;navbox-abovebelow&quot; colspan={{{col11footercolspan|1}}} style=&quot;&lt;!--
--&gt;border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col11footerstyle|}}}&quot;&gt;{{{col11footer}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col12footer|}}}|&lt;td class=&quot;navbox-abovebelow&quot; colspan={{{col12footercolspan|1}}} style=&quot;&lt;!--
--&gt;border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col12footerstyle|}}}&quot;&gt;{{{col12footer}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col13footer|}}}|&lt;td class=&quot;navbox-abovebelow&quot; colspan={{{col13footercolspan|1}}} style=&quot;&lt;!--
--&gt;border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col13footerstyle|}}}&quot;&gt;{{{col13footer}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col14footer|}}}|&lt;td class=&quot;navbox-abovebelow&quot; colspan={{{col14footercolspan|1}}} style=&quot;&lt;!--
--&gt;border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col14footerstyle|}}}&quot;&gt;{{{col14footer}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col15footer|}}}|&lt;td class=&quot;navbox-abovebelow&quot; colspan={{{col15footercolspan|1}}} style=&quot;&lt;!--
--&gt;border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col15footerstyle|}}}&quot;&gt;{{{col15footer}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col16footer|}}}|&lt;td class=&quot;navbox-abovebelow&quot; colspan={{{col16footercolspan|1}}} style=&quot;&lt;!--
--&gt;border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col16footerstyle|}}}&quot;&gt;{{{col16footer}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col17footer|}}}|&lt;td class=&quot;navbox-abovebelow&quot; colspan={{{col17footercolspan|1}}} style=&quot;&lt;!--
--&gt;border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col17footerstyle|}}}&quot;&gt;{{{col17footer}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col18footer|}}}|&lt;td class=&quot;navbox-abovebelow&quot; colspan={{{col18footercolspan|1}}} style=&quot;&lt;!--
--&gt;border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col18footerstyle|}}}&quot;&gt;{{{col18footer}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col19footer|}}}|&lt;td class=&quot;navbox-abovebelow&quot; colspan={{{col19footercolspan|1}}} style=&quot;&lt;!--
--&gt;border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col19footerstyle|}}}&quot;&gt;{{{col19footer}}}&lt;/td&gt;}}&lt;!--
--&gt;{{#if:{{{col20footer|}}}|&lt;td class=&quot;navbox-abovebelow&quot; style=&quot;&lt;!--
--&gt;border-left:2px solid #fdfdfd;font-weight:bold;{{{colfooterstyle|}}};{{{col20footerstyle|}}}&quot;&gt;{{{col20footer}}}&lt;/td&gt;}}&lt;!--
--&gt;}}&lt;!--
--&gt;&lt;/tr&gt;&lt;/table&gt;{{#if:{{{col1header|}}}{{{col1|}}}{{{col1footer|}}}||[[Category:Pages using navbox columns without the first column]]}}
&lt;!-- Allow a few additional groups/lists after columns --&gt;
|liststyle = {{{liststyle|}}}
|list1style = background:transparent;color:inherit;
|list3style = {{{list1style|}}}
|list4style = {{{list2style|}}}
|list5style = {{{list3style|}}}
|list6style = {{{list4style|}}}
|list7style = {{{list5style|}}}
|list8style = {{{list6style|}}}
|list3 = {{{list1|}}}
|list4 = {{{list2|}}}
|list5 = {{{list3|}}}
|list6 = {{{list4|}}}
|list7 = {{{list5|}}}
|list8 = {{{list6|}}}
|groupstyle = {{{groupstyle|}}}
|group3style = {{{group1style|}}}
|group4style = {{{group2style|}}}
|group5style = {{{group3style|}}}
|group6style = {{{group4style|}}}
|group7style = {{{group5style|}}}
|group8style = {{{group6style|}}}
|group3 = {{{group1|}}}
|group4 = {{{group2|}}}
|group5 = {{{group3|}}}
|group6 = {{{group4|}}}
|group7 = {{{group5|}}}
|group8 = {{{group6|}}}
|below = {{{below|}}}
|tracking = no
}}&lt;noinclude&gt;
{{documentation}}
&lt;!---Please add metadata to the &lt;includeonly&gt; section at the bottom of the /doc subpage---&gt;
&lt;/noinclude&gt;</text>
<sha1>b10ewbwd82j8359bz3alle9xptvhfd0</sha1>
</revision>
</page>
<page>
<title>Template:Noitalic</title>
<ns>10</ns>
<id>12525543</id>
<revision>
<id>772147416</id>
<parentid>456761055</parentid>
<timestamp>2017-03-25T16:04:17Z</timestamp>
<contributor>
<username>Jo-Jo Eumerus</username>
<id>17449355</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Noitalic]]&quot;: Allowing template editors on some templates with full protection dating back to pre-[[WP:TPROT]] times which aren't too often or too sensitively used. ([Edit=Require template editor access] (indefin...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="163">&lt;span style=&quot;font-style:normal;&quot;&gt;{{{1}}}&lt;/span&gt;&lt;noinclude&gt;
{{documentation}}
&lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --&gt;
&lt;/noinclude&gt;</text>
<sha1>gthkczmvzrkqtqwsi8thy1il8wm1ddj</sha1>
</revision>
</page>
<page>
<title>Template:Sfrac</title>
<ns>10</ns>
<id>34054911</id>
<revision>
<id>804535677</id>
<parentid>667555912</parentid>
<timestamp>2017-10-09T17:16:26Z</timestamp>
<contributor>
<username>MusikAnimal</username>
<id>14882394</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Sfrac]]&quot;: [[WP:High-risk templates|Highly visible template]]; 2,000+ transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="678">{{ {{{|safesubst:}}}#invoke:Unsubst||$B=&lt;span class=&quot;sfrac nowrap&quot;{{#if:{{{3|}}}|&gt;{{{1}}}&lt;span class=&quot;visualhide&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span}} &lt;!--
--&gt;style=&quot;display:inline-block; vertical-align:-0.5em; font-size:85%; text-align:center;&quot;&gt;&lt;!--
--&gt;&lt;span style=&quot;display:block; line-height:1em; margin:0 0.1em;&quot;&gt;{{#if:{{{3|}}}|{{{2}}}|{{#if:{{{2|}}}|{{{1}}}|1}}}}&lt;/span&gt;&lt;!--
--&gt;&lt;span class=&quot;visualhide&quot;&gt;/&lt;/span&gt;&lt;!--
--&gt;&lt;span style=&quot;display:block; line-height:1em; margin:0 0.1em; border-top:1px solid;&quot;&gt;{{{3|{{{2|{{{1}}}}}}}}}&lt;/span&gt;&lt;!--
--&gt;{{#if:{{{3|}}}|&lt;/span&gt;}}&lt;!--
--&gt;&lt;/span&gt;}}&lt;noinclude&gt;
{{documentation}}
&lt;!-- PLEASE ADD CATEGORIES TO /doc SUBPAGE - NOT HERE.--&gt;
&lt;/noinclude&gt;</text>
<sha1>rthz8fmqqb9glz74z5v2ajkwx8x2mqn</sha1>
</revision>
</page>
<page>
<title>Template:Startflatlist</title>
<ns>10</ns>
<id>42217688</id>
<redirect title="Template:Flatlist" />
<revision>
<id>659675523</id>
<parentid>659674435</parentid>
<timestamp>2015-04-28T13:11:14Z</timestamp>
<contributor>
<username>Edokter</username>
<id>1624037</id>
</contributor>
<minor/>
<comment>Protected Template:Startflatlist: [[WP:High-risk templates|Highly visible template]] ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="31">#REDIRECT [[Template:Flatlist]]</text>
<sha1>ly1wav42zl1oihvre3ttvke0u7ipu0l</sha1>
</revision>
</page>
<page>
<title>Template:Tlbare</title>
<ns>10</ns>
<id>43565073</id>
<revision>
<id>819686334</id>
<parentid>626313855</parentid>
<timestamp>2018-01-10T19:17:38Z</timestamp>
<contributor>
<username>Primefac</username>
<id>11508456</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Tlbare]]&quot;: [[WP:SEMI|semi-protecting]] highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefi...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="238">{{#if:{{str endswith|{{{1}}}|%}} &lt;!--(i.e. if {{{1}}} is a percentage)--&gt;
| [[Template:{{{2}}}|&lt;span style=&quot;font-size:{{{1}}};&quot;&gt;{{{3|{{{2}}}}}}&lt;/span&gt;]]
| [[Template:{{{1}}}|{{{2|{{{1}}}}}}]]
}}&lt;noinclude&gt;
{{Documentation}}
&lt;/noinclude&gt;</text>
<sha1>atiz55vvk4gem0tvnnsrtowqye3jkoh</sha1>
</revision>
</page>
<page>
<title>Module:Color contrast</title>
<ns>828</ns>
<id>43027253</id>
<revision>
<id>823705246</id>
<parentid>823704630</parentid>
<timestamp>2018-02-02T22:01:27Z</timestamp>
<contributor>
<username>Frietjes</username>
<id>13791031</id>
</contributor>
<comment>typo</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="6632">--
-- This module implements
-- {{Color contrast ratio}}
-- {{Greater color contrast ratio}}
-- {{ColorToLum}}
-- {{RGBColorToLum}}
--
local p = {}
local HTMLcolor = mw.loadData( 'Module:Color contrast/colors' )
local function sRGB ( v )
if (v &lt;= 0.03928) then
v = v / 12.92
else
v = math.pow((v+0.055)/1.055, 2.4)
end
return v
end
local function rgbdec2lum( R, G, B )
if ( 0 &lt;= R and R &lt; 256 and 0 &lt;= G and G &lt; 256 and 0 &lt;= B and B &lt; 256 ) then
return 0.2126 * sRGB(R/255) + 0.7152 * sRGB(G/255) + 0.0722 * sRGB(B/255)
else
return ''
end
end
local function hsl2lum( h, s, l )
if ( 0 &lt;= h and h &lt; 360 and 0 &lt;= s and s &lt;= 1 and 0 &lt;= l and l &lt;= 1 ) then
local c = (1 - math.abs(2*l - 1))*s
local x = c*(1 - math.abs( math.fmod(h/60, 2) - 1) )
local m = l - c/2
local r, g, b = m, m, m
if( 0 &lt;= h and h &lt; 60 ) then
r = r + c
g = g + x
elseif( 60 &lt;= h and h &lt; 120 ) then
r = r + x
g = g + c
elseif( 120 &lt;= h and h &lt; 180 ) then
g = g + c
b = b + x
elseif( 180 &lt;= h and h &lt; 240 ) then
g = g + x
b = b + c
elseif( 240 &lt;= h and h &lt; 300 ) then
r = r + x
b = b + c
elseif( 300 &lt;= h and h &lt; 360 ) then
r = r + c
b = b + x
end
return rgbdec2lum(255*r, 255*g, 255*b)
else
return ''
end
end
local function color2lum( c )
if (c == nil) then
return ''
end
-- whitespace
c = c:match( '^%s*(.-)[%s;]*$' )
-- unstrip nowiki strip markers
c = mw.text.unstripNoWiki(c)
-- lowercase
c = c:lower()
-- first try to look it up
local L = HTMLcolor[c]
if (L ~= nil) then
return L
end
-- convert from hsl
if mw.ustring.match(c,'^hsl%([%s]*[0-9][0-9%.]*[%s]*,[%s]*[0-9][0-9%.]*%%[%s]*,[%s]*[0-9][0-9%.]*%%[%s]*%)$') then
local h, s, l = mw.ustring.match(c,'^hsl%([%s]*([0-9][0-9%.]*)[%s]*,[%s]*([0-9][0-9%.]*)%%[%s]*,[%s]*([0-9][0-9%.]*)%%[%s]*%)$')
return hsl2lum(tonumber(h), tonumber(s)/100, tonumber(l)/100)
end
-- convert from rgb
if mw.ustring.match(c,'^rgb%([%s]*[0-9][0-9]*[%s]*,[%s]*[0-9][0-9]*[%s]*,[%s]*[0-9][0-9]*[%s]*%)$') then
local R, G, B = mw.ustring.match(c,'^rgb%([%s]*([0-9][0-9]*)[%s]*,[%s]*([0-9][0-9]*)[%s]*,[%s]*([0-9][0-9]*)[%s]*%)$')
return rgbdec2lum(tonumber(R), tonumber(G), tonumber(B))
end
-- convert from rgb percent
if mw.ustring.match(c,'^rgb%([%s]*[0-9][0-9%.]*%%[%s]*,[%s]*[0-9][0-9%.]*%%[%s]*,[%s]*[0-9][0-9%.]*%%[%s]*%)$') then
local R, G, B = mw.ustring.match(c,'^rgb%([%s]*([0-9][0-9%.]*)%%[%s]*,[%s]*([0-9][0-9%.]*)%%[%s]*,[%s]*([0-9][0-9%.]*)%%[%s]*%)$')
return rgbdec2lum(255*tonumber(R)/100, 255*tonumber(G)/100, 255*tonumber(B)/100)
end
-- remove leading # (if there is one) and whitespace
c = mw.ustring.match(c, '^[%s#]*([a-f0-9]*)[%s]*$')
-- split into rgb
local cs = mw.text.split(c or '', '')
if( #cs == 6 ) then
local R = 16*tonumber('0x' .. cs[1]) + tonumber('0x' .. cs[2])
local G = 16*tonumber('0x' .. cs[3]) + tonumber('0x' .. cs[4])
local B = 16*tonumber('0x' .. cs[5]) + tonumber('0x' .. cs[6])
return rgbdec2lum(R, G, B)
elseif ( #cs == 3 ) then
local R = 16*tonumber('0x' .. cs[1]) + tonumber('0x' .. cs[1])
local G = 16*tonumber('0x' .. cs[2]) + tonumber('0x' .. cs[2])
local B = 16*tonumber('0x' .. cs[3]) + tonumber('0x' .. cs[3])
return rgbdec2lum(R, G, B)
end
-- failure, return blank
return ''
end
function p._greatercontrast(args)
local bias = tonumber(args['bias'] or '0') or 0
local css = (args['css'] and args['css'] ~= '') and true or false
local v1 = color2lum(args[1] or '')
local c2 = args[2] or '#FFFFFF'
local v2 = color2lum(c2)
local c3 = args[3] or '#000000'
local v3 = color2lum(c3)
local ratio1 = -1;
local ratio2 = -1;
if (type(v1) == 'number' and type(v2) == 'number') then
ratio1 = (v2 + 0.05)/(v1 + 0.05)
ratio1 = (ratio1 &lt; 1) and 1/ratio1 or ratio1
end
if (type(v1) == 'number' and type(v3) == 'number') then
ratio2 = (v3 + 0.05)/(v1 + 0.05)
ratio2 = (ratio2 &lt; 1) and 1/ratio2 or ratio2
end
if css then
local c1 = args[1] or ''
if mw.ustring.match(c1, '^[A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9]$') or
mw.ustring.match(c1, '^[A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9]$') then
c1 = '#' .. c1
end
if mw.ustring.match(c2, '^[A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9]$') or
mw.ustring.match(c2, '^[A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9]$') then
c2 = '#' .. c2
end
if mw.ustring.match(v3, '^[A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9]$') or
mw.ustring.match(v3, '^[A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9][A-Fa-f0-9]$') then
c3 = '#' .. c3
end
return 'background-color:' .. c1 .. '; color:' .. ((ratio1 &gt; 0) and (ratio2 &gt; 0) and ((ratio1 + bias &gt; ratio2) and c2 or c3) or '') .. ';'
end
return (ratio1 &gt; 0) and (ratio2 &gt; 0) and ((ratio1 + bias &gt; ratio2) and c2 or c3) or ''
end
function p._ratio(args)
local v1 = color2lum(args[1])
local v2 = color2lum(args[2])
if (type(v1) == 'number' and type(v2) == 'number') then
-- v1 should be the brighter of the two.
if v2 &gt; v1 then
v1, v2 = v2, v1
end
return (v1 + 0.05)/(v2 + 0.05)
else
return args['error'] or '?'
end
end
function p._styleratio(args)
local style = (args[1] or ''):lower()
local bg, fg = 'white', 'black'
local lum_bg, lum_fg = 1, 0
if args[2] then
local lum = color2lum(args[2])
if lum ~= '' then bg, lum_bg = args[2], lum end
end
if args[3] then
local lum = color2lum(args[3])
if lum ~= '' then fg, lum_fg = args[3], lum end
end
local slist = mw.text.split(mw.ustring.gsub(mw.ustring.gsub(style or '', '&amp;#[Xx]23;', '#'), '&amp;#35;', '#'), ';')
for k = 1,#slist do
local s = slist[k]
local k,v = s:match( '^[%s]*([^:]-):([^:]-)[%s;]*$' )
k = k or ''
v = v or ''
if (k:match('^[%s]*(background)[%s]*$') or k:match('^[%s]*(background%-color)[%s]*$')) then
local lum = color2lum(v)
if( lum ~= '' ) then bg, lum_bg = v, lum end
elseif (k:match('^[%s]*(color)[%s]*$')) then
local lum = color2lum(v)
if( lum ~= '' ) then bg, lum_fg = v, lum end
end
end
if lum_bg &gt; lum_fg then
return (lum_bg + 0.05)/(lum_fg + 0.05)
else
return (lum_fg + 0.05)/(lum_bg + 0.05)
end
end
function p.lum(frame)
return color2lum(frame.args[1] or frame:getParent().args[1])
end
function p.ratio(frame)
local args = frame.args[1] and frame.args or frame:getParent().args
return p._ratio(args)
end
function p.styleratio(frame)
local args = frame.args[1] and frame.args or frame:getParent().args
return p._styleratio(args)
end
function p.greatercontrast(frame)
local args = frame.args[1] and frame.args or frame:getParent().args
return p._greatercontrast(args)
end
return p</text>
<sha1>43ryh3q2kthxzrpu56wy019djsecqot</sha1>
</revision>
</page>
<page>
<title>Module:Color contrast/colors</title>
<ns>828</ns>
<id>47337125</id>
<revision>
<id>673825843</id>
<parentid>673821532</parentid>
<timestamp>2015-07-30T19:00:09Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<comment>tabularise, because you know it makes sense - https://github.com/godlygeek/tabular</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="6119">return {
aliceblue = 0.92880068253475,
antiquewhite = 0.84646951707754,
aqua = 0.7874,
aquamarine = 0.8078549208338,
azure = 0.97265264954166,
beige = 0.8988459998705,
bisque = 0.80732327372979,
black = 0,
blanchedalmond = 0.85084439608156,
blue = 0.0722,
blueviolet = 0.12622014321946,
brown = 0.098224287876511,
burlywood = 0.51559844533893,
cadetblue = 0.29424681085422,
chartreuse = 0.76032025902623,
chocolate = 0.23898526114557,
coral = 0.37017930872924,
cornflowerblue = 0.30318641994179,
cornsilk = 0.93562110372965,
crimson = 0.16042199953026,
cyan = 0.7874,
darkblue = 0.018640801980939,
darkcyan = 0.20329317839046,
darkgoldenrod = 0.27264703559993,
darkgray = 0.39675523072563,
darkgreen = 0.091143429047575,
darkgrey = 0.39675523072563,
darkkhaki = 0.45747326349994,
darkmagenta = 0.07353047651207,
darkolivegreen = 0.12651920884889,
darkorange = 0.40016167026524,
darkorchid = 0.13413142174857,
darkred = 0.054889674531132,
darksalmon = 0.40541471563381,
darkseagreen = 0.43789249325969,
darkslateblue = 0.065792846227988,
darkslategray = 0.067608151928044,
darkslategrey = 0.067608151928044,
darkturquoise = 0.4874606277449,
darkviolet = 0.10999048339343,
deeppink = 0.23866895828276,
deepskyblue = 0.44481603395575,
dimgray = 0.14126329114027,
dimgrey = 0.14126329114027,
dodgerblue = 0.27442536991456,
firebrick = 0.10724525535015,
floralwhite = 0.95922484825004,
forestgreen = 0.18920812076002,
fuchsia = 0.2848,
gainsboro = 0.71569350050648,
ghostwhite = 0.94311261886323,
gold = 0.69860877428159,
goldenrod = 0.41919977809569,
gray = 0.2158605001139,
green = 0.15438342968146,
greenyellow = 0.80609472611453,
grey = 0.2158605001139,
honeydew = 0.96336535554782,
hotpink = 0.34658438169715,
indianred = 0.21406134963884,
indigo = 0.03107561486337,
ivory = 0.99071270600615,
khaki = 0.77012343394121,
lavender = 0.80318750514521,
lavenderblush = 0.90172748631046,
lawngreen = 0.73905893124963,
lemonchiffon = 0.94038992245622,
lightblue = 0.63709141280807,
lightcoral = 0.35522120733135,
lightcyan = 0.94587293494829,
lightgoldenrodyellow = 0.93348351018297,
lightgray = 0.65140563741982,
lightgreen = 0.69091979956865,
lightgrey = 0.65140563741982,
lightpink = 0.58566152734898,
lightsalmon = 0.4780675225206,
lightseagreen = 0.35050145117042,
lightskyblue = 0.56195637618331,
lightslategray = 0.23830165007287,
lightslategrey = 0.23830165007287,
lightsteelblue = 0.53983888284666,
lightyellow = 0.98161818392882,
lime = 0.7152,
limegreen = 0.44571042246098,
linen = 0.88357340984379,
magenta = 0.2848,
maroon = 0.045891942324215,
mediumaquamarine = 0.49389703310801,
mediumblue = 0.044077780212328,
mediumorchid = 0.21639251153773,
mediumpurple = 0.22905858091648,
mediumseagreen = 0.34393112338131,
mediumslateblue = 0.20284629471622,
mediumspringgreen = 0.70704308194184,
mediumturquoise = 0.5133827926448,
mediumvioletred = 0.14371899849357,
midnightblue = 0.02071786635086,
mintcream = 0.97834604947588,
mistyrose = 0.82183047859185,
moccasin = 0.80083000991567,
navajowhite = 0.76519682342785,
navy = 0.015585128108224,
oldlace = 0.91900633405549,
olive = 0.20027537200568,
olivedrab = 0.22593150951929,
orange = 0.4817026703631,
orangered = 0.25516243753416,
orchid = 0.31348806761439,
palegoldenrod = 0.78792647887614,
palegreen = 0.77936759006353,
paleturquoise = 0.76436077921714,
palevioletred = 0.28754994117889,
papayawhip = 0.87797100199835,
peachpuff = 0.74905589878251,
peru = 0.30113074877936,
pink = 0.63271070702466,
plum = 0.45734221587969,
powderblue = 0.68254586500605,
purple = 0.061477070432439,
rebeccapurple = 0.07492341159447,
red = 0.2126,
rosybrown = 0.32319457649407,
royalblue = 0.16663210743188,
saddlebrown = 0.097922285020521,
salmon = 0.36977241527596,
sandybrown = 0.46628543696283,
seagreen = 0.19734199706275,
seashell = 0.92737862206922,
sienna = 0.13697631337098,
silver = 0.52711512570581,
skyblue = 0.55291668518184,
slateblue = 0.14784278062136,
slategray = 0.20896704076536,
slategrey = 0.20896704076536,
snow = 0.96533341834849,
springgreen = 0.73052306068529,
steelblue = 0.20562642207625,
tan = 0.48237604163921,
teal = 0.16996855778968,
thistle = 0.56818401093733,
tomato = 0.30638612719415,
turquoise = 0.5895536427578,
violet = 0.40315452986676,
wheat = 0.74909702820482,
white = 1,
whitesmoke = 0.91309865179342,
yellow = 0.9278,
yellowgreen = 0.50762957208707,
}</text>
<sha1>chi69ar1btd4wp6xbk3uez6sfu0vipn</sha1>
</revision>
</page>
<page>
<title>Module:Navbox</title>
<ns>828</ns>
<id>38634746</id>
<revision>
<id>819819538</id>
<parentid>790205321</parentid>
<timestamp>2018-01-11T12:41:17Z</timestamp>
<contributor>
<username>Frietjes</username>
<id>13791031</id>
</contributor>
<comment>(1) add tracking for css borders in group/above/belowstyle (2) extended background colour check to above and belowstyle (3) add [[User:Johnuniq|Johnuniq]]'s change to enable using this module directly in [[Template:Navbox subgroup|Navbox subgroup]]</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="12076">--
-- This module implements {{Navbox}}
--
local p = {}
local navbar = require('Module:Navbar')._navbar
local getArgs -- lazily initialized
local args
local border
local listnums = {}
local ODD_EVEN_MARKER = '\127_ODDEVEN_\127'
local RESTART_MARKER = '\127_ODDEVEN0_\127'
local REGEX_MARKER = '\127_ODDEVEN(%d?)_\127'
local function striped(wikitext)
-- Return wikitext with markers replaced for odd/even striping.
-- Child (subgroup) navboxes are flagged with a category that is removed
-- by parent navboxes. The result is that the category shows all pages
-- where a child navbox is not contained in a parent navbox.
local orphanCat = '[[Category:Navbox orphans]]'
if border == 'subgroup' and args.orphan ~= 'yes' then
-- No change; striping occurs in outermost navbox.
return wikitext .. orphanCat
end
local first, second = 'odd', 'even'
if args.evenodd then
if args.evenodd == 'swap' then
first, second = second, first
else
first = args.evenodd
second = first
end
end
local changer
if first == second then
changer = first
else
local index = 0
changer = function (code)
if code == '0' then
-- Current occurrence is for a group before a nested table.
-- Set it to first as a valid although pointless class.
-- The next occurrence will be the first row after a title
-- in a subgroup and will also be first.
index = 0
return first
end
index = index + 1
return index % 2 == 1 and first or second
end
end
local regex = orphanCat:gsub('([%[%]])', '%%%1')
return (wikitext:gsub(regex, ''):gsub(REGEX_MARKER, changer)) -- () omits gsub count
end
local function processItem(item, nowrapitems)
if item:sub(1, 2) == '{|' then
-- Applying nowrap to lines in a table does not make sense.
-- Add newlines to compensate for trim of x in |parm=x in a template.
return '\n' .. item ..'\n'
end
if nowrapitems == 'yes' then
local lines = {}
for line in (item .. '\n'):gmatch('([^\n]*)\n') do
local prefix, content = line:match('^([*:;#]+)%s*(.*)')
if prefix and not content:match('^&lt;span class=&quot;nowrap&quot;&gt;') then
line = prefix .. '&lt;span class=&quot;nowrap&quot;&gt;' .. content .. '&lt;/span&gt;'
end
table.insert(lines, line)
end
item = table.concat(lines, '\n')
end
if item:match('^[*:;#]') then
return '\n' .. item ..'\n'
end
return item
end
local function renderNavBar(titleCell)
if args.navbar ~= 'off' and args.navbar ~= 'plain' and not (not args.name and mw.getCurrentFrame():getParent():getTitle():gsub('/sandbox$', '') == 'Template:Navbox') then
titleCell:wikitext(navbar{
args.name,
mini = 1,
fontstyle = (args.basestyle or '') .. ';' .. (args.titlestyle or '') .. ';background:none transparent;border:none;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;'
})
end
end
--
-- Title row
--
local function renderTitleRow(tbl)
if not args.title then return end
local titleRow = tbl:tag('tr')
if args.titlegroup then
titleRow
:tag('th')
:attr('scope', 'row')
:addClass('navbox-group')
:addClass(args.titlegroupclass)
:cssText(args.basestyle)
:cssText(args.groupstyle)
:cssText(args.titlegroupstyle)
:wikitext(args.titlegroup)
end
local titleCell = titleRow:tag('th'):attr('scope', 'col')
if args.titlegroup then
titleCell
:css('border-left', '2px solid #fdfdfd')
:css('width', '100%')
end
local titleColspan = 2
if args.imageleft then titleColspan = titleColspan + 1 end
if args.image then titleColspan = titleColspan + 1 end
if args.titlegroup then titleColspan = titleColspan - 1 end
titleCell
:cssText(args.basestyle)
:cssText(args.titlestyle)
:addClass('navbox-title')
:attr('colspan', titleColspan)
renderNavBar(titleCell)
titleCell
:tag('div')
:attr('id', mw.uri.anchorEncode(args.title))
:addClass(args.titleclass)
:css('font-size', '114%')
:css('margin', '0 4em')
:wikitext(processItem(args.title))
end
--
-- Above/Below rows
--
local function getAboveBelowColspan()
local ret = 2
if args.imageleft then ret = ret + 1 end
if args.image then ret = ret + 1 end
return ret
end
local function renderAboveRow(tbl)
if not args.above then return end
tbl:tag('tr')
:tag('td')
:addClass('navbox-abovebelow')
:addClass(args.aboveclass)
:cssText(args.basestyle)
:cssText(args.abovestyle)
:attr('colspan', getAboveBelowColspan())
:tag('div')
:wikitext(processItem(args.above, args.nowrapitems))
end
local function renderBelowRow(tbl)
if not args.below then return end
tbl:tag('tr')
:tag('td')
:addClass('navbox-abovebelow')
:addClass(args.belowclass)
:cssText(args.basestyle)
:cssText(args.belowstyle)
:attr('colspan', getAboveBelowColspan())
:tag('div')
:wikitext(processItem(args.below, args.nowrapitems))
end
--
-- List rows
--
local function renderListRow(tbl, index, listnum)
local row = tbl:tag('tr')
if index == 1 and args.imageleft then
row
:tag('td')
:addClass('navbox-image')
:addClass(args.imageclass)
:css('width', '1px') -- Minimize width
:css('padding', '0px 2px 0px 0px')
:cssText(args.imageleftstyle)
:attr('rowspan', #listnums)
:tag('div')
:wikitext(processItem(args.imageleft))
end
if args['group' .. listnum] then
local groupCell = row:tag('th')
groupCell
:attr('scope', 'row')
:addClass('navbox-group')
:addClass(args.groupclass)
:cssText(args.basestyle)
:css('width', args.groupwidth or '1%') -- If groupwidth not specified, minimize width
groupCell
:cssText(args.groupstyle)
:cssText(args['group' .. listnum .. 'style'])
:wikitext(args['group' .. listnum])
end
local listCell = row:tag('td')
if args['group' .. listnum] then
listCell
:css('text-align', 'left')
:css('border-left-width', '2px')
:css('border-left-style', 'solid')
else
listCell:attr('colspan', 2)
end
if not args.groupwidth then
listCell:css('width', '100%')
end
local rowstyle -- usually nil so cssText(rowstyle) usually adds nothing
if index % 2 == 1 then
rowstyle = args.oddstyle
else
rowstyle = args.evenstyle
end
local listText = args['list' .. listnum]
local oddEven = ODD_EVEN_MARKER
if listText:sub(1, 12) == '&lt;/div&gt;&lt;table' then
-- Assume list text is for a subgroup navbox so no automatic striping for this row.
oddEven = listText:find('&lt;th[^&gt;]*&quot;navbox%-title&quot;') and RESTART_MARKER or 'odd'
end
listCell
:css('padding', '0px')
:cssText(args.liststyle)
:cssText(rowstyle)
:cssText(args['list' .. listnum .. 'style'])
:addClass('navbox-list')
:addClass('navbox-' .. oddEven)
:addClass(args.listclass)
:tag('div')
:css('padding', (index == 1 and args.list1padding) or args.listpadding or '0em 0.25em')
:wikitext(processItem(listText, args.nowrapitems))
if index == 1 and args.image then
row
:tag('td')
:addClass('navbox-image')
:addClass(args.imageclass)
:css('width', '1px') -- Minimize width
:css('padding', '0px 0px 0px 2px')
:cssText(args.imagestyle)
:attr('rowspan', #listnums)
:tag('div')
:wikitext(processItem(args.image))
end
end
--
-- Tracking categories
--
local function needsHorizontalLists()
if border == 'subgroup' or args.tracking == 'no' then
return false
end
local listClasses = {
['plainlist'] = true, ['hlist'] = true, ['hlist hnum'] = true,
['hlist hwrap'] = true, ['hlist vcard'] = true, ['vcard hlist'] = true,
['hlist vevent'] = true,
}
return not (listClasses[args.listclass] or listClasses[args.bodyclass])
end
local function hasBackgroundColors()
for _, key in ipairs({'titlestyle', 'groupstyle', 'basestyle', 'abovestyle', 'belowstyle'}) do
if tostring(args[key]):find('background', 1, true) then
return true
end
end
end
local function hasBorders()
for _, key in ipairs({'groupstyle', 'basestyle', 'abovestyle', 'belowstyle'}) do
if tostring(args[key]):find('border', 1, true) then
return true
end
end
end
local function isIllegible()
local styleratio = require('Module:Color contrast')._styleratio
for key, style in pairs(args) do
if tostring(key):match(&quot;style$&quot;) then
if styleratio{mw.text.unstripNoWiki(style)} &lt; 4.5 then
return true
end
end
end
return false
end
local function getTrackingCategories()
local cats = {}
if needsHorizontalLists() then table.insert(cats, 'Navigational boxes without horizontal lists') end
if hasBackgroundColors() then table.insert(cats, 'Navboxes using background colours') end
if isIllegible() then table.insert(cats, 'Potentially illegible navboxes') end
if hasBorders() then table.insert(cats, 'Navboxes using borders') end
return cats
end
local function renderTrackingCategories(builder)
local title = mw.title.getCurrentTitle()
if title.namespace ~= 10 then return end -- not in template space
local subpage = title.subpageText
if subpage == 'doc' or subpage == 'sandbox' or subpage == 'testcases' then return end
for _, cat in ipairs(getTrackingCategories()) do
builder:wikitext('[[Category:' .. cat .. ']]')
end
end
--
-- Main navbox tables
--
local function renderMainTable()
local tbl = mw.html.create('table')
:addClass('nowraplinks')
:addClass(args.bodyclass)
if args.title and (args.state ~= 'plain' and args.state ~= 'off') then
tbl
:addClass('collapsible')
:addClass(args.state or 'autocollapse')
end
tbl:css('border-spacing', 0)
if border == 'subgroup' or border == 'none' then
tbl
:addClass('navbox-subgroup')
:cssText(args.bodystyle)
:cssText(args.style)
else -- regular navbox - bodystyle and style will be applied to the wrapper table
tbl
:addClass('navbox-inner')
:css('background', 'transparent')
:css('color', 'inherit')
end
tbl:cssText(args.innerstyle)
renderTitleRow(tbl)
renderAboveRow(tbl)
for i, listnum in ipairs(listnums) do
renderListRow(tbl, i, listnum)
end
renderBelowRow(tbl)
return tbl
end
function p._navbox(navboxArgs)
args = navboxArgs
for k, _ in pairs(args) do
if type(k) == 'string' then
local listnum = k:match('^list(%d+)$')
if listnum then table.insert(listnums, tonumber(listnum)) end
end
end
table.sort(listnums)
border = mw.text.trim(args.border or args[1] or '')
if border == 'child' then
border = 'subgroup'
end
-- render the main body of the navbox
local tbl = renderMainTable()
-- render the appropriate wrapper around the navbox, depending on the border param
local res = mw.html.create()
if border == 'none' then
local nav = res:tag('div')
:attr('role', 'navigation')
:node(tbl)
if args.title then
nav:attr('aria-labelledby', mw.uri.anchorEncode(args.title))
else
nav:attr('aria-label', 'Navbox')
end
elseif border == 'subgroup' then
-- We assume that this navbox is being rendered in a list cell of a parent navbox, and is
-- therefore inside a div with padding:0em 0.25em. We start with a &lt;/div&gt; to avoid the
-- padding being applied, and at the end add a &lt;div&gt; to balance out the parent's &lt;/div&gt;
res
:wikitext('&lt;/div&gt;')
:node(tbl)
:wikitext('&lt;div&gt;')
else
local nav = res:tag('div')
:attr('role', 'navigation')
:addClass('navbox')
:cssText(args.bodystyle)
:cssText(args.style)
:css('padding', '3px')
:node(tbl)
if args.title then
nav:attr('aria-labelledby', mw.uri.anchorEncode(args.title))
else
nav:attr('aria-label', 'Navbox')
end
end
renderTrackingCategories(res)
return striped(tostring(res))
end
function p.navbox(frame)
if not getArgs then
getArgs = require('Module:Arguments').getArgs
end
args = getArgs(frame, {wrappers = {'Template:Navbox', 'Template:Navbox subgroup'}})
if frame.args.border then
-- This allows Template:Navbox_subgroup to use {{#invoke:Navbox|navbox|border=...}}.
args.border = frame.args.border
end
-- Read the arguments in the order they'll be output in, to make references number in the right order.
local _
_ = args.title
_ = args.above
for i = 1, 20 do
_ = args[&quot;group&quot; .. tostring(i)]
_ = args[&quot;list&quot; .. tostring(i)]
end
_ = args.below
return p._navbox(args)
end
return p</text>
<sha1>agfujr0g49peekpzrn4lgskcr1edwwp</sha1>
</revision>
</page>
<page>
<title>Module:Unsubst</title>
<ns>828</ns>
<id>40945493</id>
<revision>
<id>784254967</id>
<parentid>784251604</parentid>
<timestamp>2017-06-07T09:01:50Z</timestamp>
<contributor>
<username>Jc86035</username>
<id>17245768</id>
</contributor>
<minor/>
<comment>fix whitespace removal; remove empty parameters after handling aliases and prevent removal of two or fewer consecutive empty parameters in a sequence</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="3688">local checkType = require('libraryUtil').checkType
local p = {}
local BODY_PARAM = '$B'
local specialParams = {
['$params'] = 'parameter list',
['$aliases'] = 'parameter aliases',
['$flags'] = 'flags',
['$B'] = 'template content'
}
function p.main(frame, body)
-- If we are substing, this function returns a template invocation, and if
-- not, it returns the template body. The template body can be specified in
-- the body parameter, or in the template parameter defined in the
-- BODY_PARAM variable. This function can be called from Lua or from
-- #invoke.
-- Return the template body if we aren't substing.
if not mw.isSubsting() then
if body ~= nil then
return body
elseif frame.args[BODY_PARAM] ~= nil then
return frame.args[BODY_PARAM]
else
error(string.format(
&quot;no template content specified (use parameter '%s' from #invoke)&quot;,
BODY_PARAM
), 2)
end
end
-- Sanity check for the frame object.
if type(frame) ~= 'table'
or type(frame.getParent) ~= 'function'
or not frame:getParent()
then
error(
&quot;argument #1 to 'main' must be a frame object with a parent &quot; ..
&quot;frame available&quot;,
2
)
end
-- Find the invocation name.
local mTemplateInvocation = require('Module:Template invocation')
local name = mTemplateInvocation.name(frame:getParent():getTitle())
-- Combine passed args with passed defaults
local args = {}
if string.find( ','..(frame.args['$flags'] or '')..',', ',%s*override%s*,' ) then
for k, v in pairs( frame:getParent().args ) do
args[k] = v
end
for k, v in pairs( frame.args ) do
if not specialParams[k] then
if v == '__DATE__' then
v = mw.getContentLanguage():formatDate( 'F Y' )
end
args[k] = v
end
end
else
for k, v in pairs( frame.args ) do
if not specialParams[k] then
if v == '__DATE__' then
v = mw.getContentLanguage():formatDate( 'F Y' )
end
args[k] = v
end
end
for k, v in pairs( frame:getParent().args ) do
args[k] = v
end
end
-- Trim parameters, if not specified otherwise
if not string.find( ','..(frame.args['$flags'] or '')..',', ',%s*keep%-whitespace%s*,' ) then
for k, v in pairs( args ) do args[k] = mw.ustring.match(v, '^%s*(.*)%s*$') or '' end
end
-- Pull information from parameter aliases
local aliases = {}
if frame.args['$aliases'] then
local list = mw.text.split( frame.args['$aliases'], '%s*,%s*' )
for k, v in ipairs( list ) do
local tmp = mw.text.split( v, '%s*&gt;%s*' )
aliases[tonumber(mw.ustring.match(tmp[1], '^[1-9][0-9]*$')) or tmp[1]] = ((tonumber(mw.ustring.match(tmp[2], '^[1-9][0-9]*$'))) or tmp[2])
end
end
for k, v in pairs( aliases ) do
if args[k] and ( not args[v] or args[v] == '' ) then
args[v] = args[k]
end
args[k] = nil
end
-- Remove empty parameters, if specified
if string.find( ','..(frame.args['$flags'] or '')..',', ',%s*remove%-empty%s*,' ) then
local tmp = 0
for k, v in ipairs( args ) do
if v ~= '' or ( args[k+1] and args[k+1] ~= '' ) or ( args[k+2] and args[k+2] ~= '' ) then
tmp = k
else
break
end
end
for k, v in pairs( args ) do
if v == '' then
if not (type(k) == 'number' and k &lt; tmp) then args[k] = nil end
end
end
end
-- Order parameters
if frame.args['$params'] then
local params, tmp = mw.text.split( frame.args['$params'], '%s*,%s*' ), {}
for k, v in ipairs(params) do
v = tonumber(mw.ustring.match(v, '^[1-9][0-9]*$')) or v
if args[v] then tmp[v], args[v] = args[v], nil end
end
for k, v in pairs(args) do tmp[k], args[k] = args[k], nil end
args = tmp
end
return mTemplateInvocation.invocation(name, args)
end
p[''] = p.main -- For backwards compatibility
return p</text>
<sha1>dnfbu3ol9y1rn4f58ap519pwafevpgq</sha1>
</revision>
</page>
<page>
<title>Template:Bug/doc</title>
<ns>10</ns>
<id>37782481</id>
<revision>
<id>653500027</id>
<parentid>635757657</parentid>
<timestamp>2015-03-25T19:29:49Z</timestamp>
<contributor>
<username>DMacks</username>
<id>712163</id>
</contributor>
<comment>/* See also */ list all variants</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="740">{{Documentation subpage}}
== Usage ==
;Linking to a bug
:&lt;code&gt;&lt;nowiki&gt;{{Bug|1}}&lt;/nowiki&gt;&lt;/code&gt; produces: {{bug|1}}
;Linking to a comment on a bug
:&lt;code&gt;&lt;nowiki&gt;{{Bug|1|comment=8}}&lt;/nowiki&gt;&lt;/code&gt; produces: {{bug|1|comment=8}}
;Linking to a bug with a label
:&lt;code&gt;&lt;nowiki&gt;{{Bug|1|label=label text}}&lt;/nowiki&gt;&lt;/code&gt; produces: {{bug|1|label=label text}}
== See also ==
* Links to Wikimedia Phabricator:
** {{tl|Phab}}, inline link
** {{tl|Tracked}}, float-right box
* Links to Wikimedia's old Bugzilla (now migrated to Phabricator):
** {{tl|Bug}}, inline link
** {{tl|Bugzilla}}, inline link (multiple items)
&lt;includeonly&gt;
&lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&gt;
[[Category:External link templates|{{PAGENAME}}]]
&lt;/includeonly&gt;</text>
<sha1>0q3sktvknjuxzu8soqle79fsl9azr6d</sha1>
</revision>
</page>
<page>
<title>Template:Dated maintenance category</title>
<ns>10</ns>
<id>22598546</id>
<revision>
<id>589732290</id>
<parentid>584337311</parentid>
<timestamp>2014-01-08T08:14:55Z</timestamp>
<contributor>
<username>John of Reading</username>
<id>11308236</id>
</contributor>
<comment>Second attempt. Those spaces upset inline templates such as {{As of}}. Instead, try an unconditional &lt;nowiki/&gt;</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="660">&lt;nowiki/&gt;&lt;!--This nowiki helps to prevent whitespace at the top of articles--&gt;{{#ifeq:{{FULLROOTPAGENAME}}|Wikipedia:Template messages|&lt;!--Do not categorize--&gt;|&lt;!--
--&gt;{{#ifexpr:{{#if:{{NAMESPACE}}|0|1}}+{{#ifeq:{{{onlyarticles|no}}}|yes|0|1}}
|{{#if:{{{3|}}}
|[[Category:{{{1}}} {{{2}}} {{{3}}}]]&lt;!--
--&gt;{{#ifexist:Category:{{{1}}} {{{2}}} {{{3}}}
|&lt;!--
--&gt;|[[Category:Articles with invalid date parameter in template]]&lt;!--
--&gt;}}
|[[Category:{{#if:{{{5|}}}
|{{{5}}}&lt;!--
--&gt;|{{{1}}}&lt;!--
--&gt;}}]]&lt;!--
--&gt;}}{{#if:{{{4|}}}
|[[Category:{{{4}}}]]}}&lt;!--
--&gt;}}&lt;!--
--&gt;}}&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>7p59j4cq4i8wg65odpv5287yu50sczo</sha1>
</revision>
</page>
<page>
<title>Template:Deprecated template</title>
<ns>10</ns>
<id>3363053</id>
<revision>
<id>819687344</id>
<parentid>819416801</parentid>
<timestamp>2018-01-10T19:21:24Z</timestamp>
<contributor>
<username>Primefac</username>
<id>11508456</id>
</contributor>
<minor/>
<comment>Protected &quot;[[Template:Deprecated template]]&quot;: [[WP:SEMI|semi-protecting]] highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed ac...</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="1258">{{ {{{|safesubst:}}}#invoke:Unsubst||$params=old,by,new,note,historical,nocat|date=__DATE__|$B=
{{Ombox
| type = content
| text = [[{{{old|Template:{{{1|{{PAGENAME}}}}}}}}]] is [[deprecation|deprecated]]{{#if:{{{by|}}}|&amp;#32;by {{{by}}}}}{{#if:{{{historical|}}}|, but preserved for historical reasons}}.{{#if:{{{new|{{{2&lt;includeonly&gt;|&lt;/includeonly&gt;}}}}}}
| &amp;#32;Please {{#if:{{{3|}}}
|use {{tlx|{{{new|{{{2}}}}}}|{{{3}}}}}
|{{#if:{{{new|}}}
|see [[{{{new}}}]]
|use [[Template:{{{2}}}]]
}}
}} instead.
}} {{{note|}}}
}}{{#ifeq:{{{nocat|}}}|true
||{{Template other
|{{When on basepage&lt;!-- Don't categorise subpages, like /doc, /sandbox or /testcases --&gt;
|{{#ifeq:{{PAGENAME}}|{{ucfirst:{{{1|{{PAGENAME}}}}}}}&lt;!-- Only for the deprecated template itself --&gt;
|&lt;includeonly&gt;{{#if:{{{historical|}}}|[[Category:Deprecated templates kept for historical reasons]]|{{Dated maintenance category|Deprecated templates|from|{{{date|}}}}}}}&lt;/includeonly&gt;
}}
}}
|{{#ifeq:{{{old|}}}|{{FULLPAGENAME}}||[[Category:Pages using deprecated templates]]}}
}}
}}
}}&lt;noinclude&gt;
{{Documentation}}
&lt;!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --&gt;
&lt;/noinclude&gt;</text>
<sha1>4sda845evlqa1nm88l2ks1wpykhbp4l</sha1>
</revision>
</page>
<page>
<title>Template:FULLROOTPAGENAME</title>
<ns>10</ns>
<id>34701984</id>
<revision>
<id>774489771</id>
<parentid>476439833</parentid>
<timestamp>2017-04-08T20:24:42Z</timestamp>
<contributor>
<username>Jo-Jo Eumerus</username>
<id>17449355</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:FULLROOTPAGENAME]]&quot;: [[WP:High-risk templates|Highly visible template]]: Allowing template editors ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="420">{{ {{{|safesubst:}}}#if: {{ {{{|safesubst:}}}Ns has subpages | {{ {{{|safesubst:}}}#if:{{{1|}}}|{{ {{{|safesubst:}}}NAMESPACE:{{{1}}}}}|{{ {{{|safesubst:}}}NAMESPACE}}}} }}
| {{ {{{|safesubst:}}}#titleparts:{{ {{{|safesubst:}}}#if:{{{1|}}}|{{{1}}}|{{ {{{|safesubst:}}}FULLPAGENAME}}}}|1}}
| {{ {{{|safesubst:}}}#if:{{{1|}}}|{{{1}}}|{{ {{{|safesubst:}}}FULLPAGENAME}}}}
}}&lt;noinclude&gt;
{{documentation}}
&lt;/noinclude&gt;</text>
<sha1>t4jn967jlk6ph7qu71w2b8f5083yjrl</sha1>
</revision>
</page>
<page>
<title>Template:Ns has subpages</title>
<ns>10</ns>
<id>22589696</id>
<revision>
<id>637438114</id>
<parentid>637437596</parentid>
<timestamp>2014-12-10T06:37:09Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<comment>convert this to use [[Module:Ns has subpages]] - this gets the subpage status directly from MediaWiki, avoiding the need to update the template when namespaces change</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="185">{{&lt;includeonly&gt;safesubst:&lt;/includeonly&gt;#invoke:Ns has subpages|main}}&lt;noinclude&gt;
{{documentation}}
&lt;!-- Categories go on the /doc subpage and interwikis go on Wikidata. --&gt;
&lt;/noinclude&gt;</text>
<sha1>0pg457y46td6p53rdt8tyc76jeg9pa8</sha1>
</revision>
</page>
<page>
<title>Template:Template other</title>
<ns>10</ns>
<id>21418395</id>
<revision>
<id>774731050</id>
<parentid>388689098</parentid>
<timestamp>2017-04-10T09:49:10Z</timestamp>
<contributor>
<username>CambridgeBayWeather</username>
<id>294180</id>
</contributor>
<minor/>
<comment>Changed protection level for &quot;[[Template:Template other]]&quot;: Request at RFPP ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</comment>
<model>wikitext</model>
<format>text/x-wiki</format>
<text xml:space="preserve" bytes="435">{{#switch:
&lt;!--If no or empty &quot;demospace&quot; parameter then detect namespace--&gt;
{{#if:{{{demospace|}}}
| {{lc: {{{demospace}}} }} &lt;!--Use lower case &quot;demospace&quot;--&gt;
| {{#ifeq:{{NAMESPACE}}|{{ns:Template}}
| template
| other
}}
}}
| template = {{{1|}}}
| other
| #default = {{{2|}}}
}}&lt;!--End switch--&gt;&lt;noinclude&gt;
{{documentation}}
&lt;!-- Add categories and interwikis to the /doc subpage, not here! --&gt;
&lt;/noinclude&gt;</text>
<sha1>0tcssjmltwl7y5v3f5wj2kqciaabqly</sha1>
</revision>
</page>
<page>
<title>Module:Ns has subpages</title>
<ns>828</ns>
<id>44657407</id>
<revision>
<id>637438142</id>
<parentid>637436476</parentid>
<timestamp>2014-12-10T06:37:29Z</timestamp>
<contributor>
<username>Mr. Stradivarius</username>
<id>4708675</id>
</contributor>
<minor/>
<comment>Protected Module:Ns has subpages: [[WP:High-risk templates|High-risk Lua module]] ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))</comment>
<model>Scribunto</model>
<format>text/plain</format>
<text xml:space="preserve" bytes="1678">-- This module implements [[Template:Ns has subpages]].
-- While the template is fairly simple, this information is made available to
-- Lua directly, so using a module means that we don't have to update the
-- template as new namespaces are added.
local p = {}
function p._main(ns, frame)
-- Get the current namespace if we were not passed one.
if not ns then
ns = mw.title.getCurrentTitle().namespace
end
-- Look up the namespace table from mw.site.namespaces. This should work
-- for a majority of cases.
local nsTable = mw.site.namespaces[ns]
-- Try using string matching to get the namespace from page names.
-- Do a quick and dirty bad title check to try and make sure we do the same
-- thing as {{NAMESPACE}} in most cases.
if not nsTable and type(ns) == 'string' and not ns:find('[&lt;&gt;|%[%]{}]') then
local nsStripped = ns:gsub('^[_%s]*:', '')
nsStripped = nsStripped:gsub(':.*$', '')
nsTable = mw.site.namespaces[nsStripped]
end
-- If we still have no match then try the {{NAMESPACE}} parser function,
-- which should catch the remainder of cases. Don't use a mw.title object,
-- as this would increment the expensive function count for each new page
-- tested.
if not nsTable then
frame = frame or mw.getCurrentFrame()
local nsProcessed = frame:callParserFunction('NAMESPACE', ns)
nsTable = nsProcessed and mw.site.namespaces[nsProcessed]
end
return nsTable and nsTable.hasSubpages
end
function p.main(frame)
local ns = frame:getParent().args[1]
if ns then
ns = ns:match('^%s*(.-)%s*$') -- trim whitespace
ns = tonumber(ns) or ns
end
local hasSubpages = p._main(ns, frame)
return hasSubpages and 'yes' or ''
end
return p</text>
<sha1>qb0b1z2vff7kifnw21v205d791esbiz</sha1>
</revision>
</page>
</mediawiki>

File Metadata

Mime Type
text/html
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d7/9f/1f89122e87c5988cc640da53970a
Default Alt Text
Wikipedia-20180205173907.xml (895 KB)

Event Timeline