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
(new example + namesapce used)
(link user)
Line 8: Line 8:
 
</pre>
 
</pre>
  
The user/person has to be given. To create a link to the user page, the prefix "User:" is needed.
+
The user/person has to be given.
  
 
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.
Line 14: Line 14:
 
==Examples==
 
==Examples==
 
<pre>
 
<pre>
  {{Reserved|Anonymous}}
+
  {{Reserved|Karsten Bonath}}
 
</pre>
 
</pre>
  
 
The page header looks like this:
 
The page header looks like this:
{{Reserved|Anonymous}}
+
{{Reserved|Karsten Bonath}}
 
+
[[Category:Templates]]</noinclude><includeonly>{| style="width: 100%; font-size: 125%; border-style: solid; margin-top: 1em; clear: both; position:relative; border-radius:5px;"
or
+
| style="height:31px; vertical-align: left;background:lime;" |'''[[:Category:Reserved|Reserved!]]''' This sequence is currently reserved by: '''[[{{{1}}}]]'''
<pre>
 
{{Reserved|User:Karbon}}
 
</pre>
 
 
 
The page header looks like this:
 
{{Reserved|User:Karbon}}
 
 
 
[[Category:Templates]]</noinclude>
 
<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}}}'''}}
 
 
|}
 
|}
 
{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Reserved]]}}</includeonly>
 
{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Reserved]]}}</includeonly>

Revision as of 19:09, 28 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.

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

Examples

 {{Reserved|Karsten Bonath}}

The page header looks like this:

Reserved! This sequence is currently reserved by: Karsten Bonath