Template:I-note: Difference between revisions
Jump to navigation
Jump to search
(upgraded qif template) |
No edit summary |
||
(14 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
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 | |||
# (string) - Inline note's message string | |||
# (switch) - for the inline note's type, which controls the selection of icon and preset text. The following types are supported (defaults to note) | |||
#* custom - Custom [[File:Icon-information-22x22.png|Note]] - 1= or msg= is used if present | |||
#* note - General [[File:Icon-information-22x22.png|Note]] - 1= or msg= is used if present | |||
#* info - Information [[File:Icon-information-22x22.png|Information]] - 1= or msg= is used if present | |||
#* warning - Warning [[File:Icon-warning-22x22.png|Warning]] - 1= or msg= is used if present | |||
#* tip - Tip [[File:Icon-help-22x22.png|Tip]] - 1= or msg= is used if present, otherwise 'Unknown' is used. | |||
#* disambig - Dismbiguation ''If PAGENAME is not the page you were looking for please follow one of the disambiguation links below or [[Special:Search|search]] to find it. [[File:Icon-disambig-22x22.png|Disambiguation]]'' - 1= and msg= are not used | |||
#* link - ''See Also [[File:Icon-externalarticle-22x22.png|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]]'' - 1= and msg= are not used | |||
# Expanded Flag - for the inline note icon, where the value the icon title excluding the File: namespace. Overides the icon out from type= | |||
# Expanded Flag - for the inline note content section where the value is output representing information related to the note. A list of links or further explanation of the note | |||
:* msg - See 1= | |||
:* type - See 2= | |||
:* icon - See 3= | |||
:* content - See 4= | |||
:* textcolor (optional) - Changes text color and line color | |||
;Example | |||
* <nowiki>{{{{PAGENAME}}|This template is very versatile and can be used for practically any form of section notice.|Info}}</nowiki> | |||
*: {{{{PAGENAME}}|This template is very versatile and can be used for practically any form of section notice.|Info}} | |||
* <nowiki>{{{{PAGENAME}}|msg=This exmaple shows off all the parameters and how they could be used.|type=custom|icon=Icon-policy-22x22.png|content=</nowiki><br/><nowiki>#It must be good.</nowiki><br/><nowiki>#It must be really good.}}</nowiki> | |||
*: {{{{PAGENAME}}|msg='''Policy:''' This section has the following policies rules explicitly applied to it.|type=custom|icon=Icon-policy-22x22.png|content= | |||
#It must be good. | |||
#It must be really good.}} | |||
[[Category:Templates|Note, Inline]][[Category:Inline templates|Note, Inline]] | |||
---- | |||
<onlyinclude><includeonly><div class="inote"><div><div style="position: relative; display: inline; z-index: 2;">{{#if:{{{3|{{{icon|}}}}}} | |||
|[[File:{{{3|{{{icon|}}}}}}]] | |||
|{{#switch:{{lc:{{{2|{{{type|}}}}}}}} | |||
|info=[[File:Icon-information-22x22.png|Information]] | |||
|warning=[[File:Icon-warning-22x22.png|Warning]] | |||
|tip=[[File:Icon-help-22x22.png|Tip]] | |||
|disambig=[[File:Icon-disambig-22x22.png|Dismbiguation]] | |||
|link=[[File:Icon-externalarticle-22x22.png|See Also]] | |||
|speculation=[[File:Icon-question-22x22.png|Speculation]] | |||
|#default=[[File:Icon-information-22x22.png|Note]] | |||
}} | |||
}}</div><span class="greybar" style="{{#if:{{{textcolor|}}}|color:{{{textcolor}}}; }}font-size: 0.85em; padding-right: 0.2em; padding-left: 8px; margin-left: -6px;">{{#switch:{{lc:{{{2|{{{type|}}}}}}}} | |||
|info='''Note:''' {{{1|{{{msg|Unknown}}}}}} | |||
|warning='''Warning:''' {{{1|{{{msg|Unknown}}}}}} | |||
|tip='''Tip:''' {{{1|{{{msg|Unknown}}}}}} [[[Help:Editing/Tipoftheday|More]]] | |||
|disambig='''Dismbiguation:''' If {{PAGENAME}} is not the page you were looking for please follow one of the disambiguation links below or [[Special:Search|search]] to find it. | |||
|link='''See Also:''' {{{1|{{{msg|Please see the following links for more information.}}}}}} | |||
|speculation='''Speculation:''' This section contains fan speculation and should '''not''' be taken as representing official lore! | |||
|custom={{{1|{{{msg|Unknown}}}}}} | |||
|#default='''Note:''' {{{1|{{{msg|Unknown}}}}}} | |||
}}</span></div>{{#if:{{{4|{{{content|}}}}}} | |||
|<div style="padding-left: 2em;"> | |||
{{{4|{{{content}}}}}} | |||
</div>}} | |||
</div></includeonly></onlyinclude> |
Latest revision as of 22:40, 4 August 2023
Generates an inline section note. For an explanation of what certain keywords mean, a key is provided here.
- Syntax
- (string) - Inline note's message string
- (switch) - for the inline note's type, which controls the selection of icon and preset text. The following types are supported (defaults to note)
- custom - Custom - 1= or msg= is used if present
- note - General - 1= or msg= is used if present
- info - Information - 1= or msg= is used if present
- warning - Warning - 1= or msg= is used if present
- tip - Tip - 1= or msg= is used if present, otherwise 'Unknown' is used.
- disambig - Dismbiguation If PAGENAME is not the page you were looking for please follow one of the disambiguation links below or search to find it. - 1= and msg= are not used
- link - 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! - 1= and msg= are not used
- Expanded Flag - for the inline note icon, where the value the icon title excluding the File: namespace. Overides the icon out from type=
- Expanded Flag - for the inline note content section where the value is output representing information related to the note. A list of links or further explanation of the note
- msg - See 1=
- type - See 2=
- icon - See 3=
- content - See 4=
- textcolor (optional) - Changes text color and line color
- Example
- {{{{PAGENAME}}|This template is very versatile and can be used for practically any form of section notice.|Info}}
- {{{{PAGENAME}}|msg=This exmaple shows off all the parameters and how they could be used.|type=custom|icon=Icon-policy-22x22.png|content=
#It must be good.
#It must be really good.}}
- It must be good.
- It must be really good.