Template:Gallery header: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
No edit summary
imported>Chris Day
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
''A collection of images about [[{{BASEPAGENAME}}]].''
''A collection of images about [[{{BASEPAGENAME}}]].''<includeonly>
<includeonly>
[[Category:Galleries|{{{abc|}}}]]  
{{#if:{{{{BASEPAGENAME}}/Info|info=approved|}}|
[[Category:{{{group}}} Galleries|{{{abc|}}}]]  
{{#if:{{{{BASEPAGENAME}}/Info|info=abc|}}|[[Category:Approved Galleries|{{{{BASEPAGENAME}}/Info|info=abc}}]] |[[Category:Approved Galleries]] }}
{{#if:{{{group2|}}}|[[Category:{{{group2}}} Galleries|{{{abc|}}}]] |}}  
{{#if:{{{{BASEPAGENAME}}/Info|info=abc|}}|[[Category:{{{{BASEPAGENAME}}/Info|info=group}} Approved Galleries|{{{{BASEPAGENAME}}/Info|info=abc}}]] | [[Category:{{{{BASEPAGENAME}}/Info|info=group}} Approved Galleries]]}}
{{#if:{{{group3|}}}|[[Category:{{{group3}}} Galleries|{{{abc|}}}]] |}}
{{#if:{{{{BASEPAGENAME}}/Info|info=group2|}}|{{#if:{{{{BASEPAGENAME}}/Info|info=abc|}}|[[Category:{{{{BASEPAGENAME}}/Info|info=group2}} Approved Galleries|{{{{BASEPAGENAME}}/Info|info=abc}}]] | [[Category:{{{{BASEPAGENAME}}/Info|info=group2}} Approved Galleries]]}}|}}
{{#ifeq:{{{status|}}}|0| [[Category:Approved Galleries|{{{abc}}}]]  
{{#if:{{{{BASEPAGENAME}}/Info|info=group3|}}|{{#if:{{{{BASEPAGENAME}}/Info|info=abc|}}|[[Category:{{{{BASEPAGENAME}}/Info|info=group3}} Approved Galleries|{{{{BASEPAGENAME}}/Info|info=abc}}]] | [[Category:{{{{BASEPAGENAME}}/Info|info=group3}} Approved Galleries]]}}|}}
[[Category:{{{group}}} Approved Galleries|{{{abc}}}]]  
{{#if:{{{{BASEPAGENAME}}/Info|info=abc|}}|[[Category:Galleries|{{{{BASEPAGENAME}}/Info|info=abc}}]] |[[Category:Galleries]] }}
{{#if:{{{group2|}}}|[[Category:{{{group2}}} Approved Galleries|{{{abc|}}}]] |}}  
{{#if:{{{{BASEPAGENAME}}/Info|info=abc|}}|[[Category:{{{{BASEPAGENAME}}/Info|info=group}} Galleries|{{{{BASEPAGENAME}}/Info|info=abc}}]] | [[Category:{{{{BASEPAGENAME}}/Info|info=group}} Galleries]]}}
{{#if:{{{group3|}}}|[[Category:{{{group3}}} Approved Galleries|{{{abc|}}}]] |}} }}</includeonly>
{{#if:{{{{BASEPAGENAME}}/Info|info=group2|}}|{{#if:{{{{BASEPAGENAME}}/Info|info=abc|}}|[[Category:{{{{BASEPAGENAME}}/Info|info=group2}} Galleries|{{{{BASEPAGENAME}}/Info|info=abc}}]] | [[Category:{{{{BASEPAGENAME}}/Info|info=group2}} Galleries]]}}|}}
<noinclude>
{{#if:{{{{BASEPAGENAME}}/Info|info=group3|}}|{{#if:{{{{BASEPAGENAME}}/Info|info=abc|}}|[[Category:{{{{BASEPAGENAME}}/Info|info=group3}} Galleries|{{{{BASEPAGENAME}}/Info|info=abc}}]] | [[Category:{{{{BASEPAGENAME}}/Info|info=group3}} Galleries]]}}|}}<nowiki>
==Usage==
To be used at the top of gallery pages associated with approved articles. The template fields include:


</nowiki>
<pre>
|{{#if:{{{{BASEPAGENAME}}/Info|info=abc|}}|[[Category:Galleries|{{{{BASEPAGENAME}}/Info|info=abc}}]] |[[Category:Galleries]] }}
{{Gallery header
{{#if:{{{{BASEPAGENAME}}/Info|info=abc|}}|[[Category:{{{{BASEPAGENAME}}/Info|info=group}} Galleries|{{{{BASEPAGENAME}}/Info|info=abc}}]] | [[Category:{{{{BASEPAGENAME}}/Info|info=group}} Galleries]]}}
|group=
{{#if:{{{{BASEPAGENAME}}/Info|info=group2|}}|{{#if:{{{{BASEPAGENAME}}/Info|info=abc|}}|[[Category:{{{{BASEPAGENAME}}/Info|info=group2}} Galleries|{{{{BASEPAGENAME}}/Info|info=abc}}]] | [[Category:{{{{BASEPAGENAME}}/Info|info=group2}} Galleries]]}}|}}
|group2=
{{#if:{{{{BASEPAGENAME}}/Info|info=group3|}}|{{#if:{{{{BASEPAGENAME}}/Info|info=abc|}}|[[Category:{{{{BASEPAGENAME}}/Info|info=group3}} Galleries|{{{{BASEPAGENAME}}/Info|info=abc}}]] | [[Category:{{{{BASEPAGENAME}}/Info|info=group3}} Galleries]]}}|}}
|group3=
}}</includeonly>
|abc=
|approved=
}}
</pre>
'''group''' = must be an existing workgroup
 
'''group2''' = second workgroup (optional but must use before group3 if only two workgroups)
 
'''group3''' = third workgroup (optional)
 
'''abc''' = used to categorise based on last names.  For example, the [[Barbara McClintock]] approval template is written as '''abc = McClintock, Barbara''' so she is categorised under M, or List of Biologists would be '''abc = Biologists, List of''' so it is categorised under B.
 
'''approved''' = yes (required to add the approved category)
</noinclude>

Latest revision as of 23:26, 26 March 2008

A collection of images about Gallery header.

Usage

To be used at the top of gallery pages associated with approved articles. The template fields include:

{{Gallery header
|group=
|group2=
|group3=
|abc=
|approved=
}}

group = must be an existing workgroup

group2 = second workgroup (optional but must use before group3 if only two workgroups)

group3 = third workgroup (optional)

abc = used to categorise based on last names. For example, the Barbara McClintock approval template is written as abc = McClintock, Barbara so she is categorised under M, or List of Biologists would be abc = Biologists, List of so it is categorised under B.

approved = yes (required to add the approved category)