Difference between revisions of "Template:LinkNeo"

From NeoDex
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>{{ #if: {{{shop|}}} | {{IconNeopets}} [http://www.neopets.com/objects.phtml?type=shop&obj_type={{{shop}}} | {{ #if: {{{neopedia|}}} | {{IconNeoPedia}} [http://www.neopets.com/neopedia.phtml?neopedia_id={{{neopedia}}} | {{ #if: {{{neoeck|}}} | {{IconNeoDeck}}[http://www.neopets.com/neopedia.phtml?neopedia_id={{{neodeck}}} | {{ #if: {{{tcg|}}} | {{IconTCG}} [http://www.neopets.com/neopedia.phtml?neopedia_id={{{tcg}}} | {{ #if: {{{editorial|}}} | {{IconEditorial}} [http://www.neopets.com/ntimes/index.phtml?section=editorial&issue={{{editorial}}} | {{ #if: {{{boardsection|}}} | {{IconNeopets}} [http://www.neopets.com/neoboards/boardlist.phtml?board={{{boardsection}}} | {{ #if: {{{galleryofheroes|}}} | {{IconNeopets}} [http://www.neopets.com/hero/showhero.phtml?hero={{{galleryofheroes}}} | {{ #if: {{{galleryofevil|}}} | {{IconNeopets}} [http://www.neopets.com/evil/showcreature.phtml?villain={{{galleryofevil}}} | {{ #if: {{{game|}}} | {{IconNeopets}} [http://www.neopets.com/games/game.phtml?game_id={{{game}}} | {{ #if: {{{other|}}} | {{IconNeopets}} http://www.neopets.com/{{{other}}} }} }} }} }} }} }} }} }} }} }} '''{{{title}}}''']</includeonly><noinclude>
<includeonly>{{ #if: {{{shop|}}} | {{IconNeopets}} [http://www.neopets.com/objects.phtml?type=shop&obj_type={{{shop}}} | {{ #if: {{{neopedia|}}} | {{IconNeopedia}} [http://www.neopets.com/neopedia.phtml?neopedia_id={{{neopedia}}} | {{ #if: {{{neoeck|}}} | {{IconNeoDeck}}[http://www.neopets.com/games/neodeck/colcardlookup.phtml?colcard_id={{{neodeck}}} | {{ #if: {{{tcg|}}} | {{IconTCG}} [http://www.neopets.com/tcg/displayCard.phtml?edid={{{tcg}}} | {{ #if: {{{editorial|}}} | {{IconEditorial}} [http://www.neopets.com/ntimes/index.phtml?section=editorial&issue={{{editorial}}} | {{ #if: {{{boardsection|}}} | {{IconNeopets}} [http://www.neopets.com/neoboards/boardlist.phtml?board={{{boardsection}}} | {{ #if: {{{galleryofheroes|}}} | {{IconNeopets}} [http://www.neopets.com/hero/showhero.phtml?hero={{{galleryofheroes}}} | {{ #if: {{{galleryofevil|}}} | {{IconNeopets}} [http://www.neopets.com/evil/showcreature.phtml?villain={{{galleryofevil}}} | {{ #if: {{{game|}}} | {{IconNeopets}} [http://www.neopets.com/games/game.phtml?game_id={{{game}}} | {{ #if: {{{other|}}} | {{IconNeopets}} http://www.neopets.com/{{{other}}} }} }} }} }} }} }} }} }} }} }} '''{{{title}}}''']</includeonly><noinclude>


== Purpose ==
== Purpose ==
Line 18: Line 18:


*<nowiki>{{LinkNeo|type=neopedia|neopedia=1|title=Aisha Thieves}}</nowiki><br>Result: {{LinkNeo|neopedia=1|title=Aisha Thieves}}
*<nowiki>{{LinkNeo|type=neopedia|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 30:


*<nowiki>{{LinkNeo|type=editorial|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 42: Line 36:
*'''title'''
*'''title'''
**The title - Should be ''Editorial #NumberHere''
**The title - Should be ''Editorial #NumberHere''
==== NeoDeck ====
For linking to specific [[NeoDeck]] entries:
*<nowiki>{{LinkNeo|neodeck=300|title=Iskha Lightbringer}}</nowiki><br>Result: {{LinkNeo|neodeck=300|title=Iskha Lightbringer}}
*'''nedeck'''
**Neodeck entry ID. If Neodeck info is located at http://www.neopets.com/games/neodeck/colcardlookup.phtml?colcard_id=306 , enter '306' in this field.
*'''title'''
**The NeoDeck entry's title.
==== TCG ====
For linking to specific [[TCG]] entries:
*<nowiki>{{LinkNeo|tcg=10&id=60|title=Illusen's Ring}}</nowiki><br>Result: {{LinkNeo|tcg=10&id=60|title=Illusen's Ring}}
*'''tcg'''
**TCG entry ID. If TCG is located at http://www.neopets.com/tcg/displayCard.phtml?edid=11&id=29 , enter '11&id=29' in this field.
*'''title'''
**The TCG's title - Should match the one printed on the card unless otherwise needed.


=== Normal Icons ===
=== Normal Icons ===
Line 117: Line 135:


*'''title'''
*'''title'''
***The page's title. Should match onsite title, but can say anything else if appropriate.
**The page's title. Should match onsite title, but can say anything else if appropriate.


[[Category:Templates/Helpers]]</noinclude>
[[Category:Templates/Helpers]]</noinclude>

Revision as of 06:04, 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:

Neopedia

For linking to Neopedia entries:

  • {{LinkNeo|type=neopedia|neopedia=1|title=Aisha Thieves}}
    Result: Neopedia_icon.png Aisha Thieves
  • 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_icon.png Editorial #523
  • title
    • The title - Should be Editorial #NumberHere

NeoDeck

For linking to specific NeoDeck entries:

  • {{LinkNeo|neodeck=300|title=Iskha Lightbringer}}
    Result: Iskha Lightbringer]
  • title
    • The NeoDeck entry's title.

TCG

For linking to specific TCG entries:

  • title
    • The TCG's title - Should match the one printed on the card unless otherwise needed.

Normal Icons

The following not use standard icons:

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:

  • title
    • The page's title. Should match onsite title, but can say anything else if appropriate.