Difference between revisions of "Template:IMDb event/doc"
Jump to navigation
Jump to search
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
imported>Danski454 (document year parameter) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 21: | Line 21: | ||
<pre> | <pre> | ||
* {{IMDb event|ID|Event}} | * {{IMDb event|ID|Event}} | ||
| + | </pre> | ||
| + | You can also include the year of an event using {{para|year}} (the event name is optional): | ||
| + | <pre> | ||
| + | * {{IMDb event|ID|Event|year=2019}} | ||
</pre> | </pre> | ||
| − | Note that the options include the "< | + | |
| + | Note that the options include the "<code>*</code>" for a bulleted list since this is most likely to be used in an "External links" section. | ||
==Detailed instructions== | ==Detailed instructions== | ||
# Copy and paste one of the options above into the article | # Copy and paste one of the options above into the article | ||
# Go to https://www.imdb.com and search for the event you want (say, MTV Movie Awards) | # Go to https://www.imdb.com and search for the event you want (say, MTV Movie Awards) | ||
| − | # You then reach the page with [[URL]] looking like < | + | # You then reach the page with [[URL]] looking like <code>https://www.imdb.com/event/ev0000453/</code> (or other 7-digit number) |
# Copy '''only''' that number (here, "<code>0005073</code>"), omitting the "<code>ev</code>" but keep all the leading zeros (though IMDb currently seems to be able to add them as needed) | # Copy '''only''' that number (here, "<code>0005073</code>"), omitting the "<code>ev</code>" but keep all the leading zeros (though IMDb currently seems to be able to add them as needed) | ||
| − | # Replace "< | + | # Replace "<code>ID</code>" in the template code with the number |
## For the first option above, you'll then have | ## For the first option above, you'll then have | ||
| − | ##: < | + | ##: <code><nowiki>* {{IMDb event|0000453}}</nowiki></code> resulting in: |
##* {{IMDb event|0000453}} | ##* {{IMDb event|0000453}} | ||
##: Note that the link text is the same as the title of the page the template is used on; outside the page "MTV Movie Awards", use the second option: | ##: Note that the link text is the same as the title of the page the template is used on; outside the page "MTV Movie Awards", use the second option: | ||
| − | ## Replace "< | + | ## Replace "<code>ID</code>" with the number ''and'' "<code>Event</code>" with "<code>MTV Movie Awards</code>" |
| − | ##: < | + | ##: <code><nowiki>* {{IMDb event|0000453|MTV Movie Awards}}</nowiki></code> results in: |
##:* {{IMDb event|0000453|MTV Movie Awards}} | ##:* {{IMDb event|0000453|MTV Movie Awards}} | ||
Latest revision as of 00:24, 24 December 2020
| 40px | This is a documentation subpage for Template:IMDb event. It contains usage information, categories and other content that is not part of the original template page. |
This is a template to generate links to Internet Movie Database, used exclusively for EVENTS.
- To link a work (film/movie, TV or Web program/series, video game, etc.), use {{IMDb title}} instead.
- To link a person (actor, actress, etc.), use {{IMDb name}} instead.
- To link a specific TV episode or Web series episode, use {{IMDb episode}} instead.
- To link an episode list, use {{IMDb episodes}} instead.
Options
The required parameter is just the ID number (for backward compatibility, the parameter can be named id) and the template then uses the article title as the anchor text:
* {{IMDb event|ID}}
To have the link text be other than the article name, use second parameter (for backward compatibility, it can be named name):
* {{IMDb event|ID|Event}}
You can also include the year of an event using |year= (the event name is optional):
* {{IMDb event|ID|Event|year=2019}}
Note that the options include the "*" for a bulleted list since this is most likely to be used in an "External links" section.
Detailed instructions
- Copy and paste one of the options above into the article
- Go to https://www.imdb.com and search for the event you want (say, MTV Movie Awards)
- You then reach the page with URL looking like
https://www.imdb.com/event/ev0000453/(or other 7-digit number) - Copy only that number (here, "
0005073"), omitting the "ev" but keep all the leading zeros (though IMDb currently seems to be able to add them as needed) - Replace "
ID" in the template code with the number- For the first option above, you'll then have
* {{IMDb event|0000453}}resulting in:
- Note that the link text is the same as the title of the page the template is used on; outside the page "MTV Movie Awards", use the second option:
- Replace "
ID" with the number and "Event" with "MTV Movie Awards"* {{IMDb event|0000453|MTV Movie Awards}}results in:
- For the first option above, you'll then have
See also