Linking

From Lost Minis Wiki

Jump to: navigation, search

To use this code, simply copy and paste. Please take care not to delete functioning code on this page and don't add any code that hasn't been proven to work on this version of Wiki. To test code, use the Sandbox.

Contents

External Linking

http://en.wikipedia.org/wiki/Main_Page Try not to use this type - it's messy. Use the "invisible pipe" version below.
[http://en.wikipedia.org/wiki/Main_Page] Produces a numbered footnote link
[http://en.wikipedia.org/wiki/Main_Page Wikipedia] Note: there's no pipe line on this one! ("invisible pipe") (Shows up as "Wikipedia")

Internal Linking

To a Page:
[[Julie Guthrie]]
[[Julie Guthrie|J. Guthrie]] (Shows up as "J. Guthrie")

Back to Top:
[[#top|Back to Top]] (Shows up as "Back to Top")

To an Image Page:
[[:Image:RP-01-001v1.jpg|<span style="font-variant:small-caps">Alt Views</span>]] (Shows up as "Alt Views")

Linking in-text to a category:
{{clink|Grenadier}}
{{clink|Mirliton|Mirliton SG}} (Shows up as "Mirliton SG")

Jump-linking within a page (using anchors):
Section headings and the top of the page are automatically anchored.

Internal link to an anchor:
[[#AnchorName]]
[[#AnchorName|YourText]] (Shows up as "YourText")

Setting an internal link anchor:
<div id="AnchorName"></div> (Invisible link that receives the jump to the target name.)
<div id="AnchorName">YourText</div> (Shows up as "YourText" and receives the jump to the target name.)

Internal Jump-linking to another page with an anchor:
[[PageName#AnchorName]]

Category Linking

Don't forget to put this at the very bottom of your page and add as many as are pertinent:
[[category:YourCategoryOne]]
[[category:YourCategoryTwo|Your Category Two (modified)]] (Shows up as "Your Category Two (modified)")

Redirects

Redirect to a page:
#REDIRECT [[NewPageName]]
Redirect to a category:
#REDIRECT [[category:ProperCategoryName]]

Personal tools