CivcraftImport:How to: Difference between revisions

From CivWiki
Jump to navigation Jump to search
Content added Content deleted
(use internal link)
(massively clean up)
Line 1: Line 1:
Using the source editor to import Civcraft articles will likely be much easier than the visual editor, as there are significant syntax differences.
The Civcraft Import Project is an ongoing project to import all of the previous Civcraft wiki pages onto this one.


=== Duplicate Pages ===
Gjum has graciously uploaded all of the Civcraft wiki files onto the wiki under two packages: '''CivcraftImport''' or '''Civcraft2Import'''. However none of them are formatted into wiki format, they have only merely been converted.


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.
The list of all pages to edit are [https://civwiki.org/wiki/Special:PrefixIndex?prefix=&namespace=3002 here for CivcraftImport] and [https://civwiki.org/wiki/Special:PrefixIndex?prefix=&namespace=3004 here for Civcraft2Import]. You may need to click "Next page" as there is a lot of pages, and there's a whole lot of junk.


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


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.
You can talk to other editors in the [https://discord.gg/R9pPcHR CivWiki Discord], don't hesitate to ask there if you run into any issues.


=== Headers ===
So pick a page, follow these steps, and get started!


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>.
=== Step 0: Duplicate Pages ===
* 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 ===
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.


The Civcraft wiki used different infoboxes from CivWiki. CivWiki most likely has a relevant infobox that should be used instead. For instance:
Additionally, if your page looks like CivcraftImport:Chanada/Viridian/Constitution or something like that, you can rename the page however you want to.
- [[Template:Infobox civilization]] for nations
- [[Template:Religion]] for religions
- [[Template:Infobox military conflict]] for wars, conflicts, etc
- [[Template:Infobox treaty]] for treaties
- [[Template:CoordCivcraft2]] or [[Template:CoordCivcraft3]] for coordinates, depending on the iteration


=== Step 1: Headers ===
=== Images ===


Some Civcraft articles reference external articles. These should be uploaded to the wiki via [[Special:Upload]] and then linked to.
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.


The [https://drive.google.com/drive/u/1/folders/1a9xsULy1Obr1tj7SXNxaqypaZZyYASTC archives upload] may have some missing images that you can upload.
* To make a header, use <code><nowiki>== Header ==</nowiki></code> adding more equal signs as necessary. Make sure you keep the header type.


=== Links and References ===
* '''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.

* There are six levels of headers. If, for some reason you get to the last one (6 headers) keep using it.

=== Step 2: Infoboxes & Images ===

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:CoordCivcraft2]] or [[Template:CoordCivcraft3]].

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.

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], please upload them**. To display them, use <code><nowiki>[[File:Image.png]]</nowiki></code> or similar. More info on that [https://www.mediawiki.org/wiki/Help:Images#Format here].

=== Step 3: Links & 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 52: Line 45:
<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 ==
(add a new line before the next)
<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 format, 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 [https://discord.gg/R9pPcHR CivWiki Discord] and one of our editors will move it into the Main namespace if approved. Congratulations! You're done! Now go edit another Civcraft page!

=== Need any help? ===

[[CivWiki:Editing Guide]] might be of help.
[https://discord.gg/R9pPcHR CivWiki Discord] is an easy place to get help if you're still confused

Revision as of 02:15, 12 December 2023

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: - Template:Infobox civilization for nations - Template:Religion for religions - Template:Infobox military conflict for wars, conflicts, etc - Template:Infobox treaty for treaties - Template:CoordCivcraft2 or Template:CoordCivcraft3 for coordinates, depending on the iteration

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 == <references />