Difference between revisions of "Templates as macros"

From Bisq Wiki
Jump to navigation Jump to search
(Add Mintradesizetobesigned template)
 
Line 10: Line 10:
 
|-
 
|-
 
! Page !! Description !! Current value
 
! Page !! Description !! Current value
 +
|-
 +
| [[Template:MinTradeSizeToBeSigned]] || Displays the min trade amount for an account to be signed || {{MinTradeSizeToBeSigned}}
 
|-
 
|-
 
| [[Template:MaxTradeSizeUnsigned]] || Displays the max trade amount for an unsigned buyer. || {{MaxTradeSizeUnsigned}}
 
| [[Template:MaxTradeSizeUnsigned]] || Displays the max trade amount for an unsigned buyer. || {{MaxTradeSizeUnsigned}}

Latest revision as of 16:26, 18 February 2025

MediaWiki, the software platform that powers the Bisq Wiki, includes a built-in feature that allows the content of a template page to be displayed inline on any other page using a markup command. This can be very useful, for example, when mentioning a maximum trade amount that might change over time on multiple pages. You won't have to worry about those pages becoming outdated if the amount changes.

To create a template page, you can do so like any other wiki page, but you need to add the prefix "Template:" at the beginning. It's recommended that template pages used as macros have a more simplified name for ease of recall. The newly created template page should only contain the content that will be displayed inline when referenced.

To display the content of a template page inline, use the following command: "{{name_of_template}}". For instance, to display the content of the template page "Template:MaxTradeSizeUnsigned", you would use "{{MaxTradeSizeUnsigned}}".

List of current Templates being used as macros, for reference and quick access:

Page Description Current value
Template:MinTradeSizeToBeSigned Displays the min trade amount for an account to be signed .0005
Template:MaxTradeSizeUnsigned Displays the max trade amount for an unsigned buyer. .002 BTC
Template:MaxTradeSizeBisq1 Displays the max trade size for Bisq 1 trade (keeping separate for more flexibility with Bisq 2 protocols) 0.0624 BTC
Template:MaxTradeSizeAltcoin Displays the max trade size for altcoin trades in Bisq 1 0.50 BTC
Template:MaxBisqEasyTrade Displays the max trade amount for a Bisq Easy trade the equivalent of 600 USD