User:Meghdhanu/Common Scripts: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{center|'''Common Scripts
{{center|'''Common Scripts'''}}
'''}}


<poem>


{{color|blue|1. To hide the page path shown on top :}}
{| class="wikitable"
<nowiki>{{SetTitle}}</nowiki>
|colspan="4"|<center>Common Scripts</center>
 
|-
{{color|blue|2. To Show Heading in standard format - brown, bold and big text:}}
! Sr. No !! Purpose !! Syntex !! Output
<nowiki>{{Heading|અબક|}}</nowiki>
|-
 
|  || Bold || <nowiki>'''ABCD'''</nowiki> || '''ABCD'''
{{color|blue|3. To Set paragraph indent on pros text:}}
|-
<nowiki>{{Poem2Open}}</nowiki>
| || Italics || <nowiki>''ABCD''</nowiki> || ''ABCD''
 
|-
<nowiki>{{Poem2Close}}</nowiki>
|  || increasing font size || <nowiki><big>ABCD</big></nowiki> || <big>ABCD</big>
 
|-
{{color|blue|4. To place Poem stanza block in center:}}
|  || reducing font size || <nowiki><small>ABCD</small></nowiki> || <small>ABCD</small>
 
|-
<nowiki>{{Block center|<poem></nowiki>
|  || Colour text || <nowiki>{{color|green|ABCD}}</nowiki> || {{color|green|ABCD}}
 
|-
<nowiki>અબક< /poem>}}</nowiki>
|  || Align Center || <nowiki>{{center|ABCD}}</nowiki> || {{center|ABCD}}
 
|-
{{color|blue|5. For giving footnotes and references :}}
|  || Align Center || <nowiki><center>ABCD</center></nowiki> || <center>ABCD</center>
 
|-
<nowiki><ref></ref></nowiki>
|colspan="4"|Center templated leaves one additional line space below, it needs correction
 
|-
{{color|blue|6. Chapter footer for navigating to previous chapter :}}
|  || Align Right || <nowiki>{{Right|ABCD}}</nowiki> || {{Right|ABCD}}
 
|-
<nowiki>{{HeaderNav2
|  || Foot Notes || <nowiki>Reference<ref>''ABCD''</ref></nowiki> || Reference<ref>''ABCD''</ref><br>{{reflist}}
|-
|  || Poem Text || <nowiki>{{Block center|<poem>મેં એક બિલાડી પાળી છે
તે રંગે બહુ રૂપાળી છે</poem>}}</nowiki> || {{Block center|<poem>મેં એક બિલાડી પાળી છે
તે રંગે બહુ રૂપાળી છે</poem>}}
|-
|  || Paragraph Text || <nowiki>{{Poem2Open}}ગાંધી કુટુંબ પ્રથમ તો ગાંધિયાણાનો વેપાર કરનારું હોય એમ જણાય છે. પણ મારા દાદાથી માંડીને ત્રણ પેઢી થયાં તો એ કારભારું કરતું આવેલું છે. ઉત્તમચંદ ગાંધી અથવા ઓતા ગાંધી ટેકીલા હશે એમ લાગે છે. તેમને રાજખટપટને લીધે પોરબંદર છોડવું પડેલું ને જૂનાગઢ રાજ્યમાં આશ્રય લીધેલો. તેમણે નવાબસાહેબને સલામ ડાબે હાથે કરી. કોઈએ આ દેખાતા અવિનયનું કારણ પૂછયું તો જવાબ મળ્યો : ‘જમણો હાથ તો પોરબંદરને દેવાઈ ચૂક્યો છે.’{{Poem2Close}}</nowiki> || {{Poem2Open}}ગાંધી કુટુંબ પ્રથમ તો ગાંધિયાણાનો વેપાર કરનારું હોય એમ જણાય છે. પણ મારા દાદાથી માંડીને ત્રણ પેઢી થયાં તો એ કારભારું કરતું આવેલું છે. ઉત્તમચંદ ગાંધી અથવા ઓતા ગાંધી ટેકીલા હશે એમ લાગે છે. તેમને રાજખટપટને લીધે પોરબંદર છોડવું પડેલું ને જૂનાગઢ રાજ્યમાં આશ્રય લીધેલો. તેમણે નવાબસાહેબને સલામ ડાબે હાથે કરી. કોઈએ આ દેખાતા અવિનયનું કારણ પૂછયું તો જવાબ મળ્યો : ‘જમણો હાથ તો પોરબંદરને દેવાઈ ચૂક્યો છે.’{{Poem2Close}}
|-
|  || To hide the page path shown on top : || <nowiki>{{SetTitle}}</nowiki> ||{{SetTitle}}
|-
|  || To Show Heading in standard format - brown, bold and big text: || <nowiki>{{Heading|ABCD|xyz}}</nowiki> ||{{Heading|ABCD|xyz}}
|-
| || Chapter footer for navigating to previous chapter : || <nowiki>{{HeaderNav2
|previous = અબક
|next = અબક
}}</nowiki> ||{{HeaderNav2
|previous = અબક
|previous = અબક
|next = અબક
|next = અબક
}}</nowiki>
}}
|-
|  || For placing JPG, PDF or audio Files : || <nowiki>[[File:Ekatra-emblem.png|200px|center]]</nowiki> ||[[File:Ekatra-emblem.png|200px|center]]
|-
|  || For indenting lines / creating gaps in Poem formtting: || <nowiki>{{gap}}મેં એક બિલાડી પાળી છે<br>
{{gap|4em}}તે રંગે બહુ રૂપાળી છે</nowiki> ||{{gap}}મેં એક બિલાડી પાળી છે<br>
{{gap|4em}}તે રંગે બહુ રૂપાળી છે
|-
|  || line breaks|| <nowiki>મેં એક બિલાડી પાળી છે<br>તે રંગે બહુ રૂપાળી છે</nowiki> ||મેં એક બિલાડી પાળી છે<br>તે રંગે બહુ રૂપાળી છે
|-
|  || horizontal line || <nowiki><hr></nowiki> ||<hr>
|-
|  || horizontal line at Center || <nowiki>{{rule|4em|height=3px}}</nowiki> ||{{rule|4em|height=3px}}
|-
|  || Running Header : to place text with 3 alignment in single line || <nowiki>{{rh|left|center|right}}</nowiki> ||{{rh|left|center|right}}
|-
|  || Hiding Text || <nowiki><!-- This is hiddent Text in right side box --></nowiki> ||<!-- This is hiddent Text -->
|}


