Difference between revisions of "Template:Tnb countries"

From Conservapedia
Jump to navigation Jump to search
(Created template)
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
−
<includeonly>{{Tnavbox_basic
+
<includeonly>{{Navbox
−
|titleback-color=Chocolate
+
|name={{{name}}}
−
|titletext-color=cornsilk
+
|basestyle=font-size: 95%; background:Chocolate
−
|bodyback-color=cornsilk
+
|title=[[{{{titlelink}}}|<span style="color:cornsilk">{{{titletext}}}</span> ]]
−
|bodytext-color=black
+
|liststyle=font-size: 85%; padding:0.25em; background:cornsilk; color:black;
−
|titlelink={{{titlelink}}}{{!}}
+
|list1={{{body}}}
−
|titletext={{{titletext}}}
 
−
|body={{{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|link     |CP wikilink    |no | link to CP page (check case!)}}
+
  {{Parm|name     |Name          |yes| Name of template for v-d-e links}}
−
  {{Parm|link text |Title bar text |yes| Text to appear in title bar}}
+
{{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>