More actions
mNo edit summary |
m (add link to edit data) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
-->{{#cargo_declare: | -->{{#cargo_declare: | ||
_table=Files | _table=Files | ||
|File=File | |||
|Characters=List (,) of String | |Characters=List (,) of String | ||
|Locations=List (,) of String | |Locations=List (,) of String | ||
Line 13: | Line 14: | ||
}}<!-- | }}<!-- | ||
--></noinclude><includeonly><!-- | --></noinclude><includeonly><!-- | ||
-->{{#vardefine:CHARACTERS|{{#replace:{{{characters|}}}|'|}}}}<!-- | |||
-->{{#vardefine:CAMEOS|{{#replace:{{{cameos|}}}|'|}}}}<!-- | |||
-->{{#cargo_store: | -->{{#cargo_store: | ||
_table = Files | _table = Files | ||
|Characters={{ | |File={{PAGENAME}} | ||
|Characters={{#var:CHARACTERS}} | |||
|Locations={{{locations|}}} | |Locations={{{locations|}}} | ||
|Weapons={{{weapons|}}} | |Weapons={{{weapons|}}} | ||
|Cameos={{ | |Cameos={{#var:CAMEOS}} | ||
|Source={{{source|}}} | |Source={{{source|}}} | ||
|Artists={{{artists|}}} | |Artists={{{artists|}}} | ||
|Gallery_Sections= | |Gallery_Sections={{{section|}}} | ||
|Date={{{date|{{#show:{{FULLPAGENAME}}|?Date}}}}} | |Date={{{date|{{#show:{{FULLPAGENAME}}|?Date}}}}} | ||
|Caption={{{caption|{{#show:{{FULLPAGENAME}}|?Caption}}}}} | |Caption={{{caption|{{#show:{{FULLPAGENAME}}|?Caption}}}}} | ||
}}</includeonly> | }}</includeonly> | ||
<table | <table class="wikitable mw-collapsible mw-collapsed" style="width:100%; margin-bottom:0px;"> | ||
<tr style="vertical-align: top"> | <tr style="vertical-align: top"> | ||
<th colspan=2><span style="font-size:10px">([[Template:Gallery Metadata|view template]]) ([[Special:CargoTables/Files|view table]])</span><br>This file is tagged with the following information:</th> | <th colspan=2><span style="font-size:10px">([[Special:FormEdit/Gallery Metadata/{{FULLPAGENAME}}|edit data]]) ([[Template:Gallery Metadata|view template]]) ([[Special:CargoTables/Files|view table]])</span><br>This file is tagged with the following information:</th> | ||
</tr> | </tr> | ||
Line 33: | Line 37: | ||
<tr style="vertical-align: top"> | <tr style="vertical-align: top"> | ||
<td class="fileinfo-paramfield" style="text-align: right; padding-right: 0.4em; width: 15%; font-weight:bold">Characters</td> | <td class="fileinfo-paramfield" style="text-align: right; padding-right: 0.4em; width: 15%; font-weight:bold">Characters</td> | ||
<td class="description">{{ | <td class="description">{{#var:CHARACTERS}}<br>{{#var:CAMEOS}}</td> | ||
</tr> | </tr> | ||
Line 67: | Line 71: | ||
</table> | </table> | ||
{| class="wikitable" style="width:100%; margin-top:0px;" | |||
| class="fileinfo-paramfield" style="text-align: right; padding-right: 0.4em; width: 15%; font-weight:bold" | Caption | |||
| {{{caption|}}} | |||
|} | |||
<noinclude> | <noinclude> | ||
==Description== | ==Description== | ||
{{Imbox Gallery Notice}} | |||
This template saves information into the Cargo table named "Files" for querying. | This template saves information into the Cargo table named "Files" for querying. | ||
Line 95: | Line 103: | ||
List names '''exactly''' as they appear for each category, including any punctuation (e.g. "BlazBlue: Cross Tag Battle" or "Valkenhayn R. Hellsing"). Leave off the "Category:" prefix and place commas between entries unless otherwise stated. (i.e. Jin Kisaragi, Ragna the Bloodedge) | List names '''exactly''' as they appear for each category, including any punctuation (e.g. "BlazBlue: Cross Tag Battle" or "Valkenhayn R. Hellsing"). Leave off the "Category:" prefix and place commas between entries unless otherwise stated. (i.e. Jin Kisaragi, Ragna the Bloodedge) | ||
<code>|characters=</code> [[:Category:Media by Character|Characters]] that are the focus of this image. This image will show up in these characters' galleries. | <code>|characters=</code> [[:Category:Media by Character|Characters]] that are the focus of this image. This image will show up in these characters' galleries. Any <code><nowiki>'</nowiki></code> in the characters’ names will be stripped out behind the scenes so that queries with multiple HOLDS will work properly. | ||
<code>|cameos=</code> Other characters in this image. This image will NOT show up in their galleries. | <code>|cameos=</code> Other characters in this image. This image will NOT show up in their galleries. Any <code><nowiki>'</nowiki></code> in the characters’ names will be stripped out behind the scenes so that queries with multiple HOLDS Will work properly. | ||
<code>|locations=</code> The [[:Category:Media by Location|location(s)]] featured in this image. | <code>|locations=</code> The [[:Category:Media by Location|location(s)]] featured in this image. | ||
Line 107: | Line 115: | ||
<code>|artists=</code> Any [[:Category:Media by Artist|artists]] who contributed to this image. This image will show up in these artist's galleries. When listing artists, split multiple artists by a forward slash (/) e.g. Sugiyama, Yuki/Mori, Toshimichi | <code>|artists=</code> Any [[:Category:Media by Artist|artists]] who contributed to this image. This image will show up in these artist's galleries. When listing artists, split multiple artists by a forward slash (/) e.g. Sugiyama, Yuki/Mori, Toshimichi | ||
<code>|section=</code> Which [[:Category:Media by Gallery Category|gallery section]] it should be sorted into (e.g. Model Sheets, Arcade Mode, Story, etc.) | |||
<code>|date=</code> Optional, defaults to the date in the Information template | <code>|date=</code> Optional, defaults to the date in the Information template |
Latest revision as of 02:23, 20 January 2021
This template defines the table "Files". View table.
(edit data) (view template) (view table) This file is tagged with the following information: |
|
---|---|
Characters | |
Locations | |
Weapons | |
Source Material | |
Artists | |
Media type |
Caption |
Description
This page is part of an automated Gallery system. For more details, please refer to Help:Manual of Style/Character Pages/Gallery. See all pages included in this system |
This template saves information into the Cargo table named "Files" for querying.
Goal
The primary goal of moving information into Cargo is to allow more flexible queries, such as splitting appearing characters into "characters" and "cameos" categories so that the image will only appear in "major" characters' galleries.
For example, Carl's Arcade Mode CGs may feature many other characters than just Carl in it, but they should only show up Carl's gallery. We can accomplish this by listing Carl under "characters" and all other non-Carl characters as "cameos".
Usage
{{Gallery Metadata |characters= |cameos= |locations= |weapons= |source= |artists= |section= |date= |caption= }}
List names exactly as they appear for each category, including any punctuation (e.g. "BlazBlue: Cross Tag Battle" or "Valkenhayn R. Hellsing"). Leave off the "Category:" prefix and place commas between entries unless otherwise stated. (i.e. Jin Kisaragi, Ragna the Bloodedge)
|characters=
Characters that are the focus of this image. This image will show up in these characters' galleries. Any '
in the characters’ names will be stripped out behind the scenes so that queries with multiple HOLDS will work properly.
|cameos=
Other characters in this image. This image will NOT show up in their galleries. Any '
in the characters’ names will be stripped out behind the scenes so that queries with multiple HOLDS Will work properly.
|locations=
The location(s) featured in this image.
|weapons=
Any weapons featured in this image.
|source=
The game, novel, or manga that is the source of this image. This image will be categorized under this game, novel, or manga in each character's gallery.
|artists=
Any artists who contributed to this image. This image will show up in these artist's galleries. When listing artists, split multiple artists by a forward slash (/) e.g. Sugiyama, Yuki/Mori, Toshimichi
|section=
Which gallery section it should be sorted into (e.g. Model Sheets, Arcade Mode, Story, etc.)
|date=
Optional, defaults to the date in the Information template
|caption=
Optional, defaults to the page's caption property or to the caption set in the Information template