Template:Main other: Difference between revisions
From All Skies Encyclopaedia
| imported>Davidgothberg  (Removing the "return 'main'/'other' when no parameter" function, since not used, not needed and causes problems in some situations.) | m (1 revision imported) | ||
| (4 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
| {{#switch: | {{safesubst:<noinclude/>#switch: | ||
|   <!--If no or empty "demospace" parameter then detect namespace--> |   <noinclude><!-- If no or empty "demospace" parameter then detect namespace --></noinclude> | ||
|   {{#if:{{{demospace|}}}  |   {{safesubst:<noinclude/>#if:{{{demospace|}}}  | ||
|   | {{lc: {{{demospace}}} }}    <!--Use lower case "demospace"--> |   | {{safesubst:<noinclude/>lc: {{{demospace}}} }}    <noinclude><!-- Use lower case "demospace" --></noinclude> | ||
|   | {{#ifeq:{{NAMESPACE}}|{{ns:0}} |   | {{safesubst:<noinclude/>#ifeq:{{safesubst:<noinclude/>NAMESPACE}}|{{safesubst:<noinclude/>ns:0}} | ||
|     | main |     | main | ||
|     | other |     | other | ||
| Line 11: | Line 11: | ||
| | other | | other | ||
| | #default = {{{2|}}} | | #default = {{{2|}}} | ||
| }} | }}<noinclude> | ||
| {{documentation}} | |||
| {{pp-template|small=yes}} | |||
| ⚫ | |||
| {{Documentation}} | |||
| ⚫ | |||
| </noinclude> | </noinclude> | ||
 Template documentation
 Template documentation






