Unit/tech design - wiki links: unit/tech wiki link and wiki image

Post Reply
Stratego (dev)
Site Admin
Posts: 15734
Joined: Fri Apr 25, 2014 9:28 pm

Unit/tech design - wiki links: unit/tech wiki link and wiki image

Post by Stratego (dev) »

In the unit statsheet you can set links to wikipedia texts and images.
(In AOW/AOMW all units should have such reference, in other alternatives it is optional)


IMPORTANT!: i checked only Wikipedia (wikipedia.org) so no other page or image should be linked!
IMPORTANT!: reference ONLY English pages (so en.wikipedia.org)


here is how it look in json,

Code: Select all

        "urlImage":"https://upload.wikimedia.org/wikipedia/commons/f/f5/Bofors_L60_IWM_England.jpg",
        "urlDoc":"https://en.wikipedia.org/wiki/Bofors_40_mm_gun"
i generally put them right after the trnBestAgainstMeGround line, please you do so:

Code: Select all

        "trnBestAgainstMeWater":{"copyFromUnit":"UNIT_US_INF_INFANTRY"},
        "trnBestAgainstMeGround":{"copyFromUnit":"UNIT_US_INF_INFANTRY"},
        "urlImage":"https://upload.wikimedia.org/wikipedia/commons/f/f5/Bofors_L60_IWM_England.jpg",
        "urlDoc":"https://en.wikipedia.org/wiki/Bofors_40_mm_gun"
urlDoc: this should point to the main wikipedia page of that unit
urlImage: this is the image from that same wikipedia page, to get it it is a little tricky:
1. right click on image and "open image in new window"
2. copy the image url and put into "urlImage"
any other way of getting the image can result in wrong appearance in game.
Post Reply

Return to “Unit Design”