Help:Templates

From Ekatra Wiki
Jump to navigation Jump to search

Book Cover

Template:BookCover is used to created front page on the book. Instead editor, you can also use author. The default title, editor, author size is 16px. Example:

{{BookCover
|cover_image = File:Ardhi-Sadi-Samagra-Title.jpg
|cover_size = 300px
|title = અરધી સદીની વાચનયાત્રા — ભાગ ૧ થી ૪
|title_size = 20px
|editor = મહેન્દ્ર મેઘાણી  
|editor_size = 12px
|row3 = I am 1st row after editor/author
|row4 = I am 2nd row after editor/author
}}

Output:

Ardhi-Sadi-Samagra-Title.jpg


અરધી સદીની વાચનયાત્રા — ભાગ ૧ થી ૪

સંપાદક: મહેન્દ્ર મેઘાણી

I am 1st row after editor/author

I am 2nd row after editor/author


Column 2, 3, 4

If you want to make column then first you have to use Template:Col-2, Template:Col-3, and Template:Col-4 with in Template:Col-begin and Template:Col-end

Example:

{{col-begin}}
{{col-3}}
* [[A]]
* [[B]]
* [[C]]
{{col-3}}
* [[D]]
* [[E]]
* [[F]]
{{col-end}}

Output:

Header

{{header
 | title      = [[સત્યના પ્રયોગો અથવા આત્મકથા]]
 | author     = મોહનદાસ કરમચંદ ગાંધી
 | translator = 
 | section    = જન્મ
 | previous   = [[સત્યના પ્રયોગો અથવા આત્મકથા/પ્રસ્તાવના|પ્રસ્તાવના]]
 | next       = [[સત્યના પ્રયોગો અથવા આત્મકથા/ભાગ પહેલો:૨. બચપણ|૨. બચપણ]]
 | notes      = 
}}

Output:

Lua error in Module:Edition at line 270: attempt to index field 'wikibase' (a nil value).

Lua error in Module:Header at line 637: attempt to index field 'wikibase' (a nil value). Lua error in Module:Header at line 232: bad argument #2 to 'inNamespaces' (unrecognized namespace number '114').

Box

We use divbox template.

Example 1: {{divbox|gray|Lorem ipsum|Lorem ipsum dolor...}}

Output 1:

Example 2: {{divbox|radius=10px|navy|Lorem ipsum|Lorem ipsum dolor...}}

Output 2:

Vimeo

{{#widget:Vimeo|id=8758454}}

Output:-