Template:Information: Difference between revisions
Template page
More actions
Blanked the page Tag: Blanking |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><infobox theme="image"> | |||
<title> | |||
<default>{{FULLPAGENAME}}</default> | |||
</title> | |||
<group> | |||
<header>Information</header> | |||
<data source="attention"> | |||
<label>'''Attention!'''</label> | |||
</data> | |||
<data source="description"> | |||
<label>Description</label> | |||
</data> | |||
<data source="source"> | |||
<label>Source</label> | |||
</data> | |||
<data source="artist"> | |||
<label>Original designer / artist</label> | |||
</data> | |||
<data source="author"> | |||
<label>Original designer / artist</label> | |||
</data> | |||
<data source="filespecs"> | |||
<label>Conversion / editing / upload information</label> | |||
</data> | |||
<data source="licensing"> | |||
<label>Licensing</label> | |||
</data> | |||
<data source="other versions"> | |||
<label>Other versions / source images</label> | |||
</data> | |||
</group> | |||
<navigation><small>{{PlainLink|//starwars.fandom.com/wiki/Template:Information|name=<nowiki>[</nowiki>Source<nowiki>]</nowiki>}}</small></navigation> | |||
</infobox>{{Clear}}<!-- TEMPLATE ENDS HERE. In order to regenerate the template, replace the code above with the source code provided. --> | |||
{{SpecialCategorizer|{{#if:{{{source|}}}||[[Category:Images with unknown source]]{{Delete|No source provided}}}}<!-- | |||
-->{{#if:{{{licensing|}}}||[[Category:Images with unknown copyright status]]{{Delete|No licensing information provided}}}}<!-- | |||
-->{{#ifeq:{{{cat artist|}}}|skip||{{{cat artist}}}}}{{#ifeq:{{{cat licensee|}}}|skip|[[Category:Files with skipped licensee category field]]|{{{cat licensee}}}}}{{#ifeq:{{{cat subject|}}}|skip|[[Category:Files with skipped subject category field]]|{{{cat subject}}}}}{{#ifeq:{{{cat type|}}}|skip||{{{cat type}}}}}<!-- | |||
The following if statements tag articles as uncategorized if they are missing information and are not exempt from categorization. | |||
-->{{#if:{{#pos:{{PAGENAME}}|.pdf}}{{#pos:{{PAGENAME}}|.ogg}} | |||
| | |||
|{{#ifexpr: {{#if:{{{author|}}}{{{artist|}}}|1|0}} and {{#if:{{{cat artist|}}}|0|1}} | |||
|[[Category:Files without artist categorization]] | |||
| | |||
}} | |||
}}{{#ifexpr:{{#if:{{{cat subject|}}}|0|1}} and {{#if:{{#pos:{{PAGENAME}}|.pdf}}|0|1}} | |||
|[[Category:Files without subject categorization]] | |||
| | |||
}}{{#ifexpr:{{#if:{{{cat licensee|}}}|0|1}} and {{#if:{{#pos:{{PAGENAME}}|.pdf}}|0|1}} | |||
|[[Category:Files without licensing categorization]] | |||
| | |||
}}{{#ifexpr:{{#if:{{{cat type|}}}|0|1}} and {{#if:{{#pos:{{PAGENAME}}|.pdf}}|0|1}} | |||
|[[Category:Files without type categorization]] | |||
| | |||
}}}}<!-- | |||
The following if statements place articles into categories where specific params contain plaintext only i.e. no wikilinks / templates. | |||
-->{{#ifeq:{{NAMESPACE}}|Template||{{#ifeq:{{PAGENAME}}|Template messages/File namespace|| | |||
{{#if:{{{attention|}}} | |||
|{{#if:{{#pos:{{{attention|}}}|[}}{{#pos:{{{attention|}}}|{}} | |||
| | |||
|[[Category:Files with plaintext attention]]}} | |||
|}} | |||
{{#if:{{{description|}}} | |||
|{{#if:{{#pos:{{{description|}}}|[}}{{#pos:{{{description|}}}|{}} | |||
| | |||
|[[Category:Files with plaintext description]]}} | |||
|[[Category:Files with no description]]}} | |||
{{#if:{{{source|}}} | |||
|{{#if:{{#pos:{{{source|}}}|[}} | |||
|{{#if:{{#pos:{{{source|}}}|[http}} | |||
|{{#if:{{#pos:{{{source|}}}|(}} | |||
{{#pos:{{{source|}}}|[File:}} | |||
{{#pos:{{{source|}}}|,}} | |||
| | |||
|[[Category:Files with bare URL source]]}} | |||
|}} | |||
|{{#if:{{#pos:{{{source|}}}|http}} | |||
|[[Category:Files with bare URL source]] | |||
|[[Category:Files with plaintext source]]}}}} | |||
|}} | |||
{{#if:{{{artist|}}} | |||
|{{#if:{{{nonsw artist|}}} | |||
| | |||
|{{#if:{{#pos:{{{artist|}}}|[}}{{#pos:{{{artist|}}}|{}} | |||
| | |||
|[[Category:Files with plaintext artist]]}}}} | |||
|}} | |||
{{#if:{{{licensing|}}} | |||
|{{#if:{{#pos:{{{licensing|}}}|[}}{{#pos:{{{licensing|}}}|{}} | |||
| | |||
|[[Category:Files with plaintext licensing]]}}|}} | |||
{{#if:{{{other versions|}}} | |||
|{{#if:{{#pos:{{{other versions|}}}|[}}{{#pos:{{{other versions|}}}|{}} | |||
| | |||
|[[Category:Files with plaintext other versions]]}} | |||
|}} | |||
}}}}{{#invoke:TemplateParamCheck|main|description|source|licensing|attention|artist|filespecs|other versions|cat artist|cat licensee|cat subject|cat type|optional=nonsw artist|namespace=6}}{{#invoke:FilenameChecker|main}}</includeonly><noinclude>{{Documentation}}</noinclude> | |||
Latest revision as of 20:25, 21 June 2023
| Template documentation follows |
|---|
| Note: the template above may sometimes be partially or fully invisible. |
| Visit Template:Information/doc to edit this documentation. (How does this work?) |
Usage
Copy and paste the following code into the image description when uploading new images. Note that all of the fields seen below must be present even if they are left blank.
==Summary==
{{Information
|attention=
|description=
|source=
|artist=
|filespecs=
|licensing=
|other versions=
|cat artist=
|cat licensee=
|cat subject=
|cat type=}}
Required parameters
|description=A brief description of the file contents, including any links to Wookieepedia pages.|source=Cite the source of the file, using citation templates or links to out-of-universe pages on Wookieepedia. Can include multiple sources.|licensing=Must use one of the copyright templates.|cat licensee=Use categories associated with the source parameter. If the source of the file is non-Star Wars related, thenskipcan be used.|cat subject=Use categories associated with the subject's description, for example Category:Images of Han Solo.
If the |source= or |licensing= fields are left blank, the image will be categorized into Category:Images with unknown source or Category:Images with unknown copyright status, respectively, and will be subject to deletion per the Image policy.
All categories shall be listed alphabetically, excluding words like "the" and "a".
Optional parameters
|attention=Can be used for messages such as {{User-image}}.|artist=Link to the artist's Wookieepedia page, if known/available. Multiple can be added if necessary.|filespecs=Detail any changes to the file before it was uploaded to Wookieepedia, such as cropping, removal of text from speech bubbles, color/saturation etc.|other versions=Link other versions of the file, for instance, SVG counterparts.|cat artist=Use category associated with the artist. Multiple can be added if necessary.|cat type=Use categories that specify the type of content, for example Category:Live-action images. However, some categories are automatically added based on the template used in the|licensing=field, and in this case the parameter can be left blank.