CZ:Creating an article with subpages

From Citizendium
Revision as of 08:11, 17 May 2022 by Pat Palmer (talk | contribs) (→‎Creating an article cluster)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
See also: CZ:Article_structure
See also: CZ:Article mechanics

Citizendium makes use of subpage article clusters, where a behind-the-scenes Metadata subpage (in the Template: namespace) is used to hold information about all pages in the cluster. The Metadata page for the "Saint Helena" article has its URL made like this: '''https://citizendium.org/''' + Template: + Saint_Helena + /Metadata. The standard pages in the cluster for an article named "My_Article" would be:

  1. My_Article - required, and its first line must be {{subpages}}
  2. Talk:My_Article - required, and its first line must be {{subpages}}
  3. Template:My_Article/Metadata - contents described below
  4. My_Article/Related_Articles - optional, and its first line must be {{subpages}}
  5. My_Article/External_Links - optional, and its first line must be {{subpages}}
  6. My_Article/Bibliography - optional, and its first line must be {{subpages}}

Note that four of the above pages are in the (main) namespace, aka "mainspace", whereas the second one is in the Talk: namespace and the third one is in the Template: namespace. Each page in the cluster (except the Metadata page) must have {{subpages}} on its first line. A well-formed cluster of articles displays like this on Citizendium:

How the "Saint Helena" article looks in the wiki, with its subpages listed in the gray tabbed area.

Warnings and caching

If you follow these instructions, because of caching on the wiki, display of the article cluster will not catch up immediately, so you are likely to see warnings, and the subpages header may show red (missing) links for pages you have already created. Ignore these. Carefully follow all the steps, then log off of Citizendium and completely close your browser. When you open the browser again and log back in, things will likely have settled down. If not, wait a couple of hours before decided it didn't work.

Creating an article cluster

  1. Create a new article and add {{subpages}} as its first line
  2. Use the form on the CZ:Templates page to create Template:My_Article/Metadata; populate this page as shown in NOTE 1 and NOTE 2 below.
  3. create Talk:My_Article as a blank page and add {{subpages}} as its first line
  4. create My_Article/Definition and place a one-line definition in it

Step 4 is recommended, but not required. Once you have created the article cluster, you can optionally create the following pages in any order (but do NOT try to create them by clicking the links in the gray subpages bar on the article--those links do not work at present):

  • My_Article/Related_Articles, and add the {{subpages}} as its first line
  • My_Article/Bibliography, and add the {{subpages}} as its first line
  • My_Article/External_Links, and add the {{subpages}} as its first line

NOTE 1: Below is the contents of the Template:Doggie/Metadata page. Copy and paste it directly into your Metadata page, then change the two lines with "Doggie" to your own article's exact name (with no underscores; we use spaces here!). Change the workgroup name on the cat1 line to the name of the workgroup you want your article to be in (scroll down on Welcome_to_Citizendium to see all the workgroups). And see NOTE 3 at the very bottom of this article. You can optionally add two more workgroup names on the cat2 and cat3 line. Save the file. That's it! This information will be shared to each of the subpages in your new article cluster.

{{#switch: {{{info}}}
<!--general article properties-->
|       pagename = Doggie
|        variant = AE
<!--Required for checklist-->
|            abc = Doggie
|      cat_check = no
|         status = 2
|    underlinked = yes
|        cleanup = no
|             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>

NOTE 2: Although its format is important, don't worry too much about the contents of the metadata page. As long as you get the article title correct, we can always edit the page later to make things right.

Here is a key to the lines you need to fill out:

  • pagename - the exact name of the page (see Article naming conventions)
  • variant - which English dialect (AE for American English, or BE for British English, or CE for Canadian English)
  • abc - a comma-delimited sort order for words within the article name; for example, for "Gerald Ford", the sort order might be "Ford, Gerald"
  • cat1 - the first workgroup this article should be long to (and optionally, cat2 and cat3 can be set to other workgroups); the names for all the workgroups are available at Welcome to Citizendium (at the bottom of the left-hand column)

Normally, a newly created article will has status = 2 (which means it's "developing", more than a stub, but not done either). But if you want to set the status to something else, here are the other valid values:

  • status = 1 (Developed, display shows 4 red dots)
  • status = 2 (Developing, display shows 3 red dots)
  • status = 3 (Stub, display shows 2 red dots)

Tutorial for complete beginners

Creating a basic article

To create a new article in this wiki, all you need to do is type the complete URL for the article into your browser. When you type the URL of any article in the browser's URL line, 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 for an article is https://citizendium.org/wiki/ + article_name Note that any spaces in the article_name must be represented by an underscore.

The URL for an article named "Saint Helena" would be https://citizendium.org/wiki/Saint_Helena.

Namespace

All pages in the wiki are assigned a namespace when they are created.

(main) space is implicit on articles

Articles do not have an explicit namespace in their URL, and are thus said to be in the main space. Search engines are allowed to index articles.

Talk:

The Discussion pages for each article are in the "Talk" namespace. When you click on a discussion page, you'll see that its URL has Talk: in it. The Discussion page for the "Saint Helena" article has three parts: https://citizendium.org/wiki/ + Talk: + Saint_Helena. Discussion pages are excluded from search engines.

Template:

Pages in the Template namespace contain contents intended to be transcluded (fetched and inserted) into multiple other pages.

User:

Each member of Citizendium has a User page which is in the "User" namespace. User pages are not sent to search engines.

Subpages

Articles may have subpages. A subpage name looks like this: (article name)/(subpage name). And example of a subpage is Amaryllis/Related Articles (URL https://citizendium.org/ + Amaryllis + /Related Articles.