- This wiki is out of date, use the continuation of this wiki instead
Template:Catbox
From FenixWiki
(Difference between revisions)
Revision as of 21:39, 12 September 2007 (edit) Sandman (Talk | contribs) m ← Previous diff |
Current revision (12:57, 19 September 2007) (edit) (undo) Sandman (Talk | contribs) m |
||
(32 intermediate revisions not shown.) | |||
Line 1: | Line 1: | ||
- | {{Navbox | + | <noinclude> |
+ | == Template == | ||
+ | Category box template. | ||
+ | |||
+ | Add categories to this box and it will show the pages in those categories. Uses DPL. | ||
+ | |||
+ | Variables: | ||
+ | <pre> | ||
+ | name, | ||
+ | functionmode, | ||
+ | category, | ||
+ | category1, | ||
+ | category2, | ||
+ | category3, | ||
+ | category4, | ||
+ | category5, | ||
+ | category6, | ||
+ | category7, | ||
+ | category8, | ||
+ | category9, | ||
+ | category10, | ||
+ | category11, | ||
+ | category12, | ||
+ | category13, | ||
+ | category14, | ||
+ | category15, | ||
+ | category16, | ||
+ | category17, | ||
+ | category18, | ||
+ | category19, | ||
+ | category20, | ||
+ | </pre> | ||
+ | </noinclude>{{Navbox | ||
| name = {{{name}}} | | name = {{{name}}} | ||
| list = {{#DPL: | | list = {{#DPL: | ||
+ | redirects=include| | ||
mode=userformat| | mode=userformat| | ||
- | format=,[[%PAGE%|%TITLE%]], | + | {{#if: {{{functionmode|}}}|| |
- | {{#if:{{{category|}}}|category={{{category}}}}}| | + | format={{Navbox_listseperator}},[[%PAGE%{{!}}%TITLE%]],{{Navbox_listseperator}},}}| |
+ | {{#ifeq:{{{functionmode|}}}|false| | ||
+ | format={{Navbox_listseperator}},[[%PAGE%{{!}}%TITLE%]],{{Navbox_listseperator}},}}| | ||
+ | {{#ifeq:{{{functionmode|}}}|true| | ||
+ | format={{Navbox_listseperator}},[[%PAGE%{{!}}%TITLE%]](),{{Navbox_listseperator}},}}| | ||
+ | {{#ifeq:{{{functionmode|}}}|true| | ||
+ | replaceintitle=/ /,_}}| | ||
+ | {{#if:{{{category|}}} |category={{{category}}}}}| | ||
+ | {{#if:{{{category1|}}} |category={{{category1}}}}}| | ||
+ | {{#if:{{{category2|}}} |category={{{category2}}}}}| | ||
+ | {{#if:{{{category3|}}} |category={{{category3}}}}}| | ||
+ | {{#if:{{{category4|}}} |category={{{category4}}}}}| | ||
+ | {{#if:{{{category5|}}} |category={{{category5}}}}}| | ||
+ | {{#if:{{{category6|}}} |category={{{category6}}}}}| | ||
+ | {{#if:{{{category7|}}} |category={{{category7}}}}}| | ||
+ | {{#if:{{{category8|}}} |category={{{category8}}}}}| | ||
+ | {{#if:{{{category9|}}} |category={{{category9}}}}}| | ||
+ | {{#if:{{{category10|}}} |category={{{category10}}}}}| | ||
+ | {{#if:{{{category11|}}} |category={{{category11}}}}}| | ||
+ | {{#if:{{{category12|}}} |category={{{category12}}}}}| | ||
+ | {{#if:{{{category13|}}} |category={{{category13}}}}}| | ||
+ | {{#if:{{{category14|}}} |category={{{category14}}}}}| | ||
+ | {{#if:{{{category15|}}} |category={{{category15}}}}}| | ||
+ | {{#if:{{{category16|}}} |category={{{category16}}}}}| | ||
+ | {{#if:{{{category17|}}} |category={{{category17}}}}}| | ||
+ | {{#if:{{{category18|}}} |category={{{category18}}}}}| | ||
+ | {{#if:{{{category19|}}} |category={{{category19}}}}}| | ||
+ | {{#if:{{{category20|}}} |category={{{category20}}}}}| | ||
}} | }} | ||
+ | }}<noinclude> | ||
+ | == Example == | ||
+ | {| style="width: 100%" | ||
+ | | The Network.DLL functions box ([[Template:Netfuncbox]]) | ||
+ | <pre> | ||
+ | {{Catbox | ||
+ | | name = Network.DLL Functions | ||
+ | | category = networkdll | ||
+ | | category1 = functions | ||
+ | | functionmode = true | ||
}} | }} | ||
+ | </pre> | ||
+ | || | ||
+ | {{Catbox | ||
+ | | name = Network.DLL Functions | ||
+ | | category = networkdll | ||
+ | | category1 = functions | ||
+ | | functionmode = true | ||
+ | }} | ||
+ | |} | ||
+ | |||
+ | </noinclude> |
Current revision
[edit] Template
Category box template.
Add categories to this box and it will show the pages in those categories. Uses DPL.
Variables:
name, functionmode, category, category1, category2, category3, category4, category5, category6, category7, category8, category9, category10, category11, category12, category13, category14, category15, category16, category17, category18, category19, category20,
{{{name}}} |
[edit] Example
The Network.DLL functions box (Template:Netfuncbox)
{{Catbox | name = Network.DLL Functions | category = networkdll | category1 = functions | functionmode = true }} |
|