|
|
| (5 intermediate revisions by the same user not shown) |
| 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 [[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}}}}
| | # (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) |
| ;Parameters:
| | #* custom - Custom [[File:Icon-information-22x22.png|Note]] - 1= or msg= is used if present |
| <div style="font-size: 0.925em;">
| | #* note - General [[File:Icon-information-22x22.png|Note]] - 1= or msg= is used if present |
| :;1=:Inline note's message string.
| | #* info - Information [[File:Icon-information-22x22.png|Information]] - 1= or msg= is used if present |
| :;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'').
| | #* warning - Warning [[File:Icon-warning-22x22.png|Warning]] - 1= or msg= is used if present |
| <div style="font-size: 0.925em;">
| | #* tip - Tip [[File:Icon-help-22x22.png|Tip]] - 1= or msg= is used if present, otherwise 'Unknown' is used. |
| ::;custom:"''<nowiki></nowiki>''", "''[[File:Icon-information-22x22.png|Note]]''" - Custom. ''1='' or ''msg='' is used if present.
| | #* 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 |
| ::;note:"''''Note:'''''", "''[[File:Icon-information-22x22.png|Note]]''" - General. ''1='' or ''msg='' is used if present.
| | #* 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. |
| ::;info:"'''''Info:''' ''", "''[[File:Icon-information-22x22.png|Information]]''" - Information. ''1='' or ''msg='' is used if present.
| | #* 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 |
| ::;warning:"'''''Warning:''' ''", "''[[File:Icon-warning-22x22.png|Warning]]''" - Warning. ''1='' or ''msg='' is used if present.
| | # Expanded Flag - for the inline note icon, where the value the icon title excluding the File: namespace. Overides the icon out from type= |
| ::;tip:"'''''Tip:'''''" + "''[[[Help:Editing/Tipoftheday|More]]]''", "''[[File:Icon-help-22x22.png|Tip]]''" - Tips. See Also. ''1='' or ''msg='' is used if present, otherwise "Unknown.''" is used.
| | # 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 |
| ::;disambig:"'''''Dismbiguation:''' If <nowiki>{{PAGENAME}}</nowiki> 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]]''" - Disambiguation. ''1='' and ''msg='' are not used.
| | :* msg - See 1= |
| ::;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.
| | :* type - See 2= |
| :::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.
| | :* icon - See 3= |
| </div>
| | :* content - See 4= |
| :;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='').
| | :* textcolor (optional) - Changes text color and line color |
| :;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).
| |
| :;msg=:(See ''1=''.) | |
| :;type=:(See ''2=''.) | |
| :;icon=:(See ''3=''.) | |
| :;content=:(See ''4=''.) | |
| :;textcolor=:''Optional'' Changes text color (and line color). | |
| </div>
| |
|
| |
|
| ;Example | | ;Example |
| | | * <nowiki>{{{{PAGENAME}}|This template is very versatile and can be used for practically any form of section notice.|Info}}</nowiki> |
| :;Code
| | *: {{{{PAGENAME}}|This template is very versatile and can be used for practically any form of section notice.|Info}} |
| <div style="font-size: 0.925em;">
| | * <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> |
| ::<code>{{{{PAGENAME}}</code>
| | *: {{{{PAGENAME}}|msg='''Policy:''' This section has the following policies rules explicitly applied to it.|type=custom|icon=Icon-policy-22x22.png|content= |
| :::<code>|This template is very versatile and can be used for practically any form of section notice.</code> | |
| :::<code>|Info</code>
| |
| ::<code>}}</code>
| |
| ::<code>{{{{PAGENAME}}</code>
| |
| :::<code>|msg=This exmaple shows off all the parameters and how they could be used.</code>
| |
| :::<code>|type=custom</code>
| |
| :::<code>|icon=Icon-policy-22x22.png</code>
| |
| :::<code>|content=
| |
| ::::<code>#It must be good.</code>
| |
| ::::<code>#It must be really good.</code>
| |
| ::<code>}}</code>
| |
| </div>
| |
| :;Result
| |
| <div style="margin-left: 4em; background-color: #2A2A2A; color: #eee;">
| |
| {{{{PAGENAME}}|This template is very versatile and can be used for practically any form of section notice.|Info}}
| |
| {{{{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 good. |
| #It must be really good. | | #It must be really good.}} |
| }} | |
| </div>
| |
|
| |
|
| | [[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|}}}}}} | | <onlyinclude><includeonly><div class="inote"><div><div style="position: relative; display: inline; z-index: 2;">{{#if:{{{3|{{{icon|}}}}}} |
| |[[File:{{{3|{{{icon|}}}}}}]] | | |[[File:{{{3|{{{icon|}}}}}}]] |
| Line 83: |
Line 55: |
| </div>}} | | </div>}} |
| </div></includeonly></onlyinclude> | | </div></includeonly></onlyinclude> |
| [[Category:Templates|Note, Inline]]
| |
| [[Category:Inline templates|Note, Inline]][[ru:Шаблон:И-примечание]]
| |