CivcraftImport:How to: Difference between revisions

From CivWiki
Jump to navigation Jump to search
Content added Content deleted
mNo edit summary
No edit summary
 
(23 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This page describes for to import [[Civcraft]] and [[Civcraft 2.0|Civcraft2]] articles into the main namespace, as part of [[CivWiki:Editing Projects#Civcraft wiki importing|a long term editing project]].
The Civcraft Import Project is an ongoing project to import all of the previous Civcraft wiki pages onto this one.


The original Civcraft wiki was imported to CivWiki under the [https://civwiki.org/wiki/Special:PrefixIndex?prefix=&namespace=3002 CivcraftImport] and [https://civwiki.org/wiki/Special:PrefixIndex?prefix=&namespace=3004 Civcraft2Import] namespaces. The original Civcraft wiki used a different software and format than CivWiki, so these articles will need to be cleaned up before being moved into the main namespace. The eventual goal is to move all of these articles into the main namespace.
Gjum has graciously uploaded all of the Civcraft wiki files onto the wiki under the CivcraftImport or Civcraft2Import namespace. However none of them are formatted into wiki format, they have only merely been converted.


== Importing ==
To edit these, it's HIGHLY RECOMMENDED you use the "Edit source" option, and not "Edit".


Using the source editor to import Civcraft articles will likely be much easier than the visual editor, as there are significant syntax differences.
There are a few main steps that editors must take in order to promote them onto the main namespace:


=== Step 0: Duplicate Pages ===
=== Duplicate Pages ===


Check if the Civcraft article already has an article about it on the main namespace. If it does, the content from the Civcraft article may be able to be moved to a "Civcraft" section of that article.
Check if the page that is currently on the wiki has the same name. (This means if you have a page like CivcraftImport:Commonwealth, check Commonwealth's page.) If it does, confirm with the leaders of the page that the country is the same as it was back in 2.0. If not, contact the CivWiki and we'll see what to do with it.


=== Renaming ===
Additionally, if your page looks like CivcraftImport:Chanada/Viridian/Constitution or something like that, you can rename the page however you want to.


Civcraft articles used many slashes to name articles based on categorizations. This should not be done on CivWiki, so while the constitution of Chanada's city of Viridian was named CivcraftImport:Chanada/Viridian/Constitution on the Civcraft wiki, it should be named Constitution of Viridian on CivWiki, or Constitution of Viridian (Chanada city) if just Viridian is ambiguous.
=== Step 1: Headers ===


=== Headers ===
Headers are the most glaring issue when you're doing something like this. Headers will most likely be in a
<code><nowiki><span class='underline'>Danzilona</span></nowiki></code> or similar, and use the most appropriate headers to fix this.


* To make a header, use <code><nowiki>== Header ==</nowiki></code> adding more equal signs as necessary. Make sure you keep the header type.
If you see a header like <code><nowiki><span class='underline'>Danzilona</span></nowiki></code>, this should be converted to a MediaWiki header like <code><nowiki>== Danzilona ==</nowiki></code>.
* Never use the highest header tag <code><nowiki>= Danzilona =</nowiki></code> for a page. These are only used for the automatically-inserted title header. If the page you're importing uses this, increment all header levels by one.


=== Infoboxes ===
* '''Never''' use the highest header tag <code><nowiki>= Top Header =</nowiki></code> for a page. Typically those are only used for page headers, and should never be used.


The Civcraft wiki used different infoboxes from CivWiki. CivWiki most likely has a relevant infobox that should be used instead. For instance:
* There are six levels of headers. If, for some reason you get to the last one (6 headers) keep using it.


* [[Template:Infobox civilization]] for nations
=== Step 2: Infoboxes & Images ===
* [[Template:Infobox military conflict]] for wars, conflicts, etc
* [[Template:Infobox treaty]] for treaties
* [[Template:CoordCivcraft2]] or [[Template:CoordCivcraft3]] for coordinates, depending on the iteration


Religions do not have a template on civwiki yet. One could be created if there is demand for it.
Chances are most pages will have an infobox at the top that needs to be fixed. There are some appropriate ones, like [[Template:Infobox civilization]] for nations and similar for military conflicts. For those, fill out as necessary. Coordinates should not use [[Template:Coord]], but [[Template:CivcraftCoord2]] or likewise for the respective iteration.


=== Images ===
If you have an infobox that is significantly different than others, like for a religion, event, etc., notify people on the CivWiki discord and we can figure it out.


Some Civcraft articles reference external articles. These should be uploaded to the wiki via [[Special:Upload]] and then linked to.
For images, it's highly preferable that you use [[Special:Upload]] to bring the outside pictures on the wiki, but if you are unable to, don't bother. Additionally, if you're able to find the images in the [https://drive.google.com/drive/u/1/folders/1a9xsULy1Obr1tj7SXNxaqypaZZyYASTC archives file here], you'll still need to upload them again. To display them, use <code><nowiki>[[File:Image.png]]</nowiki></code> or similar.


The [https://drive.google.com/drive/u/1/folders/1a9xsULy1Obr1tj7SXNxaqypaZZyYASTC archives upload] may have some missing images that you can upload.
=== Step 3: Links & References ===

=== Links and References ===


Most pages will have links. All of them will be broken.
Most pages will have links. All of them will be broken.


As a base, reformat the links into just the article name. If you have <code><nowiki>[[groups/nations/chanada]]</nowiki></code>, reformat into <code><nowiki>[[Chanada]]</nowiki></code>.
As a start, reformat the links into just the article name. If you have <code><nowiki>[[groups/nations/chanada]]</nowiki></code>, reformat into <code><nowiki>[[Chanada]]</nowiki></code>.


For more complicated links like <code><nowiki>[[groups/nations/chanada/viridian/constitution]]</nowiki></code>, first, check if the page has already been created and change it to the already existing page. If not, then rename the page after CivcraftImport: to whatever makes sense, and change the name on the resultant page to what you made.
For more complicated links like <code><nowiki>[[groups/nations/chanada/viridian/constitution]]</nowiki></code>, first, check if the page has already been created and change it to the already existing page. If not, then rename the page after CivcraftImport: to whatever makes sense, and change the name on the resultant page to what you made.
Line 48: Line 53:
<code><nowiki>Something that the wiki said. <ref> https://linkgoeshere.com </ref></nowiki></code>
<code><nowiki>Something that the wiki said. <ref> https://linkgoeshere.com </ref></nowiki></code>


Once you've done all of this, add this at the very bottom of the page, but before the Categories:
Once you've done all of this, add this at the very bottom of the page (but before any categories):


<code><nowiki>
<code><nowiki>
== References ==
== References == (newline here)
<references />

<references>
</references>
</nowiki></code>
</nowiki></code>


=== Step 4: Literally anything else ===

Some of these pages will have tables (like Civcraft's Gensokyo page) or others, and they may be in a completely different, so you'll need to fix them.

If there are more warnings about pages we need to issue this will be amended below.

=== Step 5: Approving ===

Once you've finished your page, announce your achievement on the CivWiki and one of our editors will move it into the main namespace if approved. Congratulations! You're done! Now go edit another Civcraft page!

Latest revision as of 02:23, 12 December 2023

This page describes for to import Civcraft and Civcraft2 articles into the main namespace, as part of a long term editing project.

The original Civcraft wiki was imported to CivWiki under the CivcraftImport and Civcraft2Import namespaces. The original Civcraft wiki used a different software and format than CivWiki, so these articles will need to be cleaned up before being moved into the main namespace. The eventual goal is to move all of these articles into the main namespace.

Importing

Using the source editor to import Civcraft articles will likely be much easier than the visual editor, as there are significant syntax differences.

Duplicate Pages

Check if the Civcraft article already has an article about it on the main namespace. If it does, the content from the Civcraft article may be able to be moved to a "Civcraft" section of that article.

Renaming

Civcraft articles used many slashes to name articles based on categorizations. This should not be done on CivWiki, so while the constitution of Chanada's city of Viridian was named CivcraftImport:Chanada/Viridian/Constitution on the Civcraft wiki, it should be named Constitution of Viridian on CivWiki, or Constitution of Viridian (Chanada city) if just Viridian is ambiguous.

Headers

If you see a header like <span class='underline'>Danzilona</span>, this should be converted to a MediaWiki header like == Danzilona ==.

  • Never use the highest header tag = Danzilona = for a page. These are only used for the automatically-inserted title header. If the page you're importing uses this, increment all header levels by one.

Infoboxes

The Civcraft wiki used different infoboxes from CivWiki. CivWiki most likely has a relevant infobox that should be used instead. For instance:

Religions do not have a template on civwiki yet. One could be created if there is demand for it.

Images

Some Civcraft articles reference external articles. These should be uploaded to the wiki via Special:Upload and then linked to.

The archives upload may have some missing images that you can upload.

Links and References

Most pages will have links. All of them will be broken.

As a start, reformat the links into just the article name. If you have [[groups/nations/chanada]], reformat into [[Chanada]].

For more complicated links like [[groups/nations/chanada/viridian/constitution]], first, check if the page has already been created and change it to the already existing page. If not, then rename the page after CivcraftImport: to whatever makes sense, and change the name on the resultant page to what you made.

Many pages will have references like this:

[https://linkgoeshere.com Something that the wiki said]

Convert these by putting these references at the end of a sentence, like:

Something that the wiki said. <ref> https://linkgoeshere.com </ref>

Once you've done all of this, add this at the very bottom of the page (but before any categories):

== References == (newline here) <references />