This is a documentation for Board Game Arena: play board games online !

Template:Note: Difference between revisions

From Board Game Arena
Jump to navigation Jump to search
(+collapsed state variable)
mNo edit summary
 
Line 1: Line 1:
<onlyinclude><div style="padding:.5em .75em;margin:.5em 0;min-height:1.5rem;border:1px solid {{{2|#ddd}}};background-color:{{{b|color-mix(in oklch,{{{2|#ddd}}} 8%,#fff0)}}};color:{{{c|#333}}};width:min-content;{{{s|width:initial}}}"><span class="mw-{{{s}}}ollapsible mw-{{{s}}}ollapsed" style="display:flex;align-items:center;gap:.75em;"><span class="mw-{{{s}}}ollapsible-toggle" flex-shrink:0">{{{i|{{gameIcon
<onlyinclude><div style="padding:.5em .75em;margin:.5em 0;min-height:1.5rem;border:1px solid {{{2|#ddd}}};background-color:{{{b|color-mix(in oklch,{{{2|#ddd}}} 8%,#fff0)}}};color:{{{c|#333}}};width:fit-content;{{{s|width:initial}}}"><span class="mw-{{{s}}}ollapsible mw-{{{s}}}ollapsed" style="display:flex;align-items:center;gap:.75em;"><span class="mw-{{{s}}}ollapsible-toggle" flex-shrink:0">{{{i|{{gameIcon
|tooltip=
|tooltip=
|imageFileName=MediaWiki-note-icons.png
|imageFileName=MediaWiki-note-icons.png
Line 7: Line 7:
|x={{{n|0}}}*25
|x={{{n|0}}}*25
}}}}}</span><span class="mw-collapsible-content">{{{1|Note}}}</span></span></div></onlyinclude>
}}}}}</span><span class="mw-collapsible-content">{{{1|Note}}}</span></span></div></onlyinclude>
{{warn|s=c|
'''The lists in these rules are displayed incorrectly when viewed on a BGA game page.'''
To read a correctly formatted version, you must open [https://en.doc.boardgamearena.com/{{FULLPAGENAMEE}} the wiki rules page] in a new tab. (If you want to help fix these rules, see [https://en.doc.boardgamearena.com/Wiki_formatting this guide] for advice.)}}


== Pages that use {{FULLPAGENAME}} ==
== Pages that use {{FULLPAGENAME}} ==

Latest revision as of 15:19, 13 August 2025

MediaWiki-note-icons.pngNote
MediaWiki-note-icons.png

The lists in these rules are displayed incorrectly when viewed on a BGA game page.

To read a correctly formatted version, you must open the wiki rules page in a new tab. (If you want to help fix these rules, see this guide for advice.)

Pages that use Template:Note

Parameters

Id
Name
Default
Example
Result
Description
i
icon
MediaWiki-note-icons.png
{{note|i={{SplendorDuelAbility|4}}}}
ability 4Note
Optional: icon e.g. as a {{gameIcon}}.
n
number
0
{{note|n=2}}
MediaWiki-note-icons.pngNote
Optional: icon preset as an integer 0-3.
1
text
Note
{{note|Message}}
MediaWiki-note-icons.pngMessage
Required: content.
2
border color
#ddd (light grey)
{{note|Message|green}}
MediaWiki-note-icons.pngMessage
Optional: border color as a CSS color value.
b
background
lighter shade of border color
{{note|b=lightgreen}}
MediaWiki-note-icons.pngNote
Optional: background as a CSS background value.
c
text color
#333 (dark grey)
{{note|c=green}}
MediaWiki-note-icons.pngNote
Optional: text color as a CSS color value.
s
state
expanded
{{note|s=c}}
MediaWiki-note-icons.pngNote
Optional: render the note text collapsed by default with the icon as the toggle.