CZ:Creating an article with subpages: Difference between revisions

From Citizendium
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
To create a new page, first 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).
To create a new page, first 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'''.  
The URL needed to create a new mainspace article called '''My Article''' would be: '''https://citizendium.org/wiki/Template:My_Article'''.  


To create a CZ subpages article called "My Article", do things ''in exactly this order'':
To create a CZ subpages header, and article cluster, for an existing article "My Article", follow these steps:


# 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.
# create '''Template:My_Article/Metadata''' by ''using the form'' on use the [[CZ:Templates]] page.
# move '''Template:My_Article''' to '''Template:My_Article/Metadata'''
# once you've created ''Template:My_Article/Metadata''', populate it with metadata the that will be used by all the subpages. See NOTE 1 and NOTE 2 below.
# create '''My_Article'''; add the ''<nowiki>{{subpages}}</nowiki>'' template to its top
# add the ''<nowiki>{{subpages}}</nowiki>'' template to the top of the main article
# create '''My_Article/Definition'''
# create '''My_Article/Definition''' and place a one-line definition in it
# create '''Talk:My_Article'''; add the ''<nowiki>{{subpages}}</nowiki>'' template to its top
# create '''Talk:My_Article''' as a blank page with the ''<nowiki>{{subpages}}</nowiki>'' template at its top


Once you have created the article cluster, you can explicitly create these in any order (but do NOT try to create these by clicking the links in the gray subpages bar on the article--those links do not work at present):  
Once you have created the article cluster, you can optionally create these 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):  
# (optionally) create '''My_Article/Related_Articles'''; add the ''<nowiki>{{subpages}}</nowiki>''template  to its top
# (optionally) create '''My_Article/Related_Articles'''; add the ''<nowiki>{{subpages}}</nowiki>''template  to its top
# (optionally) create '''My_Article/Bibliography'''; add the ''<nowiki>{{subpages}}</nowiki>'' template to its top
# (optionally) create '''My_Article/Bibliography'''; add the ''<nowiki>{{subpages}}</nowiki>'' template to its top
# (optionally) create '''My_Article/External_Links'''; add the ''<nowiki>{{subpages}}</nowiki>'' template to its top
# (optionally) create '''My_Article/External_Links'''; add the ''<nowiki>{{subpages}}</nowiki>'' template to its top


<big>NOTE 1:</big> 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.
<big>NOTE 1:</big> 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.
 
<big>NOTE 2:</big> 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.


<pre>
<pre>
Line 57: Line 55:
</pre>
</pre>


<big>NOTE 3</big>: 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 get the details just right.
<big>NOTE 2</big>: 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.

Revision as of 07:49, 28 March 2022

To create a new page, first 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 create a new mainspace article called My Article would be: https://citizendium.org/wiki/Template:My_Article.

To create a CZ subpages header, and article cluster, for an existing article "My Article", follow these steps:

  1. create Template:My_Article/Metadata by using the form on use the CZ:Templates page.
  2. once you've created Template:My_Article/Metadata', populate it with metadata the that will be used by all the subpages. See NOTE 1 and NOTE 2 below.
  3. add the {{subpages}} template to the top of the main article
  4. create My_Article/Definition and place a one-line definition in it
  5. create Talk:My_Article as a blank page with the {{subpages}} template at its top

Once you have created the article cluster, you can optionally create these 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):

  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: 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 = 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>

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.