Difference between revisions of "Template:LinkNeo"

From NeoDex
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly><span style="white-space: nowrap"><span style="margin-right: 4px;">#{{#switch: {{{type}}}| default = http://www.pinkpt.com/neodex/images/8/8f/Neo_favicon.png | neopedia = http://www.pinkpt.com/neodex/images/a/ae/Tcg_icon.png | neodeck = http://www.pinkpt.com/neodex/images/9/98/Neodeck_icon.png | tcg = http://www.pinkpt.com/neodex/images/a/ae/Tcg_icon.png}} </span>[http://www.neopets.com/{{ #if: {{{shop|}}} | objects.phtml?type=shop&obj_type={{{shop}}} | {{ #if: {{{neopedia|}}} | neopedia.phtml?neopedia_id={{{neopedia}}} | {{ #if: {{{editorial|}}} | ntimes/index.phtml?section=editorial&issue={{{editorial}}} | {{ #if: {{{boardsection|}}} | neoboards/boardlist.phtml?board={{{boardsection}}} | {{ #if: {{{galleryofheroes|}}} | hero/showhero.phtml?hero={{{galleryofheroes}}} | {{ #if: {{{galleryofevil|}}} | evil/showcreature.phtml?villain={{{galleryofevil}}} | {{ #if: {{{game|}}} | games/game.phtml?game_id={{{game}}} | {{ #if: {{{other|}}} | {{{other}}} }} }} }} }} }} }} }} }} '''{{{title}}}''']</span></includeonly><noinclude>
<includeonly><span style="white-space: nowrap"><span style="margin-right: 4px;">{{#switch: {{{type}}}| default = http://www.pinkpt.com/neodex/images/8/8f/Neo_favicon.png | neopedia = http://www.pinkpt.com/neodex/images/e/ea/Neopedia_icon.png | neodeck = http://www.pinkpt.com/neodex/images/9/98/Neodeck_icon.png | tcg = http://www.pinkpt.com/neodex/images/a/ae/Tcg_icon.png}} </span>[http://www.neopets.com/{{ #if: {{{shop|}}} | objects.phtml?type=shop&obj_type={{{shop}}} | {{ #if: {{{neopedia|}}} | neopedia.phtml?neopedia_id={{{neopedia}}} | {{ #if: {{{editorial|}}} | ntimes/index.phtml?section=editorial&issue={{{editorial}}} | {{ #if: {{{boardsection|}}} | neoboards/boardlist.phtml?board={{{boardsection}}} | {{ #if: {{{galleryofheroes|}}} | hero/showhero.phtml?hero={{{galleryofheroes}}} | {{ #if: {{{galleryofevil|}}} | evil/showcreature.phtml?villain={{{galleryofevil}}} | {{ #if: {{{game|}}} | games/game.phtml?game_id={{{game}}} | {{ #if: {{{other|}}} | {{{other}}} }} }} }} }} }} }} }} }} '''{{{title}}}''']</span></includeonly><noinclude>


== Purpose ==
== Purpose ==
Line 9: Line 9:
Use varies by section linked to:
Use varies by section linked to:


=== Main Shops ===
=== Special Type ===


For linking to main [[Shop]]s in any world:
The following utilize special icons using the "type" section:


*<nowiki>{{LinkNeo|shop=2|title=Kauvara's Magic Shop}}</nowiki><br>Result: {{LinkNeo|shop=2|title=Kauvara's Magic Shop}}
==== Neopedia ====


*'''shop'''
For linking to [[Neopedia]] entries:
**Shop ID. If shop is http://www.neopets.com/objects.phtml?type=shop&obj_type=30 , enter '30' in this field.
 
*'''title'''
**Shop's name - Should match the title of the shop seen onsite.
 
=== Neopedia ===


For linking to [[Neopedia]] entries:
*<nowiki>{{LinkNeo|type=neopedia|neopedia=1|title=Aisha Thieves}}</nowiki><br>Result: {{LinkNeo|neopedia=1|title=Aisha Thieves}}


*<nowiki>{{LinkNeo|neopedia=1|title=Aisha Thieves}}</nowiki><br>Result: {{LinkNeo|neopedia=1|title=Aisha Thieves}}
*'''type'''
**This loads the neopedia icon. In case, you put '''neopedia''' in this section.


*'''neopedia'''
*'''neopedia'''
Line 33: Line 28:
**Article's Name - Should match that of the article, though it can be shortened if needed.
**Article's Name - Should match that of the article, though it can be shortened if needed.


=== Editorials ===
==== Editorials ====


For linking to specific editorials in the [[Neopian Times]]:
For linking to specific editorials in the [[Neopian Times]]:


*<nowiki>{{LinkNeo|editorial=523|title=Editorial #523}}</nowiki><br>Result: {{LinkNeo|editorial=523|title=Editorial #523}}
*<nowiki>{{LinkNeo|type=editorial|editorial=523|title=Editorial #523}}</nowiki><br>Result: {{LinkNeo|editorial=523|title=Editorial #523}}
 
*'''type'''
**This loads the editorial icon. In case, you put '''editorial''' in this section.


*'''editorial'''
*'''editorial'''
Line 45: Line 43:
**The title - Should be ''Editorial #NumberHere''
**The title - Should be ''Editorial #NumberHere''


=== Neoboards ===
=== Normal Icons ===
 
The following do not use the "type" section, and therefore load a default icon:
 
==== Main Shops ====
 
For linking to main [[Shop]]s in any world:
 
*<nowiki>{{LinkNeo|shop=2|title=Kauvara's Magic Shop}}</nowiki><br>Result: {{LinkNeo|shop=2|title=Kauvara's Magic Shop}}
 
*'''shop'''
**Shop ID. If shop is http://www.neopets.com/objects.phtml?type=shop&obj_type=30 , enter '30' in this field.
 
*'''title'''
**Shop's name - Should match the title of the shop seen onsite.
 
==== Neoboards ====


For linking to board sections in the [[Neoboards]]:
For linking to board sections in the [[Neoboards]]:
Line 57: Line 71:
**Name of board section. For example, if it's known as ''Role Playing'', then you enter ''Role Playing'' in this field.
**Name of board section. For example, if it's known as ''Role Playing'', then you enter ''Role Playing'' in this field.


=== Gallery of Heroes ===
==== Gallery of Heroes ====


For linking to [[Gallery of Heroes]] entries:
For linking to [[Gallery of Heroes]] entries:
Line 69: Line 83:
**Entry's title. Should match name onsite (Eg 'Soup Faerie', 'Hanso').
**Entry's title. Should match name onsite (Eg 'Soup Faerie', 'Hanso').


=== Gallery of Evil ===
==== Gallery of Evil ====


For linking to [[Gallery of Evil]] entries:
For linking to [[Gallery of Evil]] entries:
Line 81: Line 95:
**Entry's title. Should match name onsite (Eg, 'Lord Kass', 'Xandra'.
**Entry's title. Should match name onsite (Eg, 'Lord Kass', 'Xandra'.


=== Games Room ===
==== Games Room ====


For linking to specific games within the [[Games Room]]:
For linking to specific games within the [[Games Room]]:
Line 93: Line 107:
*The game's title. Should match onsite name.
*The game's title. Should match onsite name.


=== Other ===
==== Other ====


For linking elsewhere onsite:
For linking elsewhere onsite:

Revision as of 05:22, 5 March 2014


Purpose

To link to various sections of Neopets.com with ease.

Use

Use varies by section linked to:

Special Type

The following utilize special icons using the "type" section:

Neopedia

For linking to Neopedia entries:

  • {{LinkNeo|type=neopedia|neopedia=1|title=Aisha Thieves}}
    Result: Aisha Thieves
  • type
    • This loads the neopedia icon. In case, you put neopedia in this section.
  • title
    • Article's Name - Should match that of the article, though it can be shortened if needed.

Editorials

For linking to specific editorials in the Neopian Times:

  • {{LinkNeo|type=editorial|editorial=523|title=Editorial #523}}
    Result: Editorial #523
  • type
    • This loads the editorial icon. In case, you put editorial in this section.
  • title
    • The title - Should be Editorial #NumberHere

Normal Icons

The following do not use the "type" section, and therefore load a default icon:

Main Shops

For linking to main Shops in any world:

  • title
    • Shop's name - Should match the title of the shop seen onsite.

Neoboards

For linking to board sections in the Neoboards:

  • title
    • Name of board section. For example, if it's known as Role Playing, then you enter Role Playing in this field.

Gallery of Heroes

For linking to Gallery of Heroes entries:

  • title
    • Entry's title. Should match name onsite (Eg 'Soup Faerie', 'Hanso').

Gallery of Evil

For linking to Gallery of Evil entries:

  • title
    • Entry's title. Should match name onsite (Eg, 'Lord Kass', 'Xandra'.

Games Room

For linking to specific games within the Games Room:

  • title
  • The game's title. Should match onsite name.

Other

For linking elsewhere onsite:

  • {{LinkNeo|other=community/index.phtml|title=Community Hub}}
    Result: Community Hub
  • title
      • The page's title. Should match onsite title, but can say anything else if appropriate.