Changes

no edit summary
Line 1: Line 1:  
Using templates can be easy or hard, depending on the template.  But normally they are easy.
 
Using templates can be easy or hard, depending on the template.  But normally they are easy.
   −
<div style="background-color:#dff; border:solid 1px blue; padding:5px; float:right; width:20em; margin-left:5px"><small><small>{{mainpageright}}</small></small></div>
+
<div style="background-color:#dff; border:solid 1px blue; padding:5px; float:right; width:20em; margin-left:5px"><small><small><nowiki>{{mainpageright}}</nowiki></small></small></div>
 
__TOC__
 
__TOC__
   Line 19: Line 19:     
For example, the ''Welcome'' template that someone might have put on your user talk page has two parameters.  One is the name of the user, and the other is the name of the person placing the welcome message.  See the example below welcoming The Joker, placed by Batman:
 
For example, the ''Welcome'' template that someone might have put on your user talk page has two parameters.  One is the name of the user, and the other is the name of the person placing the welcome message.  See the example below welcoming The Joker, placed by Batman:
−
<div style="width:65%"><small><small>{{welcome|Joker|sig=from Batman}}</small></small></div>
+
<nowiki><div style="width:65%"><small><small>{{welcome|Joker|sig=from Batman}}</small></small></div></nowiki>
    
(This was included on this page by typing {{tt|<nowiki>{{welcome|Joker|sig=from Batman}}</nowiki>}}.<ref name="shrunk" />)
 
(This was included on this page by typing {{tt|<nowiki>{{welcome|Joker|sig=from Batman}}</nowiki>}}.<ref name="shrunk" />)
Line 42: Line 42:  
You can assume that if no default is shown for a parameter that is not required, the result will be blank (i.e. in this case, the welcome message would not show who it was from).
 
You can assume that if no default is shown for a parameter that is not required, the result will be blank (i.e. in this case, the welcome message would not show who it was from).
   −
To supply a value to a '''named parameters''', put the parameter name followed by an equals sign (=) followed by whatever you want that to be.  In the example above, this is {{tt|<nowiki>sig=~~~~</nowiki>}}.
+
To supply a value to a '''named parameter''', put the parameter name followed by an equals sign (=) followed by whatever you want that to be.  In the example above, this is {{tt|<nowiki>sig=~~~~</nowiki>}}.
    
Parameters shown with numbers are the '''un-named parameters'''.  You ''can'' treat them as named parameters, by typing {{tt|1=1=''your text''}}, but this is not necessary, except in the case that you want your text to include an equals sign (=).  Normally you just supply the value, such as {{tt|YourUserName}}.
 
Parameters shown with numbers are the '''un-named parameters'''.  You ''can'' treat them as named parameters, by typing {{tt|1=1=''your text''}}, but this is not necessary, except in the case that you want your text to include an equals sign (=).  Normally you just supply the value, such as {{tt|YourUserName}}.
nsTeam1RO, nsTeam1RW, nsTeam1_talkRO, nsTeam1_talkRW
26,487

edits