- This wiki is out of date, use the continuation of this wiki instead
 
Template:Namespacebox
From FenixWiki
(Difference between revisions)
												
			
			| Revision as of 19:23, 13 September 2007 (edit) Sandman (Talk | contribs) (New page: <noinclude> == Template == Namespace box template. Add namespaces to this box and it will show the pages in those namespaces. Uses DPL. <pre> name, functionmode, namespace, namespace1, na...) ← Previous diff  | 
				Current revision (12:59, 19 September 2007) (edit) (undo) Sandman (Talk | contribs) m  | 
			||
| (6 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: | ||
| + | redirects=include| | ||
| mode=userformat| | mode=userformat| | ||
| - |             {{#if:  {{{functionmode|}}}|  | + | {{#if: {{{functionmode|}}}|| | 
| - |             {{#ifeq:{{{functionmode|}}}|false|format= | + | format={{Navbox_listseperator}},[[%PAGE%{{!}}%TITLE%]],{{Navbox_listseperator}},}}| | 
| - | + | {{#ifeq:{{{functionmode|}}}|false| | |
| - |             {{#ifeq:{{{functionmode|}}}|true|format= | + | 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 | ||
| | name = DLL's | | name = DLL's | ||
| - |   | namespace =  | + | | namespace = DLL | 
| }} | }} | ||
| </pre> | </pre> | ||
| Line 72: | Line 39: | ||
| {{Namespacebox | {{Namespacebox | ||
| | name = DLL's | | name = DLL's | ||
| - |   | namespace =  | + | | namespace = DLL | 
| }} | }} | ||
| |} | |} | ||
| </noinclude> | </noinclude> | ||
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
}}
 | 
  | |||
