- This wiki is out of date, use the continuation of this wiki instead
Template:Namespacebox
From FenixWiki
(Difference between revisions)
Revision as of 20:54, 13 September 2007 (edit) Sandman (Talk | contribs) m ← Previous diff |
Current revision (12:59, 19 September 2007) (edit) (undo) Sandman (Talk | contribs) m |
||
(5 intermediate revisions not shown.) | |||
Line 4: | Line 4: | ||
Add namespaces to this box and it will show the pages in those namespaces. Uses DPL. | Add namespaces to this box and it will show the pages in those namespaces. Uses DPL. | ||
+ | |||
+ | Variables: | ||
<pre> | <pre> | ||
name, | name, | ||
functionmode, | functionmode, | ||
namespace, | namespace, | ||
- | namespace1, | ||
- | namespace2, | ||
- | namespace3, | ||
- | namespace4, | ||
- | namespace5, | ||
- | namespace6, | ||
- | namespace7, | ||
- | namespace8, | ||
- | namespace9, | ||
- | namespace10, | ||
- | namespace11, | ||
- | namespace12, | ||
- | namespace13, | ||
- | namespace14, | ||
- | namespace15, | ||
- | namespace16, | ||
- | namespace17, | ||
- | namespace18, | ||
- | namespace19, | ||
- | namespace20 | ||
</pre> | </pre> | ||
</noinclude>{{Navbox | </noinclude>{{Navbox | ||
| name = {{{name}}} | | name = {{{name}}} | ||
| list = {{#DPL: | | list = {{#DPL: | ||
- | mode=userformat| | ||
redirects=include| | redirects=include| | ||
- | {{#if: {{{functionmode|}}}| | + | mode=userformat| |
- | {{#ifeq:{{{functionmode|}}}|false|format= | + | {{#if: {{{functionmode|}}}|| |
- | + | format={{Navbox_listseperator}},[[%PAGE%{{!}}%TITLE%]],{{Navbox_listseperator}},}}| | |
- | {{#ifeq:{{{functionmode|}}}|true|format= | + | {{#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:{{{namespace|}}} |namespace={{{namespace}}}}}| | {{#if:{{{namespace|}}} |namespace={{{namespace}}}}}| | ||
- | {{#if:{{{namespace1|}}} |namespace={{{namespace1}}}}}| | ||
- | {{#if:{{{namespace2|}}} |namespace={{{namespace2}}}}}| | ||
- | {{#if:{{{namespace3|}}} |namespace={{{namespace3}}}}}| | ||
- | {{#if:{{{namespace4|}}} |namespace={{{namespace4}}}}}| | ||
- | {{#if:{{{namespace5|}}} |namespace={{{namespace5}}}}}| | ||
- | {{#if:{{{namespace6|}}} |namespace={{{namespace6}}}}}| | ||
- | {{#if:{{{namespace7|}}} |namespace={{{namespace7}}}}}| | ||
- | {{#if:{{{namespace8|}}} |namespace={{{namespace8}}}}}| | ||
- | {{#if:{{{namespace9|}}} |namespace={{{namespace9}}}}}| | ||
- | {{#if:{{{namespace10|}}} |namespace={{{namespace10}}}}}| | ||
- | {{#if:{{{namespace11|}}} |namespace={{{namespace11}}}}}| | ||
- | {{#if:{{{namespace12|}}} |namespace={{{namespace12}}}}}| | ||
- | {{#if:{{{namespace13|}}} |namespace={{{namespace13}}}}}| | ||
- | {{#if:{{{namespace14|}}} |namespace={{{namespace14}}}}}| | ||
- | {{#if:{{{namespace15|}}} |namespace={{{namespace15}}}}}| | ||
- | {{#if:{{{namespace16|}}} |namespace={{{namespace16}}}}}| | ||
- | {{#if:{{{namespace17|}}} |namespace={{{namespace17}}}}}| | ||
- | {{#if:{{{namespace18|}}} |namespace={{{namespace18}}}}}| | ||
- | {{#if:{{{namespace19|}}} |namespace={{{namespace19}}}}}| | ||
- | {{#if:{{{namespace20|}}} |namespace={{{namespace20}}}}}| | ||
}} | }} | ||
}}<noinclude> | }}<noinclude> | ||
== Example == | == Example == | ||
{| style="width: 100%" | {| style="width: 100%" | ||
- | | The | + | | The DLL's box ([[Template:Dllbox]]) |
<pre> | <pre> | ||
{{Namespacebox | {{Namespacebox |
Current revision
[edit] Template
Namespace box template.
Add namespaces to this box and it will show the pages in those namespaces. Uses DPL.
Variables:
name, functionmode, namespace,
{{{name}}} |
[edit] Example
The DLL's box (Template:Dllbox)
{{Namespacebox | name = DLL's | namespace = DLL }} |
|