Currently there may be errors shown on top of a page, because of a missing Wiki update (PHP version and extension DPL3).
Navigation
Topics Help • Register • News • History • How to • Sequences statistics • Template prototypes

Difference between revisions of "Template:Reserved"

From Prime-Wiki
Jump to: navigation, search
(corrections)
(new example + namesapce used)
Line 12: Line 12:
 
The reserved sequence is therefore included in the category '''[[:Category:Reserved|Reserved]]''' by default.
 
The reserved sequence is therefore included in the category '''[[:Category:Reserved|Reserved]]''' by default.
  
==Example==
+
==Examples==
 
<pre>
 
<pre>
 
  {{Reserved|Anonymous}}
 
  {{Reserved|Anonymous}}
Line 18: Line 18:
  
 
The page header looks like this:
 
The page header looks like this:
{| style="width: 100%; font-size: 125%; border-style: solid; margin-top: 1em; clear: both; position:relative; border-radius:5px;"
+
{{Reserved|Anonymous}}
| style="height:31px; vertical-align: left;background:lime;" |'''[[:Category:Reserved|Reserved!]]''' This sequence is currently reserved by: Anonymous
+
 
|}
+
or
 +
<pre>
 +
{{Reserved|User:Karbon}}
 +
</pre>
 +
 
 +
The page header looks like this:
 +
{{Reserved|User:Karbon}}
 +
 
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>
 
<includeonly>{| style="width: 100%; font-size: 125%; border-style: solid; margin-top: 1em; clear: both; position:relative; border-radius:5px;"
 
<includeonly>{| style="width: 100%; font-size: 125%; border-style: solid; margin-top: 1em; clear: both; position:relative; border-radius:5px;"
 
| style="height:31px; vertical-align: left;background:lime;" |'''[[:Category:Reserved|Reserved!]]''' This sequence is currently reserved by: {{#if:{{#pos:{{{1}}}|User}}|'''[[:{{{1}}}|{{#explode:{{{1}}}|:|1}}]]'''|'''{{{1}}}'''}}
 
| style="height:31px; vertical-align: left;background:lime;" |'''[[:Category:Reserved|Reserved!]]''' This sequence is currently reserved by: {{#if:{{#pos:{{{1}}}|User}}|'''[[:{{{1}}}|{{#explode:{{{1}}}|:|1}}]]'''|'''{{{1}}}'''}}
 
|}
 
|}
[[Category:Reserved]]</includeonly>
+
{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Reserved]]}}</includeonly>

Revision as of 08:28, 7 April 2019

Purpose

With this template a sequence can be marked as reserved by a user/person.

Calling

 {{Reserved|<user>}}

The user/person has to be given. To create a link to the user page, the prefix "User:" is needed.

The reserved sequence is therefore included in the category Reserved by default.

Examples

 {{Reserved|Anonymous}}

The page header looks like this:

Reserved! This sequence is currently reserved by: Anonymous


or

 {{Reserved|User:Karbon}}

The page header looks like this:

Reserved! This sequence is currently reserved by: User:Karbon