Template:Editlock: Difference between revisions

From The Reed and Rite
Created page with "<includeonly>{{notice|color=#FFCCCC|width=80%|id=editlock |header=<span style="font-size: 115%;">This page has been locked to prevent further edits.</span><!-- -->{{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{book|}}}|<br>It will not be unlocked until work has been completed through the following book(s):}}<!-- -->{{#if:{{{text|}}}|{{{text}}}{{#if:{{{1|}}}{{{book|}}}|}}}}<!-- -->{{#if:{{{1|}}}{{{book|}}}|<br>''{{b|{{{1|{{{book}}}}}}}}|{{b|{{{1|{{{boo..."
 
m Protected "Template:Editlock" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{notice|color=#FFCCCC|width=80%|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;  display: flex; align-items: flex-start;"><!--
|header=<span style="font-size: 115%;">This page has been locked to prevent further edits.</span><!--
  --><div class="cdx-message__icon" style="flex-shrink: 0; min-width: 1.5rem; min-height: 1.5rem;"></div><!--
-->{{#if:{{{1|}}}{{{2|}}}{{{3|}}}{{{4|}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{book|}}}|<br>It will not be unlocked until work has been completed through the following book(s):}}<!--
  --><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}}]]''}}<!--
}}<!--
      -->{{#if:{{{4|}}}|<br />''[[{{b|{{{4}}}}}|{{b|{{{4}}}|text=y}}]]''}}<!--
      -->{{#if:{{{5|}}}|<br />''[[{{b|{{{5}}}}}|{{b|{{{5}}}|text=y}}]]''}}<!--
      -->{{#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 ==
Line 20: Line 27:
== Usage ==
== Usage ==
To use, insert <code><nowiki>{{editlock}}</nowiki></code> at the beginning of a page, before the infobox, if present.
To use, insert <code><nowiki>{{editlock}}</nowiki></code> at the beginning of a page, before the infobox, if present.
:'''Note:''' You can also pass <code>align=</code> and <code>width=</code> for more granular control of visual appearance. For more details on these parameters, see [[:Template:Notice]].


{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
{| style="width: 100%; text-align: left; margin: auto;" class="wikitable"
Line 28: Line 36:
!You Get
!You Get
|-
|-
| style="text-align: center; background-color: white;" |<pre>{{editlock}}</pre>
| style="text-align: center;" |<pre>{{editlock}}</pre>
| style="background-color: white;" |{{editlock}}
|<br>{{editlock}}
|-
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Specify Book</span><br><div style="text-align: left;"><span style="font-weight: normal;">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]].</span></div>
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Specify Book</span><br><div style="text-align: left;"><span style="font-weight: normal;">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]].</span></div>
Line 36: Line 44:
!You Get
!You Get
|-
|-
| style="text-align: center; background-color: white;" |<pre>{{editlock|tbot}}</pre>
| style="text-align: center;" |<pre>{{editlock|e1}}</pre>
| style="background-color: white;" |{{editlock|e2}}
|<br>{{editlock|e1}}
|-
|-
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">SpecifyTwo or More Books</span><br><div style="text-align: left;"><span style="font-weight: normal;">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.<br><br><span style="font-size: 90%;">'''Note:''' This template is limited to a maximum of seven book abbreviations.</span></span></div>
! colspan="2" style="text-align: center;" | <span style="font-size: 115%;">Specify Two or More Books</span><br><div style="text-align: left;"><span style="font-weight: normal;">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.'''<br><br><span style="font-size: 90%;">'''Note:''' This template is limited to a maximum of seven book abbreviations.</span></span></div>
|-
|-
! width=20%|You Type
! width=20%|You Type
!You Get
!You Get
|-
|-
| style="text-align: center; background-color: white;" |<pre>{{editlock|e2|e3}}</pre>
| style="text-align: center;" |<pre>{{editlock|e1|tqg}}</pre>
| style="background-color: white;" |{{editlock|e2|e3}}
|<br>{{editlock|e1|tqg}}
|}
|}



Latest revision as of 21:58, 4 June 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