Difference between revisions of "Template:LinkNeo"

From NeoDex
Jump to navigation Jump to search
(I'll go about this step by step.)
m (I cannot think of a less useful template, but as it has already been crowbarred into a hundred pages I'll leave it up but make it less egregious - for instance, there is a very good reason to denote when links go off-site and when they do not.)
 
(22 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly><span style="white-space: nowrap">{{ #if: {{{shop|}}} | <span style="margin-right: 4px;">http://www.pinkpt.com/neodex/images/8/8f/Neo_favicon.png</span>[http://www.neopets.com/objects.phtml?type=shop&obj_type={{{shop}}} '''{{{title}}}''' | {{ #if: {{{neopedia|}}} | [http://www.neopets.com/neopedia.phtml?neopedia_id={{{neopedia}}} '''{{{title}}}''' | {{ #if: {{{neodeck|}}} | [http://www.neopets.com/neopedia.phtml?neopedia_id={{{neodeck}}} '''{{{title}}}''' | {{ #if: {{{tcg|}}} | [http://www.neopets.com/neopedia.phtml?neopedia_id={{{tcg}}} '''{{{title}}}''' | {{ #if: {{{editorial|}}} | <span style="margin-right: 4px;">http://www.pinkpt.com/neodex/images/5/5d/Editorial_icon.png</span>[http://www.neopets.com/ntimes/index.phtml?section=editorial&issue={{{editorial}}} '''{{{title}}}''' | {{ #if: {{{boardsection|}}} | <span style="margin-right: 4px;">http://www.pinkpt.com/neodex/images/8/8f/Neo_favicon.png</span>[http://www.neopets.com/neoboards/boardlist.phtml?board={{{boardsection}}} '''{{{title}}}''' | {{ #if: {{{galleryofheroes|}}} | <span style="margin-right: 4px;">http://www.pinkpt.com/neodex/images/8/8f/Neo_favicon.png</span>[http://www.neopets.com/hero/showhero.phtml?hero={{{galleryofheroes}}} '''{{{title}}}''' | {{ #if: {{{galleryofevil|}}} | <span style="margin-right: 4px;">http://www.pinkpt.com/neodex/images/8/8f/Neo_favicon.png</span>[http://www.neopets.com/evil/showcreature.phtml?villain={{{galleryofevil}}} '''{{{title}}}''' | {{ #if: {{{game|}}} | <span style="margin-right: 4px;">http://www.pinkpt.com/neodex/images/8/8f/Neo_favicon.png</span>[http://www.neopets.com/games/game.phtml?game_id={{{game}}} '''{{{title}}}''' | {{ #if: {{{other|}}} | <span style="margin-right: 4px;">http://www.pinkpt.com/neodex/images/8/8f/Neo_favicon.png</span>[http://www.neopets.com/{{{other}}} '''{{{title}}}''' }} }} }} }} }} }} }} }} ]</span></includeonly><noinclude>
<includeonly>{{ #if: {{{shop|}}} | {{IconNeopets}} <span class="">[http://www.neopets.com/objects.phtml?type=shop&obj_type={{{shop}}} | {{ #if: {{{neopedia|}}} | {{IconNeopedia}} <span class="">[http://www.neopets.com/neopedia.phtml?neopedia_id={{{neopedia}}} | {{ #if: {{{neodeck|}}} | {{IconNeoDeck}} <span class="">[http://www.neopets.com/games/neodeck/colcardlookup.phtml?colcard_id={{{neodeck}}} | {{ #if: {{{tcg|}}} | {{IconTCG}} <span class="">[http://www.neopets.com/tcg/displayCard.phtml?edid={{{tcg}}} | {{ #if: {{{editorial|}}} | {{IconEditorial}} <span class="">[http://www.neopets.com/ntimes/index.phtml?section=editorial&issue={{{editorial}}} | {{ #if: {{{boardsection|}}} | {{IconNeopets}} <span class="">[http://www.neopets.com/neoboards/boardlist.phtml?board={{{boardsection}}} | {{ #if: {{{galleryofheroes|}}} | {{IconNeopets}} <span class="">[http://www.neopets.com/hero/showhero.phtml?hero={{{galleryofheroes}}} | {{ #if: {{{galleryofevil|}}} | {{IconNeopets}} <span class="">[http://www.neopets.com/evil/showcreature.phtml?villain={{{galleryofevil}}} | {{ #if: {{{game|}}} | {{IconNeopets}} <span class="">[http://www.neopets.com/games/game.phtml?game_id={{{game}}} | {{ #if: {{{other|}}} | {{IconNeopets}} <span class="">[http://www.neopets.com/{{{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:
 
*<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'''
==== Neopedia ====
**Shop's name - Should match the title of the shop seen onsite.
 
=== NeoPedia ===


For linking to [[Neopedia]] entries:
For linking to [[Neopedia]] entries:


*<nowiki>{{LinkNeo|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}}


*'''neopedia'''
*'''neopedia'''
Line 33: Line 25:
**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}}


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


=== Neoboards ===
==== 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 ===
 
The following use only standard icons:
 
==== 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 89:
**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 101:
**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 113:
**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 125:
*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:
Line 103: 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.
 
== Other Linking Templates ==
 
*[[Template:LinkNeoDeck]]
**For linking to Neodex entries
 
*[[Template:LinkTCG]]
**For linking to TCG entries.


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

Latest revision as of 20:13, 10 June 2014


Purpose[edit]

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

Use[edit]

Use varies by section linked to:

Special Type[edit]

The following utilize special icons:

Neopedia[edit]

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[edit]

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[edit]

For linking to specific NeoDeck entries:

  • title
    • The NeoDeck entry's title.

TCG[edit]

For linking to specific TCG entries:

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

Normal Icons[edit]

The following use only standard icons:

Main Shops[edit]

For linking to main Shops in any world:

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

Neoboards[edit]

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[edit]

For linking to Gallery of Heroes entries:

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

Gallery of Evil[edit]

For linking to Gallery of Evil entries:

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

Games Room[edit]

For linking to specific games within the Games Room:

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

Other[edit]

For linking elsewhere onsite:

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