Jump to content

User:Aseleste/Templates/Modules/Indexer/doc

From Wikipedia, the free encyclopedia

Syntax

[edit]
{{User:Aseleste/Templates/Modules/Indexer
| <!--folder=--> <!-- Folding function (optional) -->
| <!--table_*=--> <!-- Category (optional, suggested) -->
| <!--content=--> <!-- Content (optional, suggested) -->
}}

Parameters

[edit]
Parameters for User:Aseleste/Templates/Modules/Indexer
Parameter Description
folder Folding function. (optional)
Magic words: __M_LEFT__, __M_RIGHT__
table_* Category. (optional, suggested)
Magic words: __M_CONTENT__
content Content. (optional, suggested)
Magic words: __M_INDEX__ [category 1] [category 2] ... [category n], __M_CATEGORY__

Examples

[edit]

Example without parameters

[edit]
{{User:Aseleste/Templates/Modules/Indexer}}


Example with useful content

[edit]
{{User:Aseleste/Templates/Modules/Indexer
| table_1_ordered1=<nowiki>Ordered 1

__M_CONTENT__</nowiki>
| table_2_ordered2=<nowiki>Ordered 2

__M_CONTENT__</nowiki>
| table_unordered1=<nowiki>Unordered 1

__M_CONTENT__</nowiki>
| table_unordered2=<nowiki>Unordered 2

__M_CONTENT__</nowiki>
| content=<nowiki>
__M_INDEX__ [ordered1] [ordered2] [unordered1] [unordered2]
I am in category '''__M_CATEGORY__'''.

__M_INDEX__ [ordered1] [ordered2]
I am in ordered categories only.

__M_INDEX__ [unordered1] [unordered2]
I am in unordered categories only.

</nowiki>}}

Ordered 1

I am in category ordered1.

I am in ordered categories only.


Ordered 2

I am in category ordered2.

I am in ordered categories only.


Unordered 2

I am in category unordered2.

I am in unordered categories only.

Unordered 1

I am in category unordered1.

I am in unordered categories only.


Example with everything

[edit]
{{User:Aseleste/Templates/Modules/Indexer
| folder=<nowiki>__M_LEFT__
----
__M_RIGHT__</nowiki>
| table_1_ordered1=<nowiki>Ordered 1

__M_CONTENT__</nowiki>
| table_2_ordered2=<nowiki>Ordered 2

__M_CONTENT__</nowiki>
| table_unordered1=<nowiki>Unordered 1

__M_CONTENT__</nowiki>
| table_unordered2=<nowiki>Unordered 2

__M_CONTENT__</nowiki>
| content=<nowiki>
__M_INDEX__ [ordered1] [ordered2] [unordered1] [unordered2]
I am in category '''__M_CATEGORY__'''.

__M_INDEX__ [ordered1] [ordered2]
I am in ordered categories only.

__M_INDEX__ [unordered1] [unordered2]
I am in unordered categories only.

</nowiki>}}

Ordered 1

I am in category ordered1.

I am in ordered categories only.



Ordered 2

I am in category ordered2.

I am in ordered categories only.



Unordered 2

I am in category unordered2.

I am in unordered categories only.


Unordered 1

I am in category unordered1.

I am in unordered categories only.


TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Aseleste/Templates/Modules/Indexer in articles based on its TemplateData.

TemplateData for Aseleste/Templates/Modules/Indexer

Categorizes content.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Folding functionfolder

Folding function

Stringsuggested
Contentcontent

Content.

Stringsuggested