• Oct. 28, 2017, 12:28 p.m.

    How to integrate Armor Inspector widget into your website

    If you have your own website and would like to embedd Armor Inspector Webapp into it, here is HTML-code to use:

    <iframe src="https://wotinspector.com/webapp?frame" width="720" height="550"></iframe>
    

    Set the width and height to any values you like or make it responsive!

    You can also add additional parameters to iframe src to load particular tank in one particular mode. Here are available parameters (all optional):

    platform
    Sets the platform. Can be pc, blitz or console. By default pc is used.
    targetVehicleId
    Sets the target vehicle to specific vehicle Id, ids are the same used in the WOT PAPI.
    targetChassisId
    Sets the chassis of the target vehicle. By default top chassis are used.
    targetTurretId
    Sets turret for target. By default top tier turret is installed.
    targetGunId
    Sets gun for target. By default top tier gun is installed.
    targetShellId
    Sets the ammo type for a target. It's not visible in the app, but when you switch target and shooter, and target become shooter. It will load this type of ammo.
    playerVehicleId
    Sets the shooter/rammer vehicle to specific vehicle Id, ids are the same used in the WOT PAPI.
    playerChassisId
    Sets the chassis of the shooter/rammer vehicle. By default top chassis are used.
    playerTurretId
    Sets turret for shooter/rammer. By default top tier turret is installed.
    playerGunId
    Sets gun for shooter/rammer. By default top tier gun is installed.
    playerShellId
    Sets the ammo type for a shooter/rammer.
    distance
    Sets the camera's distance.
    mode
    Sets the view mode. Available modes are: xray.armor, xray.modules, xray.model, xray.textures, confrontation.chance, confrontation.shots, confrontation.modules, ramming
    minimize
    Starts the app in photo studio mode. No sidebar is visible until user exits the photo studio.

    Examples

    Here are some examples, you can paste them at codebeautify.org/htmlviewer/ and click Run to see how it works.

    Show armor thickness model for american M6 for wot blitz:

    <iframe src="https://wotinspector.com/webapp?frame&platform=blitz&targetVehicleId=801&mode=xray.armor&minimize" width="720" height="550"></iframe>
    

    Show modules for VK3601H with stock turret and top gun for it for wot blitz (note: the modules are only available for some tanks, for which WG previously made them public):

    <iframe src="https://wotinspector.com/webapp?frame&platform=blitz&targetVehicleId=2321&targetTurretId=3603&mode=xray.modules&minimize" width="720" height="550"></iframe>
    

    Show pen probablity in red-green for VK3601H shooting at M6 with default ammo for wot pc at 200m distance:

    <iframe src="https://wotinspector.com/webapp?frame&platform=pc&targetVehicleId=801&playerVehicleId=2321&mode=confrontation.chance&distance=200&minimize" width="720" height="550"></iframe>
    

    Show pen for modules for M6 shooting at VK3601H with default ammo for wot pc at 200m distance:

    <iframe src="https://wotinspector.com/webapp?frame&platform=pc&targetVehicleId=2321&playerVehicleId=801&mode=confrontation.modules&distance=200&minimize" width="720" height="550"></iframe>