Template:TemplateTest1/doc: Difference between revisions

m
Text replacement - " " to " "
m (create new page)
 
m (Text replacement - " " to " ")
 
(19 intermediate revisions by one other user not shown)
Line 1: Line 1:
===Parameters===
=== Usage ===


This is a copy of the <nowiki>{{Principles}}</nowiki> template which can be adjusted (using various input parameter) to change the Navbox appearance and coloration. Therefore there are numerous parameters involved (eighteen to be exact).
This template is designed for use with the [[Principles of Family History Research]] set of Wiki pages and should be located at the end of these article (but above the coding for the categories). It may also be placed on other articles or pages that refer to these articles.


<nowiki>{{TemplateTest1| | | | | | | | | | | | | | | | | | }}</nowiki>
=== A note on the "revisions" to this template ===


To enter colors use either: HTML or Hex code ( '''#ff0000''' ), text wording ( '''red''' ), or RGB coding ( '''rgb(255,0,0)''' }
It is NOT necessary to use ANY of the input parameters that have been installed (added) into this template.  If no parameters are used the resulting transclusion will be as it always has been. It will appear as it has in the past, with the same colors and pixel sizes as determined by the original coding. These modifications were only added to enhance the templates use in specific situations.


To add pixel sizes for border thickness or text size, just enter a number (do not add '''px'' at the end)
=== Adding links to the "lists" ===


1.  enter '''autocollapse'' to "hide" the Navbox (the default is "show")
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>  
2enter a '''color''' for the "title" and "group" text ("group" includes the boxes on the left side)
For example:<br>
'''<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>'''


3.  "title" background '''color''' ("tile" is the top full length cell)
=== Category suppression ===
4.  "base" background '''color'''  ("base" is the line around the cells on the right side)
5.  "list" background '''color''' ("list" includes the cells on the right side)
6.  "groups" background '''color''' ("groups" includes the cells on the left side)
7.  "body" background '''color''' ( "body" is the space between cells )


8.   
When using the named parameter ( '''|category= |''' ) to suppress the built-in categories from being placed on the page being edited, there is no need for concern about exactly where it is placed in the row of un-named parametersIt appears that the named parameter will be ignored and will not affect the count position of the input parameters that are listed belowFor example, as show here the "category = nothing" parameter does not become parameter #6 but is ignored so the next parameter is correctly identified in position #6. To eliminate confusion it is best to put it either first or last but again, it is not critical.
9.   
10.
11.
12.
13.  


14.  
<center>'''|1|2|3|4|5|category=|6|7|8|9|'''</center>
15.  
 
16.  
=== Parameters ===
17.
 
18.
This is an '''''experimental copy''''' of the <nowiki>{{Principles}}</nowiki> template but it can be adjusted using various input parameters to change the Navbox appearance (coloration and pixel sizes) to conform to a desired color scheme on a specific page of interest.  Therefore there are numerous parameters involved (20 to be exact but most or ALL can be ignored).  Unused input parameter 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>
This template is called using the standard '''<nowiki>{{Principles}}</nowiki>''' template format.  The example below contains all 20 input parameter positions and can be copied onto the page as a starting point.  If the parameters are left blank (as below) or are omited (as above) then the conventional '''"Principles"''' template will appear. <br><br><center> '''<nowiki>{{Principles| | | | | | | | | | | | | | | | | | | | }}</nowiki>'''</center>
<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 add pixel sizes for border thickness or text size, just enter a number (do not add '''px''' at the end).<br><br>
<!----------------->
<font color="maroon">'''1.'''</font>  enter '''autocollapse''' to "hide" the Navbox (the default is "show")<br>
<font color="maroon">'''2.'''</font>  enter a '''color''' for the "title" and "group" text ("group" includes the boxes on the left side)<br>
<font color="maroon">'''3.'''</font>  enter a number for the '''cell padding''' to be used in all cells<br><br>
<!----------------->
Some of the parameters below are in sets of four as related to the following areas:<br>
''' "'title" '''(4,8,12,16),''' "groups" '''(5,9,13,17),''' "lists" '''(6,10,14,18), and ''' "body" '''(7,11,15),  respectively.<br><br>
<font color="maroon">'''4.'''</font>  "title" background '''color''' ("tile" is the top full length cell)<br>
<font color="maroon">'''5.'''</font>  "groups" background '''color''' ("groups" includes the cells on the left side)<br>
<font color="maroon">'''6.'''</font>  "lists" background '''color''' ("list" includes the cells on the right side)<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>
<font color="maroon">'''8.'''</font>  "title" border '''color''' ("tile" is the top full length cell)<br>
<font color="maroon">'''9.'''</font> "groups" border '''color''' ("groups" includes the cells on the left side)<br>
<font color="maroon">'''10.'''</font> "lists" border '''color''' ("list" includes the cells on the right side)<br>
<font color="maroon">'''11.'''</font> "body" line '''color''' (the "body" '''line''' is the outside table border)<br><br>
<!----------------->
<font color="maroon">'''12.'''</font> "title" border '''width''' ("tile" is the top full length cell)<br>
<font color="maroon">'''13.'''</font> "groups" border '''width''' ("groups" includes all the cells on the left side)<br>
<font color="maroon">'''14.'''</font> "lists" border '''width''' ("list" includes all the cells on the right side)<br>
<font color="maroon">'''15.'''</font> "body" line '''width''' (the "body" '''line''' is the outside table border)<br><br>
<!----------------->
<font color="maroon">'''16.'''</font> "title" text '''size'''<br>
<font color="maroon">'''17.'''</font> "groups" text '''size'''<br>
<font color="maroon">'''18.'''</font> "lists" text '''size'''<br>
 
'''''Example of text sizes''''' <br><div style="position:relative">
<div style="position:absolute; left:20px; font-size:10px;">10 px </div>
<div style="position:absolute; left:70px; font-size:11px;">11px </div>
<div style="position:absolute; left:120px; font-size:12px;">12px </div>
<div style="position:absolute; left:170px; font-size:13px;">13px''(default)''</div>
<div style="position:absolute; left:275px; font-size:14px;">14px  </div>
<div style="position:absolute; left:330px; font-size:15px;">15px </div>
<div style="position:absolute; left:390px; font-size:16px;">16px </div>
<div style="position:absolute; left:450px; font-size:18px;">18px </div>
<div style="position:absolute; left:510px; font-size:20px;">20px </div>
</div><br><br>
<!----------------->
<font color="maroon">'''19.'''</font> font '''style''' (for the text in the "title" and "groups" cells; see examples below)<br>
:<div style>'''Default''' text</div>
:<div style="font-family:proximanova;"> '''proximanova''' text </div>
:<div style="font-family:museo;"> '''museo''' text  (Note: no bold effect)</div><br>
 
<font color="maroon">'''20.'''</font>  "lists" text '''color'''
:The default color is "link" blue which should be retained in most instances to provide uniformity for the reader and will show an inactive black link when used on the "current" page. Using other colors will mask the fact that a "link" is available.
 
 
 
===Also See===
As a technical reference see the [http://en.m.wikipedia.org/wiki/Template:Navbox Wikipedia Navbox article] for an extensive listing of parameter information and usage.
 
Use the [http://www.color-hex.com/color/808080 "color-hex"] page to evaluate various coloration schemes and identify the color code in any standard format.
 
[[Category:Templates]]
[[Category:Navigational_templates]]