Template:Subpages4: Difference between revisions
imported>Chris Day No edit summary |
imported>Chris Day No edit summary |
||
Line 1: | Line 1: | ||
{| width=100% | {| width=100% cellpadding="1" cellspacing="0" border="1" | ||
|align=center valign=top |<!-- | |align=center valign=top|<!-- | ||
***The following code is to place the correct header template above each article subpage*** | ***The following code is to place the correct header template above each article subpage*** | ||
Line 45: | Line 45: | ||
}}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=16A}}|{{ {{Subpage list|button=16A}} header2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}} }} }} | }}{{#ifeq:{{PAGENAME}} |{{BASEPAGENAME}}/{{Subpage list|button=16A}}|{{ {{Subpage list|button=16A}} header2|group= {{{{BASEPAGENAME}}/Info|info=cat1}}|group2= {{{{BASEPAGENAME}}/Info|info=cat2}}|group3={{{{BASEPAGENAME}}/Info|info=cat3}}|abc={{{{BASEPAGENAME}}/Info|info=abc}}|approved= {{{{BASEPAGENAME}}/Info|info=approved}} }} }} | ||
|rowspan=2 valign=top align=right|<!-- | |rowspan=2 valign=top align=right |<!-- | ||
The following code is the subpages template that includes the subroutines to choose the default and optional buttons | The following code is the subpages template that includes the subroutines to choose the default and optional buttons | ||
Line 82: | Line 82: | ||
|} | |} | ||
|- | |- | ||
|rowspan=2 colspan=2|<noinclude> | |rowspan=2 colspan=2 |<noinclude> | ||
==Usage== | ==Usage== |
Revision as of 13:42, 25 July 2007
UsageExamples of this templates use can be found at the Anthropology cluster (not approved) and the Life cluster (approved).
FunctionTwo functions are associated with this template. First to place a subpage navigation box with the appropriate buttons on each page. Second, to define the header and categories for each subpage.Templates associated with the {{subpages4}} template are described below:
For additional subpage ideas a new button can be added to the navigation box by replacing the FREE BUTTON place holders in the {{Subpage list}} template. If there are no free buttons in the existing template then additional button code must be added to the following three templates: {{Subpage list}}, {{ }} and {{Optional button}} Header and categories
If the subpage4 concept is adopted each article will have its own info template (Anthropology linked above as an example). The info template is critical to the functionality of the subpages4 template since it is the central depository for all the information related to the article. This includes the checklist template information, the approved template information and the ToApprove template information. All the header templates discussed below access data from the info template. This is a huge advantage since all the subpages are coordinated with the articles changing status, as recorded in the info template.
Random thoughtsFeel free to add new additions or suggest changes. Discussion of these points can continue of the talk page Template_talk:Subpages4. Ideas not yet incorporated into this tempalte:
|