Difference between revisions of "User:Syphilen/Test Site"

From ShadowHaven Reloaded
Jump to navigation Jump to search
 
(52 intermediate revisions by the same user not shown)
Line 2: Line 2:


===Number of runs and runs since last rent===
===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.
<pre>
<pre>
|label17 = Number of Runs:
|label17 = Number of Runs:
Line 8: Line 10:
|data18 = {{#expr:{{#ask: [[Category:Runs]][[hasRunner::{{PAGENAME}}]]|format=count}}mod4}}
|data18 = {{#expr:{{#ask: [[Category:Runs]][[hasRunner::{{PAGENAME}}]]|format=count}}mod4}}
</pre>
</pre>
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.


===GM run table and number of runs as a GM===
===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.


<pre>
<pre>
Line 21: Line 22:
|?hasMetaplot=Metaplot
|?hasMetaplot=Metaplot
|?hasDate=Date
|?hasDate=Date
|limit=300
|?ThreatLevel=Threat Level
|?hasRunner=Runners
|limit=10
|sort=hasDate
|sort=hasDate
|order=descending
|order=descending
Line 27: Line 30:
</pre>
</pre>


If you put this code onto your GM page it will give you a table that displays the runs you GMed. Just make sure that the name listed as the GM is indeed your user name.
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.


<pre>
<pre>
Line 33: Line 36:
</pre>
</pre>


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.


[[:Category:Templates|Template list]]
==Work in progress code that doesn't work==
<pre>
{{#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
}}
</pre>
 
=Just ignore this=
<!--{{#ask: [[Category:Runs]][[hasRunner::la Rapide]]
|mainlabel=-
|format=datatable
|?=Name
|?hasRunner=Runner
|limit=60
}}-->
 
Total Runs:
{{#ask: [[Category:Runs]]
|mainlabel=-
|format=count
}}
 
Oldest Run:
{{#ask: [[Category:Runs]]
|mainlabel=-
|format=datatable
|?=Name
|?hasGM=GM
|?ThreatLevel=Threat Level
|?hasDate=Date
|?hasRunner=Runner
|limit=1
|sort=hasDate
|order=asc
}}
 
<!--
{{#ask: [[Category:Runs]] [[hasRunner::Heracles]]
|mainlabel=-
|format=datatable
|?=Name
|?hasGM=GM
|?ThreatLevel=Threat Level
|?hasDate=Date
|?hasRunner=Runner
|limit=90
|sort=hasDate
|order=desc
}}
-->
 
{{#ask: [[Category:Contacts]] [[hasContact Owner::sigurdzs]]
|mainlabel=-
|format=datatables
|?=Name
|?Profession=Profession
|?Archetype=Archetype
|?Connection=Connection
|?HasAspect=Aspects
|?Faction=Faction
|?ActivePlayerContacts=Active PCs with this Contact
|?Location=Location
|?Metatype=Metatype
|?Gender=Gender
|sort=Connection
|order=desc
|limit=10
}}
 
Counters:
{{#ask: [[Category:Runs]]
|mainlabel=-
|format=count
}}
 
{{#ask: [[Category:Player_Characters]][[HasContact::Bumble]]
|mainlabel=-
|format=table
|headers=plain
|default=No active characters with this contact have been found.
|link=subject
|?=Name
|?Loyalty{{PAGEID}}=Loyalty
|?Chips{{PAGEID}}=Chips
|limit=300
}}
 
 
{{NUMBEROFPAGES}}

Latest revision as of 18:08, 21 July 2024

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: 2328

Oldest Run:

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



Counters: 2328

No active characters with this contact have been found.


32,443