Template:Contributions: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#if: {{{1|}}}|<div style="border:solid 1px gainsboro; border-radius:0.5em; background:honeydew; padding:0.5em;">[[User:{{{1}}}|{{{1}}}]] Contrigubtions <span class="mw-customtoggle-myDivision-Contributions"><sup>+</sup></span>
<includeonly>{{#if: {{{1|}}}|<div style="border:solid 1px gainsboro; border-radius:0.5em; background:honeydew; padding:0.5em;">{{#ifexist: User:{{{1}}}|[[User:{{{1}}}|{{{1}}}]]|{{pub|{{{1}}}}}|}} Contrigubtions <span class="mw-customtoggle-myDivision-Contributions"><sup>+</sup></span>
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-myDivision-Contributions">
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-myDivision-Contributions">
{{#cargo_query:
{{#cargo_query:
tables=Pages_Info
tables=Pages_Info
|where=(Pages_Info.Sources='{{{1}}}') AND (Pages_Info.Hidden=0 OR Pages_Info.Hidden IS NULL)
|where=(Pages_Info.Sources='{{{1}}}')
|fields=COUNT(Pages_Info._pageName)
|fields=COUNT(Pages_Info._pageName)
}} articles<br />
}} articles<br />

Revision as of 08:11, 11 April 2021

Use

Place at the bottom of user pages to link to the user's contributions

Syntax

{{Contributions|authorName}}

Example

{{Contributions|Rlyehable}}

produces...

Rlyehable Contrigubtions +
Error: operator for the virtual field 'Pages_Info.Sources' must be 'HOLDS', 'HOLDS NOT', 'HOLDS LIKE' or 'HOLDS NOT LIKE'.
articles
Error: operator for the virtual field 'Pages_Info.Sources' must be 'HOLDS', 'HOLDS NOT', 'HOLDS LIKE' or 'HOLDS NOT LIKE'.