Template:I-note: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 14: Line 14:
# 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 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
# 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=
:* msg - See 1=
:type - See 2=
:* type - See 2=
:icon - See 3=
:* icon - See 3=
:content - See 4=
:* content - See 4=
:textcolor (optional) - Changes text color and line color
:* textcolor (optional) - Changes text color and line color


;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 75: Line 55:
</div>}}
</div>}}
</div></includeonly></onlyinclude>
</div></includeonly></onlyinclude>
[[Category:Templates|Note, Inline]]
[[Category:Inline templates|Note, Inline]][[ru:Шаблон:И-примечание]]

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
  1. (string) - 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)
    • custom - Custom Note - 1= or msg= is used if present
    • note - General Note - 1= or msg= is used if present
    • info - Information Information - 1= or msg= is used if present
    • warning - Warning Warning - 1= or msg= is used if present
    • tip - 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. Disambiguation - 1= and msg= are not used
    • link - 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! Speculation - 1= and msg= are not used
  3. Expanded Flag - for the inline note icon, where the value the icon title excluding the File: namespace. Overides the icon out from type=
  4. 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}}
    Information
    Note: This template is very versatile and can be used for practically any form of section notice.
  • {{{{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.}}
    Icon-policy-22x22.png
    Policy: This section has the following policies rules explicitly applied to it.
  1. It must be good.
  2. It must be really good.