Error creating thumbnail: File missing Join our Discord!
If you have been locked out of your account you can request a password reset here.

Template:Media table start: Difference between revisions

From Internet Movie Firearms Database - Guns in Movies, TV and Video Games
Jump to navigation Jump to search
No edit summary
(Adding support for actor page tables.)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="wikitable" style="font-size: 95%; background-color:#ffffff"
<includeonly>{| class="wikitable" style="width:{{{width|85%}}}; font-size: 95%; background-color:#ffffff"
|-
|-
{{#ifeq: {{{1}}} | film |
{{#switch: {{{1|}}}
! width{{=}}"250" {{!}} Title
| film =
! width{{=}}"170" {{!}} Actor
! width{{=}} 20% {{!}} Title
! width{{=}}"160" {{!}} Character
! width{{=}} 20% {{!}} Actor
! width{{=}}"300" {{!}} Notes
! width{{=}} 20% {{!}} Character
! width{{=}}"50" {{!}} Date}}
! width{{=}} 20% {{!}} Notes
{{#ifeq: {{{1}}} | television |
! width{{=}} 5% {{!}} Date
! width{{=}}"200" {{!}} Title
| television =
! width{{=}}"150" {{!}} Actor
! width{{=}} 20% {{!}} Title
! width{{=}}"200" {{!}} Character
! width{{=}} 20% {{!}} Actor
! width{{=}}"250" {{!}} Notes / Episode
! width{{=}} 20% {{!}} Character
! width{{=}}"100" {{!}} Date}}
! width{{=}} 20% {{!}} Notes / Episode
{{#ifeq: {{{1}}} | anime |
! width{{=}} 5% {{!}} Date
! width{{=}}"280" {{!}} Title
| anime =
! width{{=}}"200" {{!}} Character
! width{{=}} 20% {{!}} Title
! width{{=}}"250" {{!}} Notes
! width{{=}} 20% {{!}} Character
! width{{=}}"50" {{!}} Date}}
! width{{=}} 20% {{!}} Notes
{{#ifeq: {{{1}}} | video game |
! width{{=}} 5% {{!}} Date
! width{{=}}"300" {{!}} Title
| video game =
! width{{=}}"150" {{!}} Appears as
! width{{=}} 20% {{!}} Title
! width{{=}}"250" {{!}} Mods
! width{{=}} 20% {{!}} Appears as
! width{{=}}"200" {{!}} Notes
! width{{=}} 20% {{!}} Mods
! width{{=}}"100" {{!}} Date}}
! width{{=}} 20% {{!}} Notes
! width{{=}} 5% {{!}} Date
| actor =
! width{{=}} 20% {{!}} Gun
! width{{=}} 20% {{!}} Character
! width{{=}} 20% {{!}} Title
! width{{=}} 20% {{!}} Notes
! width{{=}} 5% {{!}} Date
}}
|-
|-
</includeonly><noinclude>{{documentation}}
</includeonly><noinclude>{{documentation}}
[[Category:Template]]
[[Category:Template]]
</noinclude>
</noinclude>

Latest revision as of 02:11, 22 June 2023

Automatically creates wikitable markup for IMFDB media appearance tables. A media type must be included as a parameter so that the correct table markup can be created. A width parameter can also be included to set the wikitable's width.

Examples (Gun Pages)

Film

{{Media table start|film}}
| rowspan=2 | ''[[Black Widow (2021)|Black Widow]]''|| || Russian soldiers || rowspan=2 | || rowspan=2 | 2021
|-
| ||  Seventh Circle Prison guards
|}
Title Actor Character Notes Date
Black Widow Russian soldiers 2021
Seventh Circle Prison guards

Television

{{Media table start|television}}
| ''[[Born by Revolution: The Last Meeting (Rozhdyonnaya revolyutsiey: Poslednyaya vstrecha)]]'' || || ''Militsia'' personnel || || 1977
|}
Title Actor Character Notes / Episode Date
Born by Revolution: The Last Meeting (Rozhdyonnaya revolyutsiey: Poslednyaya vstrecha) Militsia personnel 1977

Anime

{{Media table start|anime}}
| ''[[New Dominion Tank Police]]'' || Tank Police Squad and criminals ||  || 1993
|}
Title Character Notes Date
New Dominion Tank Police Tank Police Squad and criminals 1993

Video Games

{{Media table start|video game}}
| ''[[Goldeneye 007]]'' || KF-7 soviet || || || 1997
|}
Title Appears as Mods Notes Date
Goldeneye 007 KF-7 soviet 1997

Example (Actor Pages)

{{Media table start|actor}}
| [[Springfield Armory Mil-Spec M1911A1|Springfield Armory 1911-A1]] || Mathilda || ''[[Léon (The Professional)]]'' || Customized, 9x19mm || 1994
|}
Gun Character Title Notes Date
Springfield Armory 1911-A1 Mathilda Léon (The Professional) Customized, 9x19mm 1994