Template:AniDBLink/doc: Difference between revisions
Jump to navigation
Jump to search
m (Updated the doc... explicit decription of syntax.) |
mNo edit summary |
||
Line 12: | Line 12: | ||
#{{m|AniDBLink|<show>}} - Internal argument (<tt>''show=''</tt>) linking to AniDB page. | #{{m|AniDBLink|<show>}} - Internal argument (<tt>''show=''</tt>) linking to AniDB page. | ||
#{{m|AniDBLink|<show>|<name>}} - Name the link. | #{{m|AniDBLink|<show>|<name>}} - Name the link. | ||
#{{m|AniDBLink|<show>|<tag2> | #{{m|AniDBLink|<show>|<tag2>|<arg2>}} - Define a 2nd URL tag with argument. | ||
#{{m|AniDBLink|<show>|<tag2> | #{{m|AniDBLink|<show>|<tag2>|<arg2>|<name>}} - Name the link. | ||
#{{m|AniDBLink|<show>|<tag2> | #{{m|AniDBLink|<show>|<tag2>|<arg2>|<tag3>|<arg3>}} - Define a 3rd URL tag with argument. | ||
#{{m|AniDBLink|<show>|<tag2> | #{{m|AniDBLink|<show>|<tag2>|<arg2>|<tag3>|<arg3>|<name>}} - Name the link. | ||
#{{m|AniDBLink|<show>|<t2> | #{{m|AniDBLink|<show>|<t2>|<a2>|<t3>|<a3>|<t4>|<a4>}} - Define a 4th URL tag with argument. | ||
#{{m|AniDBLink|<show>|<t2> | #{{m|AniDBLink|<show>|<t2>|<a2>|<t3>|<a3>|<t4>|<a4>|<name>}} - Name the link. | ||
'''<show>''' = Argument for '''show=''' tag, defines the AniDB page call. | '''<show>''' = Argument for '''show=''' tag, defines the AniDB page call. |
Latest revision as of 08:26, 10 May 2009
This template generates a link to animedb.pl. The last item is used for the displayed name.
Alternative names
- {{link}} - The short template alias.
- {{AniDBLink}} - The full template name.
Syntax
The template can have 1 to 8 parameters:
- {{AniDBLink|<show>}} - Internal argument (show=) linking to AniDB page.
- {{AniDBLink|<show>|<name>}} - Name the link.
- {{AniDBLink|<show>|<tag2>|<arg2>}} - Define a 2nd URL tag with argument.
- {{AniDBLink|<show>|<tag2>|<arg2>|<name>}} - Name the link.
- {{AniDBLink|<show>|<tag2>|<arg2>|<tag3>|<arg3>}} - Define a 3rd URL tag with argument.
- {{AniDBLink|<show>|<tag2>|<arg2>|<tag3>|<arg3>|<name>}} - Name the link.
- {{AniDBLink|<show>|<t2>|<a2>|<t3>|<a3>|<t4>|<a4>}} - Define a 4th URL tag with argument.
- {{AniDBLink|<show>|<t2>|<a2>|<t3>|<a3>|<t4>|<a4>|<name>}} - Name the link.
<show> = Argument for show= tag, defines the AniDB page call. <name> = Defines the name of the link. <tag2> = Define a 2nd tag / argument pair in the URL, i.e. &<tag2>=<arg2>. <arg2> <tag3> = Define a 3rd tag / argument pair in the URL, i.e. &<tag3>=<arg3>. <arg3> <t4> = Define a 4th (and final) tag / argument pair in the URL, i.e. &<t4>=<a4>. <a4>
Examples
{{AniDBLink|main}}
{{AniDBLink|main|Main page}}
{{AniDBLink|admin|adm|user}}
{{AniDBLink|anime|do.random|1|Random anime}}
{{AniDBLink|animelist|orderby.name|0.1|noalias|1|anime without synonyms}}
Note | When adding |parameter|value pair(s), e.g. adm|user in {{AniDBLink|admin|adm|user}}, the link will be named after the last value! Define your own link name by appending another parameter, see |Random anime or |anime without synonyms in above examples. |