工具集合(懒人迭代生成器/页面拯救器/子页面搜索器)

源页面
2018年10月1日
修订 51
评分
270
↑ 271
↓ 1
支持率
100%
总票数 272
Wilson 95% 下界
97.9%
在相同票数下更稳健的支持率估计
争议指数
0.015

评分趋势

按周聚合
加载图表中...

最近修订

1 / 18
SOURCE_CHANGED
23 天前
SOURCE_CHANGED
1 年前
SOURCE_CHANGED
1 年前

最近投票

1 / 28
2025-09-08
2025-08-21
2025-08-20
2025-06-24
2025-06-08
2025-06-05
2025-05-24
2025-05-01
2025-04-12
2025-03-11

相关页面

暂无推荐

页面源码

[[module css]]  .toolblock {   float:left;     width: 150px;   height: 200px;   box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);   text-align: center;   margin:5px;   transition: all 0.3s ease-out; }     .toolblock:hover {   animation: glow 2.5s infinite linear; }    @keyframes glow {     0% {   box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); }     50% { box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1); } } } [[/module]] [[>]] [[module rate]] [[/>]] [[div style=" position:fixed;  right: 1em;  bottom: 10em;  width: 21%;  width: calc(50vw - 520px);  min-width: 250px;  height:23%;  padding:1%;"]] [[f>toc]] [[/div]] [[=]] +++ 懒人迭代生成器 [[/=]] [[html]] <style type="text/css">     body {         font-family: "Consolas",verdana, arial, helvetica, sans-serif;         font-size: 12.8px;         color: #333;     }     a {         color: #b01;         cursor: pointer;         text-decoration: none;     }         a:hover {             text-decoration: underline;         }     .offset-generator {         display: none;     }     .main-content {         display: none;     }     .main-button {         display: none;     }     .finish-button {         display: none;     }      .title-option {         display: none;     } </style> <script language="javascript">     var main;     var offsetcount = 0;     var offsets = "";     function CreateMain() {         main = document.getElementById("MainURL").value;         if (main != "") {             var result = 'http://scp-wiki-cn.wikidot.com/' + main;             window.open(result);             document.getElementById("Save").innerHTML = '';             document.querySelector(".main-button").style.display = "inline";         } else {             document.getElementById("Save").innerHTML = '未输入内容。';         }     }     function MainFinished() {         document.getElementById("main-generator").innerHTML = '页面名称:' + main + '<a href="http://scp-wiki-cn.wikidot.com/'         + main + '" target="_blank">[前往]</a>';         document.querySelector(".offset-generator").style.display = "inline";     }     function CreateOffset() {         document.querySelector(".finish-button").style.display = "inline";         offsets = offsets + '<div style="border:1px grey;background:#f0f0f0"><p><strong>第' + (offsetcount + 1) + '迭代</strong> ---- <a href="http://scp-wiki-cn.wikidot.com/fragment:'          + main;         if (offsetcount < 10) {             offsets = offsets + '-0';         } else {             offsets = offsets + '-';         }         offsets = offsets + offsetcount + '/edit/true/tags/段落/parentPage/' + main + '" target="_blank">开始编辑</a><br>链接代码:[http://scp-wiki-cn.wikidot.com/'          + main + '/offset/' + offsetcount + ' 第' + (offsetcount + 1) + '迭代]</p></div>'         document.getElementById("offset-display").innerHTML = offsets;         offsetcount++;         document.getElementById("offset_count").innerHTML = '共' + offsetcount + '个迭代。';     }     function OffsetFinished() {         var offsetlinks = "";         for (var i = 0; i < offsetcount; i++) {             if (i < 10) {                 offsetlinks = offsetlinks + '<br>http://scp-wiki-cn.wikidot.com/fragment:' + main + '-0' + i;             } else {                 offsetlinks = offsetlinks + '<br>http://scp-wiki-cn.wikidot.com/fragment:' + main + '-' + i;             }         }         document.getElementById("offset-finish").innerHTML = '刷新代码';         document.querySelector(".main-content").style.display = "inline";         document.getElementById("description").innerHTML = '<br>请将下列代码复制到<a href="http://scp-wiki-cn.wikidot.com/'         + main + '/edit/true" target="_blank">主页面</a>中,并保存。';         document.getElementById("codes").innerHTML = '[[>]]<br>[[module rate]]<br>[[/>]]'         + '<p>[[module ListPages category=&quot;fragment&quot; parent=&quot;.&quot; limit=&quot;1&quot; order=&quot;name&quot; offset=&quot;@URL|0&quot;]]'         + '<p>%%content%%</p>' + '<p>[[/module]]</p>'         + '[!-- <br>编辑本页面的内容可能会导致错误。若要编辑文本,请至以下链接。'         + offsetlinks + '<br> --] </div>';     } </script> <body>     <div style="text-align:center" id="main-generator">         <p>请确认此为空页面,再开始创建页面。直接保存即可,稍后会进一步编辑。</p>         http://scp-wiki-cn.wikidot.com/         <input type="text" id="MainURL" name="textinput" placeholder="页面名称" size="15">         <button onclick="CreateMain()">生成</button>         <p id="Save"></p>         <div style="text-align:center" class="main-button">             <button onclick="MainFinished()">我已完成。</button>         </div>     </div>     <div class="offset-generator">         <p id="offset_count">当前没有迭代页面。</p>         <p>注意:这里的链接地址是贴在正文里、用来跳转到其他迭代的链接地址。点开它们并不能直接编辑你的文章。</p>         <div style="text-align:center">             <button id="OffsetButton" onclick="CreateOffset()">添加一个迭代页</button>         </div>         <div id="offset-display">             <p> </p>         </div>         <div style="text-align:center" class="finish-button">             <button id="offset-finish" onclick="OffsetFinished()">我已完成。</button>         </div>     </div>     <div id="maincontent" class="main-content">             <input type="radio" name="title-change" value="no" onclick="document.querySelector('.title-option').style.display = 'none';" checked>标题始终不变             <input type="radio" name="title-change" value="yes" onclick="document.querySelector('.title-option').style.display = 'block';">标题随迭代改变         <p id="description"></p>         <div class="title-option" style="background-color:#f0f0f0;font-size:0.9em;line-height:90%;padding: 4% 4% 0.5em 4%;margin: 5% 5% 0 5%;">             <p>[[module CSS]]</p>             <p>#page-title { <br>display: none; <br> }</p>             <p>.meta-title {<br>  border-bottom: solid 1px #bbbbbb;<br>  color: #990011;<br>  font-weight: normal;<br>  margin: 0 0 0.6em;<br>  padding: 0 0 0.25em;<br>  font-size: 200%;<br>}</p>             <p>.meta-title p {<br>  margin: 0;<br>}<br>[[/module]]</p>             <p>[[module ListPages category=&quot;fragment&quot; parent=&quot;.&quot; limit=&quot;1&quot; order=&quot;name&quot; offset=&quot;@URL|0&quot;]]</p>             <p>[[div class="meta-title"]]</p>             <p>%%title%%</p>             <p>[[/div]]</p>             <p>[[/module]]</p>         </div>         <div id="codes" style="background-color:#f0f0f0;font-size:0.9em;line-height:90%;padding: 0.5em 4% 4% 4%;margin: 0% 5% 5% 5%;">             <p></p>         </div>     </div> </body> [[/html]] *请留意,目前(2025.8)Wikidot存在ListPages无法实时更新的问题。这会导致新发布的基于迭代的页面在短时间内无法正常显示,并可能因此被当作空页面而吃到downvote。 感谢[[*user OxygenNine]]在另一个帖子给出的解决方案,[[[https://scp-wiki-cn.wikidot.com/forum/t-17216591/listpages#post-7165562|链接在此]]]。 ----- [[=]] +++ 页面拯救器 [[/=]] > 如果你某个页面的代码让你无法正常查看、评分、评论或者做其他操作,可以使用本工具安全浏览。 > 如果你的沙盒被你玩代码玩坏了,一点进去就卡死,或者任何页面因代码原因无法直接操作,可以使用本工具安全编辑之。 > 也可用于浏览会自动跳转的页面。 > 提示:若页面无法打开,可通过右键、复制链接地址来获得它的URL。 [[html]] <body>     <div style="text-align:center">         <div id="url-type">             <input type="radio" name="url-sel" value="sandbox" onclick="document.getElementById('url-pre').innerHTML = 'http://scpsandboxcn.wikidot.com/'; document.getElementById('url').size ='25';" checked>沙盒             <input type="radio" name="url-sel" value="wiki-cn" onclick="document.getElementById('url-pre').innerHTML = 'http://scp-wiki-cn.wikidot.com/'; document.getElementById('url').size ='25';">中文维基             <input type="radio" name="url-sel" value="wiki" onclick="document.getElementById('url-pre').innerHTML = 'http://scp-wiki.wikidot.com/'; document.getElementById('url').size ='25';">英文维基             <input type="radio" name="url-sel" value="no-pre" onclick="document.getElementById('url-pre').innerHTML = ''; document.getElementById('url').size ='50';">纯链接         </div>         <p><span id="url-pre" style="font-family:Consolas;font-size: 12.8px;color: #333;">http://scpsandboxcn.wikidot.com/</span>         <input type="text" id="url" name="url" placeholder="URL" size="25" ></p>         <p>             <button onclick="Go0()">安全打开页面</button>             <button onclick="Go1()">安全编辑页面</button>             <button onclick="Go2()">免跳转浏览</button>         </p>     </div> </body> <script language="javascript">     var keyWord; function expand() {     var urltype = document.getElementsByName('url-sel');    if (urltype[0].checked) {        keyWord = 'http://scpsandboxcn.wikidot.com/' + keyWord;    }    if (urltype[1].checked) {        keyWord = 'http://scp-wiki-cn.wikidot.com/' + keyWord;    }    if (urltype[2].checked) {        keyWord = 'http://scp-wiki.wikidot.com/' + keyWord;    } } function Go0(){ keyWord=document.getElementById("url").value; if (keyWord != "") {     expand();   var result=keyWord + '/norender/true';   window.open(result); } } function Go1(){ keyWord=document.getElementById("url").value; if (keyWord != "") {     expand();   var result=keyWord + '/edit/true/norender/true';   window.open(result); } } function Go2(){ keyWord=document.getElementById("url").value; if (keyWord != "") {     expand();   var result=keyWord + '/noredirect/true';   window.open(result); } } </script> [[/html]] ----- [[# search]] [[=]] +++ 迭代/子页面搜索器 [[/=]] > 如果你遇到了一个有许多迭代的页面,想查看/编辑它的源代码,却发现源代码只是一堆奇怪的英文的话,可以使用本工具查找它的子页面。 > 举例而言,[[[SCP-2998]]]由许多迭代构成。只编辑“scp-2998”这个页面的话,你会发现你无法编辑任何正文的内容(可以尝试下查看它的源代码)。它真正的正文则是放在“scp-2998-1”~“scp-2998-10”这些页面中,只有编辑这些页面才能真正改变“SCP-2998”显示的内容。 > 本工具同时也会显示所有的子页面;严格来说,由于迭代页理论上可以拥有各式各样的名称,电脑无法准确判定哪些是迭代页而哪些是一般补充材料。 > 在本工具的搜索框中输入主页面的url,例:“##blue|scp-2998##”(大小写均可);它会显示子页面的链接,例“##blue|scp-2998-1##”~“##blue|scp-2998-10##”。 [[html]] <body>     <div style="text-align:center">         <p><span id="url-pre" style="font-family:Consolas;font-size: 12.8px;color: #333;">http://scp-wiki-cn.wikidot.com/</span>         <input type="text" id="url" name="url" placeholder="URL" size="25" ></p>         <p>             <button onclick="Go1()">查看子页面</button>         </p>     </div> </body> <script language="javascript">     var keyWord; function Go1(){ keyWord=document.getElementById("url").value; if (keyWord != "") {   var result='http://scp-wiki-cn.wikidot.com/asriel-s-tools/parent/' + keyWord + '/#search';   window.open(result); } } </script> [[/html]] [[module ListPages  parent="@URL|asriels-workbench" category="*" limit="200" range="others"]] [[[*%%link%%|%%title%%]]] @@  @@发布于:##003e3e|{{**%%created_at|%y.%m.%d%%  by %%created_by_linked%%**}}## [[/module]] ----- [[=]] +++ SCP链接跳转工具 [[/=]] 该跳转工具是针对目前(2023.12.23)Wikidot无法直连大部分链接的bug而制作的,可允许用户访问任意Wikidot页面或者生成能直连的链接。本跳转工具基于[[*user hoah2333]]的[[[scp-redirecter|SCP链接重定向模块]]]制作,非常感谢! 可在你的页面中添加以下代码以使用该工具: > @@[[include :scp-wiki-cn:component:scp-redirecter-tool]]@@ *截止到2025.8,Wikidot的bug已经修复,因此不再需要此工具直连站内页面。理论上本工具已经废弃,这里保留了代码以便未来需要。 ----- [[=]] +++ 一些问题的解决方案 [[/=]] > 大家可能会在用Wiki的时候遇到一些小问题。如果我找到解决方案的话,会添加在此处,以方便大家。 ++++ **底色不是白色时,如何隐藏文字?** > 使用代码:@@##transparent|文字##@@,效果→##transparent|示例在此##←。 ++++ **手机浏览带图文档时,文字在图边上挤成长条** 如果你要插入的图片高度多于宽度,就会出现这样的问题: [[div style="float:left;width:2em;margin-left:5%;clear:none;"]] **项目** **编** **号:** SCP … [[/div]] [[div style="float:left;width:4em;height:14em;border:1px dashed grey;margin-left:1%;margin-right:2%;padding-left:5%;padding-right:5%;clear:none"]] @@@@ @@@@ 图片 @@@@ @@@@ [[/div]] 解决方法是,在图片代码后,添加以下代码。 [[code]] [[module css]] @media(min-width:500px){  .textdiv{ display:none;} } [[/module]] [[div class="textdiv"]] ~~~~ [[/div]] [[/code]] ~~~~ ++++ **想用ListUsers,又怕没登录的人看不见内容?** 常规的ListUsers模组可以让读者在文里看到自己的ID。然而,不登录的人却看不到模组里的所有内容。解决方案如下。 在页面的开头添加以下代码: [[code]] [[module ListUsers users="."]] [[module css]] .textchange div.sitemember:nth-child(2) { display:none; } [[/module]] [[/code]] 在你希望显示用户ID的地方,使用以下代码: [[code]] [[div class="textchange"]] [[module ListUsers users="."]] [[div class="sitemember"]] 你的内文 用户已经登录 %%title%%,你好(%%title%%为显示ID的地方) [[/div]] [[/module]] [[div class="sitemember"]] 你的内文(内容可以与登录版本一样) 用户未登录(也可以与登录版本不同) 屏幕外的人,你好(将原本显示ID的地方换成其他的文字) [[/div]] [[/div]] [[/code]] 这么做的效果是,假如一个人的ID是Areyoucrazytom,他会在登录时看到“Areyoucrazytom,你好”,而所有未登录的人都会看到“屏幕外的人,你好”。 *这个代码非我原创,最早的作者也不可考,如果有人知道,请务必联系我以便做出标注。 ++++ Saving Pages卡死导致编辑丢失 如果已经卡死了,请按下F12,找到{{odialog-shader}}这一元素,给它的CSS加上{{display:none;}}。如果操作正确,那么灰色的遮罩会消失,编辑框重新变得可用。你可以复制你已经写下的内容,保险起见可以粘贴到某个txt里,方便重新保存。 如果要在你的页面(比如沙盒)预防此种情况发生,请加入以下代码: > @@[[include :scpsandboxcn:no-saving-page]]@@ 尽管网络故障时仍然会在Saving Pages这一步卡住,但编辑框仍然可以使用,允许你备份已经写下的内容。 ----- [[=]] +++ 其他实用工具的链接 [[/=]] [[div class="toolblock"]] [[image syntax.png style="width:100%" link="*http://scp-wiki-cn.wikidot.com/wiki-syntax" ]] [[div style="padding:10px"]] **[[[*http://scp-wiki-cn.wikidot.com/wiki-syntax|维基语法]]]** [[/div]] [[/div]] [[div class="toolblock"]] [[image css.png style="width:100%" link="*http://scp-wiki-cn.wikidot.com/css-previewer"]] [[div style="padding:10px"]] **[[[*http://scp-wiki-cn.wikidot.com/css-previewer|CSS预览器]]]** [[/div]] [[/div]] [[div class="toolblock"]] [[image tag.png style="width:100%" link="*http://scp-wiki-cn.wikidot.com/tag-guide"]] [[div style="padding:10px"]] **[[[*http://scp-wiki-cn.wikidot.com/tag-guide|标签指导]]]** [[/div]] [[/div]] [[div class="toolblock"]] [[image rainbow.png style="width:100%" link="*http://scp-wiki-cn.wikidot.com/scp-style-resource"]] [[div style="padding:10px"]] **[[[*http://scp-wiki-cn.wikidot.com/scp-style-resource|SCP格式资源]]]** [[/div]] [[/div]] ~~~~ 文档工具: **[[[*http://scp-wiki-cn.wikidot.com/cqb:carousel|图片轮播框]]]**:可以将一些图片幻灯片展示。 **[[[*http://scp-wiki-cn.wikidot.com/credit:start|著作信息模块]]]**:可以在你文档的评分栏边上加上一个显示著作信息的按钮。也可用于翻译有这类模块的文档。 **[[[*http://scp-wiki-cn.wikidot.com/component:colstyle|多重折叠模块]]]**:可以折叠里套折叠。 作者页工具: **[[[*http://scp-wiki-cn.wikidot.com/author-page-tool-guide|懒人作者页]]]**:可以让你的作者页显示炫酷而且自动更新的作品列表,复制黏贴即可使用。 **[[[*http://scpsandboxcn.wikidot.com/top-rated-pages-this-month|讨论区动态与当月计分板]]]**:可以在你的人事页中显示当月文档的计分板与文档详细信息,以及讨论区最新动态,复制黏贴即可使用。 **[[[*http://scpsandboxcn.wikidot.com/top-rated-contest-pages|竞赛计分板]]]**:可以在你的人事页中显示某个竞赛的计分板与文档详细信息,复制黏贴即可使用。 其他: **[[[*http://scp-wiki-cn.wikidot.com/tag-search|标签搜索]]]**:可以按照标签、作者等详细属性搜索页面。 **[[[*http://scp-wiki-cn.wikidot.com/component:logical-link|逻辑链接模块]]]**:自动识别页面是否有翻译的链接。 **实用沙盒工具:**将该段代码粘贴到沙盒中。[[[*http://scp-wiki-cn.wikidot.com/scp-style-resource/offset/1/tool_limit/1#toc10|演示在此]]]。 > @@[[include :scpsandboxcn:component:usefultool-module]]@@