Template:TemplateTest1/doc: Difference between revisions

m
added color highlighting
m (fix)
m (added color highlighting)
Line 8: Line 8:
If a new link is to be added to the "lists" in the cells on the right side, be sure to copy/paste from an existing link.  This should include the "span" coding to ensure that the new link is controlled properly.<br><br>   
If a new link is to be added to the "lists" in the cells on the right side, be sure to copy/paste from an existing link.  This should include the "span" coding to ensure that the new link is controlled properly.<br><br>   
For example:<br>
For example:<br>
'''<nowiki>{{</nowiki><nowiki>·</nowiki><nowiki>}}</nowiki><nowiki> [[</nowiki>''' ''Your Genealogical Quest'' '''<nowiki>|</nowiki><nowiki>&lt;</nowiki> span style="font-size:{{{20}}}px; font-family:{{{21}}};">''' ''Your Genealogical Quest'' '''<nowiki>&lt;</nowiki> /span><nowiki>]]</nowiki>'''  
'''<nowiki>{{</nowiki><nowiki>·</nowiki><nowiki>}}</nowiki><nowiki> [[</nowiki>''' ''Your Genealogical Quest'' '''<nowiki>|</nowiki><nowiki>&lt;</nowiki> span style="color:{{{20}}}; font-size:{{{18}}}px; font-family:{{{19}}};">''' ''Your Genealogical Quest'' '''<nowiki>&lt;</nowiki> /span><nowiki>]]</nowiki>'''  


===Parameters===
===Parameters===


This is an '''''experimental copy''''' of the <nowiki>{{Principles}}</nowiki> template but it can be adjusted (using various input parameter) to change the Navbox appearance and coloration to conform to a desired color scheme on a page of interest.  Therefore there are numerous parameters involved (19 to be exact but most can be ignored).  Unused markers (bars "<nowiki>|</nowiki>") can be omitted at the end but must be added toward the beginning to mark the position of the last entry.<br>
This is an '''''experimental copy''''' of the <nowiki>{{Principles}}</nowiki> template but it can be adjusted (using various input parameter) to change the Navbox appearance and coloration to conform to a desired color scheme on a page of interest.  Therefore there are numerous parameters involved (20 to be exact but most can be ignored).  Unused markers (bars "<nowiki>|</nowiki>") can be omitted at the end but must be added toward the beginning to mark the position of the last entry.<br>
<br>
<br>
This template is called using the format: '''<nowiki>{{TemplateTest1| | | | | | | | | | | | | | | | | | | }}</nowiki>'''
This template is called using the format: '''<nowiki>{{TemplateTest1| | | | | | | | | | | | | | | | | | | | }}</nowiki>'''
<br><br>
<br><br>
'''NOTE:''' To enter colors use either: HTML or Hex code such as '''#ff0000''', text wording such as '''red''', or RGB (Red Green Blue) coding such as '''rgb(255,0,0)'''.<br><br>
'''NOTE:''' To enter colors use either: HTML or Hex code such as '''#ff0000''', text wording such as '''red''', or RGB (Red Green Blue) coding such as '''rgb(255,0,0)'''.<br><br>
Line 20: Line 20:
'''NOTE:''' To add pixel sizes for border thickness or text size, just enter a number (do not add '''px''' at the end).<br><br>
'''NOTE:''' To add pixel sizes for border thickness or text size, just enter a number (do not add '''px''' at the end).<br><br>
<!----------------->
<!----------------->
1.  enter '''autocollapse''' to "hide" the Navbox (the default is "show")<br>
<font color="maroon">'''1.'''</font> enter '''autocollapse''' to "hide" the Navbox (the default is "show")<br>
2.  enter a '''color''' for the "title" and "group" text ("group" includes the boxes on the left side)<br>
<font color="maroon">'''2.'''</font> enter a '''color''' for the "title" and "group" text ("group" includes the boxes on the left side)<br>
3.  enter a number for the '''cell padding''' to be used in all cells<br><br>
<font color="maroon">'''3.'''</font> enter a number for the '''cell padding''' to be used in all cells<br><br>
<!----------------->
<!----------------->
Some of the groupings below are in sets of four as related to the following areas: ''title, lists, groups,'' and ''body,''  respectively.<br><br>
Some of the groupings below are in sets of four as related to the following areas: ''title, lists, groups,'' and ''body,''  respectively.<br><br>
4.  "title" background '''color''' ("tile" is the top full length cell)<br>
<font color="maroon">'''4.'''</font> "title" background '''color''' ("tile" is the top full length cell)<br>
5.  "list" background '''color''' ("list" includes the cells on the right side)<br>
<font color="maroon">'''5.'''</font> "list" background '''color''' ("list" includes the cells on the right side)<br>
6.  "groups" background '''color''' ("groups" includes the cells on the left side)<br>
<font color="maroon">'''6.'''</font> "groups" background '''color''' ("groups" includes the cells on the left side)<br>
7.  "body" background '''color''' ( "body" is the space between cells )<br><br>
<font color="maroon">'''7.'''</font> "body" background '''color''' ( "body" is the space between cells )<br><br>
<!----------------->
<!----------------->
The parameters below will not be needed in most circumstances. The lines 8 - 11 will not show color unless their corresponding borders (lines 12 - 15) are set to at least a value of 1. <br><br>
The parameters below will not be needed in most circumstances. The lines 8 - 11 will not show color unless their corresponding borders (lines 12 - 15) are set to at least a value of 1. <br><br>
8.  "title" border''' color''' ("tile" is the top full length cell)<br>
<font color="maroon">'''8.'''</font> "title" border''' color''' ("tile" is the top full length cell)<br>
9. "list" line '''color''' ("list" includes the cells on the right side)<br>
<font color="maroon">'''9.'''</font> "list" line '''color''' ("list" includes the cells on the right side)<br>
10. "groups" line '''color''' ("groups" includes the cells on the left side)<br>
<font color="maroon">'''10.'''</font> "groups" line '''color''' ("groups" includes the cells on the left side)<br>
11. "body" line '''color''' ( "body" is the space between cells and the outside border)<br><br>
<font color="maroon">'''11.'''</font> "body" line '''color''' ( "body" is the space between cells and the outside border)<br><br>
<!----------------->
<!----------------->
12. "title" border '''width''' ("tile" is the top full length cell)<br>
<font color="maroon">'''12.'''</font> "title" border '''width''' ("tile" is the top full length cell)<br>
13. "list" line '''width''' ("list" includes all the cells on the right side)<br>
<font color="maroon">'''13.'''</font> "list" line '''width''' ("list" includes all the cells on the right side)<br>
14. "groups" line '''width''' ("groups" includes all the cells on the left side)<br>
<font color="maroon">'''14.'''</font> "groups" line '''width''' ("groups" includes all the cells on the left side)<br>
15. "body" line '''width''' ( "body" is the space between cells )<br><br>
<font color="maroon">'''15.'''</font> "body" line '''width''' ( "body" is the space between cells )<br><br>
<!----------------->
<!----------------->
16.."title" text '''size'''<br>
<font color="maroon">'''16.'''</font> "title" text '''size'''<br>
17. "groups" text '''size'''<br>
<font color="maroon">'''17.'''</font> "groups" text '''size'''<br>
18. "list" text '''size'''<br>
<font color="maroon">'''18.'''</font> "list" text '''size'''<br>


