Template:Unused subpages: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Chris Day
(add code so that buttons in the subpage list with a blank c value are not seen as unused buttons)
imported>Chris Day
No edit summary
Line 1: Line 1:
{{subpages}}
{{subpages}}
:Unused subpages:<nowiki>
:Unused subpages:<nowiki>
Comment on code below.: 
The first "if equal" checks if the C value in the subpage list is empty.  These buttons are not consider functional and not listed as unused.
The "if exist" determines if the subpage already exists, if so, it is not included in the list of unused subpages.


</nowiki>{{#ifeq:{{subpage list|button=1C}}|||{{#ifexist:{{BASEPAGENAME}}/{{subpage list|button=1A}}| |-&nbsp;[[{{BASEPAGENAME}}/{{subpage list|button=1A}} {{!}} <font color="darkblue" >{{subpage list|button=1B}}</font>]]}} }}<nowiki>
</nowiki>{{#ifeq:{{subpage list|button=1C}}|||{{#ifexist:{{BASEPAGENAME}}/{{subpage list|button=1A}}| |-&nbsp;[[{{BASEPAGENAME}}/{{subpage list|button=1A}} {{!}} <font color="darkblue" >{{subpage list|button=1B}}</font>]]}} }}<nowiki>

Revision as of 11:06, 20 July 2007

The {{subpages}} template is designed to be used within article clusters and their related pages.
It will not function on Template pages.

Unused subpages: Comment on code below.: The first "if equal" checks if the C value in the subpage list is empty. These buttons are not consider functional and not listed as unused. The "if exist" determines if the subpage already exists, if so, it is not included in the list of unused subpages.