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
(Obsolete.)
Line 1: Line 1:
{| align="right" width="20%" class="table_simplesidebar"
+
<includeonly>{{Sidebar|title={{{1}}}|content={{{2}}}}}</includeonly><noinclude>'''THIS TEMPLATE IS OBSOLETE. USE [[Template:Sidebar|TEMPLATE:SIDEBAR]] INSTEAD.</noinclude>
! {{{1}}}
 
|-
 
| <div style="font-size:80%;">{{{{{2}}}}}</div>
 
|-
 
|style="text-align:right;"|<font size="1">[{{SERVER}}/index.php?title={{{2}}}&action=edit Edit]</font>
 
|}
 
<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 &lt;noinclude&gt; and &lt;includeonly&gt;, it is entirely possible to include the same page as the sidebar-content that is including the sidebar, by putting the actual content between &lt;noinclude&gt; and &lt;/noinclude&gt;, and the side-bar content between &lt;includeonly&gt; and &lt;/includeonly&gt;.
 
 
 
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 17:39, 3 February 2007

THIS TEMPLATE IS OBSOLETE. USE TEMPLATE:SIDEBAR INSTEAD.