Template:HelloWorld/doc: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
== Purpose  ==
== Purpose  ==
The {{tl|HelloWorld}} template has been created as an example for a RootsTech presentation.
The {{tlx|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;"
{{tlx|HelloWorld|text}}
|-
| <pre>&lt;includeonly&gt;{{HelloWorld
&#124; text
}}&lt;/includeonly&gt;
&lt;noinclude&gt;
</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="0" border="1"
{| cellspacing="1" cellpadding="1" border="1"
!style="width:50%"|You type
|-
!style="width:50%"|You get
| Entered
| Produces
| Notes
|-
|-
|
| {{tlx|HelloWorld}}
<pre>
| {{HelloWorld}}
{{HelloWorld}}  
| Displays the actual variable used in the wikitext.
</pre>
|
{{HelloWorld}}
|-
|-
|
| {{tlx|HelloWorld | Gus}}
<pre>
| {{HelloWorld | Gus}}
{{HelloWorld|John Henry}}  
| Replaces wikitext variable with passed-in string.
</pre>
|}
|
[[Category:Templates|{{PAGENAME}}]]
{{HelloWorld|John Henry}}
[[Category:Help templates|{{PAGENAME}}]]
335

edits