Jump to content

User:Thuvack/Sand-Box

Kusuka e Wikipedia



Code to create styled Wikipedia Main page & related templates

Main Page mark-up:

[Lulamisa | edit source]
{{DISPLAYTITLE:<span style="position: absolute; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);">{{FULLPAGENAME}}</span>}}
<!-------------------------------Banner across top of page------------------------------>
{| style="width:100%; background:#FBFCD4; margin-top:1.2em; border:1px solid #FFAEAE;"
|style="width:56%; color:#000"| <!-- 

----------"Welcome to Wikipedia" and article count---------->
{| style="width:400px; border:solid 0px; background:#FBFCD4;"
|style="width:400px; text-align:center; white-space:nowrap; color:#000;"|
<div style="font-size:162%; border:none; margin:0; padding:.1em; color:#000;">Welcome to [[Wikipedia]],</div>
<div style="top:+0.2em; font-size:95%;">The free encyclopaedia that anyone can edit.</div>
<div id="articlecount" style="width:100%; text-align:center; font-size:85%;">There are '''[[Special:Statistics|{{NUMBEROFARTICLES}}]]''' in  [[LANGUAGE|This language]].</div>
|}
<inputbox>
type=create
width=40
break=no
bgcolor=none
buttonlabel=Create an Article 
searchbuttonlabel=Search
</inputbox>

<!------------Portal list on righthand side---------->
|style="width:14%; font-size:95%;"|
*[[Portal:Arts|Arts]]
*[[Portal:Biography|Biography]]
*[[Portal:Geography|Geography]]
|style="width:14%; font-size:95%;"|
*[[Portal:History|History]]
*[[Portal:Plants|Plants]]
*[[Portal:Science|Science]]
|style="width:20%; font-size:95%;"|
*[[Portal:Religion|Religion]]
*[[Portal:Technology|Technology]]
*[[Portal:Africa|Africa]]
|}