'''''Example of text sizes''''' <br><div style="position:relative">
'''''Example of text sizes''''' <br><div style="position:relative">
<div style="position:absolute; left:0px; font-size:10px;">10 px </div>
<div style="position:absolute; left:20px; font-size:10px;">10 px </div>
<div style="position:absolute; left:50px; font-size:11px;">11px </div>
<div style="position:absolute; left:70px; font-size:11px;">11px </div>
<div style="position:absolute; left:100px; font-size:12px;">12px </div>
<div style="position:absolute; left:120px; font-size:12px;">12px </div>
<div style="position:absolute; left:150px; font-size:13px;">13px''(default)''</div>
<div style="position:absolute; left:170px; font-size:13px;">13px''(default)''</div>
<div style="position:absolute; left:255px; font-size:14px;">14px  </div>
<div style="position:absolute; left:275px; font-size:14px;">14px  </div>
<div style="position:absolute; left:310px; font-size:15px;">15px </div>
<div style="position:absolute; left:330px; font-size:15px;">15px </div>
<div style="position:absolute; left:370px; font-size:16px;">16px </div>
<div style="position:absolute; left:390px; font-size:16px;">16px </div>
<div style="position:absolute; left:430px; font-size:18px;">18px </div>
<div style="position:absolute; left:450px; font-size:18px;">18px </div>
<div style="position:absolute; left:490px; font-size:20px;">20px </div>
<div style="position:absolute; left:510px; font-size:20px;">20px </div>
</div><br><br>
</div><br><br>
<!----------------->
<!----------------->
19. font '''style''' (for the text in the "title" and "groups" cells; examples below)<br>  
<font color="maroon">'''19.'''</font> font '''style''' (for the text in the "title" and "groups" cells; see examples below)<br>  
'''Default''' text<div style="font-family:proximanova;"> '''proximanova''' text </div>
:'''Default''' text<div style="font-family:proximanova;"> '''proximanova''' text </div>
<div style="font-family:museo;"> '''museo''' text </div>
:<div style="font-family:museo;"> '''museo''' text </div><br>
 
<font color="maroon">'''20.'''</font>  "lists" text '''color''' (the default is "link" blue which should be retained in most instances to provide uniformity for the reader)


===Also See===
===Also See===
[http://en.m.wikipedia.org/wiki/Template:Navbox Wikipedia Navbox article] for an extensive listing of parameter information.
For technical reference the [http://en.m.wikipedia.org/wiki/Template:Navbox Wikipedia Navbox article] for an extensive listing of parameter information.


[[Category:Templates]]
[[Category:Templates]]
[[Category:Navigational_templates]]
[[Category:Navigational_templates]]
3,970

edits