Template:Editlock: Difference between revisions

From The Reed and Rite
mNo edit summary
m Changing format from the {{notice}} template to MediaWiki's standard Codex design.
Line 1: Line 1:
<includeonly>{{notice|color=#FFA3A3|id=editlock
<includeonly><div id="editlock" role="alert" aria-live="polite" class="cdx-message cdx-message--block cdx-message--info mw-editlock" style="margin-bottom: 1em;  background-color: #e7f1fd;"><!--
|header=<span style="font-size: 115%;">This page has been locked to prevent further edits.</span><!--
  --><span class="cdx-message__icon" style="vertical-align: middle; line-height: 1.5; display: inline-block; width: 1.2em; height: 1.2em; overflow: visible;"></span><!--
-->{{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{book|}}}|<br>It will be unlocked after work has been completed through the following:}}<!--
  --><div class="cdx-message__content" style="text-align: left; font-size: 95%;"><!--
-->{{#if:{{{text|}}}|{{{text}}}{{#if:{{{1|}}}{{{book|}}}|}}}}<!--
    --><div><!--
-->{{#if:{{{1|}}}{{{book|}}}|<br>''[[{{b|{{{1|{{{book}}}}}}}}|{{b|{{{1|{{{book}}}}}}|text=y}}]]''}}<!--
      --><span style="font-size: 115%;"><strong>This page has been locked to prevent further edits.</strong></span><!--
-->{{#if:{{{2|}}}|{{#if:{{{3|}}}||}} <br>''[[{{b|{{{2}}}}}|{{b|{{{2}}}|text=y}}]]''}}<!--
      -->{{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{book|}}}|<!--
-->{{#if:{{{3|}}}|{{#if:{{{4|}}}||}} <br>''[[{{b|{{{3}}}}}|{{b|{{{3}}}|text=y}}]]''}}<!--
        --><br />It will be unlocked after work has been completed through the following:<!--
-->{{#if:{{{4|}}}|{{#if:{{{5|}}}||}} <br>''[[{{b|{{{4}}}}}|{{b|{{{4}}}|text=y}}]]''}}<!--
      -->}}<!--
-->{{#if:{{{5|}}}|{{#if:{{{6|}}}||}} <br>''[[{{b|{{{5}}}}}|{{b|{{{5}}}|text=y}}]]''}}<!--
      -->{{#if:{{{text|}}}|<br />{{{text}}}{{#if:{{{1|}}}{{{book|}}}|}}}}<!--
-->{{#if:{{{6|}}}|{{#if:{{{7|}}}||}} <br>''[[{{b|{{{6}}}}}|{{b|{{{6}}}|text=y}}]]''}}<!--
      -->{{#if:{{{1|}}}{{{book|}}}|<br />''[[{{b|{{{1|{{{book}}}}}}}}|{{b|{{{1|{{{book}}}}}}|text=y}}]]''}}<!--
-->{{#if:{{{7|}}}|<br>''[[{{b|{{{7}}}}}|{{b|{{{7}}}|text=y}}]]''}}<!--
      -->{{#if:{{{2|}}}|<br />''[[{{b|{{{2}}}}}|{{b|{{{2}}}|text=y}}]]''}}<!--
-->|text=For more information, please see [[:Main Page#Our Objective|Our Objectives]].<!--
      -->{{#if:{{{3|}}}|<br />''[[{{b|{{{3}}}}}|{{b|{{{3}}}|text=y}}]]''}}<!--
-->|align={{{align|center}}}<!--
      -->{{#if:{{{4|}}}|<br />''[[{{b|{{{4}}}}}|{{b|{{{4}}}|text=y}}]]''}}<!--
-->|width={{{width|}}}<!--
      -->{{#if:{{{5|}}}|<br />''[[{{b|{{{5}}}}}|{{b|{{{5}}}|text=y}}]]''}}<!--
-->|dismiss=no<!--
      -->{{#if:{{{6|}}}|<br />''[[{{b|{{{6}}}}}|{{b|{{{6}}}|text=y}}]]''}}<!--
-->}}<!--
      -->{{#if:{{{7|}}}|<br />''[[{{b|{{{7}}}}}|{{b|{{{7}}}|text=y}}]]''}}<!--
      --><br /><span style="font-size: 95%;"><strong>For more information, please see [[:Main Page#Our Objective|Our Objectives]].</strong></span><!--
    --></div><!--
  --></div><!--
--></div><!--
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Locked Articles]]}}{{#ifeq:{{NAMESPACE}}|{{ns:100}}|[[Category:Locked Articles]]}}</includeonly><noinclude>
-->{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Locked Articles]]}}{{#ifeq:{{NAMESPACE}}|{{ns:100}}|[[Category:Locked Articles]]}}</includeonly><noinclude>
== Description ==
== Description ==

Revision as of 03:24, 26 May 2025

Description

This template is reserved for use by administrators. It should be used to indicate a page has been locked to prevent further edits. Using it automatically adds the page to Category:Locked Articles.

The standard reason to lock a page is to prevent unintended spoilers on later books until the wiki has been filled out with content from earlier books. This is to help build the Time Machine properly.

Usage

To use, insert {{editlock}} at the beginning of a page, before the infobox, if present.

Note: You can also pass align= and width= for more granular control of visual appearance. For more details on these parameters, see Template:Notice.
Tag Only
Passing only the tag will add the Edit Lock notice to that page.
You Type You Get
{{editlock}}

Specify Book
If you wish to specify through what book content needs to be complete through for the page to be unlocked, simply pass that book's abbreviation from Template:B.
You Type You Get
{{editlock|e1}}

Specify Two or More Books
If you wish to specify two or more books, simply pass a parameter for each book using that book's abbreviation from Template:B. It is preferred to specify only the immediately preceding book instead of all preceding books.

Note: This template is limited to a maximum of seven book abbreviations.
You Type You Get
{{editlock|e1|tqg}}

Articles Using Template