- This wiki is out of date, use the continuation of this wiki instead
Template:Dplbox
From FenixWiki
(Difference between revisions)
Revision as of 22:21, 13 September 2007 (edit) Sandman (Talk | contribs) m (New page: <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, cate...) ← Previous diff |
Current revision (14:02, 8 March 2008) (edit) (undo) Sandman (Talk | contribs) m |
||
(11 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> | ||
== Example == | == Example == | ||
{| style="width: 100%" | {| style="width: 100%" | ||
- | | The | + | | The Functioncategory box ([[Template:Funccatbox]]) |
<pre> | <pre> | ||
{{Dplbox | {{Dplbox | ||
| name = Functioncategories | | name = Functioncategories | ||
- | | namespace = | + | | namespace = Functioncategory |
| notcategory = dll | | notcategory = dll | ||
}} | }} | ||
Line 64: | Line 75: | ||
{{Dplbox | {{Dplbox | ||
| name = Functioncategories | | name = Functioncategories | ||
- | | namespace = | + | | namespace = Functioncategory |
| notcategory = dll | | notcategory = dll | ||
}} | }} |
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 }} |
|