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
m
(class)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>__NOTOC__
+
<noinclude>
 +
==Purpose==
 
With this template a sequence can be marked as reserved by a user/person.
 
With this template a sequence can be marked as reserved by a user/person.
  
Line 9: Line 10:
 
The user/person has to be given.
 
The user/person has to be given.
  
The reserved sequence is therrfore included in the '''[[:Category:Reserved|Reserved]]''' by default.
+
The reserved sequence is therefore included in the category '''[[:Category:Reserved|Reserved]]''' by default.
  
Example:
+
==Examples==
 
<pre>
 
<pre>
  {{Reserved|User:Karbon}}
+
  {{Reserved|Karsten Bonath}}
{{Shortinfo|Anonymous}
 
 
</pre>
 
</pre>
  
==Page header==
 
 
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;"
+
{{Reserved|Karsten Bonath}}
| style="height:31px; vertical-align: left;background:lime;" |'''[[:Category:Reserved|Reserved!]]''' This sequence is currently reserved by: Anonymous
+
[[Category:Templates]]</noinclude><includeonly>{| style="width: 100%; font-size: 125%; border-style: solid; margin-top: 1em; clear: both; position:relative; border-radius:5px;"
 +
| class="color-Reserved" style="height:31px; vertical-align:left;" |'''[[:Category:Reserved|Reserved!]]''' This sequence is currently reserved by: '''{{Contribs|{{{1}}}}}'''
 
|}
 
|}
 
+
{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Reserved]]}}</includeonly>
[[Category:Templates]]</noinclude>
 
<includeonly>{| style="width: 100%; font-size: 125%; border-style: solid; margin-top: 1em; clear: both; position:relative;"
 
| style="height:31px; vertical-align: left;background:lime;" |'''[[:Category:Reserved|Reserved!]]''' This sequence is currently reserved by: {{{1}}}
 
|}
 
 
 
 
 
[[Category:Reserved]]</includeonly>
 

Latest revision as of 14:44, 16 May 2021

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