CZ:Creating an article with subpages: Difference between revisions

From Citizendium
Jump to navigation Jump to search
No edit summary
No edit summary
Line 20: Line 20:
<big>NOTE 2:</big> To look at the existing metadata page for any article, click on the round "M" icon in the upper right hand portion of the gray subpages bar.  Or you can start with the contents of the [[Template:Walt_Whitman/Metadata]] page, which looks like this:
<big>NOTE 2:</big> To look at the existing metadata page for any article, click on the round "M" icon in the upper right hand portion of the gray subpages bar.  Or you can start with the contents of the [[Template:Walt_Whitman/Metadata]] page, which looks like this:


<block>
<nowiki>
{{#switch: {{{info}}}
{{#switch: {{{info}}}
<!--general article properties-->
<!--general article properties-->
Line 55: Line 55:
|      A editor3 =  
|      A editor3 =  
}}<noinclude>{{subpages}}</noinclude>
}}<noinclude>{{subpages}}</noinclude>
</block>
</nowiki>

Revision as of 14:11, 25 March 2022

To create a new page, first type type the complete URL for the page into your browser. The URL for any page is https://citizendium.org/wiki/ + page_name (and any spaces in the page_name are represented by an underscore). Thus, the URL for an article named "Saint Helena" would be https://citizendium.org/wiki/Saint_Helena. When you type this URL in the browser's URL space, Citizendium will display the article for you (if it exists) or allow you to create such an article (if it doesn't exist yet).

The URL needed to perform Step 1 below would be: https://citizendium.org/wiki/Template:My_Article.

To create a CZ subpages article called "My Article", do things in exactly this order:

  1. create Template:My_Article and populate it with metadata (get contents from an existing article and edit it). See NOTE 1 and NOTE 2 below.
  2. move Template:My_Article to Template:My_Article/Metadata
  3. create My_Article; add the {{subpages}} template to its top
  4. create My_Article/Definition
  5. create Talk:My_Article; add the {{subpages}} template to its top

Once you have created the article cluster, you can explicitly create these in any order (but do NOT click

  1. (optionally) create My_Article/Related_Articles; add the {{subpages}}template to its top
  2. (optionally) create My_Article/Bibliography; add the {{subpages}} template to its top
  3. (optionally) create My_Article/External_Links; add the {{subpages}} template to its top

NOTE 1: Do not just create Template:MyArticle/Metadata directly, because that will create an article in the so-called "mainspace", and the title of the article will happen to contain a colon, as in "Template:MyArticle". But here, we need a template, which means, an article in the Template: namespace. So by first creating"Template:MyArticle" and then renaming it, you assure that Template:MyArticle/Metadata is in the Template namespace (with title "MyArticle/Metadata"). Otherwise, you'll have created an article in the mainspace whose name happens to be Template:MyArticle/Metadata, but the subpages template may not work correctly.

NOTE 2: To look at the existing metadata page for any article, click on the round "M" icon in the upper right hand portion of the gray subpages bar. Or you can start with the contents of the Template:Walt_Whitman/Metadata page, which looks like this:

{{#switch: {{{info}}} <!--general article properties--> | pagename = Doggie | variant = AE <!--Required for checklist--> | abc = Doggie | cat_check = no | status = 2 | underlinked = yes | cleanup = yes | by = | cat1 = Literature | cat2 = | cat3 = | sub1 = | sub2 = | sub3 = | tab1 = | tab2 = | tab3 = <!--required for ToApprove template--> | article url = | subpage url = | cluster = | now = | ToA editor = | ToA editor2 = | ToA editor3 = | date = <!--required for Approved template--> | A editor = | A editor2 = | A editor3 = }}<noinclude>{{subpages}}</noinclude>