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

From ShadowHaven Reloaded
Jump to navigation Jump to search
Line 1: Line 1:
=What is this?=
=Wiki Code you may copy if you want=


{{#ask: [[Category:Runs]][[hasRunner::la Rapide]]
==Number of runs and runs since last rent==
|format=count
<pre>
}}
|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}}
</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.


[[:Category:Templates|Template list]]
[[:Category:Templates|Template list]]

Revision as of 16:26, 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.

Template list