Difference between revisions of "Template:IntroNoItal"

From Audacity Wiki
Jump to: navigation, search
(Add "introNoItal" template so that intro's without a concluding italicised paragraph are not padded un-necessarily)
 
(Tweak)
 
Line 1: Line 1:
<noinclude>__NOTOC__{{introNoItal|The '''''introNoItal''''' Template formats text inside a standard introductory blue header just like this one, but unlike [[:Template:Intro]] or [[:Template:Introrel]] it does not support a concluding italicised paragraph.<p>This template will be preferred if no italicised paragraph is required because it will not add unwanted padding at the bottom of the div.</p>}}
+
<noinclude>__NOTOC__{{IntroNoItal|The '''''IntroNoItal''''' Template formats text inside a standard introductory blue header just like this one, but unlike [[:Template:Intro]] or [[:Template:Introrel]] it does not support a concluding italicised paragraph.<p>This template will be preferred if no italicised paragraph is required because it will not add unwanted padding at the bottom of the div.</p>}}
  
  
'''Usage of ''introNoItal'' Template'''
+
'''Usage of ''IntroNoItal'' Template'''
  
 
'''General usage:'''
 
'''General usage:'''
  
{{code|<nowiki>{{introNoItal|</nowiki>Text to be displayed without italics.<nowiki>}}</nowiki>}}
+
{{code|<nowiki>{{IntroNoItal|</nowiki>Text to be displayed without italics.<nowiki>}}</nowiki>}}
 
{{note|An unitalicized paragraph may still be included within the div by wrapping it inside <nowiki><p></p></nowiki>.}}
 
{{note|An unitalicized paragraph may still be included within the div by wrapping it inside <nowiki><p></p></nowiki>.}}
  
Line 14: Line 14:
 
As with all Templates, if text or links contain the equals sign "=" or other templates are used inside the template, add '''1=''' after the pipe thus
 
As with all Templates, if text or links contain the equals sign "=" or other templates are used inside the template, add '''1=''' after the pipe thus
  
{{code|1=<nowiki>{{introNoItal|1=</nowiki> It has been found that 2 + 2 = 4.}}
+
{{code|1=<nowiki>{{IntroNoItal|1=</nowiki> It has been found that 2 + 2 = 4.}}
  
 
If other essential symbols in the text cause the text to display incorrectly, try enclosing the text inside {{shortcut|<nowiki> <nowiki> </nowiki> </nowiki>}} tags.  
 
If other essential symbols in the text cause the text to display incorrectly, try enclosing the text inside {{shortcut|<nowiki> <nowiki> </nowiki> </nowiki>}} tags.  
Line 26: Line 26:
 
<div style="margin:24px">
 
<div style="margin:24px">
 
{| style="background:#DFEAF9;border:1px solid black; padding-left:12px; padding-right:12px" width="100%" align="center"
 
{| style="background:#DFEAF9;border:1px solid black; padding-left:12px; padding-right:12px" width="100%" align="center"
|-
+
|-  
| {{{1}}}
+
|align="left" valign="top"|{{{1}}}
 
|}
 
|}
 
</div>
 
</div>

Latest revision as of 05:18, 16 January 2013

The IntroNoItal Template formats text inside a standard introductory blue header just like this one, but unlike Template:Intro or Template:Introrel it does not support a concluding italicised paragraph.

This template will be preferred if no italicised paragraph is required because it will not add unwanted padding at the bottom of the div.


Usage of IntroNoItal Template

General usage:

{{IntroNoItal|Text to be displayed without italics.}}
An unitalicized paragraph may still be included within the div by wrapping it inside <p></p>.


Parsing of symbols and nested templates

As with all Templates, if text or links contain the equals sign "=" or other templates are used inside the template, add 1= after the pipe thus

{{IntroNoItal|1= It has been found that 2 + 2 = 4.

If other essential symbols in the text cause the text to display incorrectly, try enclosing the text inside </nowiki> tags.


Ignore the following, it's only a representation of formatting and a parameter dummy.

{{{1}}}