Jump to content

Template:OR: Difference between revisions

From Mango's Lewd Diplomacy: Official Wiki
MLD>CaesarVincens
Change to use Module:String "rep" function for dynamic sizing
 
Mango Stellaris (talk | contribs)
m 1 revision imported
 
(No difference)

Latest revision as of 20:34, 10 May 2025

This template uses the following modules:
Module:String
[view] [edit] Template documentation

A template for creating OR condition blocks.

Parameters[edit source]

Parameter Description Required Default
1 Contents of the condition block required
rowspan Height of the condition block in rows. optional 2
operator Logical operator, replaces OR. optional OR

Usage[edit source]

{{OR|
* Condition 1
* Condition 2
}}
results in:
OR
{
  • Condition 1
  • Condition 2
{{OR|rowspan=3|
* Condition 1
* Condition 2
* Condition 3
}}
results in:
OR
{
  • Condition 1
  • Condition 2
  • Condition 3

Note that this template cannot be used with wikilists such as * or # as this breaks the format, * {{OR|}}:

OR
{
  • Condition 1
  • Condition 2

If used in a plainlist, this can be set alongside a wikilist; if a list marker must be used, wrap the template in <ul><li>{{OR|}}</li></ul>

  • OR
    {
    • Condition 1
    • Condition 2
Cookies help us deliver our services. By using our services, you agree to our use of cookies.