Template:Editlock: Difference between revisions

mNo edit summary
m Protected "Template:Editlock" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{notice|color=#FFA3A3|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 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}}]]''}}<!--
-->|dismiss=no
      -->{{#if:{{{4|}}}|<br />''[[{{b|{{{4}}}}}|{{b|{{{4}}}|text=y}}]]''}}<!--
}}<br><!--
      -->{{#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 21: 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 29: 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;" |<br>{{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 37: Line 44:
!You Get
!You Get
|-
|-
| style="text-align: center; background-color: white;" |<pre>{{editlock|e1}}</pre>
| style="text-align: center;" |<pre>{{editlock|e1}}</pre>
| style="background-color: white;" |<br>{{editlock|e1}}
|<br>{{editlock|e1}}
|-
|-
! 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>
! 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>
Line 45: Line 52:
!You Get
!You Get
|-
|-
| style="text-align: center; background-color: white;" |<pre>{{editlock|e1|tqg}}</pre>
| style="text-align: center;" |<pre>{{editlock|e1|tqg}}</pre>
| style="background-color: white;" |<br>{{editlock|e1|tqg}}
|<br>{{editlock|e1|tqg}}
|}
|}