Template:Columns-list: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Jonesey95
(rm parameter 2 from the unknown parameter check so that an error message will display in preview. Easier to find errors in long pages that way.)
meta>Jonesey95
(Update from sandbox; see talk page.)
Line 1: Line 1:
<includeonly>{{#if:{{{2|{{{1|}}}}}}|{{div col
<includeonly>{{#if:{{{1|}}}|{{div col
  <!-- Support for previous parameter 1= aka cols= has been removed after being deprecated for months for compatibility reasons, use more portable parameter colwidth= instead. -->
  <!-- Support for previous parameter 1= aka cols= has been removed after being deprecated for compatibility reasons; use the more accessible parameter colwidth= instead. -->
  | colwidth = {{{colwidth|30em}}}
  | colwidth = {{{colwidth|30em}}}
  | gap = {{{gap|}}}
  | gap = {{{gap|}}}
Line 6: Line 6:
  | small = {{{small|}}}
  | small = {{{small|}}}
  | style = {{{style|}}}
  | style = {{{style|}}}
  | content = {{{2|{{{1|}}}}}}
  | content = {{#if:{{{2|}}}|<div class="hatnote" style="color:red">The unnamed parameter 2= is no longer supported. Please see the documentation for {{tl|columns-list}}.</div>}}{{{1|}}}
}}}}{{#if: {{{2|}}}|[[Category: Pages using Columns-list with deprecated parameters]]|}}<!-- Note: This logic may seem counter-intuitive. We are looking for the supported parameter 2= (i.e. the content), because if it is present, that means parameter 1= is present. --></includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using columns-list with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Columns-list]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | colwidth | gap | rules | small | style }}<noinclude>
}}}}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using columns-list with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Columns-list]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | colwidth | gap | rules | small | style }}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 15:44, 26 July 2018