Template:AniDBButton/doc: Difference between revisions

From AniDB
Jump to navigation Jump to search
mNo edit summary
m (Are there more valid buttons, excepting signup and profile?)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Documentation for this template==
{{TOCright}}
This template generates a button and a link to animedb.pl.
 
The last item is used for the displayed name.
This template generates a button and a link to <tt>animedb.pl</tt>.
The last parameter is used as display name.


==Alternative names==
==Alternative names==
* {{m|button}} is the short syntax name
* {{m|button}} - The short template name.
* {{m|AniDBButton}} is the full syntax name
* {{m|AniDBButton}} - The full template name.


==Syntax==
==Syntax==
;<nowiki>{{AniDBButton|signup}}</nowiki>
The template can have '''1''' or '''2 parameters''':
#{{m|AniDBButton|<button>}} - Name of the button.
#{{m|AniDBButton|<button>|<name>}} - Naming the link.
 
  '''<button>'''  =  The button names the button image and the created URL link.
                '''signup'''  : The signup button / page on AniDB.
                '''profile''' : The profile button / page on AniDB.
    '''<name>'''  =  Define the link name.
 
==Examples==
<nowiki>{{AniDBButton|signup}}</nowiki>
{{AniDBButton|signup}}
{{AniDBButton|signup}}


;<nowiki>{{AniDBButton|profile|click here}}</nowiki>
<nowiki>{{AniDBButton|profile|Your Profile page on AniDB!}}</nowiki>
{{AniDBButton|profile|click here}}
{{AniDBButton|profile|Your Profile page on AniDB!}}

Latest revision as of 23:30, 6 May 2009

This template generates a button and a link to animedb.pl. The last parameter is used as display name.

Alternative names

  • {{button}} - The short template name.
  • {{AniDBButton}} - The full template name.

Syntax

The template can have 1 or 2 parameters:

  1. {{AniDBButton|<button>}} - Name of the button.
  2. {{AniDBButton|<button>|<name>}} - Naming the link.
  <button>  =  The button names the button image and the created URL link.
               signup  : The signup button / page on AniDB.
               profile : The profile button / page on AniDB.

    <name>  =  Define the link name.

Examples

{{AniDBButton|signup}}

signup signup

{{AniDBButton|profile|Your Profile page on AniDB!}}

profile Your Profile page on AniDB!