<!------------Strapline immediately below banner---------->
<!--        TODAY'S FEATURED CONTENT        -->
{| id="mp-upper" style="width: 100%; margin:4px 0 0 0; background:none; border-spacing: 0px;"
<!--        TODAY'S FEATURED ARTICLE; DID YOU KNOW        -->
| class="MainPageBG" style="width:55%; border:1px solid #FFAEAE; background:#FBFCD4; vertical-align:top; color:#000;" |
{| id="mp-left" style="vertical-align:top; background:#FBFCD4;"
! style="padding:2px;" | <h2 id="mp-dyk-h2" style="margin:3px; background:#E6E6E5; font-size:120%; font-weight:bold; border:1px solid #000000; text-align:left; color:#000; padding:0.2em 0.4em;">Featured article of the day</h2>
|-
| style="color:#000; padding:2px 5px 5px;" | <div id="mp-dyk">{{Featured Article of the day}}</div>
|-
! style="padding:2px;" | <h2 id="mp-dyk-h2" style="margin:3px; background:#E6E6E5; font-size:120%; font-weight:bold; border:1px solid #000000; text-align:left; color:#000; padding:0.2em 0.4em;">Featured Photo of the day</h2>
|-
| style="color:#000; padding:2px 5px 5px;" | <div id="mp-dyk">{{Today's featured picture}}</div>
|}
| style="border:1px solid transparent;" |
<!--        PIC OF THE DAY        -->
| class="MainPageBG" style="width:45%; border:1px solid #FFAEAE; background:#E6E6E5; vertical-align:top;"|
{| id="mp-right" style="width:100%; vertical-align:top; background:#E6E6E5;"
! style="padding:2px;" | <h2 id="mp-itn-h2" style="margin:3px; background:#FBFCD4; font-size:120%; font-weight:bold; border:1px solid #000000; text-align:left; color:#000; padding:0.2em 0.4em;">See other interesting articles</h2>
|-
| style="color:#000; padding:2px 5px;" | <div id="mp-itn">{{Featured Articles}}</div>
|}
|}
</td>
</tr>
{| width=100% cellpadding="0" cellspacing="0" valign="top" style="background:#F1FAFF;"
|-
<!--      SECTIONS AT BOTTOM OF PAGE        -->
<div id="mpbanner" style="text-align:center; font-size:100%;width: 100%; background-color:#FFFFFF; padding: .2em 0; border: 1px solid #FFAEAE; color: #000; margin-top:+.2em;font-family:verdana,arial,helvetica">{{Wikipedia-Africa}}</div>
<div id="mpbanner" style="text-align:center; font-size:100%;width: 100%; background-color:#FFCCCC; padding: .2em 0; border: 1px solid #BFB1A3; color: #000; margin-top:+.2em;font-family:verdana,arial,helvetica">{{Wikipediasister}}</div>
|}
<!--        INTERWIKI STRAPLINE TO BE ADDED AT A LATER STAGE       -->
<noinclude> </noinclude>__NOTOC____NOEDITSECTION__

Featured article of the day mark-up:

[Lulamisa | edit source]
The template to rotate articles by day of the month
{{#switch: {{CURRENTDAY}}
 |01= {{:Template:Featured Article of the day/FAOD-01}}
 |02= {{:Template:Featured Article of the day/FAOD-02}}
 |03= {{:Template:Featured Article of the day/FAOD-03}}
 |04= {{:Template:Featured Article of the day/FAOD-04}}
 |05= {{:Template:Featured Article of the day/FAOD-05}}
 |06= {{:Template:Featured Article of the day/FAOD-06}}
 |07= {{:Template:Featured Article of the day/FAOD-07}}
 |08= {{:Template:Featured Article of the day/FAOD-08}}
 |09= {{:Template:Featured Article of the day/FAOD-09}}
 |10= {{:Template:Featured Article of the day/FAOD-10}}
 |11= {{:Template:Featured Article of the day/FAOD-11}}
 |12= {{:Template:Featured Article of the day/FAOD-12}}
 |13= {{:Template:Featured Article of the day/FAOD-13}}
 |14= {{:Template:Featured Article of the day/FAOD-14}}
 |15= {{:Template:Featured Article of the day/FAOD-15}}
 |16= {{:Template:Featured Article of the day/FAOD-16}}
 |17= {{:Template:Featured Article of the day/FAOD-17}}
 |18= {{:Template:Featured Article of the day/FAOD-18}}
 |19= {{:Template:Featured Article of the day/FAOD-19}}
 |20= {{:Template:Featured Article of the day/FAOD-20}}
 |21= {{:Template:Featured Article of the day/FAOD-21}}
 |22= {{:Template:Featured Article of the day/FAOD-22}}
 |23= {{:Template:Featured Article of the day/FAOD-23}}
 |24= {{:Template:Featured Article of the day/FAOD-24}}
 |25= {{:Template:Featured Article of the day/FAOD-25}}
 |26= {{:Template:Featured Article of the day/FAOD-26}}
 |27= {{:Template:Featured Article of the day/FAOD-27}}
 |28= {{:Template:Featured Article of the day/FAOD-28}}
 |29= {{:Template:Featured Article of the day/FAOD-29}}
 |30= {{:Template:Featured Article of the day/FAOD-30}}
 |31= {{:Template:Featured Article of the day/FAOD-31}}
}}

The actual Featured articles
[[File:Toicon-icon-hatch-support.svg|thumbnail|left|130px|'''Name of featured biography or item''']] 
<center><big><big><big>'''07'''</big></big></big></Center>
       
'''Name of featured biography or item''' short description about the featured biography or item. It is recommended to use the summary section of the main article about this featured biography or item, as that will give a basic description. 

If the wikipedia project does not have an active community, which would customarily institute a voting process to select featured articles based on an a community quality framework, then the current administrator or active editor can select the articles to be featured on the main page. Even in that case, it is recommended that some kind of history of this selection be kept either in the village pump or on the talk page of the featured article portal. 
<br>
<div align="left" class="noprint">[[File:Bullet go.png|12px]] '''[[ADD LINK TO BIO OR ITEM|Read more about this...]]'''</div>
[Lulamisa | edit source]
The template to rotate pictures by day of the month
{{#switch: {{CURRENTDAY}}
 |01= {{:Template:Today's featured picture/POD-01}}
 |02= {{:Template:Today's featured picture/POD-02}}
 |03= {{:Template:Today's featured picture/POD-03}}
 |04= {{:Template:Today's featured picture/POD-04}}
 |05= {{:Template:Today's featured picture/POD-05}}
 |06= {{:Template:Today's featured picture/POD-06}}
 |07= {{:Template:Today's featured picture/POD-07}}
 |08= {{:Template:Today's featured picture/POD-08}}
 |09= {{:Template:Today's featured picture/POD-09}}
 |10= {{:Template:Today's featured picture/POD-10}}
 |11= {{:Template:Today's featured picture/POD-11}}
 |12= {{:Template:Today's featured picture/POD-12}}
 |13= {{:Template:Today's featured picture/POD-13}}
 |14= {{:Template:Today's featured picture/POD-14}}
 |15= {{:Template:Today's featured picture/POD-15}}
 |16= {{:Template:Today's featured picture/POD-16}}
 |17= {{:Template:Today's featured picture/POD-17}}
 |18= {{:Template:Today's featured picture/POD-18}}
 |19= {{:Template:Today's featured picture/POD-19}}
 |20= {{:Template:Today's featured picture/POD-20}}
 |21= {{:Template:Today's featured picture/POD-21}}
 |22= {{:Template:Today's featured picture/POD-22}}
 |23= {{:Template:Today's featured picture/POD-23}}
 |24= {{:Template:Today's featured picture/POD-24}}
 |25= {{:Template:Today's featured picture/POD-25}}
 |26= {{:Template:Today's featured picture/POD-26}}
 |27= {{:Template:Today's featured picture/POD-27}}
 |28= {{:Template:Today's featured picture/POD-28}}
 |29= {{:Template:Today's featured picture/POD-29}}
 |30= {{:Template:Today's featured picture/POD-30}}
 |31= {{:Template:Today's featured picture/POD-31}}
}}

The actual Featured pictures
{| role="presentation" style="margin:0 3px 3px; width:100%; box-sizing:border-box; text-align:left; background-color:transparent; border-collapse: collapse; "
|style="padding:0 0.9em 0 0;width: 325px;" | [[File:Icon-menschen-und-behinderung-6.png|center|upright=1.0|]]
|style="padding:0 6px 0 0"|

<center><big><big><big>'''07'''</big></big></big></Center>
''All selected photos of the day, must be accompanied by a description of what the picture is about, what items or individuals are in the photo and if there is any historical significance to the picture.''
<p><small>Photograph credit: [[Add name of photographer or institution here]]; restored by [[Add if applicable]]</small></p>
<br />
<br />
<div align="left" class="noprint">[[File:Bullet go.png|12px]] '''[[Photo of the day|See other selected photos...]]'''</div>
|}

Other interesting articles mark-up:

[Lulamisa | edit source]
{| cellpadding="5" cellspacing="4" style="width:100%; border:2px ;"  
|-----
|colspan="6" align="center" bgcolor=#E6E6E5 |

{| width="100%"  border="0" cellspacing="0" cellpadding="5"
|- 
<!---------------------------------------------->
| width="10%" | [[Image:Nuvola apps bookcase.svg|40px|center]]
| width="90%" style="font-size: 90%; color: green;" |  '''Other Featured articles'''<br/> 
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] 
<!---------------------------------------------->
|-
<!---------------------------------------------->
| [[Image:P_religion_world.svg|40px|center]]
| style="font-size: 90%; border-top: 1px dashed #AAAAAA; color: green;" | '''<span style="color:green;">Religion</span>'''<br/>
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] 
<!---------------------------------------------->
|- 
<!---------------------------------------------->
| [[Image:Classroom icon.svg|40px|center]]
| style="font-size: 90%; border-top: 1px dashed #AAAAAA;" | '''<span style="color:green;">Luganda Authors</span>'''<br/>
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] 
<!---------------------------------------------->
|-
<!---------------------------------------------->
| [[Image:Gnome-globe.svg|40px|center]]
| style="font-size: 90%; border-top: 1px dashed #AAAAAA; color: green;" | '''<span style="color:green;">African Countries</span>'''<br/>
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] 
<!---------------------------------------------->
|-
<!---------------------------------------------->
| [[Image:Nuvola apps kuser.svg|40px|center]]
| style="font-size: 90%; border-top: 1px dashed #AAAAAA; color: green;" | '''<span style="color:green;">History</span>'''<br/>
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] 
<!---------------------------------------------->
|-
<!---------------------------------------------->
| [[File:Projet bière logo v2.png |40px|center]]
| style="font-size: 90%; border-top: 1px dashed #AAAAAA; color: green;" | '''<span style="color:green;">Traditional drinks</span>'''<br/>
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] 
|-
<!---------------------------------------------->
| [[Image:Karl_Johanssvamp,_Iduns_kokbok.png|40px|center]]
| style="font-size: 90%; border-top: 1px dashed #AAAAAA; color: green;" | '''<span style="color:green;">Plant names</span>'''<br/>
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] -
[[Add Article]] 
<!---------------------------------------------->
|}

Other African language projects mark-up:

[Lulamisa | edit source]
; Wikipedia projects in African languages 
[[:af:|Afrikaans]] ·
[[:ak:|Akan]] ·
[[:am:|አማርኛ]] ·
[[:bm:|Bamanankan]] ·
[[:ny:|Chi-Chewa]] ·
[[:sn:|chiShona]] ·
[[:tum:|chiTumbuka]] ·
[[:ee:|Ɛʋɛ]] ·
[[:ff:|Fulfude]] ·
[[:ki:|Gĩkũyũ]] ·
[[:ha:|هَوُسَ]] ·
[[:ig:|Ìgbo]] ·
[[:xh:|isiXhosa]] ·
[[:rw:|Kinyarwanda]] ·
[[:rn:|Kirundi]] ·
[[:sw:|Kiswahili]] ·
[[:kg:|Kongo]] ·
[[:ln:|Lingala]] ·
[[:ts:|Xitsonga]] ·
[[:mg:|Malagasy]] ·
[[:om:|Oromoo]] ·
[[:sg:|Sängö]] ·
[[:st:|seSotho]] ·
[[:nso:|sePedi]] ·
[[:tn:|Setswana]] ·
[[:ss:|SiSwati]] ·
[[:so:|Soomaaliga]] ·
[[:ti:|ትግርኛ]] ·
[[:ve:|Tshivenda]] ·
[[:tw:|Twi]] ·
[[:wo:|Wolof]] ·
[[:yo:|Yorùbá]] ·
[[:zu:|Zulu]] ·
<br/>

(To view other Wikipedia language projects, see language links on the left)


Wikipedia's sister projects mark-up:

[Lulamisa | edit source]
Wikipedia is hosted by the [[Wikimedia Foundation]], a non-profit organization that also hosts a range of other [[wmf:Our projects|projects]]:
  <table class="layout plainlinks" style="width:100%; margin:auto; text-align:left; background:transparent;">
  <tr>
  <td style="text-align:center; padding:4px;"> [[File:Commons-logo.svg|31px|link=commons:|Commons]] </td>
  <td style="width:33%; padding:4px;"> '''[//commons.wikimedia.org/ Commons]''' <br> Free media repository </td>
  <td style="text-align:center; padding:4px;"> [[File:Mediawiki-logo.png|35px|link=mw:|MediaWiki]] </td>
  <td style="width:33%; padding:4px;"> '''[//mediawiki.org/ MediaWiki]''' <br> Wiki software development </td>
  <td style="text-align:center; padding:4px;"> [[File:Wikimedia Community Logo.svg|35px|link=m:|Meta-Wiki]] </td>
  <td style="width:33%; padding:4px;"> '''[//meta.wikimedia.org/ Meta-Wiki]''' <br> Wikimedia project coordination </td>
  </tr><tr>
  <td style="text-align:center; padding:4px;"> [[File:Wikibooks-logo.svg|35px|link=b:|Wikibooks]] </td>
  <td style="padding:4px;"> '''[//en.wikibooks.org/ Wikibooks]''' <br> Free textbooks and manuals </td>
  <td style="text-align:center; padding:3px;"> [[File:Wikidata-logo.svg|47px|link=d:|Wikidata]] </td>
  <td style="padding:4px;"> '''[//www.wikidata.org/ Wikidata]''' <br> Free knowledge base </td>
  <td style="text-align:center; padding:4px;"> [[File:Wikinews-logo.svg|51px|link=n:|Wikinews]] </td>
  <td style="padding:4px;"> '''[//en.wikinews.org/ Wikinews]''' <br> Free-content news </td>
  </tr><tr>
  <td style="text-align:center; padding:4px;"> [[File:Wikiquote-logo.svg|35px|link=q:|Wikiquote]] </td>
  <td style="padding:4px;"> '''[//en.wikiquote.org/ Wikiquote]''' <br> Collection of quotations </td>
  <td style="text-align:center; padding:4px;"> [[File:Wikisource-logo.svg|35px|link=s:|Wikisource]] </td>
  <td style="padding:4px;"> '''[//en.wikisource.org/ Wikisource]''' <br> Free-content library </td>
  <td style="text-align:center; padding:4px;"> [[File:Wikispecies-logo.svg|35px|link=wikispecies:|Wikispecies]] </td>
  <td style="padding:4px;"> '''[//species.wikimedia.org/ Wikispecies]''' <br> Directory of species </td>
  </tr><tr>
  <td style="text-align:center; padding:4px;"> [[File:Wikiversity-logo.svg|41px|link=v:|Wikiversity]] </td>
  <td style="padding:4px;"> '''[//en.wikiversity.org/ Wikiversity]''' <br> Free learning materials and activities </td>
  <td style="text-align:center; padding:4px;"> [[File:Wikivoyage-Logo-v3-icon.svg|35px|link=Wikivoyage:|Wikivoyage]] </td>
  <td style="padding:4px;"> '''[//en.wikivoyage.org/ Wikivoyage]''' <br> Free travel guide </td>
  <td style="text-align:center; padding:4px;"> [[File:Wiktionary-logo-v2.svg|35px|link=wikt:|Wiktionary]] </td>
  <td style="padding:4px;"> '''[//en.wiktionary.org/ Wiktionary]''' <br> Dictionary and thesaurus </td>
  </tr></table><noinclude>



Tibokisi to vu tirhisi ta Thuvack
Minyangwa-nkulu Ti phurojeki ta mina Swivumbiwa-ntirho Mabokisi ya Sava Vuhundzuluxeri Minthsaho Mintsengo