{{color|blue|7. For aligning text to right :}}
<poem>
 
<nowiki>{{right|--અબક}}</nowiki>
 
{{color|blue|8. For placing JPG, PDF or audio Files :}}
 
<nowiki>[[File:abcs|200px|center]]</nowiki>
 
{{color|blue|9. For indenting lines / creating gaps in Poem formtting:}}
 
<nowiki>{{gap}}</nowiki>


</poem>
</poem>
Line 69: Line 89:
પણ ચણીબોરનો લાભ!
પણ ચણીબોરનો લાભ!


ઝાઝા ઠળિયા,
ઝાઝી છાલ,
થોડાં લિસ્સાં બોર
કાંટાળી કૂડી જાળ!
અમારો રસ્તો ખોટો નથી!
અમારો નિષ્ફળ આંટો નથી!
ચણીબોર ચાખીને ચાખ્યો સમય,
હવે તો ડગલે પગલે ચણીબોરની વાતો વ્હેવી!
</poem>
</poem>


Line 85: Line 95:
<br>
<br>


{{color|blue|૧૧. Right formtting:}}
{{color|blue|૧૧. Right, Center formtting:}}
 
<center>  '''*''' </center>
 
<center>  •  •  • </center>


{{Right|''(અનુ. ગોપાળરાવ ગ. વિદ્ધાંસ)''}}
{{Right|''(અનુ. ગોપાળરાવ ગ. વિદ્ધાંસ)''}}
Examples
1. Left-align text! The code for this: <div style="text-align: left">'''Left-align text!'''</div>
2. Centered text! The code for this: <div style="text-align: center">'''Centered text!'''</div>
3. Right-align text! The code for this: <div style="text-align: right">'''Right-align text!'''</div>


<br>
<br>
Line 93: Line 112:
<br>
<br>


{{color|blue|૧૨. Foot note formtting:}}
{{color|blue|૧૨. Font sizes:}}
 
{{x-larger|સત્યના પ્રયોગો અથવા આત્મકથા}}
{{dhr}}
{{xx-larger|સત્યના પ્રયોગો અથવા આત્મકથા}}
{{dhr}}
{{xxx-larger|સત્યના પ્રયોગો અથવા આત્મકથા}}
{{dhr}}
{{xxxx-larger|સત્યના પ્રયોગો અથવા આત્મકથા}}
{{dhr|1em}}
{{xx-smaller|સત્યના પ્રયોગો અથવા આત્મકથા}}
{{dhr}}
{{x-smaller|સત્યના પ્રયોગો અથવા આત્મકથા}}
{{dhr}}
{{smaller|સત્યના પ્રયોગો અથવા આત્મકથા}}
{{dhr}}
{{fine|સત્યના પ્રયોગો અથવા આત્મકથા}}
 
<center>{{color|red|<big><big><big>'''નરસિંહથી ન્હાનાલાલ'''</big></big></big>}}</center>
 
<center>{{color|blue|<big>'''કવિ અને કવિતા'''</big>}}</center>
 
<center><big>'''નિરંજન ભગત'''</big></center>


<ref> </ref>
 
{{color|blue|13. Bold}}
 
''' BOLD  TE
 
 
 
<br>
<hr>
<br>