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
(user page link)
Line 7: Line 7:
 
</pre>
 
</pre>
  
The user/person has to be given.
+
The user/person has to be given. To create a link to the user page, the prefix "User:" is needed.
  
 
The reserved sequence is therrfore included in the '''[[:Category:Reserved|Reserved]]''' by default.
 
The reserved sequence is therrfore included in the '''[[:Category:Reserved|Reserved]]''' by default.
Line 25: Line 25:
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>
 
<includeonly>{| style="width: 100%; font-size: 125%; border-style: solid; margin-top: 1em; clear: both; position:relative;"
 
<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}}}
+
| 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>
 
[[Category:Reserved]]</includeonly>

Revision as of 10:49, 12 December 2018

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 therrfore included in the Reserved by default.

Example:

 {{Reserved|User:Karbon}}
 {{Shortinfo|Anonymous}

Page header

The page header looks like this:

Reserved! This sequence is currently reserved by: Anonymous