2024年1月16日 (星期二)
- 21:012024年1月16日 (二) 21:01 差异 历史 +636 新 模板:Wikipedia referencing/doc 创建页面,内容为“{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{Collapsible option |statename=optional}} ==See also== * {{tl|Wikipedia editor navigation}} – an amalgamation of navboxes that includes this navbox. {{Wikipedia editor navigation templates|state=expanded}} <includeonly>{{sandbox other|| <!-- Categories below this line, please; interwikis at Wikidata…” 当前
- 21:002024年1月16日 (二) 21:00 差异 历史 +3,067 新 模板:Wikipedia referencing 创建页面,内容为“{{navbox | name = Wikipedia referencing | state = {{{state<includeonly>|{{{1|autocollapse}}}</includeonly>}}} | bodyclass = hlist | title = Wikipedia referencing | group1 = Policies and guidelines | list1 = * Verifiability * No original research * Biographies of living persons * Reliable sources *…” 当前
- 20:572024年1月16日 (二) 20:57 差异 历史 +34,700 新 模板:Cite magazine/doc 创建页面,内容为“{{Documentation subpage}} {{High-use|54144}} {{csdoc|lua}} {{csdoc|cs1}} {{csdoc|lead|articles in magazines and newsletters. For articles in academic journals, use {{tlx|cite journal}}}} ==Usage== {{csdoc|usage}} {{csdoc|usage common}} ;To cite a magazine article with a credited author <syntaxhighlight lang="wikitext" inline>{{cite magazine |last= |first= |date= |title= |url= |magazine= |location= |publisher= |access-date=}}</syntaxhighlight> ;To cite a ma…” 当前
- 20:562024年1月16日 (二) 20:56 差异 历史 +127 新 模板:Cite magazine 创建页面,内容为“<includeonly>{{#invoke:Citation/CS1|citation |CitationClass=magazine }}</includeonly><noinclude> {{documentation}} </noinclude>” 当前
- 18:582024年1月16日 (二) 18:58 差异 历史 +56 新 模板:Pre/styles.css 创建页面,内容为“→{{pp-template}}: .pre-borderless { border: none; }” 当前
- 18:582024年1月16日 (二) 18:58 差异 历史 +1,206 新 模板:Pre/doc 创建页面,内容为“<templatestyles src="Pre/styles.css"/><pre<includeonly></includeonly> class="pre {{#ifeq:{{{border|}}}|no|pre-borderless}}" {{#if:{{{space|}}}{{{width|}}}{{{style|}}}|style="{{#if:{{{space|}}}|white-space: {{{space}}};}} {{#if:{{{width|}}}|width: {{{width}}};}} {{{style|}}}"}}><!-- -->{{#if:{{{1|}}}|{{{1}}}<noinclude>|Sample text</noinclude>}}<!-- -->{{#if:{{{2|}}}|{{!}}{{{2}}}}}<!-- -->{{#if:{{{3|}}}|{{!}}{{{3}}}}}<!-- -->{{#if:{{{4|}}}|{{!}}{{{4}}}}}<!-- -->{…” 当前
- 18:572024年1月16日 (二) 18:57 差异 历史 +1,206 新 模板:Pre 创建页面,内容为“<templatestyles src="Pre/styles.css"/><pre<includeonly></includeonly> class="pre {{#ifeq:{{{border|}}}|no|pre-borderless}}" {{#if:{{{space|}}}{{{width|}}}{{{style|}}}|style="{{#if:{{{space|}}}|white-space: {{{space}}};}} {{#if:{{{width|}}}|width: {{{width}}};}} {{{style|}}}"}}><!-- -->{{#if:{{{1|}}}|{{{1}}}<noinclude>|Sample text</noinclude>}}<!-- -->{{#if:{{{2|}}}|{{!}}{{{2}}}}}<!-- -->{{#if:{{{3|}}}|{{!}}{{{3}}}}}<!-- -->{{#if:{{{4|}}}|{{!}}{{{4}}}}}<!-- -->{…” 当前
- 18:572024年1月16日 (二) 18:57 差异 历史 +2,745 新 模块:Suppress categories/doc 创建页面,内容为“{{module rating|protected}} {{High-use}} This is a simple module to strip categories from wikitext. For example, if passed the code "<code><nowiki>fooCategory:Some category</nowiki></code>", it will return only "<code>foo</code>". The module properly handles categories escaped with the colon trick, categories whose names include invalid characters such as "<code>></code>", and categories that are…” 当前
- 18:562024年1月16日 (二) 18:56 差异 历史 +1,670 新 模块:Suppress categories 创建页面,内容为“-- This is a simple module to strip categories from wikitext. It does -- not support nested links or magic words like __TOC__, etc. Even so, -- it should still handle most categories. local p = {} -- Detects if a category link is valid or not. If it is valid, -- the function returns the blank string. If not, the input -- is returned with no changes. local function processCategory( all, submatch ) local beforePipe = mw.ustring.match( submatch, '^(.-)[%s_]*…” 当前
- 18:552024年1月16日 (二) 18:55 差异 历史 +902 新 模块:Purge/doc 创建页面,内容为“{{Module rating|protected}} {{used in system}} This module produces a link to purge a page's cache. This is usually the current page, but can be another page. == Usage == === From wiktext === From wikitext, this module should be accessed via Template:Purge. Please see the template page for documentation. === From Lua === From Lua, first you need to load the module: <syntaxhighlight lang="lua"> local mPurge = require('Module:Purge') </synta…” 当前
- 18:552024年1月16日 (二) 18:55 差异 历史 +1,097 新 模块:Purge 创建页面,内容为“-- This module implements Template:Purge. local p = {} local function makeUrlLink(url, display) return string.format('[%s %s]', url, display) end function p._main(args) -- Make the URL local url do local title if args.page then title = mw.title.new(args.page) if not title then error(string.format( "'%s' is not a valid page name", args.page ), 2) end else title = mw.title.getCurrentTitle() end if args.anchor the…” 当前
- 18:542024年1月16日 (二) 18:54 差异 历史 +2,762 新 模板:Purge/doc 创建页面,内容为“{{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{used in system}} {{lua|Module:Purge}} {{tlx|Purge}} produces a link that will purge the page's cache and rebuild it from the wikitext. ==Purpose== For efficiency in service, MediaWiki caches pages. Depending on the exact sequence of actions editors follow, one may view an out-of-date version of a give…” 当前
- 18:542024年1月16日 (二) 18:54 差异 历史 +64 新 模板:Purge 创建页面,内容为“{{#invoke:Purge|main}}<noinclude> {{documentation}} </noinclude>” 当前
- 18:532024年1月16日 (二) 18:53 差异 历史 +143 新 模板:Citation Style documentation/usage full 创建页面,内容为“{| class="wikitable" style="width: 100%" |+ Full parameter set in horizontal format |- style="vertical-align:top;" |<noinclude> |} </noinclude>” 当前
- 18:512024年1月16日 (二) 18:51 差异 历史 +1,287 新 模板:List of subst helper templates 创建页面,内容为“== List of subst helper templates == * {{tl|require substitution}} – Prints an error unless substituted. * {{tl|substituted or transcluded}} – if-then-else metatemplate that checks if a template is currently being substituted or transcluded ** {{tl|always substitute}} – For the doc of the above templates; prints a message asking for it be substituted. ** {{tl|never substitute}} – The reverse of {{tlf|always substitut…” 当前
- 18:502024年1月16日 (二) 18:50 差异 历史 +44 新 模板:Documentation subpage 重定向页面至模板:Documentation subpage 当前 标签:新重定向
- 18:492024年1月16日 (二) 18:49 差异 历史 +2,217 新 模板:Substitution/doc 创建页面,内容为“{{Distinguish|Template:Subst|Template:Substituted}} {{Documentation subpage}} {{Never substitute}} ==Examples== === With middle text but no additional text at the end === <code><nowiki>{{Substitution|not}}</nowiki></code> produces: {{Substitution|not}} === With both middle text and additional text at the end=== <code><nowiki>{{Substitution|only (at least as of </nowiki>{{CURRENTYEAR}}<nowiki>)|if temperatures fall and it starts to snow}}</nowiki></code> p…” 当前
- 18:492024年1月16日 (二) 18:49 差异 历史 +212 新 模板:Substitution 创建页面,内容为“{{Ombox | type = notice | text = {{#if:{{{2|}}}||}}This template should {{large|'''{{{1}}}'''}} be substituted{{#if:{{{2|}}}| {{{2}}}}}. }}<noinclude> {{Documentation}} </noinclude>” 当前
- 18:482024年1月16日 (二) 18:48 差异 历史 +22,614 新 模板:Redirect category shell/doc 创建页面,内容为“{{documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{hatnote|This template supplements the redirect categorization done by adding rcats individually to redirects and by past usage of the now deprecated {{tl|This is a redirect}} template. Its creation and usage is the direct result of discussions about the benefits and…” 当前
- 18:472024年1月16日 (二) 18:47 差异 历史 +2,376 新 模板:Redirect category shell 创建页面,内容为“__NONEWSECTIONLINK__{{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 = '''This {{Talk other|talk page|page}} is a redirect. <small>The following categories are used to track and monitor this redirect:</small>'''{{#if:{{{h|}}} |:: ''{…” 当前
- 18:462024年1月16日 (二) 18:46 差异 历史 +116 新 模板:Always substitute 重定向页面至模板:Always substitute 当前 标签:新重定向
- 18:452024年1月16日 (二) 18:45 差异 历史 +1,686 新 模板:Always substitute/doc 创建页面,内容为“{{tsh|subst only}} {{never substitute}} {{high-use}} {{doc sub}} <!--- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE ---> {{tlf|Always substitute}} produces the following notice: <div style="padding-top:0.5em;padding-bottom:0.6em;">{{Subst only|actualtemplate={{tlg|foo|subst=on}}}}</div> (but {{tlf|Always substitute}} itself should '''''not''''' be substituted.) === Usage === <code><nowiki>{{Always substitute}}</nowiki>…” 当前
- 18:442024年1月16日 (二) 18:44 差异 历史 +922 新 模板:Always substitute 创建页面,内容为“{{{{{|safesubst:}}}#invoke:Unsubst|main|$B= {{Ombox | name = Subst only | type = notice | text = '''This template {{#switch:{{{yesnomaybe|}}}|may=may be substituted'''|never=should ''not'' be substituted'''||#default=should always be substituted''' (i.e., use <!-- -->{{{actualtemplate|{{template other|{{Tlsp|{{#switch:{{SUBPAGENAME}}|doc|sandbox={{BASEPAGENAME}}|{{PAGENAME}}}}}}|{{Tlsu|{{FULL…” 当前
- 18:442024年1月16日 (二) 18:44 差异 历史 +860 新 模板:Never substitute/doc 创建页面,内容为“{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{hatnote|The following also '''applies''' to this template, so this template should '''never''' be substituted:}} {{Never substitute}} === Usage === <code><nowiki>{{Never substitute}}</nowiki></code> This template should be placed on the <big>documentation Wikipedi…” 当前
- 18:432024年1月16日 (二) 18:43 差异 历史 +80 新 模板:Never substitute 创建页面,内容为“{{Always substitute|yesnomaybe=never}}<noinclude> {{Documentation}} </noinclude>” 当前
- 18:432024年1月16日 (二) 18:43 差异 历史 +39 新 模板:Never substitute 重定向页面至模板:Never substitute 当前 标签:新重定向
- 18:422024年1月16日 (二) 18:42 差异 历史 +2,344 新 模板:Sup and sub-related templates 创建页面,内容为“{{Navbox with columns | name = Sup and sub-related templates | state = {{{state|}}} | title = Superscript and subscript-related templates <!--------------------------- {{sup}}/{{sub}} and related -----------------------------> | col1header = <nowiki>{{sup}}</nowiki> and related templates | col1 = {{Aligned table |cols=3 |class=nowrap | {{tlbare|sup}} | | text{{sup|superscript}}{{spaces|4}}{{sup|superscript}}text | {{tlbare|smallsup}} | ({{t…” 当前
- 18:412024年1月16日 (二) 18:41 差异 历史 +2,652 新 模板:Clear/doc 创建页面,内容为“{{Documentation subpage}} <!-- Please add categories to the /doc subpage, and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{high-use}} {{Nosubst|The markup provided will be confusing to many editors, and as this template provides documentation for itself, there is little justification for substitution.}} {{#ifeq:{{FULLPAGENAME}}|Template:Clear|{{Template shortcut|-||Clr}}}} == Description == This template makes content wait until existing content is co…” 当前
- 18:402024年1月16日 (二) 18:40 差异 历史 +81 新 模板:Clear 创建页面,内容为“<div style="clear:{{{1|both}}};"></div><noinclude> {{documentation}} </noinclude>” 当前
- 18:402024年1月16日 (二) 18:40 差异 历史 +75 新 模板:Clear left 创建页面,内容为“{{Clear|left}}<noinclude> {{Documentation|Template:Clear/doc}} </noinclude>” 当前
- 18:382024年1月16日 (二) 18:38 差异 历史 +188 新 模板:Navbar-header/styles.css 创建页面,内容为“→{{pp|small=y}}: .navbar-header { text-align: center; position: relative; white-space: nowrap; } .navbar-header .navbar { position: absolute; right: 0; top: 0; margin: 0 5px; }” 当前
- 18:382024年1月16日 (二) 18:38 差异 历史 +537 新 模板:Navbar-header 创建页面,内容为“<templatestyles src="Navbar-header/styles.css"/><div class="navbar-header" {{#if:{{{fontcolor|}}}|style="color:{{{fontcolor}}};"}}>{{{1}}}<!-- -->{{#invoke:navbar|navbar | 1 = {{{2<noinclude>|Navbar-header</noinclude>}}} | {{#ifeq: {{{plain|}}} |<!--equals:-->1 |<!--then:-->plain |<!--else:-->mini }} = 1 | {{#if: {{{fontcolor|}}} | fontstyle | NULL }} = color:{{{fontcolor}}}; }}<!-- --></div><noinclude> {{documentation}} <!--…” 当前
- 18:372024年1月16日 (二) 18:37 差异 历史 +1,996 新 模板:Check mark templates 创建页面,内容为“{| class="wikitable" align="center" style="width:60%;" |- ! colspan=4 style="background-color:black; color:white;"| {{Navbar-header|Check and cross marks|Check mark templates|fontcolor=white}} |- ! colspan=2 width="50%"| Check marks !!colspan=2| Cross marks |- | {{tl|tick}} = {{tlp|tick|20}}<br>{{tlp|tick|colour{{=}}purple}}<br>{{tlp|tick|color{{=}}cyan}}<br>{{tl|check mark}} | {{Tick}}<br>{{Tick|colour=purple}}<br>{{Tick|color=cyan}}<br>{{check mark}} | {{tl|c…” 当前
- 18:362024年1月16日 (二) 18:36 差异 历史 +668 新 模板:Nay/doc 创建页面,内容为“{{High-use}} {{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> == Usage == A simple template to be used in various to-do lists for easier organization of solved and unsolved issues. ===TemplateData=== {{TemplateDataHeader}} <templatedata> { "params": {}, "description": "Displays a red cross, meaning \"no\". A simple template to be used in various to-do lists for easier organization of solved and unsolved issu…” 当前
- 18:352024年1月16日 (二) 18:35 差异 历史 +155 新 模板:Nay 创建页面,内容为“13px|alt=Red X|link={{#if:{{{1|}}}| '''{{{1|}}}'''}}<span style="display: none;">N</span><noinclude> {{documentation}} </noinclude>” 当前
- 18:342024年1月16日 (二) 18:34 差异 历史 +1,694 新 模板:Template link bare/doc 创建页面,内容为“{{Documentation subpage}} <!----Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see Wikipedia:Wikidata)----> {{template shortcuts|tlbare}} A template in the same vein as the category-linking template {{tl|c}}, producing a "bare" link – i.e. without "Template:" prefix, braces, etc. – to the template named by the first parameter. If a second parameter is supplied, it is used in place of the first as the l…” 当前
- 18:342024年1月16日 (二) 18:34 差异 历史 +238 新 模板:Template link bare 创建页面,内容为“{{#if:{{str endswith|{{{1}}}|%}} <!--(i.e. if {{{1}}} is a percentage)--> | [[Template:{{{2}}}|<span style="font-size:{{{1}}};">{{{3|{{{2}}}}}}</span>]] | [[Template:{{{1}}}|{{{2|{{{1}}}}}}]] }}<noinclude> {{Documentation}} </noinclude>” 当前
- 18:342024年1月16日 (二) 18:34 差异 历史 +41 新 模板:Template link bare 重定向页面至模板:Template link bare 当前 标签:新重定向
- 18:322024年1月16日 (二) 18:32 差异 历史 +133 新 模板:View 创建页面,内容为“{{#invoke:navbar|navbar|plain = 1|template = {{{template|{{{1|}}}}}}}}<noinclude> {{Documentation|Template:Navbar/doc}} </noinclude>” 当前
- 18:312024年1月16日 (二) 18:31 差异 历史 +896 新 模板:Font size templates 创建页面,内容为“{| class="wikitable" |+ Font size templates {{view|Template:Font size templates|edit|brackets=y}} |- ! Code for inline content !! Code for block content !! Size !! Result |- | {{tlx|small|text}}<br/>{{tlx|smaller|text|nolink=yes}} || {{tlx|smalldiv|text}} || 85% || {{small|text}} |- | {{tlx|resize|text}} || {{tlx|resizediv|text}} || 90% || {{resize|text}} |- | {{tlx|midsize|text}} || || 92% || {{midsize|text}} |- | {{CNone|none}} || {{CNone|none}} || 100%…” 当前
- 18:302024年1月16日 (二) 18:30 差异 历史 +1,150 新 模板:Large/doc 创建页面,内容为“{{Documentation subpage}} <!-- Please add categories at the bottom of this page, and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{used in system|in MediaWiki:Abusefilter-warning-CT}} {{template redirect|Larger|Big}} This template renders the text in the first parameter, {{para|1}}, at 120% of the size at which it would otherwise display. == Comparison == {{Font size templates}} == See also == * Category:Resizing templates * {{tl|smalldiv}}…” 当前
- 18:302024年1月16日 (二) 18:30 差异 历史 +85 新 模板:Large 创建页面,内容为“<span style="font-size:120%">{{{1}}}</span><noinclude> {{Documentation}} </noinclude>” 当前
- 18:292024年1月16日 (二) 18:29 差异 历史 +2,517 新 模板:COinS safe/doc 创建页面,内容为“{{Documentation subpage}} <!-- Please add categories at the bottom of this page, and interwikis at Wikidata (see Wikipedia:Wikidata) --> == Description == It is to indicate whether it can be safely used in citation templates. By default, it indicates the template is safe for use. When the template is set as "not safe", the page is placed into {{cl|Templates not safe for use in citation templates}}. == Usage == To indicate a template which can be safely used…” 当前
- 18:292024年1月16日 (二) 18:29 差异 历史 +802 新 模板:COinS safe 创建页面,内容为“{{notice |image={{#ifeq: {{{1|}}}|n|Stop hand nuvola.svg}} |{{#ifeq: {{{1|}}}|n |This template should not be used in citation templates such as Citation Style 1 and Citation Style 2, because it includes markup that will pollute the COinS metadata they produce; see Wikipedia:COinS. {{{addtext|}}}{{Sandbox other||Category:Templates not safe for use in citation templates}} |This template i…” 当前
- 18:272024年1月16日 (二) 18:27 差异 历史 +3,088 新 模板:Small/doc 创建页面,内容为“{{Documentation subpage}} {{High-risk| 901592 }} {{COinS safe|n}} {{Notice|As of June 10, 2016, a rule has been added to MediaWiki:Common.css, so now {{tag|small|o}} consistently renders at size that is 85% of the surrounding text. This template remains as a convenience wrapper.}} {{Template redirect|Smaller|Petit|HW-small|Sma}} == Usage == This template is a replacement for {{tag|small}}. Remember "Avoid using smaller font sizes in…” 当前
- 18:272024年1月16日 (二) 18:27 差异 历史 +257 新 模板:Small 创建页面,内容为“<span style="font-size:85%;">{{{1}}}</span><includeonly>{{SAFESUBST:#if:{{{1|}}}||Category:Pages using small with an empty input parameter}}</includeonly><noinclude> {{Documentation}}<!--Categories and interwikis go in the /doc sub-page.--> </noinclude>” 当前
- 18:252024年1月16日 (二) 18:25 差异 历史 +2,604 新 模块:Su/doc 创建页面,内容为“{{High-use}} This module implements the {{tl|su}} template. It is used to create two smaller lines of text on one actual line. == Usage from wikitext == This module cannot be used directly from wikitext. It can only be used through a template, usually the {{tl|su}} template. Please see the template page for documentation. == Usage from Lua modules == To use this module from other Lua modules, first load the module. <syntaxhighlight lang="lua"> local mSu =…” 当前
- 18:242024年1月16日 (二) 18:24 差异 历史 +2,284 新 模块:Su 创建页面,内容为“-- This module implements {{su}}. local p = {} function p.main(frame) -- Use arguments from the parent frame only, and remove any blank arguments. -- We don't need to trim whitespace from any arguments, as this module only -- uses named arguments, and whitespace is trimmed from them automatically. local origArgs = frame:getParent().args local args = {} for k, v in pairs(origArgs) do if v ~= '' then args[k] = v end end -- Define the variables…” 当前
- 18:242024年1月16日 (二) 18:24 差异 历史 +4,291 新 模板:Su/doc 创建页面,内容为“{{Documentation subpage}} {{High-use}} {{COinS safe|n}} {{lua|Module:Su}} <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> == Purpose == Template for creating two smaller lines of text on one actual line, this can be used for scientific notations of uncertainty and physics symbols, such as nuclides and particles. It was named after the '''<sup>…” 当前
- 18:232024年1月16日 (二) 18:23 差异 历史 +153 新 模板:Su 创建页面,内容为“{{{{{|safesubst:}}}#invoke:Su|main}}<noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude>” 当前