Boobpedia:New photographer: Difference between revisions
No edit summary |
|||
| Line 91: | Line 91: | ||
== Creating a photographer page == | == Creating a photographer page == | ||
If | If | ||
m | |||
<inputbox> | <inputbox> | ||
Revision as of 09:10, 4 May 2008
This article shows
- how to insert a photographer's name in the text of an article so that the model is automatically listed on the respective photographer page,
- how to add a photographer to an article without mentioning his name in the text,
- how to create a photographer page.
Inserting a photographer's name using the photographer template
Functionality
The photographer template
- automatically displays a link to the photographer's article if it exists,
- displays only normal text if the photographer does not have an article yet, but will automatically turn into a link if such an article is created,
- automatically displays further information on the photographer (home page link, location) if you activate this feature,
- automatically displays new photographer data in your article if it changes (e. g. new home page) so that you will never have to rewrite your article,
- automatically adds a category to your article so that your model is listed on the photographer's page,
- offers the possibility to suppress the category addition to an article,
- displays an error if you do not specify a name.
Syntax
The syntax is very simple:
{{photographer|<name>|link=<text>|location=<text>|nocategory=<text>}}
name
- Text. The name of the photographer.
- Required.
- Please note that this parameter has no name. Simply type the photographer's name without a parameter name.
link
- Any text. You can use "1", "y" or whatever you like. As soon as the parameter has any content, the home page link is displayed.
- Optional.
<text>or the whole parameterlink=<text>can be omitted.
location
- Any text. You can use "1", "y" or whatever you like. As soon as the parameter has any content, the location is displayed.
- Optional.
<text>or the whole parameterlocation=<text>can be omitted.
nocategory
- Any text. You can use "1", "y" or whatever you like. As soon as the parameter has any content, no category is added to your article. This may be helpful if you use the template on a page that is not intended to be listed in the photographer's article (e. g. if you just mention a photographer on a discussion page).
- Optional.
<text>or the whole parameternocategory=<text>can be omitted.
Examples
| Article exists | |
|---|---|
| {{photographer|Martin Perreault}} | Martin Perreault |
| {{photographer|Martin Perreault|link=1}} | Martin Perreault |
| {{photographer|Martin Perreault|link=ok|location=y}} | Martin Perreault |
| {{photographer|Martin Perreault|location=yes}} | Martin Perreault |
| Article does not exist | |
| {{photographer|The Honorable|link=1|location=1}} | The Honorable |
| Required and optional parameters | |
| {{photographer|link=1|location=1}} | {{{1}}} |
Usability
There are no restrictions. The template can be used anywhere within the text of an article.
You should, however, be aware that the layout of your text may change in an undesirable way if you specify all parameters for a photographer who has not a page yet. The simple sentence
- "Hexvoodoo always wanted to start a career as a photographer."
can become
if he really gets an article some day. :-)
Adding a photographer to an article without mentioning him in the text
If you do not want to mention the photographer' name in the text of your article, but would like your model to be listed on the photographer's page, just add a category at the end of your page: The syntax is very simple:
[[Category:<name>]]
name
- Text. The name of the photographer.
Your model will be automatically listed on the photographer's page.
Note: The photographer page must exist! Otherwise a category link to a non-existing page will be created in your model's page. For more information on how to a photographer page, see Help:How to add a photographer#Creating an article on a photographer
Creating a photographer page
If
m