Wikibooks
zhwikibooks
https://zh.wikibooks.org/wiki/Wikibooks:%E9%A6%96%E9%A1%B5
MediaWiki 1.47.0-wmf.7
first-letter
Media
Special
Talk
User
User talk
Wikibooks
Wikibooks talk
File
File talk
MediaWiki
MediaWiki talk
Template
Template talk
Help
Help talk
Category
Category talk
Transwiki
Transwiki talk
Wikijunior
Wikijunior talk
Subject
Subject talk
TimedText
TimedText talk
Module
Module talk
Event
Event talk
Module:Uses TemplateStyles
828
31499
186001
142335
2026-06-19T05:22:11Z
Addonian1123
65525
186001
Scribunto
text/plain
-- This module implements the {{Uses TemplateStyles}} 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)
if #args == 0 then
local prefixed = mw.title.getCurrentTitle().prefixedText
prefixed = prefixed:gsub("/doc","")
args[1] = prefixed .. "/styles.css"
end
local tStyles = mTableTools.compressSparseArray(args)
local box = p.renderBox(tStyles)
local trackingCategories = p.renderTrackingCategories(args, tStyles)
return box .. trackingCategories
end
function p.renderBox(tStyles)
local boxArgs = {}
if #tStyles < 1 then
boxArgs.text = '<strong class="error">错误:未指定模板样式</strong>'
else
local tStylesLinks = {}
for i, ts in ipairs(tStyles) do
local sandboxLink = nil
local tsTitle = mw.title.new(ts)
if tsTitle then
local tsSandboxTitle = mw.title.new(string.format('%s:%s/sandbox/%s', tsTitle.nsText, tsTitle.baseText, tsTitle.subpageText))
if tsSandboxTitle and tsSandboxTitle.exists then
sandboxLink = string.format('​([[:%s|沙盒]])', tsSandboxTitle.prefixedText)
end
end
tStylesLinks[i] = string.format('[[:%s]]%s', ts, sandboxLink or '')
end
local tStylesList = mList.makeList('bulleted', tStylesLinks)
boxArgs.text = '本' ..
(mw.title.getCurrentTitle():inNamespaces(828,829) and '-{zh-hans:模块; zh-hant:模組;}-' or '模板') ..
'使用以下[[Help:模板樣式|模板样式]]:\n' .. tStylesList
end
boxArgs.type = 'notice'
boxArgs.small = true
boxArgs.image = '[[File:Farm-Fresh css add.svg|32px|alt=CSS]]'
return mMessageBox.main('mbox', boxArgs)
end
function p.renderTrackingCategories(args, tStyles, titleObj)
if yesno(args.nocat) then
return ''
end
local cats = {}
-- Error category
if #tStyles < 1 then
cats[#cats + 1] = '有模板样式错误的模板'
end
-- TemplateStyles 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
category = category or '使用模板样式的模板'
end
cats[#cats + 1] = category
local currentProt = titleObj.protectionLevels["edit"] and titleObj.protectionLevels["edit"][1] or nil
for i, ts in ipairs(tStyles) do
local tsTitleObj = mw.title.new(ts)
local tsProt = tsTitleObj.protectionLevels["edit"] and tsTitleObj.protectionLevels["edit"][1] or nil
if tsProt ~= currentProt then
cats[#cats + 1] = "使用模板样式并受保护的模板"
break
end
end
end
for i, cat in ipairs(cats) do
cats[i] = string.format('[[Category:%s]]', cat)
end
return table.concat(cats)
end
return p
d19wkgpijhvyjlytdv33e5qmx2eazpr
Wikibooks:互助客棧/topic list
4
32161
185990
185640
2026-06-18T18:17:26Z
Cewbot
42738
[[User:Cewbot/log/20170915/configuration|生成議題列表:4個議題]]
185990
wikitext
text/x-wiki
<!-- 本頁面由機器人自動更新。若要改進,請聯繫機器人操作者。 -->
{| class="wikitable sortable mw-collapsible" style="float:left;"
|-
! data-sort-type="number" style="font-weight: normal;" | <small>#</small> !! 💭 話題 !! <span title="發言數/發言人次 (實際上為計算簽名數)">💬</span> !! <span title="參與討論人數/發言人數">👥</span> !! 🙋 最新發言 !! data-sort-type="isoDate" | <span title="最後更新">🕒 <small>(UTC+8)</small></span>
|-
| style="text-align: right;" | 1
| [[:Wikibooks:互助客棧#再谈改名建议|再谈改名建议]]
| style="text-align: right;background-color: #ffe;" | 43
| style="text-align: right;" | 22
| style="background-color: #ddd;" | [[User:Addonian1123|Addonian1123]]
| style="background-color: #ddd;" data-sort-type="isoDate" data-sort-value="2026-06-07T05:35:00.000Z" | 2026-06-07 <span style="color: blue;">13:35</span>
|-
| style="text-align: right;" | 2
| [[:Wikibooks:互助客棧#批量删除User:蛇守护的苹果堆创建的页面|批量删除User:蛇守护的苹果堆创建的页面]]
| style="text-align: right;background-color: #ffe;" | 13
| style="text-align: right;" | 5
| style="background-color: #ddd;" | [[User:Addonian1123|Addonian1123]]
| style="background-color: #ddd;" data-sort-type="isoDate" data-sort-value="2026-06-07T07:39:00.000Z" | 2026-06-07 <span style="color: blue;">15:39</span>
|-
| style="text-align: right;" | 3
| [[:Wikibooks:互助客棧#关于提交编辑上面的msgbox|关于提交编辑上面的msgbox]]
| style="text-align: right;" | 2
| style="text-align: right;" | 2
| style="background-color: #ddd;" | [[User:Addonian1123|Addonian1123]]
| style="background-color: #ddd;" data-sort-type="isoDate" data-sort-value="2026-05-30T06:14:00.000Z" | 2026-05-30 <span style="color: blue;">14:14</span>
|-
| style="text-align: right;" | 4
| [[:Wikibooks:互助客棧#防濫用過濾器3問題|防濫用過濾器3問題]]
| style="text-align: right;background-color: #ffe;" | 11
| style="text-align: right;" | 3
| style="background-color: #ddd;" | [[User:Addonian1123|Addonian1123]]
| style="background-color: #ddd;" data-sort-type="isoDate" data-sort-value="2026-06-11T16:09:00.000Z" | 2026-06-12 <span style="color: blue;">00:09</span>
|}
{| class="wikitable mw-collapsible mw-collapsed" style="float: left; margin-left: .5em;;{{#if:{{{no_time_legend|}}}|display:none;|}}"
! title="From the latest bot edit" | 發言更新圖例
|-
| style="background-color: #efe;" |
* 最近一小時內
|-
| style="background-color: #eef;" |
* 最近一日內
|-
| |
* 一週內
|-
| style="background-color: #ddd;" |
* 一個月內
|-
| style="background-color: #bbb;" |
* 逾一個月
|-
! 特殊狀態
|-
| style="text-decoration: line-through" | 已移動至其他頁面<br />或完成討論之議題
|-
! 手動設定
|-
| style="max-width: 12em;" | <small>當列表出現異常時,<br />請先檢查[[User:Cewbot/log/20170915/configuration|設定]]是否有誤</small>
|-
|}
{{Clear}}
hbhui7vfwhup1clzmuizjd14ln67ars
Module:Documentation/styles.css
828
34211
185991
184042
2026-06-19T04:43:20Z
Addonian1123
65525
185991
sanitized-css
text/css
.documentation,
.documentation-metadata {
border: 1px solid var( --border-color-base, #a2a9b1 );
background-color: #ecfcf4;
color:inherit;
clear: both;
}
.documentation {
margin: 1em 0 0 0;
padding: 1em;
}
.documentation-metadata {
margin: 0.2em 0; /* same margin left-right as .documentation */
font-style: italic;
padding: 0.4em 1em; /* same padding left-right as .documentation */
}
.documentation-startbox {
padding-bottom: 3px;
border-bottom: 1px solid var( --border-color-base, #a2a9b1 );
margin-bottom: 1ex;
}
.documentation-heading {
font-weight: bold;
font-size: 125%;
}
body.skin-minerva .documentation-startbox .mw-editsection-like a,
body.skin-timeless .documentation-startbox .mw-editsection-like a {
display: inline-block;
margin-left: 0.3em;
margin-right: 0.3em;
}
.documentation-clear { /* Don't want things to stick out where they shouldn't. */
clear: both;
}
.documentation-toolbar {
font-style: normal;
font-size: 85%;
}
@media screen {
html.skin-theme-clientpref-night .documentation,
html.skin-theme-clientpref-night .documentation-metadata {
background-color: #0b1e1c;
}
}
@media screen and ( prefers-color-scheme: dark ) {
html.skin-theme-clientpref-os .documentation,
html.skin-theme-clientpref-os .documentation-metadata {
background-color: #0b1e1c;
}
}
q54nrpzmvcyf5wqmstb7ftvb00bryvi
Template:Template rating
10
34652
185993
185861
2026-06-19T04:53:27Z
Addonian1123
65525
185993
wikitext
text/x-wiki
<includeonly>{{#if:{{{1|}}}<!-- Escape empty required first unnamed parameter -->|{{#switch:{{Namespace detect|template=t|module=m|demospace={{{demospace|}}}|page={{{demopage|}}}}}
|m
|t = <!-- ***** IF IN MODULE OR TEMPLATE NAMESPACE ***** -->{{ombox
| type = notice
| image = {{#switch: {{lc:{{{1|}}}}}
| pre-alpha | prealpha | pa | experimental = [[File:Ambox warning blue construction.svg|40x40px|link=|alt=]]
| alpha | a = [[File:Greek lc alpha icon.svg|class=skin-invert|26x26px|link=|alt=]]
| beta | b = [[File:Greek lc beta icon.svg|class=skin-invert|40x40px|link=|alt=]]
| release | r | general | g | stable | protected | protect | p | semiprotected | semiprotect | semi = [[File:Green check.svg|40x40px|link=|alt=]]
| broken | br | unstable = [[File:Red x.svg|40x40px|link=|alt=]]
| deprecated | d | defunct = [[File:Historical.svg|40x40px|link=|alt=]]
}}
| style =
| textstyle =
| text = {{#switch: {{lc:{{{1|}}}}}
| experimental = 此模板目前为[[w:experimental阶段|實驗版]],其尚未完成且極不穩定,因而不应使用于条目名字空间页。
| pre-alpha | prealpha | pa = 此模板目前为[[w:pre-alpha阶段|pre-alpha版]],其尚未完成,可能处于积极开发中,也可能未必,因而不应使用于条目名字空间页。模板会停留在pre-alpha阶段,直到原作者(或遗弃後接手的他人)对其基本结构感到满意。
| alpha | a = 此模板目前为[[:Category:alpha阶段模板|alpha版]],可接受第三方输入,并可用于少量页面以检查是否存在问题,但需要受到监视。欢迎提供新功能或修改其输入输出机制的建议。
| beta | b = 此模板目前为[[:Category:beta阶段模板|beta版]],可进行广泛使用。因其新近完成,请谨慎使用,以确保输出结果符合预期。
| release | r | general | g | stable | protected | protect | p | semiprotected | semiprotect | semi = 此模板目前为[[:Category:穩定模板|穩定版]],其已臻成熟,可正常使用于各处而不会出现错误。已可在帮助页面和其他维基百科资源中提及,以帮助新用户学习。为降低服务器负载和错误输出,改善本模板前应进行[[WP:TESTCASES|沙盒测试]],而不是重复的试错性编辑。
| broken | br | unstable = 此模板目前[[:Category:不稳定模板|不稳定]]。其缺少依赖项、存在兼容性问题或输出错误,导致无法使用。建议编辑者[[Special:EditPage/{{FULLPAGENAME}}|改进其兼容性]],如果无法修复,则建议删除。
| deprecated | d | defunct = 此模板目前[[:Category:已停用模板|已停用]]且已失效。{{#if:{{{replaced|}}}|建议编辑者使用'''{{{replaced}}}'''。}}{{#if:{{{message|}}}|{{space}}{{{message}}}}}
| #default = {{error|该页面使用了[[Template:Template rating]],但其{{para|1}}参数中提供了<u>无效</u>的模板或模块评级。}}[[Category:Pages using template rating template with unknown parameters|{{FULLPAGENAME}}]]
}}
}}<!-- Categorize.
-->{{#if:{{{demopage|}}}{{{demospace|}}}||
{{#switch: {{lc:{{SUBPAGENAME}}}}
| doc | sandbox =<!-- No category for /doc or /sandbox subpages -->
| {{#ifeq: {{{nocat|}}} | true
| <!-- No category if user sets nocat=true -->
| {{#switch: {{lc:{{{1|}}}}}
| pre-alpha | prealpha | pa | experimental = [[Category:Pre-alpha阶段模板|{{PAGENAME}}]]
| alpha | a = [[Category:Alpha阶段模板|{{PAGENAME}}]]
| beta | b = [[Category:Beta阶段模板|{{PAGENAME}}]]
| release | r | general | g | stable | protected | p | semiprotected | semiprotect | semi = [[Category:通行模板|{{PAGENAME}}]]
| deprecated | d | defunct | broken | br | unstable = [[Category:不稳定模板|{{PAGENAME}}]]
}}
}}
}}
}}
| #default = <!-- ***** Error not in Template or Module namespaces ***** -->{{if preview|1={{error|Error: {{tl|Template rating}} can only be used on pages in the [[Wikipedia:Template namespace|Template:]] or [[Wikipedia:Module namespace|Module: namespaces]].}}}}[[Category:Pages with templates in the wrong namespace]]
}}<!-- End switch. -->|{{If preview|1={{error|Page using [[Template:Template rating]] with <u>empty</u> {{para|1}} module rating parameter.}}}}[[Category:Pages using template rating template with unknown parameters|{{FULLPAGENAME}}]]<!--
-->}}<!-- End if. Display protection template if necessary, this will obviously show it for /doc page too since it uses {{FULLPAGENAME}}: -->{{#switch:{{Namespace detect|template=t|module=m|demospace={{{demospace|}}}}}
|t|m = {{#if:{{{suppress-pp|}}}
|
|{{#switch:{{#invoke:Effective protection level|edit|{{{demopage|{{FULLPAGENAME}}}}}}}
|*|user = <!-- If not protected page, do nothing. -->
|#default = {{#ifeq:{{lc:{{SUBPAGENAME}}}}|doc
|<!-- {{#if:{{{2|}}}{{{doc-reason|}}}{{{3|}}}{{{doc-action|}}} --><!--
--><!-- action={{{3|{{{doc-action|}}}}}}}}<!--
--><!-- }} -->
-->|{{pp|1={{{reason|{{{doc-reason|}}}}}}|action={{{action|{{{doc-action|}}}}}}|demolevel={{{demolevel|}}}}}<!--
-->}}<!--
-->}}<!--
-->}}
|#default = <!-- If not in template or module namespace, do nothing
-->}}<!--
End template, start tracking.
-->{{#invoke:Check for unknown parameters| check
| unknown = {{#if:{{{demopage|}}}{{{demospace|}}}||{{#switch:{{Namespace detect|template=t|module=m}}|m|t=[[Category:Pages using template rating template with unknown parameters|_VALUE_{{FULLPAGENAME}}]]}}}}
| preview = Page using [[Template:Template rating]] with unknown parameter "_VALUE_"
| ignoreblank=y | demospace | demopage | 1 | 2 | 3 | reason | action | doc-reason | doc-action | nocat | replaced | message | demolevel | suppress-pp | demopage
}}</includeonly><!-- End tracking. --><noinclude>
{{template rating|release|nocat=true|demospace=template|demopage=template:template rating|demolevel=edit}}
{{mbox|text=上述模板为演示。}}
{{documentation}}
<!-- Categories go on the /doc subpage, and interwikis go in Wikidata. -->
</noinclude>
nzg8uqcfotkvkjao12f6yn3gg6i0g0m
185994
185993
2026-06-19T05:17:31Z
Addonian1123
65525
185994
wikitext
text/x-wiki
<includeonly>{{#if:{{{1|}}}<!-- Escape empty required first unnamed parameter -->|{{#switch:{{Namespace detect|template=t|module=m|demospace={{{demospace|}}}|page={{{demopage|}}}}}
|m
|t = <!-- ***** IF IN MODULE OR TEMPLATE NAMESPACE ***** -->{{ombox
| type = notice
| image = {{#switch: {{lc:{{{1|}}}}}
| pre-alpha | prealpha | pa | experimental = [[File:Ambox warning blue construction.svg|40x40px|link=|alt=]]
| alpha | a = [[File:Greek lc alpha icon.svg|class=skin-invert|26x26px|link=|alt=]]
| beta | b = [[File:Greek lc beta icon.svg|class=skin-invert|40x40px|link=|alt=]]
| release | r | general | g | stable | protected | protect | p | semiprotected | semiprotect | semi = [[File:Green check.svg|40x40px|link=|alt=]]
| broken | br | unstable = [[File:Red x.svg|40x40px|link=|alt=]]
| deprecated | d | defunct = [[File:Historical.svg|40x40px|link=|alt=]]
}}
| style =
| textstyle =
| text = {{#switch: {{lc:{{{1|}}}}}
| pre-alpha | prealpha | pa | experimental = 此模板目前為[[:Category:實驗階段模板|實驗階段]],其尚未完成,可能处于积极开发中,也可能未必,因而不应使用于条目名字空间页。模板会停留在pre-alpha阶段,直到原作者(或遗弃後接手的他人)对其基本结构感到满意。
| alpha | a = 此模板目前為[[:Category:alpha阶段模板|alpha階段]],可接受第三方输入,并可用于少量页面以检查是否存在问题,但需要受到监视。欢迎提供新功能或修改其输入输出机制的建议。
| beta | b = 此模板目前為[[:Category:beta阶段模板|beta階段]],可进行广泛使用。因其新近完成,请谨慎使用,以确保输出结果符合预期。
| release | r | general | g | stable | protected | protect | p | semiprotected | semiprotect | semi = 此模板目前已達[[:Category:穩定模板|穩定階段]],可正常使用于各处而不会出现错误,且可在帮助页面和其他维基百科资源中提及,以帮助新用户学习。为降低服务器负载和错误输出,改善本模板前应进行[[WP:TESTCASES|沙盒测试]],而不是重复的试错性编辑。
| broken | br | unstable = 此模板目前[[:Category:不稳定模板|不稳定]]。其缺少依赖项、存在兼容性问题或输出错误,导致无法使用。建议编辑者[[Special:EditPage/{{FULLPAGENAME}}|改进其兼容性]],如果无法修复,则建议删除。
| deprecated | d | defunct = 此模板目前[[:Category:已停用模板|已停用]]且已失效。{{#if:{{{replaced|}}}|建议编辑者使用'''{{{replaced}}}'''。}}{{#if:{{{message|}}}|{{space}}{{{message}}}}}
| #default = {{error|该页面使用了[[Template:Template rating]],但其{{para|1}}参数中提供了<u>无效</u>的模板或模块评级。}}[[Category:Pages using template rating template with unknown parameters|{{FULLPAGENAME}}]]
}}
}}<!-- Categorize.
-->{{#if:{{{demopage|}}}{{{demospace|}}}||
{{#switch: {{lc:{{SUBPAGENAME}}}}
| doc | sandbox =<!-- No category for /doc or /sandbox subpages -->
| {{#ifeq: {{{nocat|}}} | true
| <!-- No category if user sets nocat=true -->
| {{#switch: {{lc:{{{1|}}}}}
| pre-alpha | prealpha | pa | experimental = [[Category:實驗階段模板|{{PAGENAME}}]]
| alpha | a = [[Category:Alpha阶段模板|{{PAGENAME}}]]
| beta | b = [[Category:Beta阶段模板|{{PAGENAME}}]]
| release | r | general | g | stable | protected | p | semiprotected | semiprotect | semi = [[Category:穩定模板|{{PAGENAME}}]]
| deprecated | d | defunct | broken | br | unstable = [[Category:不稳定模板|{{PAGENAME}}]]
}}
}}
}}
}}
| #default = <!-- ***** Error not in Template or Module namespaces ***** -->{{if preview|1={{error|Error: {{tl|Template rating}} can only be used on pages in the [[Wikipedia:Template namespace|Template:]] or [[Wikipedia:Module namespace|Module: namespaces]].}}}}[[Category:Pages with templates in the wrong namespace]]
}}<!-- End switch. -->|{{If preview|1={{error|Page using [[Template:Template rating]] with <u>empty</u> {{para|1}} module rating parameter.}}}}[[Category:Pages using template rating template with unknown parameters|{{FULLPAGENAME}}]]<!--
-->}}<!-- End if. Display protection template if necessary, this will obviously show it for /doc page too since it uses {{FULLPAGENAME}}: -->{{#switch:{{Namespace detect|template=t|module=m|demospace={{{demospace|}}}}}
|t|m = {{#if:{{{suppress-pp|}}}
|
|{{#switch:{{#invoke:Effective protection level|edit|{{{demopage|{{FULLPAGENAME}}}}}}}
|*|user = <!-- If not protected page, do nothing. -->
|#default = {{#ifeq:{{lc:{{SUBPAGENAME}}}}|doc
|<!-- {{#if:{{{2|}}}{{{doc-reason|}}}{{{3|}}}{{{doc-action|}}} --><!--
--><!-- action={{{3|{{{doc-action|}}}}}}}}<!--
--><!-- }} -->
-->|{{pp|1={{{reason|{{{doc-reason|}}}}}}|action={{{action|{{{doc-action|}}}}}}|demolevel={{{demolevel|}}}}}<!--
-->}}<!--
-->}}<!--
-->}}
|#default = <!-- If not in template or module namespace, do nothing
-->}}<!--
End template, start tracking.
-->{{#invoke:Check for unknown parameters| check
| unknown = {{#if:{{{demopage|}}}{{{demospace|}}}||{{#switch:{{Namespace detect|template=t|module=m}}|m|t=[[Category:Pages using template rating template with unknown parameters|_VALUE_{{FULLPAGENAME}}]]}}}}
| preview = Page using [[Template:Template rating]] with unknown parameter "_VALUE_"
| ignoreblank=y | demospace | demopage | 1 | 2 | 3 | reason | action | doc-reason | doc-action | nocat | replaced | message | demolevel | suppress-pp | demopage
}}</includeonly><!-- End tracking. --><noinclude>
{{template rating|release|nocat=true|demospace=template|demopage=template:template rating|demolevel=edit}}
{{mbox|text=上述模板为演示。}}
{{documentation}}
<!-- Categories go on the /doc subpage, and interwikis go in Wikidata. -->
</noinclude>
n2xnug5pfpofw4437lhfztwvtjup84x
Template:Template rating/doc
10
34702
185992
2026-06-19T04:48:14Z
Addonian1123
65525
创建页面,内容为“{{NoteTA | G1=IT | G2=MediaWiki }} {{Documentation subpage}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> 本模板根据模板质量进行评级,应放置在模板/doc子页面顶部,以便显示消息、告知用户其评级系统,其亦会将模板归入跟踪分类。 == 用法 == 基本用法: {{Pre|{{Tlx|Template rating|评级}}}} 不分类: {{Pre|{{Tlx|Template rating|评级|3=nocat=true}}}} == 评级 ==…”
185992
wikitext
text/x-wiki
{{NoteTA
| G1=IT
| G2=MediaWiki
}}
{{Documentation subpage}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
本模板根据模板质量进行评级,应放置在模板/doc子页面顶部,以便显示消息、告知用户其评级系统,其亦会将模板归入跟踪分类。
== 用法 ==
基本用法:
{{Pre|{{Tlx|Template rating|评级}}}}
不分类:
{{Pre|{{Tlx|Template rating|评级|3=nocat=true}}}}
== 评级 ==
评级位于首个位置参数,共有六个不同的评级:'''pre-alpha'''、'''alpha'''、'''beta'''、'''release'''、'''broken'''和'''deprecated''',每个评级均有简短的别名代码。
{| class="wikitable"
! 评级!! 别名!! 结果
|-
| <code>pre-alpha</code> || <code>prealpha</code><br/><code>pa</code> || {{Template rating|pre-alpha|nocat=true}}
|-
| <code>alpha</code> || <code>a</code> || {{Template rating|alpha|nocat=true}}
|-
| <code>beta</code> || <code>b</code> || {{Template rating|beta|nocat=true}}
|-
| <code>release</code> || <code>r</code><br/><code>general</code><br/><code>g</code><br/><code>stable</code><br/><code>protected</code><br/><code>protect</code><br/><code>p</code><br/><code>semiprotected</code><br/><code>semiprotect</code><br/><code>semi</code> || {{Template rating|release|nocat=true}}
|-
| <code>broken</code> || <code>br</code><br/><code>unstable</code> || {{Template rating|broken|nocat=true}}
|-
| <code>deprecated</code> || <code>d</code><br/><code>defunct</code> || {{Template rating|deprecated|nocat=true}}
|-
|}
== 分类 ==
本模板会根据指定的评级,将模板归入下列分类之一:
* {{Clc|pre-alpha阶段模板}}
* {{Clc|Category:alpha阶段模板}}
* {{Clc|Category:beta阶段模板}}
* {{Clc|Category:通行模板}}
* {{Clc|Category:被保護的模板}}
禁止分类以/doc结尾的页面,亦可使用代码{{Para|nocat|true}}禁止分类特定模板。
== 参见 ==
* [[Help:模板]]
* [[Wikipedia:模板請求]]
<includeonly>
<!-- Categories go here, and interwikis go in Wikidata -->
[[Category:模板页的模板]]
</includeonly>
bmkviyfee46gu5t01j3pk6zigtpf4ud
Template:Pre
10
34703
185995
2026-06-19T05:18:40Z
Addonian1123
65525
创建页面,内容为“<templatestyles src="Pre/styles.css"/><pre<includeonly></includeonly> format="wikitext" 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>|示例文本</noinclude>}}<!-- -->{{#if:{{{2|}}}|{{!}}{{{2}}}}}<!-- -->{{#if:{{{3|}}}|{{!}}{{{3}}}}}<!-- -->{{#if:{{{4|}}}|{{!}…”
185995
wikitext
text/x-wiki
<templatestyles src="Pre/styles.css"/><pre<includeonly></includeonly> format="wikitext" 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>|示例文本</noinclude>}}<!--
-->{{#if:{{{2|}}}|{{!}}{{{2}}}}}<!--
-->{{#if:{{{3|}}}|{{!}}{{{3}}}}}<!--
-->{{#if:{{{4|}}}|{{!}}{{{4}}}}}<!--
-->{{#if:{{{5|}}}|{{!}}{{{5}}}}}<!--
-->{{#if:{{{6|}}}|{{!}}{{{6}}}}}<!--
-->{{#if:{{{7|}}}|{{!}}{{{7}}}}}<!--
-->{{#if:{{{8|}}}|{{!}}{{{8}}}}}<!--
-->{{#if:{{{9|}}}|{{!}}{{{9}}}}}<!--
-->{{#if:{{{10|}}}|{{!}}{{{10}}}}}<!--
-->{{#if:{{{11|}}}|{{!}}{{{11}}}}}<!--
-->{{#if:{{{12|}}}|{{!}}{{{12}}}}}<!--
-->{{#if:{{{13|}}}|{{!}}{{{13}}}}}<!--
-->{{#if:{{{14|}}}|{{!}}{{{14}}}}}<!--
-->{{#if:{{{15|}}}|{{!}}{{{15}}}}}<!--
-->{{#if:{{{16|}}}|{{!}}{{{16}}}}}<!--
-->{{#if:{{{17|}}}|{{!}}{{{17}}}}}<!--
-->{{#if:{{{18|}}}|{{!}}{{{18}}}}}<!--
-->{{#if:{{{19|}}}|{{!}}{{{19}}}}}<!--
-->{{#if:{{{20|}}}|{{!}}{{{20}}}}}<!--
--></pre><noinclude>
{{Documentation}}
<!--
请将分类添加至模板文档(模板文件)页面:[[Template:Pre/doc]]
-->
</noinclude>
37id3859js6zqb7azlmv3kmw8i3jviz
Template:Pre/styles.css
10
34704
185996
2026-06-19T05:18:57Z
Addonian1123
65525
创建页面,内容为“.pre-borderless { border: none; }”
185996
sanitized-css
text/css
.pre-borderless {
border: none;
}
3sfvdevcg4lkkyj5gi1u212tzycvdp6
Template:Pre/doc
10
34705
185997
2026-06-19T05:19:50Z
Addonian1123
65525
创建页面,内容为“{{Documentation subpage}} {{css|Template:Pre/styles.css}}”
185997
wikitext
text/x-wiki
{{Documentation subpage}}
{{css|Template:Pre/styles.css}}
rtqnx1onxttsl5nfnqxiuoq83nelmrp
Template:Uses TemplateStyles/example.css
10
34706
185998
2026-06-19T05:21:01Z
Addonian1123
65525
创建页面,内容为“/* 仅做示例 */ /* 僅作範例 */”
185998
sanitized-css
text/css
/* 仅做示例 */
/* 僅作範例 */
peitpj2xvjqvd9l0yfagv6723cv4z6b
Template:Uses TemplateStyles/doc
10
34707
185999
2026-06-19T05:21:27Z
Addonian1123
65525
创建页面,内容为“{{Documentation subpage}} {{Template shortcut|模板样式}} {{Lua{{\sandbox}}|Module:Uses TemplateStyles}} <!-- Categories go at the bottom of this page, and interwikis go on Wikidata. --> 本模板用于标示转换到[[WP:模板样式|模板样式]]的模板,用于模板文档的上方。 == 用法 == ; 基本 : {{tlx|Uses TemplateStyles|''模板样式页''}} ; 所有参数 : {{tlx|Uses TemplateStyles|''模板样式 1''|''模板样式 2''|''模板样…”
185999
wikitext
text/x-wiki
{{Documentation subpage}}
{{Template shortcut|模板样式}}
{{Lua{{\sandbox}}|Module:Uses TemplateStyles}}
<!-- Categories go at the bottom of this page, and interwikis go on Wikidata. -->
本模板用于标示转换到[[WP:模板样式|模板样式]]的模板,用于模板文档的上方。
== 用法 ==
; 基本 : {{tlx|Uses TemplateStyles|''模板样式页''}}
; 所有参数 : {{tlx|Uses TemplateStyles|''模板样式 1''|''模板样式 2''|''模板样式 3''|...|category{{=}}''自定义分类''|nocat{{=}}''true''}}
第一个参数必填。
<!--
===TemplateStyles sandboxes===
Note that if a sandbox version of the TemplateStyle exists, it will also be linked. This is only for sandbox versions. The subpage name of the sandbox version should be the same, but as a subpage of the templates sandbox. For example, if the TemplateStyles page name is <code>Template:Foo/styles.css</code>, then the sandbox version should be <code>Template:Foo/sandbox/styles.css</code>
-->
== 示例 ==
===有一个页面===
{{tlx|Uses TemplateStyles|Template:Arrowlist/styles.css}}
{{Uses TemplateStyles{{\sandbox}}|Template:Arrowlist/styles.css|nocat=true}}
{{clear}}
===有多个页面===
{{tlx|Uses TemplateStyles|Template:Arrowlist/styles.css|Template:Routemap/styles.css}}
{{Uses TemplateStyles{{\sandbox}}|Template:Arrowlist/styles.css|Template:Routemap/styles.css|nocat=true}}
{{clear}}
===有沙盒页===
{{tlx|Uses TemplateStyles|Template:Uses TemplateStyles/example.css}}
{{Uses TemplateStyles{{\sandbox}}|Template:Uses TemplateStyles/example.css|nocat=true}}
{{clear}}
===未指定页面===
{{tlx|Uses TemplateStyles}}
{{Uses TemplateStyles{{\sandbox}}|nocat=true}}
{{clear}}
== 分類 ==
=== 模板分類 ===
此模板會將頁面添加到 [[:Category:Templates using TemplateStyles]] 類別中,前提是該頁面位於模板命名空間,且不在子頁面 /doc、/sandbox、/sandbox2 或 /testcases 下。你可以通過 {{para|category}} 參數指定其他分類,例如 {{para|category|Lua String-based templates}}。
=== 錯誤分類 ===
如果未指定任何模組,轉譯頁面將被添加到 [[:Category:Uses TemplateStyles templates with errors]] 類別中。
=== 保護級別分類 ===
TemplateStyles 的保護級別應與其使用的模板相同。如果發現不一致,轉譯頁面將被添加到 [[:Category:Templates using TemplateStyles with a different protection level]] 類別中。
=== 分類抑制 ===
要抑制所有分類,使用 {{para|nocat|true}}。除了 "true" 外,"yes"、"y" 和 "1" 也會有效。
== 参见 ==
* {{tl|Lua}}
* {{tl|Uses Wikidata}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
| <!-- Categories go here, and interwikis go on Wikidata. -->
[[Category:维基百科Lua 模板| ]]
}}</includeonly>
lwets5f5zs5s5r6n3ux0iqnb23hgd2e
186000
185999
2026-06-19T05:21:45Z
Addonian1123
65525
186000
wikitext
text/x-wiki
{{Documentation subpage}}
{{Template shortcut|模板样式}}
{{Lua|Module:Uses TemplateStyles}}
<!-- Categories go at the bottom of this page, and interwikis go on Wikidata. -->
本模板用于标示转换到[[WP:模板样式|模板样式]]的模板,用于模板文档的上方。
== 用法 ==
; 基本 : {{tlx|Uses TemplateStyles|''模板样式页''}}
; 所有参数 : {{tlx|Uses TemplateStyles|''模板样式 1''|''模板样式 2''|''模板样式 3''|...|category{{=}}''自定义分类''|nocat{{=}}''true''}}
第一个参数必填。
<!--
===TemplateStyles sandboxes===
Note that if a sandbox version of the TemplateStyle exists, it will also be linked. This is only for sandbox versions. The subpage name of the sandbox version should be the same, but as a subpage of the templates sandbox. For example, if the TemplateStyles page name is <code>Template:Foo/styles.css</code>, then the sandbox version should be <code>Template:Foo/sandbox/styles.css</code>
-->
== 示例 ==
===有一个页面===
{{tlx|Uses TemplateStyles|Template:Arrowlist/styles.css}}
{{Uses TemplateStyles{{\sandbox}}|Template:Arrowlist/styles.css|nocat=true}}
{{clear}}
===有多个页面===
{{tlx|Uses TemplateStyles|Template:Arrowlist/styles.css|Template:Routemap/styles.css}}
{{Uses TemplateStyles{{\sandbox}}|Template:Arrowlist/styles.css|Template:Routemap/styles.css|nocat=true}}
{{clear}}
===有沙盒页===
{{tlx|Uses TemplateStyles|Template:Uses TemplateStyles/example.css}}
{{Uses TemplateStyles{{\sandbox}}|Template:Uses TemplateStyles/example.css|nocat=true}}
{{clear}}
===未指定页面===
{{tlx|Uses TemplateStyles}}
{{Uses TemplateStyles{{\sandbox}}|nocat=true}}
{{clear}}
== 分類 ==
=== 模板分類 ===
此模板會將頁面添加到 [[:Category:Templates using TemplateStyles]] 類別中,前提是該頁面位於模板命名空間,且不在子頁面 /doc、/sandbox、/sandbox2 或 /testcases 下。你可以通過 {{para|category}} 參數指定其他分類,例如 {{para|category|Lua String-based templates}}。
=== 錯誤分類 ===
如果未指定任何模組,轉譯頁面將被添加到 [[:Category:Uses TemplateStyles templates with errors]] 類別中。
=== 保護級別分類 ===
TemplateStyles 的保護級別應與其使用的模板相同。如果發現不一致,轉譯頁面將被添加到 [[:Category:Templates using TemplateStyles with a different protection level]] 類別中。
=== 分類抑制 ===
要抑制所有分類,使用 {{para|nocat|true}}。除了 "true" 外,"yes"、"y" 和 "1" 也會有效。
== 参见 ==
* {{tl|Lua}}
* {{tl|Uses Wikidata}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
| <!-- Categories go here, and interwikis go on Wikidata. -->
[[Category:维基百科Lua 模板| ]]
}}</includeonly>
qm3unktq3zx2qd0qu2swezuzn46tf55