உள்ளடக்கத்துக்குச் செல்

Module:Hatnote list/doc

கட்டற்ற கலைக்களஞ்சியமான விக்கிப்பீடியாவில் இருந்து.
சுப. இராஜசேகர் (பேச்சு | பங்களிப்புகள்) பயனரால் செய்யப்பட்ட 16:34, 29 நவம்பர் 2017 அன்றிருந்தவாரான திருத்தம் ("<!-- Please place categories where indicated at the bottom of this..."-இப்பெயரில் புதிய பக்கம் உருவாக்கப்பட்டுள்ளது)
(வேறுபாடு) ← பழைய திருத்தம் | புதிய திருத்தத்தைப் பார்க்கவும். (வேறுபாடு) | புதிய திருத்தம் → (வேறுபாடு)


Usage from wikitext

[தொகு]

This module cannot be used from wikitext.

Usage from Lua

[தொகு]

To call the module, use

local mHatList = require('Module:Hatnote list')

or similar, then access its methods through the mHatList variable (or whatever was used).

andList

[தொகு]

andList takes a list in table form, and returns a string with the list separated with "and" and commas as appropriate.

orList

[தொகு]

orList takes a list in table form, and returns a string with the list separated with "or" and commas as appropriate.

forSee

[தொகு]

_forSee takes three arguments: a table of trimmed arguments with blanks removed, a "from" number with the index to start at, and an options table, and returns a string with a number of "For X, see [[Y]]" sentences. The links are formatted using the methods from Module:Hatnote.

As a convenience, the forSee method (without the leading underscore) takes the same arguments except with a frame instead of an args table, using getArgs() from Module:Arguments to preprocess the arguments.


"https://ta.wikipedia.org/w/index.php?title=Module:Hatnote_list/doc&oldid=2449665" இலிருந்து மீள்விக்கப்பட்டது