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;">http://www.pinkpt.com/neodex/images/8/8f/Neo_favicon.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;">http://www.pinkpt.com/neodex/images/8/8f/Neo_favicon.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 ==


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


Use:
== Use ==
 
Use varies by section linked to:
 
=== 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}}
*<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.
=== Neopedia ===
For linking to [[Neopedia]] entries:


*<nowiki>{{LinkNeo|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}}
*'''neopedia'''
**Neopedia Article ID. If article is located at http://www.neopets.com/neopedia.phtml?neopedia_id=7 , enter '7' in this field.
*'''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]]:


*<nowiki>{{LinkNeo|editorial=523|title=Editorial #523}}</nowiki><br>Result: {{LinkNeo|editorial=523|title=Editorial #523}}
*<nowiki>{{LinkNeo|editorial=523|title=Editorial #523}}</nowiki><br>Result: {{LinkNeo|editorial=523|title=Editorial #523}}
*'''editorial'''
**Editorial ID. If editorial is http://www.neopets.com/ntimes/index.phtml?section=editorial&week=624 , enter '624' in this field.
*'''title'''
**The title - Should be ''Editorial #NumberHere''
=== Neoboards ===
For linking to board sections in the [[Neoboards]]:


*<nowiki>{{LinkNeo|boardsection=6|title=Neoboards - Trading / Auctions}}</nowiki><br>Result: {{LinkNeo|boardsection=6|title=Neoboards - Trading / Auctions}}
*<nowiki>{{LinkNeo|boardsection=6|title=Neoboards - Trading / Auctions}}</nowiki><br>Result: {{LinkNeo|boardsection=6|title=Neoboards - Trading / Auctions}}
*'''boardsection'''
**Board section ID. If the board is located at http://www.neopets.com/neoboards/boardlist.phtml?board=35 , enter '35' in this field.
*'''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:


*<nowiki>{{LinkNeo|galleryofheroes=6|title=Kayla - Gallery of Heroes}}</nowiki><br>Result: {{LinkNeo|galleryofheroes=6|title=Kayla - Gallery of Heroes}}
*<nowiki>{{LinkNeo|galleryofheroes=6|title=Kayla - Gallery of Heroes}}</nowiki><br>Result: {{LinkNeo|galleryofheroes=6|title=Kayla - Gallery of Heroes}}
*'''galleryofheroes'''
**Entry ID.  If the entry is located at http://www.neopets.com/hero/showhero.phtml?hero=10 , you put '10' in this field.
*'''title'''
**Entry's title. Should match name onsite (Eg 'Soup Faerie', 'Hanso').
=== Gallery of Evil ===
For linking to [[Gallery of Evil]] entries:


*<nowiki>{{LinkNeo|galleryofevil=2|title=Ghost Lupe - Gallery of Evil}}</nowiki><br>Result: {{LinkNeo|galleryofevil=2|title=Ghost Lupe - Gallery of Evil}}
*<nowiki>{{LinkNeo|galleryofevil=2|title=Ghost Lupe - Gallery of Evil}}</nowiki><br>Result: {{LinkNeo|galleryofevil=2|title=Ghost Lupe - Gallery of Evil}}


*<nowiki>{{LinkNeo|galleryofevil=2|title=Ghost Lupe - Gallery of Evil}}</nowiki><br>Result: {{LinkNeo|galleryofevil=2|title=Ghost Lupe - Gallery of Evil}}
*'''galleryofevil'''
**Entry ID. If the entry is located at http://www.neopets.com/evil/showcreature.phtml?villain=16 , you put '16' in this field.
 
*'''title'''
**Entry's title. Should match name onsite (Eg, 'Lord Kass', 'Xandra'.
 
=== Games Room ===
 
For linking to specific games within the [[Games Room]]:


*<nowiki>{{LinkNeo|game=1347|title=Assignment 53}}</nowiki><br>Result: {{LinkNeo|game=1347|title=Assignment 53}}
*<nowiki>{{LinkNeo|game=1347|title=Assignment 53}}</nowiki><br>Result: {{LinkNeo|game=1347|title=Assignment 53}}
*'''game'''
**Game's ID. If the game is located at http://www.neopets.com/games/game.phtml?game_id=1000 , you put '1000' is this field.
*'''title'''
*The game's title. Should match onsite name.
=== Other ===
For linking elsewhere onsite:


*<nowiki>{{LinkNeo|other=community/index.phtml|title=Community Hub}}</nowiki><br>Result: {{LinkNeo|other=community/index.phtml|title=Community Hub}}
*<nowiki>{{LinkNeo|other=community/index.phtml|title=Community Hub}}</nowiki><br>Result: {{LinkNeo|other=community/index.phtml|title=Community Hub}}
*'''other'''
**If you wish to link to http://www.neopets.com/nf.phtml , you'll simply need to fill this section with 'nf.phtml'.
*'''title'''
***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 05:08, 4 March 2014


Purpose

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

Use

Use varies by section linked to:

Main Shops

For linking to main Shops in any world:

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

Neopedia

For linking to Neopedia entries:

  • 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:

  • title
    • The title - Should be Editorial #NumberHere

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: Neo_favicon.pngCommunity Hub
  • title
      • The page's title. Should match onsite title, but can say anything else if appropriate.