Difference between revisions of "Template:Tnb countries"
Jump to navigation
Jump to search
(Created template) |
|||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | <includeonly>{{ | + | <includeonly>{{Navbox |
| − | | | + | |name={{{name}}} |
| − | | | + | |basestyle=font-size: 95%; background:Chocolate |
| − | + | |title=[[{{{titlelink}}}|<span style="color:cornsilk">{{{titletext}}}</span> ]] | |
| − | | | + | |liststyle=font-size: 85%; padding:0.25em; background:cornsilk; color:black; |
| − | + | |list1={{{body}}} | |
| − | | | ||
| − | | | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
| − | [[Category:Template]] | + | [[Category:Template|{{PAGENAME}}]] |
<!-----------------------Documentation---------------------> | <!-----------------------Documentation---------------------> | ||
{{TemplateDoc|pages=Country articles|purpose=Nav box|cat=Countries}} | {{TemplateDoc|pages=Country articles|purpose=Nav box|cat=Countries}} | ||
{{Parms| | {{Parms| | ||
| − | {{Parm| | + | {{Parm|name |Name |yes| Name of template for v-d-e links}} |
| − | {{Parm| | + | {{Parm|titlelink |CP wikilink |no | link to CP page (check case!)}} |
| + | {{Parm|titletext |Title bar text |yes| Text to appear in title bar}} | ||
{{Parm|body |Body |yes| List of wikilinked items separated by '<tt> • </tt>'}} | {{Parm|body |Body |yes| List of wikilinked items separated by '<tt> • </tt>'}} | ||
}} | }} | ||
| Line 35: | Line 34: | ||
<nowiki><</nowiki>/includeonly> | <nowiki><</nowiki>/includeonly> | ||
<nowiki><</nowiki>noinclude> | <nowiki><</nowiki>noinclude> | ||
| − | <nowiki>[[</nowiki>Category:Navigation box]] | + | <nowiki>[[</nowiki>Category:Navigation box|{{PAGENAME}}]] |
<nowiki><</nowiki>/noinclude> | <nowiki><</nowiki>/noinclude> | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 14:13, December 1, 2008
| Template: Tnb countries | |
|---|---|
| Use on | Country articles |
| Use for | Nav box |
| Category template applies to page | Countries |
| Template Parameters (See using templates). | |||
|---|---|---|---|
| Name | Purpose | Required? | Comment |
| name | Name | yes | Name of template for v-d-e links |
| titlelink | CP wikilink | no | link to CP page (check case!) |
| titletext | Title bar text | yes | Text to appear in title bar |
| body | Body | yes | List of wikilinked items separated by ' • ' |
This is a master template for navboxes on country articles.
Sample text block
Copy and paste the following to new navbox:
<includeonly>
{{Tnb_countries
|titlelink=
|titletext=
|body={{nowrap|[[ | ]] •}} {{nowrap|[[ | ]] •}} {{nowrap|[[ | ]]}}
}}
[[Category:<!--''Category name''-->]]
</includeonly>
<noinclude>
[[Category:Navigation box|{{PAGENAME}}]]
</noinclude>