1,633
edits
m (Template:AniDBLink/Documentation moved to Template:AniDBLink/doc) |
m (Updated the doc... explicit decription of syntax.) |
||
Line 1: | Line 1: | ||
{{TOCright}} | |||
This template generates a link to <tt>animedb.pl</tt>. | This template generates a link to <tt>animedb.pl</tt>. | ||
The last item is used for the displayed name. | The last item is used for the displayed name. | ||
==Alternative names== | ==Alternative names== | ||
* {{m|link}} | * {{m|link}} - The short template alias. | ||
* {{m|AniDBLink}} | * {{m|AniDBLink}} - The full template name. | ||
==Syntax== | ==Syntax== | ||
The template can have '''1''' to '''8 parameters''': | |||
#{{m|AniDBLink|<show>}} - Internal argument (<tt>''show=''</tt>) linking to AniDB page. | |||
#{{m|AniDBLink|<show>|<name>}} - Name the link. | |||
#{{m|AniDBLink|<show>|<tag2>}|<arg2>}} - Define a 2nd URL tag with argument. | |||
#{{m|AniDBLink|<show>|<tag2>}|<arg2>|<name>}} - Name the link. | |||
#{{m|AniDBLink|<show>|<tag2>}|<arg2>|<tag3>}|<arg3>}} - Define a 3rd URL tag with argument. | |||
#{{m|AniDBLink|<show>|<tag2>}|<arg2>|<tag3>}|<arg3>|<name>}} - Name the link. | |||
#{{m|AniDBLink|<show>|<t2>}|<a2>|<t3>}|<a3>|<t4>}|<a4>}} - Define a 4th URL tag with argument. | |||
#{{m|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== | |||
<nowiki>{{AniDBLink|main}}</nowiki> | |||
{{AniDBLink|main}} | {{AniDBLink|main}} | ||
<nowiki>{{AniDBLink|main|Main page}}</nowiki> | |||
{{AniDBLink|main|Main}} | {{AniDBLink|main|Main page}} | ||
<nowiki>{{AniDBLink|admin|adm|user}}</nowiki> | |||
{{AniDBLink|admin|adm|user}} | {{AniDBLink|admin|adm|user}} | ||
<nowiki>{{AniDBLink|anime|do.random|1|Random anime}}</nowiki> | |||
{{AniDBLink|anime|do.random|1|Random anime}} | {{AniDBLink|anime|do.random|1|Random anime}} | ||
<nowiki>{{AniDBLink|animelist|orderby.name|0.1|noalias|1|anime without synonyms}}</nowiki> | |||
{{AniDBLink|animelist|orderby.name|0.1|noalias|1|anime without synonyms}} | {{AniDBLink|animelist|orderby.name|0.1|noalias|1|anime without synonyms}} | ||
{{eyecatch|Note|When adding '''<nowiki>|parameter|value</nowiki>''' pair(s), e.g. <nowiki>adm|user</nowiki> in <nowiki>{{AniDBLink|admin|adm|user}}</nowiki>, the link will be '''named''' after the last '''value'''!<br>Define your own '''link name''' by appending another parameter, see '''<nowiki>|Random anime</nowiki>''' or '''<nowiki>|anime without synonyms</nowiki>''' in above examples.}} | {{eyecatch|Note|When adding '''<nowiki>|parameter|value</nowiki>''' pair(s), e.g. <nowiki>adm|user</nowiki> in <nowiki>{{AniDBLink|admin|adm|user}}</nowiki>, the link will be '''named''' after the last '''value'''!<br>Define your own '''link name''' by appending another parameter, see '''<nowiki>|Random anime</nowiki>''' or '''<nowiki>|anime without synonyms</nowiki>''' in above examples.}} |
edits