Template:Attribution: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
(48 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly>{{#if:{{{categorise|}}}|[[Category:By {{DisplayName|{{{1}}}|no_link=1}}]]}}by {{Person|{{{1}}}}}</includeonly><noinclude> | ||
== Example == | |||
E.g: | |||
<nowiki>{{Attribution|Joseph Anderson}}</nowiki> | |||
{{Attribution|Joseph Anderson}} | |||
Using | |||
<nowiki>{{Attribution|Joseph Anderson|categorise=true}}</nowiki> | |||
Would place this article into a category "By Joseph Anderson", making it easy to find works by them. | |||
== Template Data == | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Creator", | |||
"description": "The name of the page for the person who made the thing being attributed.", | |||
"type": "wiki-page-name", | |||
"required": true | |||
}, | |||
"categorise": { | |||
"label": "Categorise", | |||
"description": "If this should add the page to the “By {{{1}}}” category, use if this is the page for the work being discussed.", | |||
"type": "boolean", | |||
"default": "0" | |||
} | |||
}, | |||
"description": "Attribute something to someone, using the optional “categorise” flag lets you easily add categories for things people have made.", | |||
"paramOrder": [ | |||
"1", | |||
"categorise" | |||
], | |||
"format": "inline" | |||
} | |||
</templatedata> | |||
</noinclude> |
Latest revision as of 22:38, 6 March 2025
Example
E.g:
{{Attribution|Joseph Anderson}}
Using
{{Attribution|Joseph Anderson|categorise=true}}
Would place this article into a category "By Joseph Anderson", making it easy to find works by them.
Template Data
Attribute something to someone, using the optional “categorise” flag lets you easily add categories for things people have made.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Creator | 1 | The name of the page for the person who made the thing being attributed. | Page name | required |
Categorise | categorise | If this should add the page to the “By {{{1}}}” category, use if this is the page for the work being discussed.
| Boolean | optional |