mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 10:22:43 +01:00
73 lines
4.4 KiB
Django/Jinja
73 lines
4.4 KiB
Django/Jinja
<h3>Query Parameters</h3>
|
|
<div class="row">
|
|
<div class="col s12">
|
|
<div class="card-panel indigo lighten-5 z-depth-1">
|
|
<div class="row">
|
|
<div class="col s12 black-text">
|
|
<p class="flow-text">Use query parameters to customize your individual embeds out of this world!</p>
|
|
<p>Query parameters are in the format of key-value pairs. They are appended after your embed url such that it would look like so: <br><em>https://titanembeds.com/embed/1234567890<strong>?css=1&defaultchannel=81387914189078528&theme=DiscordDark</strong></em></p>
|
|
<p>Below is the reference of all the avaliable query parameters that may be used.</p>
|
|
<ul class="collection">
|
|
<li class="collection-item">
|
|
<strong>css=<integer></strong> <br>
|
|
Styles the embed's theme according to the unique custom CSS ID. Custom CSS may be managed from the user dashboard page. <br>
|
|
<em>Eg: css=1</em>
|
|
</li>
|
|
<li class="collection-item">
|
|
<strong>defaultchannel=<snowflake></strong> <br>
|
|
Instead of having the top channel as the first channel your users see, you may change it. Enable Discord's Developer mode in the Appearances tab of the User Settings and copy the channel ID. <br>
|
|
<em>Eg: defaultchannel=1234567890</em>
|
|
</li>
|
|
<li class="collection-item">
|
|
<strong>lang=<language></strong> <br>
|
|
Is your users multilingual? No worries, Titan can speak multiple languages! <a href="https://github.com/TitanEmbeds/Titan/blob/master/webapp/titanembeds/i18n.py" target="_blank">Check here</a> for a list of all language parameters Titan can support. <br>
|
|
Wish Titan supported your language? Consider contributing to <a href="http://translate.titanembeds.com/" target="_blank">our CrowdIn project</a>! <br>
|
|
<em>Eg: lang=nl</em>
|
|
</li>
|
|
<li class="collection-item">
|
|
<strong>noscroll=<boolean></strong> <br>
|
|
Prevents the embed from scrolling down on first load. Useful for those who wants to set #info -typed channels as their default channel. Gotta have those good reads!
|
|
<hr>
|
|
<strong>Avaliable Options:</strong>
|
|
<ul class="browser-default">
|
|
<li><strong>true</strong></li>
|
|
<li><strong>false</strong> (default)</li>
|
|
</ul>
|
|
<hr>
|
|
<em>Eg: noscroll=true</em>
|
|
</li>
|
|
<li class="collection-item">
|
|
<strong>sametarget=<boolean></strong> <br>
|
|
For those who don't want the Discord Login to open in a new tab/window... (<em>Does not work for iframe loaded embeds!!!</em> This is a direct link option only.)
|
|
<hr>
|
|
<strong>Avaliable Options:</strong>
|
|
<ul class="browser-default">
|
|
<li><strong>true</strong></li>
|
|
<li><strong>false</strong> (default)</li>
|
|
</ul>
|
|
<hr>
|
|
<em>Eg: sametarget=true</em>
|
|
</li>
|
|
<li class="collection-item">
|
|
<strong>theme=<string></strong> <br>
|
|
Want your embed to use one of our premade themes? Look no further! <br>
|
|
<hr>
|
|
<strong>Avaliable Options:</strong>
|
|
<ul class="browser-default">
|
|
<li><strong>BetterTitan</strong></li>
|
|
<li><strong>DiscordDark</strong></li>
|
|
</ul>
|
|
<hr>
|
|
<em>Eg: theme=DiscordDark</em>
|
|
</li>
|
|
<li class="collection-item">
|
|
<strong>username=<string></strong> <br>
|
|
Prefills the guest username field with the given username. <br>
|
|
<em>Eg: username=Rainbow%20Dash</em>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |