User:Meghdhanu/Common Scripts: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{center|'''Common Scripts
{{center|'''Common Scripts'''}}
'''}}
 
 
{| class="wikitable"
|colspan="4"|<center>Common Scripts</center>
|-
! Sr. No !! Purpose !! Syntex !! Output
|-
|  || Bold || <nowiki>'''ABCD'''</nowiki> || '''ABCD'''
|-
|  || Italics || <nowiki>''ABCD''</nowiki> || ''ABCD''
|-
|  || increasing font size || <nowiki><big>ABCD</big></nowiki> || <big>ABCD</big>
|-
|  || reducing font size || <nowiki><small>ABCD</small></nowiki> || <small>ABCD</small>
|-
|  || Colour text || <nowiki>{{color|green|ABCD}}</nowiki> || {{color|green|ABCD}}
|-
|  || Align Center || <nowiki>{{center|ABCD}}</nowiki> || {{center|ABCD}}
|-
|  || Align Center || <nowiki><center>ABCD</center></nowiki> || <center>ABCD</center>
|-
|colspan="4"|Center templated leaves one additional line space below, it needs correction
|-
|  || Align Right || <nowiki>{{Right|ABCD}}</nowiki> || {{Right|ABCD}}
|-
|  || 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 = અબક
|next = અબક
}}
|-
|  || 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 -->
|}


<poem>
<poem>


{{color|blue|1. To hide the page path shown on top :}}
</poem>
<nowiki>{{SetTitle}}</nowiki>


{{color|blue|2. To Show Heading in standard format - brown, bold and big text:}}
<br>
<nowiki>{{Heading|અબક|}}</nowiki>
<hr>
<br>


{{color|blue|3. To Set paragraph indent on pros text:}}
<poem>
<nowiki>{{Poem2Open}}</nowiki>


<nowiki>{{Poem2Close}}</nowiki>
{{color|blue|૧૦. Poem formtting:}}


{{color|blue|4. To place Poem stanza block in center:}}
કવિતા/ poem


<nowiki>{{Block center|<poem></nowiki>
ચણીબોર ચાખીને ચાખ્યો સમય,
હવે તો શબ્દે શબ્દે એની મીઠી વાત કહેવી...


<nowiki>અબક< /poem>}}</nowiki>
આંખોમાં ખૂંચે છે રજકણ.
આંખે ખારાં પાણી,
પણ અમને તો ભઈ, ખુશી
:: ગરેલાં ચણીબોર બેચાર મળ્યાં-ની!


{{color|blue|5. For giving footnotes and references :}}
ઉજ્જડ ઉજ્જડ વગડો
ને લુખ્ખું લુખ્ખું આભ,
બરછટ બરછટ હાથ,
પણ ચણીબોરનો લાભ!


<nowiki><ref></ref></nowiki>
</poem>


{{color|blue|6. Chapter footer for navigating to previous chapter :}}
<br>
<hr>
<br>


<nowiki>{{HeaderNav2
{{color|blue|૧૧. Right, Center formtting:}}
|previous = અબક
 
|next = અબક
<center>  '''*''' </center>
}}</nowiki>
 
<center>  •  •  • </center>
 
{{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>
<hr>
<br>
 
{{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>


{{color|blue|7. For aligning text to right :}}
<center><big>'''નિરંજન ભગત'''</big></center>


<nowiki>{{right|--અબક}}</nowiki>


{{color|blue|8. For placing JPG, PDF or audio Files :}}
{{color|blue|13. Bold}}


<nowiki>[[File:abcs|200px|center]]</nowiki>
''' BOLD  TE


{{color|blue|9. For indenting lines / creating gaps in Poem formtting:}}


<nowiki>{{gap}}</nowiki>


</poem>
<br>
<hr>
<br>