User:Evon R'al/Wiki coding notes

From EVE University Wiki
< User:Evon R'al
Revision as of 15:04, 30 January 2022 by Evon R'al (talk | contribs) (→‎Special cases: Add missing >)
Jump to: navigation, search

Notes

Signatures

Usage: --<Signature>

Description Markup Result
Signature plus timestamp ~~~~ Evon R'al (talk) 16:54, 7 December 2021 (UTC)
Signature alone ~~~ Evon R'al (talk)
Timestamp alone ~~~~~ 16:54, 7 December 2021 (UTC)

Futher reading:

Code snippets

Small stuf

No more mineable asteroids in missons:

Various mission site locations have had mineable asteroids replaced with cosmetic asteroids. (30/03/2020) <ref>https://www.eveonline.com/news/view/patch-notes-for-march-2020-release 30/03/2020</ref>

Various mission site locations have had mineable asteroids replaced with cosmetic asteroids. (30/03/2020)[1]


{{Hatnote}} to link back to multi level/faction disambiguation pages:

{{hatnote|This article details the Level ?, <Faction> version of this mission. For other variants, see [[<Mission>|<Mission> (disambiguation)]].}}

Linking

Wiki internal

Syntax: [[<Namespace>:<Page name>#<Anchor>|<Display>]]

Namespace
The namespace of the page, separated from the Page name by a colon(:). Default is the main namespace. Options: User, Template, etc. Namespace is NOT case sensitive.
Page name
The name of the page[2]. Page name is case sensitive with the exception of the first letter.
Anchor
To an ID somewhere inside a page. Anchor must be preceded by a #. Headings have an automatic ID identical to the header name. ID can be added manually by using {{Anchor}} or adding an ID= manually.ID's must be unique. Anchor's are case sensitive.
Display
The text that appears visible. Only needed when different from the linking part. Display is preceded by the pipe(|) symbol

Internal wiki links check the existence of the target page. If the page doesn't exist, is misspelled or the case is incorrect the link turns red.

Usage:

Page name only
Using the page name only links to a page[2] in the main namespace with display identical to page name:

[[Venture]] results in Venture
As the first letter is not case sensitive [[venture]] also results in a valid link venture

Link end "trick".
Putting text directly connecting to the closing ]] results in that text being added to the displayed text.

[[Venture]]s results in Ventures while the link still goes to Venture.
[[Venture]]abunchofletters results in Ventureabunchofletters while the link still goes to Venture.

Namespace and Page name
To go to a page outside the main namespace the namespace needs to be added to the link

[[User:Evon R'al]] gives User:Evon R'al
[[UniWiki:Manual of Style]] gives UniWiki:Manual of Style

Page name and Anchor
Using a Page name and an Anchor gets to a specific location within a page.
Using an Anchor only, leads to a specific location within the page.

[[combat sites#Expeditions]] gives combat sites#Expeditions
The existence of the page is still checked, but the existence of the anchor is not.
Note: If a non existing anchor is used the link goes to the top of the page.
[[combat sites#no exist]] gives combat sites#no exist, leading ot the top of the combat sites page

[[#Signatures]] gives #Signatures leading to the Signatures heading on this page.

Page name and display

[[Venture|Venture]] results in Venture. More then double the amount of typing for the same result as when using a page name only link and more cluttered reading in the source.
But when doing this: Example of an [[Venture|mining]] frigate, we get Example of a mining frigate.

The use of display is particularly useful when namespaces or anchors are used. To increase readability.
[[User:Evon R'al|Evon R'al]]'s user page gives Evon R'al's user page
A link to [[combat sites#Expeditions|Expeditions]] gives A link to Expeditions


Special cases
File namespace

[[File:Helpicon.png]] gives Helpicon.png the file embedded at the location of the link.
To get a link to the file page the namespace needs to be preceded by a colon (:)
[[:File:Helpicon.png]] gives File:Helpicon.png a link to the file page.
[[:File:Evon R'al.jpg]] gives File:Evon R'al.jpg
Display can be used like [[:File:Evon R'al.jpg|Evon R'al]] to change the presentation: The file page of Evon R'al's portrait.
For parameters to influence size and placement of a file see Mediawikiwiki:Help:Images

Media namespace
Is a virtual namespace which gives a direct link to a file.

[[Media:Evon R'al.jpg]] gives Media:Evon R'al.jpg
Display can be used: [[Media:Evon R'al.jpg|portrait]] to get Evon R'al's portrait.

Category namespace

[[Category:Pilots]] gives a link to the Category category and the pilots category in a separate box at the bottom of the page.
To get a link to the Pilots category in the text use [[:Category:Pilots]] which gives Category:Pilots

Further reading mediawikiwiki:Help:Links

List of namespaces (In raw XML)

Some possible logo's

Logo ded.png icon warning.png Icon information square.png Helpicon.png

{{MessageBox |On activating gate: [[File:Logo ded.png|35px|bottom|link=|alt= DED logo]] Database Information |Text |collapsed= yes }}
On activating gate: DED logo Database Information
Text


Some table stuff

HTML table with border="1"

Amarr, Blood Raider, Sansha, CONCORDHelium isotopes
Caldari, GuristaNitrogen isotopes
Gallente, ORE, SerpentisOxygen isotopes
MinmatarHydrogen isotopes


Wiki markup table

Faction Isotope type
Amarr, Blood Raider, Sansha, CONCORD Helium
Caldari, Gurista Nitrogen
Gallente, ORE, Serpentis Oxygen
Minmatar Hydrogen

Wiki markup table with class="wikitable"

Faction Isotope type
Amarr, Blood Raider, Sansha, CONCORD Helium
Caldari, Gurista Nitrogen
Gallente, ORE, Serpentis Oxygen
Minmatar Hydrogen

Wiki markup table with class="sortable"

Faction Isotope type
Amarr, Blood Raider, Sansha, CONCORD Helium
Caldari, Gurista Nitrogen
Gallente, ORE, Serpentis Oxygen
Minmatar Hydrogen

Wiki markup table with class="collapsible"

Faction Isotope type
Amarr, Blood Raider, Sansha, CONCORD Helium
Caldari, Gurista Nitrogen
Gallente, ORE, Serpentis Oxygen
Minmatar Hydrogen

Wiki markup table with class="collapsible collapsed"

Collapsible div

Found in {{SkillQueue}}
Key: Classes mw-collapsible, mw-collapased and mw-collapsible-content


<div class="mw-collapsible" style="border: 2px solid white; padding: 0.5em;">
Content of outer div.
<div class="mw-collapsible-content">
Content of inner div.
</div>
</div>

Results in:

Content of outer div.

Content of inner div.

References

  1. ^ https://www.eveonline.com/news/view/patch-notes-for-march-2020-release 30/03/2020
  2. ^ a b In the main namespace called article