Difference between revisions of "Template:IMDb company/doc"
Jump to navigation
Jump to search
imported>Zyxw (add link to tracking category, add template category) |
imported>Nardog |
||
| Line 27: | Line 27: | ||
==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 person you want (say, Universal Pictures; you'll reach <code>https://www.imdb.com/find?s=all&q=Universal+ Pictures </code>) | + | # Go to https://www.imdb.com and search for the person you want (say, Universal Pictures; you'll reach <code>https://www.imdb.com/find?s=all&q=Universal+Pictures </code>) |
# Click on the correct Universal Pictures in the list: | # Click on the correct Universal Pictures in the list: | ||
| − | ## <code>[https://www.imdb.com/ | + | ## <code>[https://www.imdb.com/search/title?companies=co0005073 Universal Pictures] [us] (Distributor)</code> |
| − | # You then reach the page with | + | # You then reach the page with URL looking like <code>https://www.imdb.com/search/title?companies=co0005073</code> (or other 7-digit number) |
# Copy '''only''' that number (here, "<code>0005073</code>"), omitting the "<code>co</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>co</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 company|0005073}}</nowiki></code> resulting in: |
##* {{IMDb company|0005073}} | ##* {{IMDb company|0005073}} | ||
##: Note that the link text is the same as the title of the page the template is used on; outside the page "Universal Pictures", 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 "Universal Pictures", use the second option: | ||
| − | ## Replace "< | + | ## Replace "<code>ID</code>" with the number ''and'' "<code>Company</code>" with "<code>Universal Pictures</code>" |
| − | ##: < | + | ##: <code><nowiki>* {{IMDb company|0005073|Universal Pictures}}</nowiki></code> results in: |
##:* {{IMDb company|0005073|Universal Pictures}} | ##:* {{IMDb company|0005073|Universal Pictures}} | ||
Revision as of 16:25, 15 November 2018
| This is a documentation subpage for Template:IMDb company. 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 COMPANIES.
- 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 company|ID}}
To have the link text be other than the article name, use second parameter (for backward compatibility, it can be named name):
* {{IMDb company|ID|Company}}
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 person you want (say, Universal Pictures; you'll reach
https://www.imdb.com/find?s=all&q=Universal+Pictures) - Click on the correct Universal Pictures in the list:
Universal Pictures [us] (Distributor)
- You then reach the page with URL looking like
https://www.imdb.com/search/title?companies=co0005073(or other 7-digit number) - Copy only that number (here, "
0005073"), omitting the "co" 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 company|0005073}}resulting in:
- Template:PAGENAMEBASE at IMDbScript error: No such module "EditAtWikidata".
- Note that the link text is the same as the title of the page the template is used on; outside the page "Universal Pictures", use the second option:
- Replace "
ID" with the number and "Company" with "Universal Pictures"* {{IMDb company|0005073|Universal Pictures}}results in:- Universal Pictures at IMDbScript error: No such module "EditAtWikidata".
- For the first option above, you'll then have
Examples
Each of the below links lead to Sunshine Film Corporation [us], but appears differently:
- {{IMDb company|0003678}} takes the page name and appears as: Template:PAGENAMEBASE at IMDbScript error: No such module "EditAtWikidata".
- {{IMDb company|0003678|Sunshine Film Corporation (US)}} takes the parameter name and appears as: Sunshine Film Corporation (US) at IMDbScript error: No such module "EditAtWikidata".
Tracking category
See also