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)
 
Make attestations clickable, add joined date column (via update-page on MediaWiki MCP Server)
 
(3 intermediate revisions by 2 users not shown)
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)
| [[{{#titleparts:{{{1}}}|1}}]]
* '''Invited By''' - Who invited them
| {{#show: {{{1}}} | ?Entity type | link=none | default=unknown}}
 
| [[{{#show: {{{1}}} | ?Invited by | link=none | default=Genesis}}]]
== Usage ==
| [[{{#titleparts:{{{1}}}|1}}/Attestations|{{#ask: [[~{{#titleparts:{{{1}}}|1}}/Attestations/*]] [[!~*/invite-record]] | format=count }}]]
Used internally by the editors list SMW query.
| {{#show: {{{1}}} | ?Invited at | link=none | default=}}
</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>

Latest revision as of 21:56, 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.