- This wiki is out of date, use the continuation of this wiki instead
Template:Dplbox
From FenixWiki
(Difference between revisions)
| Revision as of 22:25, 13 September 2007 (edit) Sandman (Talk | contribs) m ← Previous diff |
Current revision (14:02, 8 March 2008) (edit) (undo) Sandman (Talk | contribs) m |
||
| (7 intermediate revisions not shown.) | |||
| Line 3: | Line 3: | ||
| Category box template. | Category box template. | ||
| - | + | Gives DPL output. Uses DPL. | |
| Variables: | Variables: | ||
| <pre> | <pre> | ||
| name, | name, | ||
| + | align, | ||
| functionmode, | functionmode, | ||
| category, | category, | ||
| Line 24: | Line 25: | ||
| notnamespace, | notnamespace, | ||
| redirects, | redirects, | ||
| + | skipthispage, | ||
| + | replaceintitle, | ||
| </pre> | </pre> | ||
| </noinclude>{{Navbox | </noinclude>{{Navbox | ||
| | name = {{{name}}} | | name = {{{name}}} | ||
| + | | align = {{#if:{{{align|}}}|{{{align}}}|center}} | ||
| | list = {{#DPL: | | list = {{#DPL: | ||
| mode=userformat| | mode=userformat| | ||
| redirects=include| | redirects=include| | ||
| - | {{#if:{{{redirects|}}} | + | {{#if:{{{redirects|}}}| |
| - | {{#if: | + | redirects={{{redirects}}}}}| |
| - | {{#ifeq:{{{functionmode|}}}|false|format= | + | {{#if:{{{functionmode|}}}|| |
| - | {{#ifeq:{{{functionmode|}}}|true|replaceintitle=/ /,_}}| | + | 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:{{{replaceintitle|}}}|replaceintitle={{{replaceintitle}}}}}| | ||
| {{#if:{{{category|}}} |category={{{category}}}}}| | {{#if:{{{category|}}} |category={{{category}}}}}| | ||
| {{#if:{{{category1|}}} |category={{{category1}}}}}| | {{#if:{{{category1|}}} |category={{{category1}}}}}| | ||
| Line 48: | Line 58: | ||
| {{#if:{{{notcategory5|}}} |notcategory={{{notcategory5}}}}}| | {{#if:{{{notcategory5|}}} |notcategory={{{notcategory5}}}}}| | ||
| {{#if:{{{namespace|}}} |namespace={{{namespace}}}}}| | {{#if:{{{namespace|}}} |namespace={{{namespace}}}}}| | ||
| - | {{#if:{{{notnamespace|}}} | | + | {{#if:{{{notnamespace|}}} |notnamespace={{{notnamespace}}}}}| |
| + | {{#if:{{{skipthispage|}}} |skipthispage={{{skipthispage}}}}}| | ||
| }} | }} | ||
| }}<noinclude> | }}<noinclude> | ||
Current revision
[edit] Template
Category box template.
Gives DPL output. Uses DPL.
Variables:
name, align, functionmode, category, category1, category2, category3, category4, category5, notcategory, notcategory1, notcategory2, notcategory3, notcategory4, notcategory5, namespace, notnamespace, redirects, skipthispage, replaceintitle,
| {{{name}}} |
[edit] Example
The Functioncategory box (Template:Funccatbox)
{{Dplbox
| name = Functioncategories
| namespace = Functioncategory
| notcategory = dll
}}
|
| |||
