Difference between revisions of "Help"

From Archaeopedia
Jump to: navigation, search
(Inserting Pictures)
 
(28 intermediate revisions by the same user not shown)
Line 17: Line 17:
  
 
== Coding ==
 
== Coding ==
The definitive page is here: [http://www.mediawiki.org/wiki/Help:Contents http://www.mediawiki.org/wiki/Help:Contents]
+
The definitive page is here: [https://www.mediawiki.org/wiki/Help:Contents https://www.mediawiki.org/wiki/Help:Contents]
 
Below is a simple guide.
 
Below is a simple guide.
  
Line 37: Line 37:
 
</html>
 
</html>
  
 +
If you know an article exists, titled as in your text you can highlight the particular text and click the internal link button and the link will be created on that text. You can still do that even if the article does not yet exist, but you think it should. People clicking on the link will be invited to create the article.
  
 +
=== Category Links ===
 +
 +
A link to a category looks like this:
 
<html>
 
<html>
  
 
<body>
 
<body>
A link to a category looks like this:
+
[[Category:category name]]
 
 
[[:Category:category name|link text]]
 
 
</body>
 
</body>
  
 
</html>
 
</html>
 +
If you do not know a category name there is a list [[Special:Categories|here]].
  
If you know an article exists, titled as in your text you can highlight the particular text and click the internal link button and the link will be created on that text. You can still do that even if the article does not yet exist, but you think it should. People clicking on the link will be invited to create the article.
+
If you want a new category then just put in a link to it. See the section on creating categories on how to finish the creation of the category.
  
 
=== External Links ===
 
=== External Links ===
Line 75: Line 78:
 
===Creating Categories===
 
===Creating Categories===
  
New categories can be created by using the form at the base of a page you are editing. This creates the bare page with linked pages. A category page should have some content other than just the links. This can be done by clicking on the category name on a page that is linked to the category, or opening the page by searching for it. 
+
To create a category place a link to it on a page you want in that category (see above under internal links).  Save the page then click on the category link. You will then be invited to start the page. Give it the same title at the top as the category name you created. The links to the pages which reference the category will then be generated automatically.
 +
 
 +
A category page should have some content other than just the links.
  
 
=== Inserting Pictures ===
 
=== Inserting Pictures ===
 +
 +
The definitive page is here: https://www.mediawiki.org/wiki/Help:Images#Syntax
 +
 
Use the ''Upload file'' link at the left.
 
Use the ''Upload file'' link at the left.
  
Line 87: Line 95:
 
<body>
 
<body>
  
<p>[[Image:Pic.jpg]]</p>
+
<p>[[File:Pic.jpg]] where Pic is an example - upload your own with a unique filename to each.</p>
<p>More options are: </p>
+
<p></p>
<p>[[Image:Pic.jpg|thumb|caption]]</p>
 
<p> - which inserts a thumbnail picture and</p>
 
<p>[[Image:Pic.jpg|framed|left <i>(or right)</i>|caption]]</p>
 
<p>[[Image:Pic.jpg|x300px]]</p>
 
<p> - which overrides the natural picture size to present it at 300 pixels (or any other size you want) </p>  
 
  
</body>
+
<p> The caption options is: <p>
  
</html>
+
<p>[[File:Pic.jpg|caption]] This produces a floating caption that appears on mouse over.<p>
  
 +
<p> Further options are:<p>
  
----
+
<p>[[File:Pic.jpg|options|caption]]</p>
  
===Inserting Maps===
+
<p> Where the further options are ''framed or thumb, size, alignment'' - use them in that order. Separate them with a |  </p>
This inserts a Google map
 
  
'''Example'''
+
<p>[[File:Pic.jpg|thumb|caption]]</p>
 +
<p> - which inserts a thumbnail picture with the caption</p>
 +
<p></p>
 +
<p>[[File:Pic.jpg|framed|left <i>(or right)</i>|caption]]</p>
 +
<p></p>
 +
<p> - which frames the picture and aligns to the side chosen</p><p></p>
 +
<p>[[File:Pic.jpg|200px]]</p>
 +
<p></p>
 +
<p> - which overrides the natural picture size to present it at 200 pixels width (or any other width you want) </p>
 +
<p>[[File:Pic.jpg|x300px]]</p>
 +
<p> - which overrides the natural picture size to present it at 300 pixels height (or any other height you want) </p>
 +
<p> - or combine the two</p>
 +
<p>[[File:Pic.jpg|200x300px]]</p>
 +
</body>
  
<html>
+
</html>
<body>
 
<p>{{#display_map: </p>
 
<p>-36.8511505365655,174.76979707368628</p>
 
<p>~Title: (Hover text) Albert Barracks Wall</p>
 
<p>~(Clicked on extra text) [[Albert Barracks - Visit]](this example with a link to another archaeopedia page)</p>
 
<p>~ </p>
 
<p>~</p>
 
<p>~(Displayed text) Albert Barracks Wall (or can leave blank);</p>
 
  
<p>| height= 400px</p>
 
<p>| width= 600px</p>
 
<p>| type=satellite</p>
 
<p>| zoom=14</p>
 
<p>}}</p>
 
</body>
 
</html>
 
  
Only one point can be plotted.
+
----
  
This inserts the following:
+
===Inserting Maps===
{{#display_map:
+
'''''StreetMaps'''''
-36.8511505365655,174.76979707368628
 
~Title: (Hover text) Albert Barracks Wall
 
~(Clicked on extra text) [[Albert Barracks - Visit]](this example with a link to another archaeopedia page)
 
~
 
~
 
~(Displayed text) Albert Barracks Wall;
 
  
 +
''Example''
 +
{{#display_map:
 +
-36.8906,174.7176~Mount Albert;
 
| height= 400px
 
| height= 400px
 
| width= 600px
 
| width= 600px
 
| type=satellite
 
| type=satellite
| zoom=14
+
| zoom=16
 
}}
 
}}
  
 +
The code to achieve this is (not able to cut and pasted) is:
  
To find latitude / longitude for locations find the point on Google Earth and set a marker on it  (have Tools / options / 3d view / Show Lat/Long set on decimal degrees), then right click on the marker to see the location.
+
[[File:Code2.jpg]]
  
'''Alternative Example'''
+
or look on the 'edit' view of this page.
<p>Mouse over marker for label.</p>
+
 
<html>
+
 
<body>
+
You can adjust the height and width and zoom and change the 'Mount Albert' location.
<p>{{#display_map:</p>
 
<p> -36.622141, 175.808201~link:Great Mercury Island; </p>
 
<p> (the link in the last line is to an Archaeopedia page)</p>
 
<p>-36.7, 175.80820~hover text [[Great Mercury Island]];</p>
 
<p> (showing an archaeopedia link in the clicked on text)</p>
 
<p>-36.8, 175.80820~Another place;</p>
 
<p> (showing a plain label)</p>
 
<p>| height= 400px</p>
 
<p>| width= 600px</p>
 
<p>| type=satellite</p>
 
<p>| zoom=10</p>
 
<p>}}</p>
 
</body>
 
</html>
 
  
Remove the lines in brackets to use.
+
To get the location go to https://www.openstreetmap.org/ and center on your site and click the '''Share''' button on the right.
  
Multiple points can be plotted. But apparently marker labels cannot be used as well as a link with this coding.
 
  
This inserts the the following map:
 
  
Mouse over marker for label.
+
'''''Google Maps'''''
{{#display_map:
 
-36.622141, 175.808201~link:Great Mercury Island;
 
-36.7, 175.80820~hover text [[Great Mercury Island]];
 
-36.8, 175.80820~Another place;
 
| height= 400px
 
| width= 600px
 
| type=satellite
 
| zoom=10
 
}}
 
  
There is more information [http://semantic-mediawiki.org/wiki/Maps_examples#Coordinates_and_geocoding here].
+
Wiki media has had several versions over the years with ways of inserting google maps - currently it has none.  
  
 +
If it ever reappears we would not recommend using it - it is unlikely to be stable.
  
Another alternative is to use and inserted ''iframe'' - you can get the code for the iframe from google maps.
+
The only one we suggest is an inserted ''iframe'' - you can get the code for the iframe from google maps.
  
 
'''Example'''
 
'''Example'''
Line 190: Line 165:
 
<html>
 
<html>
 
<body>
 
<body>
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.co.nz/maps/place/Riverton/@-46.3534778,168.0079792,15.5z/data=!4m5!3m4!1s0xa9d2f06e930c4455:0x500ef868479f250!8m2!3d-46.3638811!4d168.0181945"></iframe><br /><small><a href="https://maps.google.co.nz/maps?hl=en&amp;ie=UTF8&amp;ll=-36.789233,174.672897&amp;spn=0.005645,0.011169&amp;t=h&amp;z=17&amp;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>
+
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d7788.927730584159!2d168.00797915102473!3d-46.35347775584877!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0xa9d2f06e930c4455%3A0x500ef868479f250!2sRiverton!5e0!3m2!1sen!2snz!4v1521153735862" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>
 
</body>
 
</body>
 
</html>
 
</html>
  
The code to achieve this can be seen on the edit view of this page.
+
The code to achieve this is (not able to cut and pasted) or look on the 'edit' view of this page"
  
 +
[[File:Code1.jpg]]
  
 
----
 
----
Line 374: Line 350:
  
 
There is an infobox formatted for these pages. See here for an example - [[Auckland Museum]].
 
There is an infobox formatted for these pages. See here for an example - [[Auckland Museum]].
 +
 +
 +
[[User:Glaw|Glaw]] ([[User talk:Glaw|talk]]) 21:13, 11 May 2018 (UTC)
  
  
 
[[Category:Archaeopedia]]
 
[[Category:Archaeopedia]]

Latest revision as of 20:49, 21 January 2023

This page is to help people with editing rights.

Start an Article

Type the title of your intended article into the search box and click Go. If the article already exists it will open - if not the words will appear:

'There is no page titled 'your article title'. You can then use the link that appears: ' create this page.'

The red part is a link. Clicking it will take you to a form where you can start entering the content. Don't forget to save it - by the button at the base of the page!

Coding

The definitive page is here: https://www.mediawiki.org/wiki/Help:Contents Below is a simple guide.

Internal Links

Use the Internal link button at the top to insert. The coding looks like this: [[article name|link text]] Thus a link to the article ''Auckland Museum'' would look like this: [[Auckland Museum|Find out about Auckland Museum]]

If you know an article exists, titled as in your text you can highlight the particular text and click the internal link button and the link will be created on that text. You can still do that even if the article does not yet exist, but you think it should. People clicking on the link will be invited to create the article.

Category Links

A link to a category looks like this: [[Category:category name]] If you do not know a category name there is a list here.

If you want a new category then just put in a link to it. See the section on creating categories on how to finish the creation of the category.

External Links

Use the External link button at the top to insert. The coding looks like this:

[http://www.etc link text] The space after the URL marks the beginning of the link text.

Here is an example:

[http://www.tepapa.govt.nz/ Te Papa Museum]

Creating Categories

To create a category place a link to it on a page you want in that category (see above under internal links). Save the page then click on the category link. You will then be invited to start the page. Give it the same title at the top as the category name you created. The links to the pages which reference the category will then be generated automatically.

A category page should have some content other than just the links.

Inserting Pictures

The definitive page is here: https://www.mediawiki.org/wiki/Help:Images#Syntax

Use the Upload file link at the left.

Then use the Embedded file button at the top to insert.

The coding looks like this:

[[File:Pic.jpg]] where Pic is an example - upload your own with a unique filename to each.

The caption options is:

[[File:Pic.jpg|caption]] This produces a floating caption that appears on mouse over.

Further options are:

[[File:Pic.jpg|options|caption]]

Where the further options are ''framed or thumb, size, alignment'' - use them in that order. Separate them with a |

[[File:Pic.jpg|thumb|caption]]

- which inserts a thumbnail picture with the caption

[[File:Pic.jpg|framed|left (or right)|caption]]

- which frames the picture and aligns to the side chosen

[[File:Pic.jpg|200px]]

- which overrides the natural picture size to present it at 200 pixels width (or any other width you want)

[[File:Pic.jpg|x300px]]

- which overrides the natural picture size to present it at 300 pixels height (or any other height you want)

- or combine the two

[[File:Pic.jpg|200x300px]]



Inserting Maps

StreetMaps

Example

Loading map...

The code to achieve this is (not able to cut and pasted) is:

Code2.jpg

or look on the 'edit' view of this page.


You can adjust the height and width and zoom and change the 'Mount Albert' location.

To get the location go to https://www.openstreetmap.org/ and center on your site and click the Share button on the right.


Google Maps

Wiki media has had several versions over the years with ways of inserting google maps - currently it has none.

If it ever reappears we would not recommend using it - it is unlikely to be stable.

The only one we suggest is an inserted iframe - you can get the code for the iframe from google maps.

Example

The code to achieve this is (not able to cut and pasted) or look on the 'edit' view of this page"

Code1.jpg


Wikipedia Article Links

Wikipedia
Wikipedia has an article about:

Links to Wikipedia articles can be coded thus:

{{Wikipedia|Aotearoa}}

Aotearoa is the title of a Wikipedia article, and the resulting link is shown at the right.


Inserting Numbered References

The Wiki allows this to be done automaticaly. Here is an example:

Blah blah blah [1], on the other hand blah blah blah [2].

References

  1. Jones, J and S Smith 1970 Unwashed washers. Journal of Plumbing 17(3):12-21.
  2. Blogs, J 2009 Scalded cats. Dog Fancier 97:34-35.


The coding for this was:

Blah blah blah <ref>Jones, J and S Smith 1970 Unwashed washers. ''Journal of Plumbing'' 17(3):12-21.</ref>, on the other hand blah blah blah <ref>Blogs, J 2009 Scalded cats. ''Dog Fancier'' 97:34-35.</ref>.

'''References'''
<references />

The last line generates the list so they must be included.

Multiple use of one reference can be achieved thus.

First use:

<ref name="jones">Jones, J and S Smith 1970 Unwashed washers. ''Journal of Plumbing'' 17(3):12-21.</ref>

Subsequent use:

<ref name="jones"/>

HTML Code

You can insert HTML code in an article. It is helpful to set up tables for instance.

Include the opening and closing codes as below.

<html>

<body>

(HTML text)

</body>

</html>

Contents Boxes

The Wiki creates these automaticaly if the article contains four or more Level 2 or Level 3 headlines. Thus:

== Second Tier Heading ==

=== Third Tier Heading ===

Look at the edit version of this page to see how this page does it.

Category pages do not automatically have contents boxes but they can be created by including

__FORCETOC__

(two underlines each side) where you want the table to appear.

Infobox Standardised Pages

Sites to Visit Pages

Please title these 'site name' - Visit - leaving out the ' marks. There is an infobox formatted for these pages. See here for an example - Mt Eden - Visit

Include the code below (cut and paste may not work):


{{Infobox Sitetovisit |

| site_name = 'site name' (- use the same as the title)
| alternate_name = 'alternative site name' (- leave blank if none)
| stars_image = (how many stars the site rates - one to three, alternatives are: [[Image:Star.gif] [[Image:Twostar.gif] [[Image:Threestar.gif]])
| type_image1 = (e.g. [[Image:Patu.gif]]- see list below)
| type_image2 = (add a second from the last list - leave blank if none)
| ethnicity = (e.g. Maori, Chinese)
| site_type = (e.g. Pa)
| where = (e.g. Central Isthmus - 15 minutes from the city centre)
| how_to_get_there = (make brief suggestions e.g. bus from city.)
| how_long_to_allow = (e.g. 2 hrs walking over the site following the archaeological trail.)

}}

Location:

What:

What else to do there:

Web info:



Type Images

Fort.gif Fort.gif - Coastal fortifications

Loco.gif Loco.gif - Railway heritage sites

Gun.gif Gun.gif - New Zealand wars colonial forces sites

Gold.gif Gold.gif - Gold / bullion mining sites

Mine.gif Mine.gif - Mining sites other than gold

Indust.gif Indust.gif - Industrial sites

Gourd.gif Gourd.gif - Maori non-defensive sites

Patu.gif Patu.gif- Maori pa

Put a google map of the site location, a description of the site, references, links etc. in the body of the page.

The page should be included in the appropriate regional 'sites to visit' category - see Sites to Visit

Creating a site to visit page should not preclude an excavation page for a site that has been excavated.

Excavated Sites

Some standard headings are

1 Summary

2 Location and Date

3 Type

4 Excavators

5 Artefacts

6 Publications

Museum Pages

There is an infobox formatted for these pages. See here for an example - Auckland Museum.


Glaw (talk) 21:13, 11 May 2018 (UTC)