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 (show the caption in the table)
m (Strip apostrophes from characters’ names in the characters & cameos parameters)
Line 13: Line 13:
}}<!--
}}<!--
--></noinclude><includeonly><!--
--></noinclude><includeonly><!--
-->{{#vardefine:CHARACTERS|{{#replace:{{{characters|}}}|'|}}}}<!--
-->{{#vardefine:CAMEOS|{{#replace:{{{cameos|}}}|'|}}}}<!--
-->{{#cargo_store:
-->{{#cargo_store:
_table = Files
_table = Files
|Characters={{{characters|}}}
|Characters={{#var:CHARACTERS}}
|Locations={{{locations|}}}
|Locations={{{locations|}}}
|Weapons={{{weapons|}}}
|Weapons={{{weapons|}}}
|Cameos={{{cameos|}}}
|Cameos={{#var:CAMEOS}}
|Source={{{source|}}}
|Source={{{source|}}}
|Artists={{{artists|}}}
|Artists={{{artists|}}}
Line 33: Line 35:
<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">{{{characters|}}}<br>{{{cameos|}}}</td>
<td class="description">{{#var:CHARACTERS}}<br>{{#var:CAMEOS}}</td>
</tr>
</tr>


Line 99: Line 101:
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.

Revision as of 14:33, 19 June 2019

This template defines the table "Files". View table.

(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