User:Syphilen/Test Site

From ShadowHaven Reloaded
Jump to navigation Jump to search

Wiki Code you may copy if you want

Number of runs and runs since last rent

If put the code into the Infobox of a char it will display the number of runs and the runs since you should have paid rent. The position in the infobox is controlled via the numbers (labelX and dataX). So if you want to change their position adjust the numbers. Just make sure there's only one pair of data and label for each number.

|label17 = Number of Runs:
|data17 = {{#ask: [[Category:Runs]][[hasRunner::{{PAGENAME}}]]|format=count}}
|label18 = Runs since Rent:
|data18 = {{#expr:{{#ask: [[Category:Runs]][[hasRunner::{{PAGENAME}}]]|format=count}}mod4}}

GM run table and number of runs as a GM

If you put this code onto your GM page it will give you a table that displays the runs you GMed. This is currently limited to showing the 10 most recent runs. if you want to change that just change the limit to the wanted number Just make sure that the name listed as the GM is indeed your user name.

{{#ask: [[Category:Runs]][[hasGM::{{PAGENAME}}]]
|mainlabel=-
|format=datatables
|default=Haven't GMed a run yet. But it will happen somewhere in the future.
|?=Name
|?hasMetaplot=Metaplot
|?hasDate=Date
|?ThreatLevel=Threat Level
|?hasRunner=Runners
|limit=10
|sort=hasDate
|order=descending
}}

If you put this code onto your GM page it will give you the number of runs you did. Just make sure that the name listed as the GM is indeed your user name.

Number of runs as a GM: {{#ask: [[Category:Runs]][[hasGM::{{PAGENAME}}]]|format=count}}


Work in progress code that doesn't work

{{#ask: [[Category:Player Characters]][[hasRunner::{{PAGENAME}}]{{#ask: [[Category:Runs]][[hasRunner::{{PAGENAME}}]]|format=count}}
|mainlabel=-
|format=datatables
|default=Haven't GMed a run yet. But it will happen somewhere in the future.
|?=Name
|?hasMetaplot=Metaplot
|?hasDate=Date
|?ThreatLevel=Threat Level
|?hasRunner=Runners
|limit=10
|sort=hasDate
|order=descending
}}

Just ignore this

Total Runs: 2418

Oldest Run:

NameGMThreat LevelDateRunner
Tech Support ReturnsMudge15 April 2078Usagi
Ice Cube
R0B0H4TZ
James Krug
... further results


NameGMThreat LevelDateRunner
The Consequences for Peacful SolutionsEye of the Storm29 June 2079Marionette
Crosley
C-Unit 537 - Hunter
E.E.T.
If You Have Got Some RequestsDrBurst8 December 2079Cyber Knight
C-Unit 537 - Hunter
Hakari
Streetlight Manifesto - The Three of Us (Part 2)DrBurst16 December 2079Nora Inu
C-Unit 537 - Hunter
Rabbit
Yokai (Dusk)
Job Posting: 68109893CFdavyj0nes4 February 2080Paladin
C-Unit 537 - Hunter
Kani
Protecting the GentryMalyc17 August 2080C-Unit 537 - Hunter
Deimos
Decoy
Susurros
24K Magic (Hell's Kitchen)Purkinje12 October 2080C-Unit 537 - Hunter
Cryo
Howler
A Shadowrun Based on Hot Night Crash by Sahara HotnightsDrburst29 October 2080Blue Streak
C-Unit 537 - Hunter
Usagi
Tanuki
Purkinje
Shade (Iriodin)
Hotline Miamimudge3 November 2080Paladin
C-Unit 537 - Hunter
Evans Doyle
Howler
Prognosticator ProcurementDarklordiablo2 December 2080C-Unit 537 - Hunter
Purkinje
Yata
Good Boy
The LockerChrisst111Medium26 August 2081C-Unit 537 - Hunter
Rasputin
Ironclad
Ansel
Celebrate While You're AheadChrisst111Medium14 October 2081C-Unit 537 - Hunter
Baron
Pell
Zephyr
It's the Most Wonderful Time of the YearSarcarianMedium31 October 2081C-Unit 537 - Hunter
CAPTAIN FREEFALL
King Beef
Spook-e
The Corpse BrideRyncewynde88Low31 October 2081C-Unit 537 - Hunter
Century
Samsara
Introductory EntomologySarcarianMedium7 December 2081C-Unit 537 - Hunter
Charon
Relay
Sp4rks
Prepare For TroubleAsmodeusMedium22 February 2082C-Unit 537 - Hunter
Tahki
Triple Trouble
Bound By the BloodAsmodeusSemi-Prime11 July 2082C-Unit 537 - Hunter
Delphi
Frank Davis
Chaining the Broken MindArchtmagExtreme26 February 2083C-Unit 537 - Hunter
La Rapide
The Incredible Behemoth
Dr. Lollipop
There Are No Strings On MeSarcarianExtreme1 September 2083C-Unit 537 - Hunter
Shy
Red Rain
The Last TabooZerreMedium7 October 2083Kera
C-Unit 537 - Hunter
Heracles
Angra Mainyu
Monolithium PowersAsmodeusExtreme26 April 2084C-Unit 537 - Hunter
Delphi
Shy
Blake Decker
... further results