Template:HelloWorld/doc: Difference between revisions
StringhamDB (talk | contribs) No edit summary |
StringhamDB (talk | contribs) No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Purpose == | == Purpose == | ||
The {{ | The {{tl|HelloWorld}} template has been created as an example for a RootsTech presentation. | ||
== Usage == | == Usage == | ||
Create a new HelloWorld by using the following code. | Create a new HelloWorld by using the following code. | ||
{{ | {| style="background: none repeat scroll 0% 0% transparent;" | ||
|- | |||
| <pre><includeonly>{{HelloWorld | |||
| text | |||
}}</includeonly> | |||
<noinclude> | |||
</pre> | |||
|} | |||
HelloWorld can be customized by using the main parameters. | HelloWorld can be customized by using the main parameters. | ||
== Parameters == | == Parameters == | ||
There is on parameter that can be used to create a custom HelloWorld. | There is on parameter that can be used to create a custom HelloWorld. | ||
;text: (optional) This is the text that you would want displayed in the HelloWord phrase. | ;text: (optional) This is the text that you would want displayed in the HelloWord phrase. | ||
=== Examples === | === Examples === | ||
{| cellspacing=" | {| cellspacing="0" border="1" | ||
| | !style="width:50%"|You type | ||
!style="width:50%"|You get | |||
| | |||
|- | |- | ||
| {{ | | | ||
| {{HelloWorld}} | <pre> | ||
{{HelloWorld}} | |||
</pre> | |||
| | |||
{{HelloWorld}} | |||
|- | |- | ||
| | | | ||
<pre> | |||
{{HelloWorld|John Henry}} | |||
| | </pre> | ||
| | |||
{{HelloWorld|John Henry}} |
Revision as of 12:54, 4 February 2011
Purpose[edit source]
The {{HelloWorld}} template has been created as an example for a RootsTech presentation.
Usage[edit source]
Create a new HelloWorld by using the following code.
<includeonly>{{HelloWorld | text }}</includeonly> <noinclude> |
HelloWorld can be customized by using the main parameters.
Parameters[edit source]
There is on parameter that can be used to create a custom HelloWorld.
- text
- (optional) This is the text that you would want displayed in the HelloWord phrase.
Examples[edit source]
You type | You get |
---|---|
{{HelloWorld}} |
Hello, {{{1}}}! Welcome to the world of wiki.
|
{{HelloWorld|John Henry}} |
Hello, John Henry! Welcome to the world of wiki.
|