- Portals
- The Current Year
- ED in the News
- Admins
- Help ED Rebuild
- Archive
- ED Bookmarklet
- Donate Bitcoin
Contact an admin on Discord or EDF if you want an account. Also fuck bots.
Template:Information: Difference between revisions
imported>CrackRabbit Created page with "<includeonly><!-- ::BEGIN:: --><table style="border-collapse:collapse; border:1px solid #C8C8C8; clear:both; margin:1em 0 1em 0;"> <caption style="text-align:left;"><big>..." |
imported>TabbyGarf 1 revision imported |
(7 intermediate revisions by 2 users not shown) | |
(No difference)
|
Latest revision as of 13:43, 25 March 2021
This template is a sublation of the now dead Template:Duplicate and Template:Translate. It is similar to TOW's Template:Information except mainly written in superior HTML. For images it can:
- display the navigation;
- display the description;
- display the tweet(s);
- display the translation of text in the image;
- display the source(s);
- display the other version(s);
- indicate that an image has one or more duplicate(s);
- indicate that an image is in the wrong format;
- and\or display copyright information (serious business)
Usage
Syntax:
{{ Information | navigation | prev | title | next | description | tweet | translate1 | translate2 | lang | multi-lined | convert | source | booru | id | other_version | alt | duplicate | copyright }}
Where:
- For navigation:
- navigation = yes
- prev = previous image basename
- title = of the current file (defaults to the current pagename)
- next = next image basename
- navigation = yes
- For description:
- description = plain text or any wiki markup that describes the image: not a remark
- For tweet:
- tweet = the embedded tweet template
- For translations:
- translate1 = non-English text
- translate2 = English text
- lang = the name of the non-English language
- multi-lined =
no
,yes
, or nothing (defaults to single-lined)
- For source notification(s):
- source = plain text or any wiki markup
- booru = name (or short name) of an imagebooru
- id = ID of an image
- For other version(s) notifications:
- other_version = any wiki markup to link to other images, for example:
[[File:*.ext|185x185px]]
- alt = type of other version of an image, examples:
Cropped version
,Slow motion version
- other_version = any wiki markup to link to other images, for example:
- For duplicate image notifications:
- duplicate = plain text sort key for duplicate images
- For wrong filetype notifications:
- convert = either
PNGtoJPG
,JPGtoPNG
,GIFtoPNG
,JPGto1bitPNG
, orGIFto1bitPNG
- convert = either
- For copyright information:
- copyright = plain text; any wiki markup; or
wtfpl
,public_domain
,bsd
, orgnu
- copyright = plain text; any wiki markup; or
Note: Do not use spaces immediately before or after the curly brackets or vertical bar.
Examples
This links between sequential images. In this unique case the title
parameter is used: if it was not then it would display the file name without "File:" prefix:
{{Information |navigation=yes |title=[[:File:Ewww3.jpg]] |next=Ewww5.jpg |prev=Ewww2.jpg }}
produces this:
Navigation |
|
(See also Template:Photoframe)
Tweet
This:
{{information |tweet={{embedded tweet|https://twitter.com/fucktyler/status/285670822264307712}} }}
produces this:
Tweet(s) |
|
Translate
(For images use Online OCR)
Google Translate usually works. This:
{{Information|translate1=ПО-АНГЛИЙСКИ, ублюдок! ТЫ НА НЁМ ГОВОРИШЬ?|translate2=[[ENGLISH MOTHERFUCKER DO YOU SPEAK IT|English, motherfucker! YOU speak it?]]|lang=Russian}}
produces this:
Non-English | "ПО-АНГЛИЙСКИ, ублюдок! ТЫ НА НЁМ ГОВОРИШЬ? " (Russian), translation: "English, motherfucker! YOU speak it?" |
Booru
This:
{{Information |booru=redpill|id=12212 }}
produces this:
Source |
Currently, booru can equal either: paheal
, redpill
, real
, gel
, derpi
, sankaku
, anime
, rule34.xxx
, vidya
, meme
, food
, poni
, loli
, x
, ibsearch
, or vivi
.
Imageboorus that incite certain categories:
gel
oranime
→ Category:Animederpi
orponi
→ Category:My Little Ponyloli
→ Category:Lolifood
→ Category:Food and Drinkvivi
→ Category:Gamergate and Category:People|James, Vivian
The rest do not incite any categories as they are not consistently of one category, for example, Sankaku Channel is not purely anime.
Also, if your user rights are editor or higher consider adding the tags to the keywords section. Use this HTML file to reformat the tags (Real-time HTML Editor):
<!DOCTYPE html> <html> <title>Reformat tags</title> <body> <textarea id="tags" cols="48" rows="20" tabindex="3"></textarea> <br><button onclick="spaceToComma()" style="margin-bottom:3px;"><tt>Convert "keyword key_word" to "keyword, key word"</tt></button> <br><button onclick="commaToSpace()"><tt>Convert "keyword, key word" to "keyword key_word"</tt></button> <br><small>(works with or without space(s) after the comma(s))</small> <script> function commaToSpace() { var str = document.getElementById("tags").value; if (str.match(", ")) { var res = str.replace(/, /g, ","); var res2 = res.replace(/ /g, "_") document.getElementById("tags").value = res2.replace(/,/g, " "); } else { var res = str.replace(/ /g, "_"); document.getElementById("tags").value = res.replace(/,/g, " "); } } function spaceToComma() { var str = document.getElementById("tags").value; var res = str.replace(/ /g, ", "); document.getElementById("tags").value = res.replace(/_/g, " "); } </script> </body> </html>
Other version
For alternative image references, this:
{{Information |other_version=[[File:Cat Sink Drink.png|185x185px]] |alt=Uncropped version }}
produces this:
Uncropped version |
- Notice: if
185px
was used instead of185x185px
then the results would be shit. - If:
- only alternative image format then use:
{{Information|duplicate=plain text|other_version=[[:File:*.ext|185x185px]]}}
- multiple other versions then use an en space:
{{Information|duplicate=plain text|other_version=[[File:*.ext|185x185px]] [[File:*.ext|185x185px]]}}
- they have thumbnails and captions then see here: File:Saudibeheaded1.jpg
- they should be a gallery see: File:Lolwut.jpg
- only alternative image format then use:
Duplicate
If there is two or more duplicate images, for example:
- File:herd_you_leik_mudkips.jpg
- File:u_leik_mudkips.jpg
- File:do_you_like_mudkips.jpg
organize them to show up in a group in the duplicate category by adding this template to each image. This:
{{Information |duplicate=leik mudkips? }}
produces this:
Duplicate sort key | leik mudkips? |
Convert
This:
{{Information |convert=PNGtoJPG }} {{Information |convert=JPGtoPNG }} {{Information |convert=GIFtoPNG }}
produces this:
Wrong image format |
This PNG should be a JPG. |
Wrong image format |
This JPG should be a PNG. |
Wrong image format |
This GIF should be a PNG. |
PNGtoJPG
- for photographs uploaded as PNGsJPGtoPNG
- for non-photographic images or photographs with color dithering uploaded as JPGsGIFtoPNG
- for GIFs (which usually have color dithering) that are not animated but are uploaded as GIFs
Copyright
This:
{{Information|copyright=wtfpl}}
produces this:
Copyright shit |