ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Difference between revisions of "Template:SideBar"

From ModEnc
Jump to: navigation, search
Line 6: Line 6:
 
|style="text-align:right;"|<font size="1">[http://modenc.renegadeprojects.com/index.php?title={{{2}}}&action=edit Edit]</font>
 
|style="text-align:right;"|<font size="1">[http://modenc.renegadeprojects.com/index.php?title={{{2}}}&action=edit Edit]</font>
 
|}
 
|}
<noinclude>Parameter 1 is the header, parameter 2 the page to include. Logically no category included with it.</noinclude>
+
<noinclude>
 +
<pre>
 +
{{SideBar
 +
|Parameter 1
 +
|Parameter 2
 +
}}</pre>
 +
Copy-paste the code above and
 +
*Replace Parameter 1 with what should be displayed as a header
 +
*Replace Parameter 2 the name of a page to include. That page will be the actual content of the sidebar.
 +
Note: using <nowiki><noinclude> and <includeonly></nowiki>, it is entirely possible to include the same page as the sidebar-content that is including the sidebar, by putting the actual content between <nowiki><noinclude> and </noinclude></nowiki>, and the side-bar content between <nowiki><includeonly> and </includeonly></nowiki>.
 +
 
 +
Logically no category included with this template.
 +
 
 +
==Example==
 +
<pre>{{SideBar
 +
|xxXMenuHeaderXxx
 +
|x-menu
 +
}}</pre>
 +
Would include a sidebar named "xxXMenuHeaderXxx" with the content of page "X-menu"
 +
</noinclude>

Revision as of 19:48, 2 May 2006

{{{1}}}
{{{{{2}}}}}
Edit
{{SideBar
|Parameter 1
|Parameter 2
}}

Copy-paste the code above and

  • Replace Parameter 1 with what should be displayed as a header
  • Replace Parameter 2 the name of a page to include. That page will be the actual content of the sidebar.

Note: using <noinclude> and <includeonly>, it is entirely possible to include the same page as the sidebar-content that is including the sidebar, by putting the actual content between <noinclude> and </noinclude>, and the side-bar content between <includeonly> and </includeonly>.

Logically no category included with this template.

Example

{{SideBar
|xxXMenuHeaderXxx
|x-menu
}}

Would include a sidebar named "xxXMenuHeaderXxx" with the content of page "X-menu"