Difference between revisions of "User:Syphilen/Test Site"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
=Wiki Code you may copy if you want= | =Wiki Code you may copy if you want= | ||
==Number of runs and runs since last rent== | ===Number of runs and runs since last rent=== | ||
<pre> | <pre> | ||
|label17 = Number of Runs: | |label17 = Number of Runs: | ||
Line 10: | Line 10: | ||
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. | 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=== | |||
<pre> | |||
{{#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 | |||
|limit=300 | |||
|sort=hasDate | |||
|order=descending | |||
}} | |||
</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. | |||
<pre> | |||
Number of runs as a GM: {{#ask: [[Category:Runs]][[hasGM::{{PAGENAME}}]]|format=count}} | |||
</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]] | [[:Category:Templates|Template list]] |
Revision as of 16:32, 10 July 2022
Wiki Code you may copy if you want
Number of runs and runs since last rent
|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}}
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
{{#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 |limit=300 |sort=hasDate |order=descending }}
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.
Number of runs as a GM: {{#ask: [[Category:Runs]][[hasGM::{{PAGENAME}}]]|format=count}}
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.