Template:Community: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Peter Schmitt
(added option "CatNo" - seems to work - see talk)
imported>Peter Schmitt
(Documentation moved to Doc subpage)
Line 22: Line 22:
|}
|}
<includeonly>{{#if:{{{CatNo|}}}||{{#ifeq:{{PAGENAME}}|{{{title}}}||[[Category:{{{title}}}]]}}}}</includeonly><noinclude>
<includeonly>{{#if:{{{CatNo|}}}||{{#ifeq:{{PAGENAME}}|{{{title}}}||[[Category:{{{title}}}]]}}}}</includeonly><noinclude>
 
{{TlDoc}}</noinclude>
'''TRANSFER ANY EDITS YOU MAKE TO THIS PAGE to {{tl|Community without category}}.  Yes, it's a kludge...'''
 
'''Note''': <br>
If variable "title" is not equal to the "PAGENAME" this template adds the page to "Category:title"
while [[Template:Community without category]] does not.
 
variables:
title                  of a page in CZ name space
link1 ... link12        up to 12 optional links
seealso1 ... seealso3  up to  3 optional links
hide                    if set to "collapsed": box is shown hidden as default 
CatNo                  if not empty: suppresses adding category
 
usage: see [[Template:Editor Policy]] for an example.
<pre><nowiki>
{{community
  | title = Some Page
  | link1 = [[some link]]
  ...
  | seealso = [[also a link]]
  | hide = collapsed                % if this is desired
  | CatNo = yes                      % if page should not be added to category
}}       
</nowiki></pre>
</noinclude>

Revision as of 18:11, 10 August 2009

Citizendium [[CZ:{{{title}}}|{{{title}}}]]
| [[:Category:{{{title}}}|Other]]
Home
Getting Started Organization Technical Help Content Policy Article Lists
Initiatives Communication Editor Policy Editorial Council Constabulary
Main Page


This documentation is transcluded from Template:Community/doc (edit | history)

TRANSFER ANY EDITS YOU MAKE TO THIS PAGE to {{Community without category}}. Yes, it's a kludge...

Note:
If variable "title" is not equal to the "PAGENAME" this template adds the page to "Category:title" while Template:Community without category does not.

variables:

title                   of a page in CZ name space
link1 ... link12        up to 12 optional links
seealso1 ... seealso3   up to  3 optional links
hide                    if set to "collapsed": box is shown hidden as default   
CatNo                   if not empty: suppresses adding category 

usage: see Template:Editor Policy for an example.

 {{community
   | title = Some Page
   | link1 = [[some link]]
   ...
   | seealso = [[also a link]]
   | hide = collapsed                 % if this is desired
   | CatNo = yes                      % if page should not be added to category 
 }}