Difference between revisions of "Template:Intro"

From Audacity Wiki
Jump to: navigation, search
(Testing second parameter)
(New and Improved - now with emphasis string!)
Line 3: Line 3:
  
  
{{intro|The '''''Intro'' Template''' Formats text as an introduction.}}
+
{{intro|The '''''Intro'' Template''' Formats text as an introduction.|}}
 +
 
 +
 
 +
 
 +
=== Purpose ===
  
  
''' Purpose'''
 
 
* This template formats the text in a standardised "introduction" format, on blue background.
 
* This template formats the text in a standardised "introduction" format, on blue background.
 +
* A second string of text can be added, that will be displayed below the first, and emphasised (e.g. when any particular point has to be made).
 +
 +
 +
=== Usage of ''Intro'' Template ===
 +
  
 +
'''General usage:'''
  
'''Usage of ''Intro'' Template'''
+
{{code|<nowiki>{{Intro|</nowiki> ''Text to be displayed standard'' <nowiki>|</nowiki> ''Text to be displayed emphasised'' <nowiki>}}</nowiki>}}
{{code|<nowiki>{{Intro|</nowiki>''Text to be displayed''<nowiki>}}</nowiki>}}
 
  
 
It should be added as the first item on the page in question.
 
It should be added as the first item on the page in question.
  
  
'''Example'''
+
'''Alternative'''
 +
 
 +
If no text to be emphaises is supplied, an "empty" string still has to be supplied as in thiss example:
 +
 
 +
{{code|<nowiki>{{Intro|</nowiki> ''Text to be displayed standard'' <nowiki>|}}</nowiki>}}
 +
 
 +
Note that the invocation of the template is closed by {{shortcut|&nbsp;<nowiki>|}}</nowiki>&nbsp;}}, if only closed by {{shortcut|&nbsp;<nowiki>}}</nowiki>&nbsp;}} the dummy parameter will be displayed.
 +
 
 +
 
 +
=== Example ===
 +
 
  
Using the tag produces the following "box" (with the supplied text replacing the <nowiki>{{{1}}}</nowiki> placeholder):
+
Using the tag produces the following "box" (with the supplied texts replacing the <nowiki>{{{1}}}</nowiki> placeholder):
 
</noinclude>
 
</noinclude>
 
{| style="background:#EEEEFF"  cellpadding="10px" width=90% align="center"
 
{| style="background:#EEEEFF"  cellpadding="10px" width=90% align="center"

Revision as of 19:25, 14 November 2007


Example.png

This page is a User "Work in Progress"

Please let the claimant work with it at least two weeks after this sticker was put up (or until this sticker has been removed, if earlier).

Suggestions may be made to the claimant by clicking on the page's "discussion" tab.


The Intro Template Formats text as an introduction.


Purpose

  • This template formats the text in a standardised "introduction" format, on blue background.
  • A second string of text can be added, that will be displayed below the first, and emphasised (e.g. when any particular point has to be made).


Usage of Intro Template

General usage:

{{Intro| Text to be displayed standard | Text to be displayed emphasised }}

It should be added as the first item on the page in question.


Alternative

If no text to be emphaises is supplied, an "empty" string still has to be supplied as in thiss example:

{{Intro| Text to be displayed standard |}}

Note that the invocation of the template is closed by   , if only closed by    the dummy parameter will be displayed.


Example

Using the tag produces the following "box" (with the supplied texts replacing the {{{1}}} placeholder):

{{{1}}}
{{{2}}}