Uploadtext – MediaWiki

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page cleanup)
m (Fix examples)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="margin: auto; width: 60em">{{TopMenu | [[Special:Log/upload|Upload Log]] [[Special:Imagelist|All Uploaded Files]] [[Special:ListDuplicatedFiles|Duplicates]]}}</div>
<div class="float-right" style="font-size: .9em">
{| class="wikitable" style="float: right"
<div style="font-size: 0.75em; text-align: right">[[MediaWiki:Uploadtext|text]]</div>
{{TopMenu|[[Special:Log/upload|Upload Log]] [[Special:Imagelist|All Uploaded Files]] [[Special:ListDuplicatedFiles|Duplicates]]}}
{| class="wikitable"
|+ Examples
|+ Examples
! Do
! Do
Line 6: Line 8:
|- style="vertical-align: top"
|- style="vertical-align: top"
|
|
* arma_hummer-closeup
* arma1_hummer-closeup
* tkoh_heliport-aerialview_1920x1080
* tkoh_heliport-aerialview_1920x1080
* arma3_logo-black_512x256
* arma3_logo_black_512x256
|
|
* jeep
* jeep
Line 16: Line 18:
* RealVirtualityWireframeRender
* RealVirtualityWireframeRender
|}
|}
</div>
== Naming Rules ==
== Naming Rules ==


format: entries separated by '''underscores''' ({{hl|_}}): '''''projectId'''''_'''''filename'''''<!-- format: entries separated by '''dashes''' ({{hl|-}}): '''''gameId'''''-'''''filename''''' -->
format: entries separated by '''underscores''' ({{hl|_}}): '''''projectId'''''_'''''filename'''''<!-- format: entries separated by '''dashes''' ({{hl|-}}): '''''gameId'''''-'''''filename''''' -->
* projectId: (Optional) see [[Bohemia Interactive Community:Naming Conventions|Naming Conventions]] (ofp, arma, arma2, arma2oa, arma3, tkoh, tkom, ylands, rv, etc) '''if the picture shows this game's specific feature'''
* projectId: (Optional) see [[Bohemia Interactive Community:Naming Conventions|Naming Conventions]] (ofp, arma1, arma2, arma2oa, arma3, tkoh, tkom, ylands, rv, etc) '''if the picture shows this project's specific feature'''
* filename: a '''meaningful name''' (see examples); ''filename''<nowiki/>'s separators are '''dashes''' ({{hl|-}})<!-- * filename: a '''meaningful name''' (see examples); ''filename''<nowiki/>'s own separator is '''underscores''' ({{hl|_}})-->. Use '''snake_casing''', '''not''' camelCasing/PascalCasing!
* filename: a '''meaningful name''' (see examples); ''filename''<nowiki/>'s separators are '''dashes''' ({{hl|-}}). Use '''snake-casing''' (e.g {{hl|jeep-on-hill}}), '''not''' camelCasing/PascalCasing (e.g JeepOnHill)!
* colour: (Optional) define a specific variant, for example to know if an image needs a dark background - e.g {{hl|}})
* colour: (Optional) define a specific variant, for example to know if an image needs a dark background - e.g {{hl|white}} (then needs a dark background)
* size: (Optional) in format X''x''Y, e.g {{hl|256x512}}
* dimensions: (Optional) in format Xres'''x'''Yres, e.g {{hl|256x512}}


== Image Usage ==
== Image Usage ==


To include the image in a page, use {{hl|<nowiki>[[File:image-name.jpg]]</nowiki>}} or {{hl|<nowiki>[[Image:image-name.jpg]]</nowiki>}} ({{hl|File}} and {{hl|Image}} are interchangeable namespaces).
To include the image in a page, use {{hl|<nowiki>[[File:image-name.jpg]]</nowiki>}} or {{hl|<nowiki>[[Image:image-name.jpg]]</nowiki>}} ({{hl|File}} and {{hl|Image}} are interchangeable namespaces although {{hl|File}} is preferred).
See {{ExternalLink|link= https://www.mediawiki.org/wiki/Help:Images|text= MediaWiki Help}} for more information.
See {{ExternalLink|link= https://www.mediawiki.org/wiki/Help:Images|text= MediaWiki Help}} for more information.

Latest revision as of 09:42, 7 June 2023

Examples
Do Don't
  • arma1_hummer-closeup
  • tkoh_heliport-aerialview_1920x1080
  • arma3_logo_black_512x256
  • jeep
  • tkoh_mountains_near_city
  • DCIM-0001
  • arma3-2001-06-21_14-00-00
  • RealVirtualityWireframeRender

Naming Rules

format: entries separated by underscores (_): projectId_filename

  • projectId: (Optional) see Naming Conventions (ofp, arma1, arma2, arma2oa, arma3, tkoh, tkom, ylands, rv, etc) if the picture shows this project's specific feature
  • filename: a meaningful name (see examples); filename's separators are dashes (-). Use snake-casing (e.g jeep-on-hill), not camelCasing/PascalCasing (e.g JeepOnHill)!
  • colour: (Optional) define a specific variant, for example to know if an image needs a dark background - e.g white (then needs a dark background)
  • dimensions: (Optional) in format XresxYres, e.g 256x512

Image Usage

To include the image in a page, use [[File:image-name.jpg]] or [[Image:image-name.jpg]] (File and Image are interchangeable namespaces although File is preferred). See MediaWiki Help for more information.