Template:Editors list row: Difference between revisions

From PickiPedia: A knowledge base of bluegrass, old time psychedelic jams, and other public domain music
Jump to navigationJump to search
Template for editors list rows (via create-page on MediaWiki MCP Server)
 
Fix template to extract username and show attestation count (via update-page on MediaWiki MCP Server)
Line 2: Line 2:
Helper template for [[PickiPedia:Editors]]. Formats a single row in the editors table.
Helper template for [[PickiPedia:Editors]]. Formats a single row in the editors table.


== Parameters ==
Receives a page title like "User:Magent/Attestations/invite-record" and extracts the username.
* '''1''' - Page title (the invite-record page)
</noinclude><includeonly>|-
* '''Type''' - Entity type (human/bot)
| [[User:{{#titleparts:{{{1}}}|1|1}}|{{#titleparts:{{{1}}}|1|1}}]]
* '''Invited By''' - Who invited them
| {{#show: {{{1}}} | ?Entity type | link=none | default=unknown}}
 
| {{#show: {{{1}}} | ?Invited by | link=none | default=''Genesis''}}
== Usage ==
| {{#ask: [[~User:{{#titleparts:{{{1}}}|1|1}}/Attestations/*]] [[!~*/invite-record]] | format=count }}
Used internally by the editors list SMW query.
</noinclude><includeonly>{{#vardefine:username|{{#titleparts:{{{1}}}|1|1}}}}|-
| [[User:{{#var:username}}|{{#var:username}}]]
| {{#ifeq:{{{Type|human}}}|bot|🤖 Bot|👤 Human}}
| {{#if:{{{Invited By|}}}|[[{{{Invited By}}}|{{#titleparts:{{{Invited By}}}|1|1}}]]|''Genesis''}}
| {{#ask: [[~User:{{#var:username}}/Attestations/*]] | format=count}}
</includeonly>
</includeonly>

Revision as of 17:55, 28 February 2026

Helper template for PickiPedia:Editors. Formats a single row in the editors table.

Receives a page title like "User:Magent/Attestations/invite-record" and extracts the username.