Template:Contributions: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
(Created page with "<includeonly><!--[[Special:Contributions/{{{1|}}}]]-->{{#if: {{{1|}}}|<div style="border:solid 1px gainsboro; border-radius:0.5em; background:honeydew; padding:0.5em;">User:...")
 
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--[[Special:Contributions/{{{1|}}}]]-->{{#if: {{{1|}}}|<div style="border:solid 1px gainsboro; border-radius:0.5em; background:honeydew; padding:0.5em;">[[User:{{{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 HOLDS "{{{1}}}")
|fields=COUNT(Pages_Info._pageName)
|fields=COUNT(Pages_Info._pageName)
}} articles<br />
}} articles<br />
{{#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 HOLDS "{{{1}}}"
|fields=CONCAT('[[', Pages_Info._pageName, '|', Pages_Info.Page_Title, ']]')
|fields=CONCAT('[[', Pages_Info._pageName, '|', Pages_Info.Page_Title, ']]')
|order by=Pages_Info.Page_Title
|order by=Pages_Info.Page_Title
Line 23: Line 23:


==Syntax==
==Syntax==
<pre>{{Contributions|authorName}}</pre>
<pre>{{Contributions|Source}}</pre>


==Example==
==Examples==
<pre>{{Contributions|Rlyehable}}</pre>
<pre>{{Contributions|Rlyehable}}</pre>


produces...
<pre>{{Contributions|Player's Handbook (5e)}}</pre>
 
===Produces===


{{Contributions|Rlyehable}}
{{Contributions|Rlyehable}}
{{Contributions|Player's Handbook (5e)}}


[[Category:User Templates]]
[[Category:User Templates]]
</noinclude>
</noinclude>

Latest revision as of 05:58, 27 September 2022

Use

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

Syntax

{{Contributions|Source}}

Examples

{{Contributions|Rlyehable}}
{{Contributions|Player's Handbook (5e)}}

Produces

Rlyehable Contrigubtions +
Cannot access the database: :real_connect(): (HY000/1226): User 'a1618b_wiki5' has exceeded the 'max_user_connections' resource (current value: 10)
articles
Cannot access the database: :real_connect(): (HY000/1226): User 'a1618b_wiki5' has exceeded the 'max_user_connections' resource (current value: 10)


Player's Handbook (5e) Contrigubtions +
Cannot access the database: :real_connect(): (HY000/1226): User 'a1618b_wiki5' has exceeded the 'max_user_connections' resource (current value: 10)
articles
Cannot access the database: :real_connect(): (HY000/1226): User 'a1618b_wiki5' has exceeded the 'max_user_connections' resource (current value: 10)