Approved version. Approved on: 11:41, 8 October 2021
Difference between revisions of "Template:Info"
[quality revision] | [quality revision] |
(Merge articles)
|
(Merge articles)
|
1 Usage[edit]
The Info template is used to draw attention to a particularly important point.
It puts a message box with a "dark blue info" icon in the page.
Usage: {{Info | <message>}}
Where <message> is the optional info message. If this parameter is not set, the default message is "Info".
2 Basic examples[edit]
3 More examples[edit]
You type | You get | ||||
---|---|---|---|---|---|
Info with a long info message {{Info | The info message is a long sentence. Lorem ipsum: isdem diebus Apollinaris Domitiani gener, paulo ante agens palatii Caesaris curam, ad Mesopotamiam missus a socero per militares numeros immodice scrutabatur, an quaedam altiora meditantis iam Galli.}} |
|
||||
Check that the spaces before and after the info message BEFORE{{Info | Check spaces}}AFTER<br> BEFORE {{Info | Check spaces}} AFTER |
BEFORE
BEFORE
AFTER |
4 Maintenance[edit]
This template is a template common to all ST wikis.
Modifications must be done into the WikiModel. They must be reviewed by all ST wikis maintainers.
When approved, the template can be pushed/merged towards all ST wikis.
5 Code[edit]
40px
![]() |
Info |
<noinclude> ==Usage== The [[Template:Info|Info]] template is used '''to draw attention to a particularly important point'''. It puts a message box with a "dark blue info" icon in the page. Usage: <nowiki>{{</nowiki>Info | {{HighlightParam|<message>}}}} Where {{HighlightParam|<message>}} is the '''optional''' info message. If this parameter is not set, the default message is "Info". ==Basic examples== {| class="st-table" ! You type !! You get |- | Info without specific info message<pre style="white-space: pre-wrap;"> {{Info}}</pre> | {{Info}} |- | Info with specific Info message<pre style="white-space: pre-wrap;"> {{Info | Note that the below actions are optional but recommended}}</pre> | {{Info | Note that the below actions are optional but recommended}} |} ==More examples== {| class="st-table" ! You type !! You get |- | Info with a long info message<pre style="white-space: pre-wrap;"> {{Info | The info message is a long sentence. Lorem ipsum: isdem diebus Apollinaris Domitiani gener, paulo ante agens palatii Caesaris curam, ad Mesopotamiam missus a socero per militares numeros immodice scrutabatur, an quaedam altiora meditantis iam Galli.}}</pre> | {{Info | The info message is a long sentence. Lorem ipsum: isdem diebus Apollinaris Domitiani gener, paulo ante agens palatii Caesaris curam, ad Mesopotamiam missus a socero per militares numeros immodice scrutabatur, an quaedam altiora meditantis iam Galli.}} |- | Check that the spaces before and after the info message<pre style="white-space: pre-wrap;"> BEFORE{{Info | Check spaces}}AFTER<br> BEFORE {{Info | Check spaces}} AFTER</pre> | BEFORE{{Info | Check spaces}}AFTER<br> BEFORE {{Info | Check spaces}} AFTER |} ==Maintenance== This template is a template common to all ST wikis. <br> Modifications must be done into the [[stwikimodel:Template:Info|WikiModel]]. They must be reviewed by all ST wikis maintainers.<br> When approved, the template can be pushed/merged towards all ST wikis. ==Code==</noinclude>{| class="st-table" style="border-color: {{STDarkBlue}};"style: hidden" width="100%"| style="border-right-width: 0px;" | [[File:Info.png|40px|link=]] | background: {{STDarkBlue}}; color: #FFFFFF" | [[File:Info_white.png|25px|link=]] <span style="font-weight: bold;"> Information</span> |- | style="border-left-width: 0px;" | {{{1| border-top-width: 0px; background: {{STDarkBlue | tint=25}}" | {{{1| Info}}} |}
Line 58: | Line 58: | ||
==Code== |
==Code== |
||
− | </noinclude>{| class="st-table" style="border- |
+ | </noinclude>{| class="st-table" style="border-style: hidden" width="100%" |
− | | style="border-right-width: 0px;" | [[File: |
+ | | style="border-right-width: 0px; background: {{STDarkBlue}}; color: #FFFFFF" | [[File:Info_white.png|25px|link=]] <span style="font-weight: bold;"> Information</span>
|
− | | style="border-left-width: 0px;" | {{{1|Info}}} |
+ | |- |
+ | | style="border-left-width: 0px; border-top-width: 0px; background: {{STDarkBlue | tint=25}}" | {{{1| Info}}} |
||
|} |
|} |