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:Contribs"
(new) |
(no link for brackets) |
||
Line 4: | Line 4: | ||
==Purpose== | ==Purpose== | ||
Create links to a [[person]] (or any page) from a list (comma separated) in the history of any [[:Category:Prime|prime]] page. | Create links to a [[person]] (or any page) from a list (comma separated) in the history of any [[:Category:Prime|prime]] page. | ||
+ | |||
+ | Any user/text in round brackets won't create a link. | ||
==Examples== | ==Examples== | ||
− | <pre> | + | <pre>{{Contribs|Karsten Bonath}}</nowiki></pre> |
− | {{Contribs|Karsten Bonath}} | ||
− | </pre> | ||
gives | gives | ||
:{{Contribs|Karsten Bonath}} | :{{Contribs|Karsten Bonath}} | ||
or | or | ||
− | <pre> | + | <pre>{{Contribs|Karsten Bonath,Examples,GIMPS,Riesel Prime Search,(test)}}</pre> |
− | {{Contribs|Karsten Bonath,Examples,GIMPS,Riesel Prime Search}} | ||
− | </pre> | ||
− | :{{Contribs|Karsten Bonath,Examples,GIMPS,Riesel Prime Search}} | + | :{{Contribs|Karsten Bonath,Examples,GIMPS,Riesel Prime Search,(test)}} |
[[Category:Templates]]</noinclude><includeonly>{{#arraydefine:u|{{{1}}}}}{{#loop:i | [[Category:Templates]]</noinclude><includeonly>{{#arraydefine:u|{{{1}}}}}{{#loop:i | ||
| 0 | | 0 | ||
| {{#arraysize:u}} | | {{#arraysize:u}} | ||
− | | {{#ifeq:{{#var:i}}|0||, }}[[{{#arrayindex:u|{{#var:i}}}}]]}}</includeonly> | + | | {{#ifeq:{{#var:i}}|0||, }}{{#if:{{#pos:{{#arrayindex:u|{{#var:i}}}}|(}}|{{#arrayindex:u|{{#var:i}}}}|[[{{#arrayindex:u|{{#var:i}}}}]]}}}}</includeonly> |
Latest revision as of 09:53, 4 July 2021
Template: Contribs
Purpose
Create links to a person (or any page) from a list (comma separated) in the history of any prime page.
Any user/text in round brackets won't create a link.
Examples
{{Contribs|Karsten Bonath}}</nowiki>
gives
or
{{Contribs|Karsten Bonath,Examples,GIMPS,Riesel Prime Search,(test)}}
- Karsten Bonath, Examples, GIMPS, Riesel Prime Search, (test)