Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Gallery Metadata: Difference between revisions

Template page
m (Strip apostrophes from characters’ names in the characters & cameos parameters)
m (add link to edit data)
 
(2 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 17: Line 18:
-->{{#cargo_store:
-->{{#cargo_store:
_table = Files
_table = Files
|File={{PAGENAME}}
|Characters={{#var:CHARACTERS}}
|Characters={{#var:CHARACTERS}}
|Locations={{{locations|}}}
|Locations={{{locations|}}}
Line 29: Line 31:
<table class="wikitable mw-collapsible mw-collapsed" style="width:100%; margin-bottom:0px;">
<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 75: Line 77:
<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.



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 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

See Also