Template:TemplateTest1/doc: Difference between revisions
Luccagenes (talk | contribs) m (added external link) |
Luccagenes (talk | contribs) m (added a new instruction header section) |
||
Line 2: | Line 2: | ||
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. | 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. | ||
=== A note on the "revisions" to this template === | |||
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. | |||
=== Adding links to the "lists" === | === Adding links to the "lists" === | ||
Line 11: | Line 15: | ||
===Parameters=== | ===Parameters=== | ||
This is an '''''experimental copy''''' of the <nowiki>{{Principles}}</nowiki> template but it can be adjusted | 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> | <br> | ||
This template is called using the format | 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> | <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> |
Revision as of 09:33, 27 January 2015
Usage[edit source]
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.
A note on the "revisions" to this template[edit source]
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.
Adding links to the "lists"[edit source]
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.
For example:
{{·}} [[ Your Genealogical Quest |< span style="color:{{{20}}}; font-size:{{{18}}}px; font-family:{{{19}}};"> Your Genealogical Quest < /span>]]
Parameters[edit source]
This is an experimental copy of the {{Principles}} 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="|") can be omitted at the end but must be added toward the beginning to mark the position of the last entry.
This template is called using the standard {{Principles}} 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.
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).
NOTE: To add pixel sizes for border thickness or text size, just enter a number (do not add px at the end).
1. enter autocollapse to "hide" the Navbox (the default is "show")
2. enter a color for the "title" and "group" text ("group" includes the boxes on the left side)
3. enter a number for the cell padding to be used in all cells
Some of the parameters below are in sets of four as related to the following areas:
"'title" (4,8,12,16), "groups" (5,9,13,17), "lists" (6,10,14,18), and "body" (7,11,15), respectively.
4. "title" background color ("tile" is the top full length cell)
5. "groups" background color ("groups" includes the cells on the left side)
6. "lists" background color ("list" includes the cells on the right side)
7. "body" background color ( "body" is the space between cells )
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.
8. "title" border color ("tile" is the top full length cell)
9. "groups" border color ("groups" includes the cells on the left side)
10. "lists" border color ("list" includes the cells on the right side)
11. "body" line color (the "body" line is the outside table border)
12. "title" border width ("tile" is the top full length cell)
13. "groups" border width ("groups" includes all the cells on the left side)
14. "lists" border width ("list" includes all the cells on the right side)
15. "body" line width (the "body" line is the outside table border)
16. "title" text size
17. "groups" text size
18. "lists" text size
Example of text sizes
19. font style (for the text in the "title" and "groups" cells; see examples below)
- Default text
- proximanova text
- museo text (Note: no bold effect)
20. "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[edit source]
As a technical reference see the Wikipedia Navbox article for an extensive listing of parameter information and usage.
Use the "color-hex" page to evaluate various coloration schemes and identify the color code in any standard format.