Template:I-note: Difference between revisions

511 bytes removed ,  4 August 2023
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
;Description
Generates an inline section note. For an explanation of what certain keywords mean, a key is provided [[wowwiki::User:Zeal/Sandbox/Templates/tkey|here]].
:Generates an inline section note. For an explanation of what certain keywords mean, a key is provided [[wowwiki::User:Zeal/Sandbox/Templates/tkey|here]].


;Syntax
;Syntax
:{{syntax|{{FULLPAGENAME}}|params={{param|string}}{{param|switch ("custom"/"note"/"info"/"warning"/"tip"/"link"/"disambig"/"speculation")}}{{param|title - namespace}}{{param|any}}{{param|msg|string}}{{param|type|switch ("custom"/"note"/"info"/"warning"/"tip"/"link"/"disambig"/"speculation")}}{{param|icon|title - namespace}}{{param|content|any}}{{param|icon|filename}}{{param|textcolor|CSS color}}}}
;Parameters:
<div style="font-size: 0.925em;">
:;1=:Inline note's message string.
:;1=:Inline note's message string.
:;2=:''Switch'' for the inline note's type, which controls the selection of icon and preset text. The following types are supported (defaults to ''note'').
:;2=:''Switch'' for the inline note's type, which controls the selection of icon and preset text. The following types are supported (defaults to ''note'').
<div style="font-size: 0.925em;">
::;custom:"''<nowiki></nowiki>''", "''[[File:Icon-information-22x22.png|Note]]''" - Custom. ''1='' or ''msg='' is used if present.
::;custom:"''<nowiki></nowiki>''", "''[[File:Icon-information-22x22.png|Note]]''" - Custom. ''1='' or ''msg='' is used if present.
::;note:"''''Note:'''''", "''[[File:Icon-information-22x22.png|Note]]''" - General. ''1='' or ''msg='' is used if present.
::;note:"''''Note:'''''", "''[[File:Icon-information-22x22.png|Note]]''" - General. ''1='' or ''msg='' is used if present.
Line 18: Line 12:
::;link:"'''''See Also:''' ''", "''[[File:Icon-externalarticle-22x22.png|See Also]]''" - See Also. ''1='' or ''msg='' is used if present, otherwise "''Please see the following links for more information.''" is used.
::;link:"'''''See Also:''' ''", "''[[File:Icon-externalarticle-22x22.png|See Also]]''" - See Also. ''1='' or ''msg='' is used if present, otherwise "''Please see the following links for more information.''" is used.
:::speculation:"'''''Speculation:''' This section contains fan speculation and should '''not''' be taken as representing official lore!''", "''[[File:Icon-question-22x22.png|Speculation]]''" - Speculation. ''1='' and ''msg='' are not used.
:::speculation:"'''''Speculation:''' This section contains fan speculation and should '''not''' be taken as representing official lore!''", "''[[File:Icon-question-22x22.png|Speculation]]''" - Speculation. ''1='' and ''msg='' are not used.
</div>
:;3=:''Expanded Flag'' for the inline note's icon where the value the icon's title excluding the "File:" namespace (overides the icon out from ''type='').
:;3=:''Expanded Flag'' for the inline note's icon where the value the icon's title excluding the "File:" namespace (overides the icon out from ''type='').
:;4=:''Expanded Flag'' for the inline note's content section where the value is a output representing information related to the note (eg. list of links or further explanation of the note).
:;4=:''Expanded Flag'' for the inline note's content section where the value is a output representing information related to the note (eg. list of links or further explanation of the note).
Line 26: Line 19:
:;content=:(See ''4=''.)
:;content=:(See ''4=''.)
:;textcolor=:''Optional'' Changes text color (and line color).
:;textcolor=:''Optional'' Changes text color (and line color).
</div>


;Example
;Example