Template:AniDBLink/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Example output should not differ from the code used, this confuses the way the template actually works. Added a note on how explicit link names can be set (as a test).) |
||
Line 8: | Line 8: | ||
==Syntax== | ==Syntax== | ||
;<nowiki>{{AniDBLink|main}}</nowiki> | ;<nowiki>{{AniDBLink|main}}</nowiki> | ||
{{AniDBLink|main}} | {{AniDBLink|main}} | ||
;<nowiki>{{AniDBLink|main|Main}}</nowiki> | ;<nowiki>{{AniDBLink|main|Main}}</nowiki> | ||
{{AniDBLink|main|Main | {{AniDBLink|main|Main}} | ||
;<nowiki>{{AniDBLink|admin|adm|user}}</nowiki> | ;<nowiki>{{AniDBLink|admin|adm|user}}</nowiki> | ||
{{AniDBLink|admin|adm|user}} | {{AniDBLink|admin|adm|user}} | ||
;<nowiki>{{AniDBLink|anime|do.random|1|Random}}</nowiki> | ;<nowiki>{{AniDBLink|anime|do.random|1|Random anime}}</nowiki> | ||
{{AniDBLink|anime|do.random|1| | {{AniDBLink|anime|do.random|1|Random anime}} | ||
;<nowiki>{{AniDBLink|animelist|orderby.name|0.1|noalias|1|anime without synonyms}}</nowiki> | ;<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.}} |
Revision as of 09:55, 26 April 2009
Documentation for this template
This template generates a link to animedb.pl. The last item is used for the displayed name.
Alternative names
- {{link}} is the short syntax name
- {{AniDBLink}} is the full syntax name
Syntax
- {{AniDBLink|main}}
- {{AniDBLink|main|Main}}
- {{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. |