This is a documentation for Board Game Arena: play board games online !
Template:Note: Difference between revisions
Jump to navigation
Jump to search
Sammy McSam (talk | contribs) mNo edit summary |
Sammy McSam (talk | contribs) (+collapsed state variable) |
||
| Line 1: | Line 1: | ||
<onlyinclude><div style=" | <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 | ||
|tooltip= | |tooltip= | ||
|imageFileName=MediaWiki-note-icons.png | |imageFileName=MediaWiki-note-icons.png | ||
| Line 6: | Line 6: | ||
|height=25 | |height=25 | ||
|x={{{n|0}}}*25 | |x={{{n|0}}}*25 | ||
}}}}}</span><span | }}}}}</span><span class="mw-collapsible-content">{{{1|Note}}}</span></span></div></onlyinclude> | ||
== Pages that use {{FULLPAGENAME}} == | == Pages that use {{FULLPAGENAME}} == | ||
| Line 14: | Line 14: | ||
== Parameters == | == Parameters == | ||
<div style="display:grid;grid-template-columns:repeat(5,max-content) 1fr;gap:0.5rem;overflow:auto;text-overflow:ellipsis;"> | <div style="display:grid;grid-template-columns:repeat(5,max-content) 1fr;gap:0.5rem;overflow:auto;text-overflow:ellipsis;"> | ||
<div>{{text|w=bold|Id}}</div> | <div>{{text|w=bold|Id}}</div> | ||
| Line 48: | Line 47: | ||
<div>2</div> | <div>2</div> | ||
<div>border color</div> | <div>border color</div> | ||
<div>{{code|#ddd}}</div> | <div>{{code|#ddd}} (light grey)</div> | ||
<div>{{code|<nowiki>{{note|Message</nowiki>{{text|<nowiki>|green</nowiki>|#cfc}}<nowiki>}}</nowiki>}}</div> | <div>{{code|<nowiki>{{note|Message</nowiki>{{text|<nowiki>|green</nowiki>|#cfc}}<nowiki>}}</nowiki>}}</div> | ||
<div>{{note|Message|green}}</div> | <div>{{note|Message|green}}</div> | ||
| Line 64: | Line 63: | ||
<div>{{note|c=green}}</div> | <div>{{note|c=green}}</div> | ||
<div>'''''Optional:''''' text color as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color_value CSS color value].</div> | <div>'''''Optional:''''' text color as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color_value CSS color value].</div> | ||
<div>{{code|s}}</div> | |||
<div>state</div> | |||
<div>expanded</div> | |||
<div>{{code|<nowiki>{{note</nowiki>{{text|<nowiki>|s=c</nowiki>|#cfc}}<nowiki>}}</nowiki>}}</div> | |||
<div>{{note|s=c}}</div> | |||
<div>'''''Optional:''''' render the note text collapsed by default with the icon as the toggle.</div> | |||
</div> | </div> | ||
[[Category:NoteTemplates]] | [[Category:NoteTemplates]] | ||
Revision as of 15:14, 13 August 2025
Note
Pages that use Template:Note
- Gamehelparnak (transclusion) (← links)
- Gamehelpflipfreighters (transclusion) (← links)
- User:Sammy McSam/Hanabi page 2 (transclusion) (← links)
- Template:Note (transclusion) (← links)
- Template:Info (transclusion) (← links)
- Template:Warn (transclusion) (← links)
- Template:Error (transclusion) (← links)
- Template:Reminder (transclusion) (← links)
- Template:Broken lists (transclusion) (← links)
- Template:Checkmark (transclusion) (← links)
- Template:Crossmark (transclusion) (← links)
- Category:NoteTemplates (transclusion) (← links)
Parameters
Id
Name
Default
Example
Result
Description
i
icon
{{note|i={{SplendorDuelAbility|4}}}}
Note
Optional: icon e.g. as a {{gameIcon}}.
n
number
0
{{note|n=2}}
Note
Optional: icon preset as an integer 0-3.
1
text
Note
{{note|Message}}
Message
Required: content.
2
border color
#ddd (light grey)
{{note|Message|green}}
Message
Optional: border color as a CSS color value.
b
background
lighter shade of border color
{{note|b=lightgreen}}
Note
Optional: background as a CSS background value.
c
text color
#333 (dark grey)
{{note|c=green}}
Note
Optional: text color as a CSS color value.
s
state
expanded
{{note|s=c}}
Note
Optional: render the note text collapsed by default with the icon as the toggle.