Template:Attribution: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
<includeonly>[[Category:By {{{creator}}}]]</includeonly> by {{#ifexist:File:{{{creator}}}.png| [[File:{{{creator}}}.png||25px|link={{{creator}}}|class=circular]]}} [[{{{creator}}}]]
<includeonly>{{#if:{{{categorise|}}}|[[Category:By {{{by}}}]]}}</includeonly> by {{#ifexist:File:{{{by}}}.png| [[File:{{{by}}}.png||25px|link={{{by}}}|class=circular]]}} [[{{{by}}}]]
<noinclude>
<templatedata>
{
"params": {
"categorise": {
"label": "Categorise",
"description": "If this should add the page to the \"By {{{by}}}\" category, use if this is the page for the work being discussed.",
"type": "boolean",
"default": "false"
},
"by": {
"label": "Creator",
"description": "The name of the person who made the thing being attributed.",
"type": "string",
"required": true,
"aliases": [
"creator,artist,name"
]
}
},
"description": "Attribute something to someone.",
"paramOrder": [
"by",
"categorise"
],
"format": "inline"
}
</templatedata>
</noinclude>