Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
DOORS Site Logo

Welcome to the Official DOORS Wiki!
Please read the Wiki Rules the Manual of Style and familiarise yourself with our Wiki Policies before contributing to get a better understanding of what content is allowed on our wiki and how to display it properly, if you need help don't hesitate to reach out to a DOORS Wiki Staff Member.

Template:DiscordWidget: Difference between revisions

Template page
(Created page with "<div class="DiscordWidget" data-id="{{{id|{{{1|}}}}}}" data-theme="{{{theme|}}}" data-invite="{{{invite|}}}" data-header="{{{header|0}}}" data-width="{{{width|{{{w|}}}}}}" data-height="{{{height|{{{h|}}}}}}" >{{{text|}}}</div><noinclude> Embeds a customizable Discord widget on the page, independent from the rail widget. Useful for the main page which doesn't have a traditional rail element but often has a column design. == Parameters == ;...")
Tag: 2017 source edit
 
(Added includeonly tags to supress the template auto-displaying.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div
<includeonly><div
class="DiscordWidget"
class="DiscordWidget"
data-id="{{{id|{{{1|}}}}}}"
data-id="{{{id|{{{1|}}}}}}"
Line 7: Line 7:
data-width="{{{width|{{{w|}}}}}}"
data-width="{{{width|{{{w|}}}}}}"
data-height="{{{height|{{{h|}}}}}}"
data-height="{{{height|{{{h|}}}}}}"
data-branding="{{{branding|}}}"
>{{{text|}}}</div><noinclude>
>{{{text|}}}</div></includeonly><noinclude>
Embeds a customizable [[Discord]] widget on the page, independent from the rail widget. Useful for the main page which doesn't have a traditional rail element but often has a column design.
{{Documentation}}</noinclude>

== Parameters ==
; id
: The Discord widget ID. It can also be the first numbered parameter passed to the template. Defaults to the ID configured on MediaWiki:Custom-Discord-id.
; theme
: The theme name. Should be one of <code>dark</code> or <code>light</code>, other theme names will default to <code>dark</code> but allow further custom CSS to affect it.
; invite
: The invite URL to be used in the join button. Defaults to an invite URL generated by Discord.
; header
: Whether to add the header above the widget or not. Any value other than 0 is considered truthy. Default: <code>0</code>
; width
: The widget's width. Aliases: <code>w</code>
; height
: The widget's height. Aliases: <code>h</code>
; text
: The placeholder text while the widget is loading. Not required. Defaults to an empty string.
</noinclude>

Latest revision as of 20:57, 18 September 2022


{{#vardefine: base page |

   Template:DiscordWidget
 

}}{{#vardefine: current page | Template:DiscordWidget}}{{#vardefine: doc page |

 {{#var: base page}}/doc

}}{{#vardefine: namespace |

 Template

}}{{#vardefine: preload |

 Template:Documentation/preload&summary=Create+%2Fdoc+subpage+for+%5B%5B%7B%7B%23var%3A+base+page%7D%7D%5D%5D&editintro=Template:Documentation/editintro-doc

}}{{#vardefine: preload-sandbox |

 Template:Documentation/preload-sandbox&summary=Create+sandbox+subpage+for+experimenting+on+template+%5B%5B%7B%7B%23var%3A+base+page%7D%7D%5D%5D

}}{{#vardefine: sandbox |

 {{#var: base page}}/sandbox

}}{{#vardefine: page text |

 page

}}{{#vardefine: doc image |

  

}}

{{#var: doc image }}{{#var: page text}} Documentation[[[[:Template:Fullurl:]] create] | [[Special:Purge/{{#var: current page}}|purge]]]

The documentation for this {{#var: page text}} does not exist. Create it at [[[:Template:Fullurl:]] {{#var: doc page}}].

[[[:Template:Fullurl:]] Create documentation] for this template.
Editors can experiment in this {{#var: page text}}'s sandbox ([[[:Template:Fullurl:]] create] | [[[:Template:Fullurl:]] mirror]) page.
[[Special:PrefixIndex/{{#var: current page}}|Subpages of this {{#var: page text}}]].